add ssh authorized_keys

This commit is contained in:
Daniel Langbein 2021-06-13 14:21:26 +02:00
parent a818bbbe16
commit 40960587c2
5 changed files with 38 additions and 1 deletions

View File

@ -0,0 +1,12 @@
# Maintainer: Daniel Langbein <daniel@systemli.org>
_pkgname=ssh-key-placeholder
_reponame=arch
pkgname="de-p1st-$_pkgname"
pkgver=0.0.1
pkgrel=1
pkgdesc="ssh authorized_keys placeholder"
arch=('any')
url="https://codeberg.org/privacy1st/${_reponame}"
license=('MIT')
provides=('de-p1st-ssh-key')
conflicts=('de-p1st-ssh-key')

View File

@ -0,0 +1,23 @@
# Maintainer: Daniel Langbein <daniel@systemli.org>
_pkgname=ssh-key-yoda
_reponame=arch
pkgname="de-p1st-$_pkgname"
pkgver=0.0.1
pkgrel=1
pkgdesc="ssh authorized_keys for user yoda"
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}"
install -dm0700 "$pkgdir"/home/yoda/.ssh/
install -m0600 authorized_keys "$pkgdir"/home/yoda/.ssh/authorized_keys
}

View File

@ -0,0 +1 @@
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCpgihAg8Qzu5q+AGXHLR7p+rrS1yB0KlZb/Y/EwZT15EhEtsUMqBMRiY0TdjKQU0broyygZnymccLmCXvihEgk3zk/hP8VEDmN5wmE2tRBPR4lSjo8E1R8N79G+gaFkwi93QYh57MsGfa9k4tvGrJy0yaD7GrPqtQf+IIuvV14WJQAqnikTdbFqRjk5JGearYLU7jSKa+9NmR7JQ9NExoyIPgmQ/pd0Xc2qt8k5UGfz3HM9MAmIVQ30whK6m1iYZ8nxEidHrfreQx8NOa7ujo4zQnV1NYvRUjObr/qyIhPU6DYLT2mVRNupQFKx6LI38O4U13heugUFqJ3zvog3aDsriFiv8jzJAJvWXx7Q3TqKhqiG9VTkwBw1NDbCAOXKiEdMfiCYbdCfpNgdepU75bMloJcSQQVUqoH2tQhSbwKLuRFgOnyaHpvWbieXBRcUnfG8gg4p4jqiwx5laweEeOIOD/i7G1Mjx7Dj2ctnT/ILat/xsf+Y0W4eJr3bc5L9ghgw6wsKbNSqwjFUCFcHcARK3gvSH+hO2/BpgMVoyvZjO5PNuUqfsZ7bIIs5cDdyB/ly3irKuaRz1+3x1x4gPgSiOcji7HxPwogzhPsyfoRLHNt9tJ5X4nF2Iz1M5RTJpbZCi6yEj+9Q85FVjD76BEWuZe18kRrwhuLf/XgKdF9tQ== openpgp:0xA8B75370

View File

@ -10,6 +10,7 @@ url="https://codeberg.org/privacy1st/${_reponame}"
license=('MIT')
depends=('openssh' 'systemd')
depends+=('holo' 'git' 'base') # holo and its dependencies: git because of git-diff; without base "holo apply" may fail on initial system installation
depends+=('de-p1st-ssh-key')
makedepends=('git')
install='.install'
source=("git+${url}.git")

View File

@ -22,7 +22,7 @@ install=
changelog=
source=("git+${url}.git")
noextract=()
sha256sums=('SKIP') # 'SKIP' for git soruces; Otherwise: autofill using updpkgsums, see https://man.archlinux.org/man/updpkgsums.8.en
sha256sums=('SKIP') # 'SKIP' for git sources; Otherwise: autofill using updpkgsums, see https://man.archlinux.org/man/updpkgsums.8.en
build() {
cd "${_reponame}/pkg/${pkgname}"