summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOmar Vega Ramos <ovruni@gnu.org.pe>2017-08-04 01:51:35 -0500
committerOmar Vega Ramos <ovruni@gnu.org.pe>2017-08-04 01:51:35 -0500
commit024d59ee5b3a316d0b9431f662f908b55bd350f3 (patch)
treef77815525201b8916c2c3b261544161bcfec9a8f
parent5bef64d71a333849fc7d0c299de7f685297b4454 (diff)
downloadabslibre-024d59ee5b3a316d0b9431f662f908b55bd350f3.tar.gz
abslibre-024d59ee5b3a316d0b9431f662f908b55bd350f3.tar.bz2
abslibre-024d59ee5b3a316d0b9431f662f908b55bd350f3.zip
eudev-openrc: add package to [pcr]
-rw-r--r--pcr/eudev-openrc/PKGBUILD42
-rw-r--r--pcr/eudev-openrc/kmod-static-nodes.initd19
2 files changed, 61 insertions, 0 deletions
diff --git a/pcr/eudev-openrc/PKGBUILD b/pcr/eudev-openrc/PKGBUILD
new file mode 100644
index 000000000..048f6f532
--- /dev/null
+++ b/pcr/eudev-openrc/PKGBUILD
@@ -0,0 +1,42 @@
+# Maintainer (Manjaro): artoo <artoo@manjaro.org>
+# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
+
+_url="http://dev.gentoo.org/~williamh/dist"
+_pkgname=udev-init-scripts
+
+_sed_args=(-e "s|/bin/udevadm|/usr/bin/udevadm|g" -e "s|/sbin/udevd|/usr/bin/udevd|g")
+_sed_args+=(-e 's|#!/sbin/openrc-run|#!/usr/bin/openrc-run|g')
+
+pkgname=eudev-openrc
+pkgver=32
+pkgrel=2
+pkgdesc="OpenRC eudev startup scripts"
+arch=('any')
+url="https://github.com/manjaro/packages-openrc"
+license=('GPL2')
+groups=('openrc-base')
+provides=('udev-openrc')
+depends=('openrc' 'eudev')
+conflicts=('systemd-sysvcompat' 'udev-openrc')
+replaces=('udev-openrc')
+source=("${_url}/${_pkgname}-${pkgver}.tar.gz"
+ "kmod-static-nodes.initd")
+sha256sums=('d5ae437291ae140194f67fec2c9a6ceeda39708433840e7b4b0361cc5ae53eaa'
+ '3ecbe7761b92a123a5a3d395ec3d9e090b0dfba7910a5987b4a2298c20a7e571')
+
+package(){
+ cd "${srcdir}/${_pkgname}-${pkgver}"
+ make DESTDIR="${pkgdir}" install
+ for f in ${pkgdir}/etc/init.d/*;do
+ sed ${_sed_args[@]} -i "$f"
+ done
+ install -d "${pkgdir}/etc/runlevels/sysinit"
+
+ ln -sf "/etc/init.d/udev" "${pkgdir}/etc/runlevels/sysinit/udev"
+ ln -sf "/etc/init.d/udev-trigger" "${pkgdir}/etc/runlevels/sysinit/udev-trigger"
+
+ # kmod-static-nodes
+ install -Dm755 ${srcdir}/kmod-static-nodes.initd ${pkgdir}/etc/init.d/kmod-static-nodes
+
+ ln -sf "/etc/init.d/kmod-static-nodes" "${pkgdir}/etc/runlevels/sysinit/kmod-static-nodes"
+}
diff --git a/pcr/eudev-openrc/kmod-static-nodes.initd b/pcr/eudev-openrc/kmod-static-nodes.initd
new file mode 100644
index 000000000..7a3f529dc
--- /dev/null
+++ b/pcr/eudev-openrc/kmod-static-nodes.initd
@@ -0,0 +1,19 @@
+#!/usr/bin/openrc-run
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+description="Create list of required static device nodes for the current kernel"
+
+depend() {
+ after dev-mount
+ before tmpfiles.dev dev
+ keyword -lxc -systemd-nspawn
+}
+
+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 $?
+}