gnupg: work in progress

This commit is contained in:
Daniel Langbein 2021-04-29 12:09:36 +02:00
parent 3d840de4ec
commit 2611539723
8 changed files with 61 additions and 7 deletions

View File

@ -9,19 +9,22 @@
# -> git # -> git
# #
BUILD_DIR=./archlive BUILD_DIR=./archlive
PKGS=('git' 'de-p1st-keyboard' 'de-p1st-pacman' 'de-p1st-mirrorlist' 'de-p1st-systemd' 'de-p1st-installer') PKGS=('git' 'de-p1st-keyboard' 'de-p1st-pacman' 'de-p1st-pacman-mirrorlist' 'de-p1st-systemd' 'de-p1st-installer')
PACMAN_CFG_ADDITION='pkg/de-p1st-pacman/pacman.d/de-p1st' # will be used to extend the builder's pacman.conf PACMAN_CFG_ADDITION='pkg/de-p1st-pacman/pacman.d/de-p1st' # will be used to extend the builder's pacman.conf
################################ ################################
if [ -d "${BUILD_DIR}" ] ; then if [ "$1" = "clean" ] ; then
sudo rm -r "${BUILD_DIR}" || exit
elif [ -d "${BUILD_DIR}" ] ; then
echo "Build dir does already exist and may not be empty!" echo "Build dir does already exist and may not be empty!"
echo "Run '$0 clean' to start a clean ISO build."
exit 1 exit 1
else
mkdir "$BUILD_DIR" || exit
fi fi
mkdir "$BUILD_DIR" || exit
# The releng profile is used to create the official monthly installation ISO # The releng profile is used to create the official monthly installation ISO
PROFILE=/usr/share/archiso/configs/releng/ PROFILE=/usr/share/archiso/configs/releng/
if [ ! -d "${PROFILE}" ] ; then if [ ! -d "${PROFILE}" ] ; then

View File

@ -0,0 +1,37 @@
# Maintainer: Daniel Langbein <daniel@systemli.org>
_pkgname=gnupg
_reponame=arch
pkgname="de-p1st-$_pkgname"
pkgver=0.0.1
pkgrel=1
pkgdesc="gnupg with configuration"
arch=('any')
url="https://codeberg.org/privacy1st/${_reponame}"
license=('MIT')
groups=()
depends=('gnupg')
makedepends=('git')
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=("git+${url}.git" 'git+https://github.com/ioerror/duraconf.git')
noextract=()
sha256sums=('SKIP' 'SKIP')
build() {
cp duraconf/configs/gnupg/gpg.conf "${_reponame}/pkg/${pkgname}/gpg.conf.template"
cd "${_reponame}/pkg/${pkgname}"
generate-gpg-conf.sh
}
package() {
cd "${_reponame}/pkg/${pkgname}"
install -Dm0644 gpg.conf "$pkgdir"/etc/gnupg/gpgconf.conf
}

View File

@ -0,0 +1,9 @@
# gnupg
* https://riseup.net/en/security/message-security/openpgp/best-practices
* https://github.com/ioerror/duraconf/blob/master/configs/gnupg/gpg.conf
The gpg configuration can be placed in:
* `~/.gnupg/gpg.conf`
* `/etc/gnupg/gpgconf.conf`

View File

@ -0,0 +1,5 @@
#!/bin/bash
DEFAULT_KEY='0x94F3D3DDAC22802258FC044B6C47C753F0823002'
sed "s|^#default-key\\s*.*\$|default-key ${DEFAULT_KEY}|" < gpg.conf.template > gpg.conf

View File

@ -9,7 +9,7 @@ arch=('any')
url="https://codeberg.org/privacy1st/${_reponame}" url="https://codeberg.org/privacy1st/${_reponame}"
license=('MIT') license=('MIT')
groups=() groups=()
depends=('bash') depends=()
makedepends=('git') makedepends=('git')
optdepends=() optdepends=()
provides=() provides=()

0
pkg/de-p1st-nano/TODO Normal file
View File

View File

@ -9,7 +9,7 @@ arch=('any')
url="https://codeberg.org/privacy1st/${_reponame}" url="https://codeberg.org/privacy1st/${_reponame}"
license=('MIT') license=('MIT')
groups=() groups=()
depends=('openssh' 'bash' 'aurutils') # arch-repo-vercmp uses "aur vercmp" which is part of "aurutils" depends=('openssh' 'aurutils') # arch-repo-vercmp uses "aur vercmp" which is part of "aurutils"
makedepends=('git') makedepends=('git')
optdepends=() optdepends=()
provides=() provides=()

View File

@ -2,7 +2,7 @@
_pkgname=systemd _pkgname=systemd
_reponame=arch _reponame=arch
pkgname="de-p1st-$_pkgname" pkgname="de-p1st-$_pkgname"
pkgver=0.0.1 pkgver=0.0.2
pkgrel=1 pkgrel=1
pkgdesc="systemd with configuration" pkgdesc="systemd with configuration"
arch=('any') arch=('any')