aboutsummaryrefslogtreecommitdiffstats
path: root/main/kmod
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2015-06-22 13:08:26 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2015-06-22 13:09:10 +0000
commit73b8c4c8bdf20f2ad9e727d51e650fc10ab11c60 (patch)
tree822c46c3ff28bad3a4226ea6028067d7a663ff70 /main/kmod
parent180f0e17008daacf60da00602fd5928aa2fc6a2e (diff)
downloadaports-73b8c4c8bdf20f2ad9e727d51e650fc10ab11c60.tar.bz2
aports-73b8c4c8bdf20f2ad9e727d51e650fc10ab11c60.tar.xz
main/kmod: add init.d script for static nodes
from gentoo
Diffstat (limited to 'main/kmod')
-rw-r--r--main/kmod/APKBUILD14
-rw-r--r--main/kmod/kmod-static-nodes.initd19
2 files changed, 29 insertions, 4 deletions
diff --git a/main/kmod/APKBUILD b/main/kmod/APKBUILD
index 1e500a7d9..7e8e6cace 100644
--- a/main/kmod/APKBUILD
+++ b/main/kmod/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=kmod
pkgver=21
-pkgrel=1
+pkgrel=2
pkgdesc="Linux kernel module management utilities"
url="http://git.kernel.org/?p=utils/kernel/kmod/kmod.git;a=summary"
arch="all"
@@ -17,6 +17,7 @@ subpackages="$pkgname-dev $pkgname-doc $pkgname-libs
source="http://ftp.kernel.org/pub/linux/utils/kernel/kmod/kmod-$pkgver.tar.xz
strndupa.patch
sed-ere.patch
+ kmod-static-nodes.initd
"
_builddir="$srcdir"/kmod-$pkgver
@@ -55,6 +56,8 @@ package() {
for i in lsmod modinfo; do
ln -s kmod "$pkgdir"/bin/$i || return 1
done
+ install -Dm755 "$srcdir"/kmod-static-nodes.initd \
+ "$pkgdir"/etc/init.d/kmod-static-nodes || return 1
}
libs() {
@@ -73,10 +76,13 @@ completion() {
md5sums="ee246fab2e1cba9fbdcad6a86ec31531 kmod-21.tar.xz
a347d68599a0ab4c2abd53c89271cf67 strndupa.patch
-4b43b9727c2e2ad322725309cab8d21c sed-ere.patch"
+4b43b9727c2e2ad322725309cab8d21c sed-ere.patch
+32a5e4e056ff0b9f62654f46c982df5b kmod-static-nodes.initd"
sha256sums="160a9448af74cf75b08d089f37a3e8d1fafa75cce92d1cbe869a753b670d95c0 kmod-21.tar.xz
aea9bdad0e6d0c6c5d9c3f1fe1f84f85babcd52b3077336552ae73ccbc4b0a36 strndupa.patch
-b0c96ffc1c4366ce21ca2e69e19db9baf67179d06c291f9365040fa3f8a8be39 sed-ere.patch"
+b0c96ffc1c4366ce21ca2e69e19db9baf67179d06c291f9365040fa3f8a8be39 sed-ere.patch
+d214138be8fcf3ac4fe6b89d138b26c5db9693d02314cb795db3eea66a1683e9 kmod-static-nodes.initd"
sha512sums="93d9c7eda3a04ed94c6531087614d92b5a65a2e642bd3af017a3a8a458a78a5a57acb1707e35bf3a0aa8f22ab0fa99d34cf4e7dd568f202a18eb49fb52bf78c1 kmod-21.tar.xz
f2ea3527bfba182c5e15557c224a5bba8c7e2ea3d21cf604e6eb2277226dcf983c3aeb9ac44a322c7f2b4942b35135da999d63a5b946b829d3f3b09c050a0f17 strndupa.patch
-26de5e14389f779754c13fd01d290f9b06a053f3ec7e4e48d8ca9a3423b783d392c333d50586c679420d55814d3ec0e1f02bcd2a7d848beab0ad9a738ac4f88d sed-ere.patch"
+26de5e14389f779754c13fd01d290f9b06a053f3ec7e4e48d8ca9a3423b783d392c333d50586c679420d55814d3ec0e1f02bcd2a7d848beab0ad9a738ac4f88d sed-ere.patch
+7f0f89fe98167f71b7924f341ba701d001158225463c2f5e39f706a0224b1e952ee901b441f28cb15787563e83bb6e54eb752bf8669ae7c0ffbb11984542f354 kmod-static-nodes.initd"
diff --git a/main/kmod/kmod-static-nodes.initd b/main/kmod/kmod-static-nodes.initd
new file mode 100644
index 000000000..ef8912f60
--- /dev/null
+++ b/main/kmod/kmod-static-nodes.initd
@@ -0,0 +1,19 @@
+#!/sbin/openrc-run
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/kmod/files/kmod-static-nodes-r1,v 1.1 2014/07/11 12:28:07 ssuominen Exp $
+
+description="Create list of required static device nodes for the current kernel"
+
+depend() {
+ after dev-mount
+ before tmpfiles.dev dev
+ keyword -lxc
+}
+
+start() {
+ ebegin "Creating list of required static device nodes for the current kernel"
+ checkpath -q -d /run/tmpfiles.d
+ kmod static-nodes --format=tmpfiles --output=/run/tmpfiles.d/kmod.conf
+ eend $?
+}