arch/pkg/de-p1st-ssh-key-yoda/PKGBUILD

29 lines
1.0 KiB
Bash
Raw Permalink Normal View History

2021-06-13 14:21:26 +02:00
# Maintainer: Daniel Langbein <daniel@systemli.org>
_pkgname=ssh-key-yoda
_reponame=arch
pkgname="de-p1st-$_pkgname"
2021-11-13 17:27:28 +01:00
pkgver=0.1.0
pkgrel=1
pkgdesc="ssh authorized_keys for root (uid=0) and yoda (uid=1000)"
2021-06-13 14:21:26 +02:00
arch=('any')
url="https://codeberg.org/privacy1st/${_reponame}"
license=('MIT')
depends=('openssh')
makedepends=('git') # to fetch source(s) via git
provides=('de-p1st-ssh-key')
conflicts=('de-p1st-ssh-key')
source=("git+${url}.git")
sha256sums=('SKIP') # 'SKIP' for git sources; Otherwise: autofill using updpkgsums, see https://man.archlinux.org/man/updpkgsums.8.en
package() {
cd "${_reponame}/pkg/${pkgname}"
2021-06-13 14:32:37 +02:00
install -dm0700 -o1000 "$pkgdir"/home/yoda/
2021-06-13 14:30:34 +02:00
install -dm0700 -o1000 "$pkgdir"/home/yoda/.ssh/
install -m0600 -o1000 authorized_keys "$pkgdir"/home/yoda/.ssh/authorized_keys
2021-11-13 17:27:28 +01:00
install -dm0700 -o0 "$pkgdir"/root/
install -dm0700 -o0 "$pkgdir"/root/.ssh/
install -m0600 -o0 authorized_keys "$pkgdir"/root/.ssh/authorized_keys
2021-06-13 14:21:26 +02:00
}