fix systemd system-preset

This commit is contained in:
Daniel Langbein 2021-05-03 18:45:52 +02:00
parent f038126679
commit f0354bc567
5 changed files with 11 additions and 11 deletions

View File

@ -61,7 +61,7 @@ Example: [pkg/de-p1st-gnupg/PKGBUILD](pkg/de-p1st-gnupg/PKGBUILD)
* [man 5 systemd.preset](https://www.systutorials.com/docs/linux/man/5-systemd.preset/)
```shell
install -Dm0644 systemd.preset "$pkgdir"/usr/lib/systemd/system-preset/"$pkgname".preset
install -Dm0644 systemd.preset "$pkgdir"/usr/lib/systemd/system-preset/20-"$pkgname".preset
```
Example package:

View File

@ -2,8 +2,8 @@
_pkgname=dns
_reponame=arch
pkgname="de-p1st-$_pkgname"
pkgver=0.0.2
pkgrel=4
pkgver=0.0.3
pkgrel=1
pkgdesc="DNS configuration: Use DNS over TLS"
arch=('any')
url="https://codeberg.org/privacy1st/${_reponame}"
@ -35,5 +35,5 @@ package() {
install -Dm0644 DoT.conf "$pkgdir"/etc/systemd/resolved.conf.d/DoT.conf
install -Dm0644 dns.conf "$pkgdir"/etc/NetworkManager/conf.d/dns.conf
install -Dm0644 systemd.preset "$pkgdir"/usr/lib/systemd/system-preset/"$pkgname".preset
install -Dm0644 systemd.preset "$pkgdir"/usr/lib/systemd/system-preset/20-"$pkgname".preset
}

View File

@ -2,8 +2,8 @@
_pkgname=networkmanager
_reponame=arch
pkgname="de-p1st-$_pkgname"
pkgver=0.0.1
pkgrel=2
pkgver=0.0.2
pkgrel=1
pkgdesc="NetworkManager with configuration"
arch=('any')
url="https://codeberg.org/privacy1st/${_reponame}"
@ -26,5 +26,5 @@ sha256sums=('SKIP')
package() {
cd "${_reponame}/pkg/${pkgname}"
install -Dm0644 systemd.preset "$pkgdir"/usr/lib/systemd/system-preset/"$pkgname".preset
install -Dm0644 systemd.preset "$pkgdir"/usr/lib/systemd/system-preset/20-"$pkgname".preset
}

View File

@ -2,7 +2,7 @@
_pkgname=smartcard
_reponame=arch
pkgname="de-p1st-$_pkgname"
pkgver=0.0.1
pkgver=0.0.2
pkgrel=1
pkgdesc="Configuration to use smartcards"
arch=('any')
@ -27,5 +27,5 @@ package() {
cd "${_reponame}/pkg/${pkgname}"
install -Dm0544 opensc.conf.holoscript "$pkgdir"/usr/share/holo/files/"$pkgname"/etc/opensc.conf.holoscript
install -Dm0644 systemd.preset "$pkgdir"/usr/lib/systemd/system-preset/"$pkgname".preset
install -Dm0644 systemd.preset "$pkgdir"/usr/lib/systemd/system-preset/20-"$pkgname".preset
}

View File

@ -2,7 +2,7 @@
_pkgname=systemd
_reponame=arch
pkgname="de-p1st-$_pkgname"
pkgver=0.0.2
pkgver=0.0.3
pkgrel=1
pkgdesc="systemd with configuration"
arch=('any')
@ -27,5 +27,5 @@ package() {
cd "${_reponame}/pkg/${pkgname}"
install -Dm0644 00-journal-size.conf "$pkgdir"/etc/systemd.conf.d/00-journal-size.conf
install -Dm0644 systemd.preset "$pkgdir"/usr/lib/systemd/system-preset/"$pkgname".preset
install -Dm0644 systemd.preset "$pkgdir"/usr/lib/systemd/system-preset/20-"$pkgname".preset
}