From 40960587c201a72b9edd66e9641ca095911b4062 Mon Sep 17 00:00:00 2001 From: Daniel Langbein Date: Sun, 13 Jun 2021 14:21:26 +0200 Subject: [PATCH] add ssh authorized_keys --- pkg/de-p1st-ssh-key-placeholder/PKGBUILD | 12 ++++++++++++ pkg/de-p1st-ssh-key-yoda/PKGBUILD | 23 +++++++++++++++++++++++ pkg/de-p1st-ssh-key-yoda/authorized_keys | 1 + pkg/de-p1st-ssh/PKGBUILD | 1 + prototype/proto.PKGBUILD | 2 +- 5 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 pkg/de-p1st-ssh-key-placeholder/PKGBUILD create mode 100644 pkg/de-p1st-ssh-key-yoda/PKGBUILD create mode 100644 pkg/de-p1st-ssh-key-yoda/authorized_keys diff --git a/pkg/de-p1st-ssh-key-placeholder/PKGBUILD b/pkg/de-p1st-ssh-key-placeholder/PKGBUILD new file mode 100644 index 0000000..566261a --- /dev/null +++ b/pkg/de-p1st-ssh-key-placeholder/PKGBUILD @@ -0,0 +1,12 @@ +# Maintainer: Daniel Langbein +_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') diff --git a/pkg/de-p1st-ssh-key-yoda/PKGBUILD b/pkg/de-p1st-ssh-key-yoda/PKGBUILD new file mode 100644 index 0000000..0f56c65 --- /dev/null +++ b/pkg/de-p1st-ssh-key-yoda/PKGBUILD @@ -0,0 +1,23 @@ +# Maintainer: Daniel Langbein +_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 +} diff --git a/pkg/de-p1st-ssh-key-yoda/authorized_keys b/pkg/de-p1st-ssh-key-yoda/authorized_keys new file mode 100644 index 0000000..11a0611 --- /dev/null +++ b/pkg/de-p1st-ssh-key-yoda/authorized_keys @@ -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 diff --git a/pkg/de-p1st-ssh/PKGBUILD b/pkg/de-p1st-ssh/PKGBUILD index a896878..d73552e 100644 --- a/pkg/de-p1st-ssh/PKGBUILD +++ b/pkg/de-p1st-ssh/PKGBUILD @@ -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") diff --git a/prototype/proto.PKGBUILD b/prototype/proto.PKGBUILD index 5c4bc22..d925fcc 100644 --- a/prototype/proto.PKGBUILD +++ b/prototype/proto.PKGBUILD @@ -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}"