summaryrefslogtreecommitdiff
path: root/pcr/kmod-openrc
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2018-07-12 14:01:24 -0400
committerLuke Shumaker <lukeshu@lukeshu.com>2018-07-12 16:44:57 -0400
commita51a45f18643194977b898d44ca94a88ce1105ca (patch)
tree625ec95c441aa0060916f2b6d7eef5d3aa07f241 /pcr/kmod-openrc
parent71fcf0b4b490e8d497f146eddfc0e9f3ed4b1592 (diff)
pcr/kmod-openrc: Split off from pcr/openrc-base, tidy up
The rest of pcr/openrc-base could use the same treatment, but I'm only one man. However, in the mean time, stick a _commit= in pcr/openrc-base so that I can at least run `updpkgsums`, instead of trusting "master" to have not changed.
Diffstat (limited to 'pcr/kmod-openrc')
-rw-r--r--pcr/kmod-openrc/PKGBUILD24
1 files changed, 24 insertions, 0 deletions
diff --git a/pcr/kmod-openrc/PKGBUILD b/pcr/kmod-openrc/PKGBUILD
new file mode 100644
index 000000000..a99f9dd7b
--- /dev/null
+++ b/pcr/kmod-openrc/PKGBUILD
@@ -0,0 +1,24 @@
+# Maintainer: Luke Shumaker <lukeshu@parabola.nu>
+
+# Package information
+pkgname=kmod-openrc
+pkgdesc="kmod startup scripts for OpenRC"
+pkgrel=1
+arch=('any')
+groups=('base-openrc')
+depends=('openrc' 'kmod')
+
+# Upstream information
+pkgver=20170228
+_commit=22fd7b2d4764535bd3afc37728df1015b0294467
+url=https://gitweb.gentoo.org/repo/gentoo.git/tree/sys-apps/kmod
+# see here for new pkgver/_commit values: https://gitweb.gentoo.org/repo/gentoo.git/log/sys-apps/kmod/files/kmod-static-nodes-r1
+source=("kmod-static-nodes-r1-$pkgver::https://gitweb.gentoo.org/repo/gentoo.git/plain/sys-apps/kmod/files/kmod-static-nodes-r1?id=${_commit}")
+sha256sums=('328b74618b85fea197b36f8fc602a33d27e204f0d0b38ed0e6dfc920ba219e2f')
+license=('GPL2')
+
+package() {
+ install -Dm755 "$srcdir/kmod-static-nodes-r1-$pkgver" "$pkgdir/etc/init.d/kmod-static-nodes"
+ install -d "${pkgdir}/etc/runlevels/sysinit"
+ ln -sf "/etc/init.d/kmod-static-nodes" "${pkgdir}/etc/runlevels/sysinit/kmod-static-nodes"
+}