summaryrefslogtreecommitdiff
path: root/pcr/opentmpfiles/PKGBUILD
diff options
context:
space:
mode:
authorOmar Vega Ramos <ovruni@gnu.org.pe>2017-03-15 10:22:36 -0500
committerOmar Vega Ramos <ovruni@gnu.org.pe>2017-03-15 10:22:36 -0500
commit94cfdac44101e1887cb4ac16d1e41bc96a0fc1b2 (patch)
tree5900b5fd5c5679c4992d35cd8a68e22d66ad57a9 /pcr/opentmpfiles/PKGBUILD
parent3a250dce41744b06acc000d6b476a58be8147999 (diff)
downloadabslibre-94cfdac44101e1887cb4ac16d1e41bc96a0fc1b2.tar.gz
abslibre-94cfdac44101e1887cb4ac16d1e41bc96a0fc1b2.tar.bz2
abslibre-94cfdac44101e1887cb4ac16d1e41bc96a0fc1b2.zip
opentmpfiles-0.1.3-1: updating version
Diffstat (limited to 'pcr/opentmpfiles/PKGBUILD')
-rw-r--r--pcr/opentmpfiles/PKGBUILD31
1 files changed, 27 insertions, 4 deletions
diff --git a/pcr/opentmpfiles/PKGBUILD b/pcr/opentmpfiles/PKGBUILD
index c330890a9..69be963f2 100644
--- a/pcr/opentmpfiles/PKGBUILD
+++ b/pcr/opentmpfiles/PKGBUILD
@@ -5,18 +5,41 @@
_url="https://github.com/OpenRC/opentmpfiles/archive"
pkgname=opentmpfiles
-pkgver=0.1
+pkgver=0.1.3
pkgrel=1
pkgdesc="A standalone utility for handling systemd-style tmpfiles.d settings"
arch=('any')
url="http://www.gentoo.org/proj/en/base/openrc/"
license=('BSD2')
-#depends=('openrc')
-#backup=()
+groups=('openrc-base')
+depends=('openrc')
+backup=('etc/conf.d/opentmpfiles-dev'
+ 'etc/conf.d/opentmpfiles-setup')
source=("${pkgname}-${pkgver}.tar.gz::${_url}/${pkgver}.tar.gz")
-sha256sums=('0c7a52d6394dcbe78dd5b4f8fba6fcc66b207389b9a9b85e61a0ab8e9e375bb7')
+sha256sums=('1fdd4587c62d815296fb4162002cf001e3ed7aae8727d9b4360f527169e6b3be')
+
+_inst_initd(){
+ install -Dm755 openrc/$1.initd ${pkgdir}/etc/init.d/$1
+ sed -e 's|#!/sbin/openrc-run|#!/usr/bin/openrc-run|' \
+ -i ${pkgdir}/etc/init.d/$1
+}
+
+_inst_confd(){
+ install -Dm755 openrc/$1.confd ${pkgdir}/etc/conf.d/$1
+}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
make bindir="/usr/bin" DESTDIR="${pkgdir}" install
+
+ for f in opentmpfiles-dev opentmpfiles-setup; do
+ _inst_confd "$f"
+ _inst_initd "$f"
+ done
+
+ install -dm755 ${pkgdir}/etc/runlevels/{boot,sysinit}
+ ln -snf "/etc/init.d/opentmpfiles-dev" "${pkgdir}/etc/runlevels/sysinit/opentmpfiles-dev"
+ ln -snf "/etc/init.d/opentmpfiles-setup" "${pkgdir}/etc/runlevels/boot/opentmpfiles-setup"
+
+ ln -snf "/usr/bin/tmpfiles" "${pkgdir}/usr/bin/systemd-tmpfiles"
}