diff --git a/.gitignore b/.gitignore index e6c3faf..3608c05 100644 --- a/.gitignore +++ b/.gitignore @@ -6,5 +6,6 @@ /pkg/*/*-any.pkg.tar.zst /pkg/*/*-package.log /pkg/*/*-x86_64-build.log +/pkg/de-p1st-gnupg/duraconf/ -/archlive/ \ No newline at end of file +/archlive/ diff --git a/pkg/de-p1st-networkmanager/de-p1st-networkmanager.install b/pkg/de-p1st-networkmanager/.install similarity index 100% rename from pkg/de-p1st-networkmanager/de-p1st-networkmanager.install rename to pkg/de-p1st-networkmanager/.install diff --git a/pkg/de-p1st-networkmanager/PKGBUILD b/pkg/de-p1st-networkmanager/PKGBUILD index 456c7a4..b06027f 100644 --- a/pkg/de-p1st-networkmanager/PKGBUILD +++ b/pkg/de-p1st-networkmanager/PKGBUILD @@ -17,7 +17,7 @@ conflicts=() replaces=() backup=() options=() -install="${pkgname}.install" +install='.install' changelog= source=("git+${url}.git") noextract=() diff --git a/pkg/de-p1st-pacman-mirrorlist/de-p1st-pacman-mirrorlist.install b/pkg/de-p1st-pacman-mirrorlist/.install similarity index 100% rename from pkg/de-p1st-pacman-mirrorlist/de-p1st-pacman-mirrorlist.install rename to pkg/de-p1st-pacman-mirrorlist/.install diff --git a/pkg/de-p1st-pacman-mirrorlist/PKGBUILD b/pkg/de-p1st-pacman-mirrorlist/PKGBUILD index c4502c8..0cd2f11 100644 --- a/pkg/de-p1st-pacman-mirrorlist/PKGBUILD +++ b/pkg/de-p1st-pacman-mirrorlist/PKGBUILD @@ -17,7 +17,7 @@ conflicts=() replaces=() backup=() options=() -install="${pkgname}.install" +install='.install' changelog= source=("git+${url}.git") noextract=() diff --git a/pkg/de-p1st-pacman/de-p1st-pacman.install b/pkg/de-p1st-pacman/.install similarity index 100% rename from pkg/de-p1st-pacman/de-p1st-pacman.install rename to pkg/de-p1st-pacman/.install diff --git a/pkg/de-p1st-pacman/PKGBUILD b/pkg/de-p1st-pacman/PKGBUILD index 6910804..f3ba1ea 100644 --- a/pkg/de-p1st-pacman/PKGBUILD +++ b/pkg/de-p1st-pacman/PKGBUILD @@ -17,7 +17,7 @@ conflicts=() replaces=() backup=() options=() -install="${pkgname}.install" +install='.install' changelog= source=("git+${url}.git") noextract=() diff --git a/pkg/de-p1st-pacman/pacman.conf.holoscript b/pkg/de-p1st-pacman/pacman.conf.holoscript index cd246d6..3aa8352 100644 --- a/pkg/de-p1st-pacman/pacman.conf.holoscript +++ b/pkg/de-p1st-pacman/pacman.conf.holoscript @@ -2,4 +2,4 @@ # stdin: default config # stdout: modified config cat -echo 'Include = /etc/pacman.d/de-p1st' \ No newline at end of file +echo 'Include = /etc/pacman.d/de-p1st' diff --git a/pkg/de-p1st-smartcard/.install b/pkg/de-p1st-smartcard/.install new file mode 100644 index 0000000..6c51fc5 --- /dev/null +++ b/pkg/de-p1st-smartcard/.install @@ -0,0 +1,37 @@ +# This is a default template for a post-install scriptlet. +# Uncomment only required functions and remove any functions +# you don't need (and this header). + +## arg 1: the new package version +#pre_install() { + # do something here +#} + +## arg 1: the new package version +post_install() { + holo apply + systemctl preset-all +} + +## arg 1: the new package version +## arg 2: the old package version +#pre_upgrade() { + # do something here +#} + +## arg 1: the new package version +## arg 2: the old package version +post_upgrade() { + holo apply + systemctl preset-all +} + +## arg 1: the old package version +#pre_remove() { + # do something here +#} + +## arg 1: the old package version +post_remove() { + holo apply +} diff --git a/pkg/de-p1st-smartcard/PKGBUILD b/pkg/de-p1st-smartcard/PKGBUILD new file mode 100644 index 0000000..02765b6 --- /dev/null +++ b/pkg/de-p1st-smartcard/PKGBUILD @@ -0,0 +1,33 @@ +# Maintainer: Daniel Langbein +_pkgname=smartcard +_reponame=arch +pkgname="de-p1st-$_pkgname" +pkgver=0.0.1 +pkgrel=1 +pkgdesc="Configuration to use smartcards" +arch=('any') +url="https://codeberg.org/privacy1st/${_reponame}" +license=('MIT') +groups=() +depends=('ccid' 'opensc' 'holo' 'de-p1st-gnupg') +makedepends=('git') +optdepends=() +provides=() +conflicts=() +replaces=() +backup=() +options=() +install='.install' +changelog= +source=("git+${url}.git") +noextract=() +sha256sums=('SKIP') + +package() { + cd "${_reponame}/pkg/${pkgname}" + + # use HOLO + # HOLO, SYSTEMD hooks + + install -Dm0644 systemd.preset "$pkgdir"/usr/lib/systemd/system-preset/"$pkgname".preset +} diff --git a/pkg/de-p1st-systemd/de-p1st-systemd.install b/pkg/de-p1st-systemd/.install similarity index 100% rename from pkg/de-p1st-systemd/de-p1st-systemd.install rename to pkg/de-p1st-systemd/.install diff --git a/pkg/de-p1st-systemd/PKGBUILD b/pkg/de-p1st-systemd/PKGBUILD index 3227804..ffb18d1 100644 --- a/pkg/de-p1st-systemd/PKGBUILD +++ b/pkg/de-p1st-systemd/PKGBUILD @@ -17,7 +17,7 @@ conflicts=() replaces=() backup=() options=() -install="${pkgname}.install" +install='.install' changelog= source=("git+${url}.git") noextract=() diff --git a/prototype/proto-holo-and-systemd.install b/prototype/proto-holo-and-systemd.install new file mode 100644 index 0000000..6c51fc5 --- /dev/null +++ b/prototype/proto-holo-and-systemd.install @@ -0,0 +1,37 @@ +# This is a default template for a post-install scriptlet. +# Uncomment only required functions and remove any functions +# you don't need (and this header). + +## arg 1: the new package version +#pre_install() { + # do something here +#} + +## arg 1: the new package version +post_install() { + holo apply + systemctl preset-all +} + +## arg 1: the new package version +## arg 2: the old package version +#pre_upgrade() { + # do something here +#} + +## arg 1: the new package version +## arg 2: the old package version +post_upgrade() { + holo apply + systemctl preset-all +} + +## arg 1: the old package version +#pre_remove() { + # do something here +#} + +## arg 1: the old package version +post_remove() { + holo apply +}