summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid P <megver83@parabola.nu>2019-11-13 17:16:22 -0300
committerDavid P <megver83@parabola.nu>2019-11-13 17:16:22 -0300
commit30088680c8cc570015ce6ded55596b426e97fe26 (patch)
tree63360d44e5e215052811f4f7ea470b4ca60ccccd
parente248e462fc0dc8b520ed9c55d2ac37a77b5eaa9a (diff)
downloadabslibre-30088680c8cc570015ce6ded55596b426e97fe26.tar.gz
abslibre-30088680c8cc570015ce6ded55596b426e97fe26.tar.bz2
abslibre-30088680c8cc570015ce6ded55596b426e97fe26.zip
addpkg: nonsystemd/udev-init-scripts 33-1
Signed-off-by: David P <megver83@parabola.nu>
-rw-r--r--nonsystemd/udev-init-scripts/PKGBUILD37
1 files changed, 37 insertions, 0 deletions
diff --git a/nonsystemd/udev-init-scripts/PKGBUILD b/nonsystemd/udev-init-scripts/PKGBUILD
new file mode 100644
index 000000000..e270230a0
--- /dev/null
+++ b/nonsystemd/udev-init-scripts/PKGBUILD
@@ -0,0 +1,37 @@
+# Maintainer: David P. <megver83@parabola.nu>
+# Contributor: Omar Vega Ramos <ovruni@gnu.org.pe>
+# Contributor: Luke Shumaker <lukeshu@parabola.nu>
+# Maintainer (Artix): artoo <artoo@artixlinux.org>
+
+_pkgname=udev-gentoo-scripts
+
+pkgname=udev-init-scripts
+pkgver=33
+pkgrel=1
+pkgdesc="udev startup scripts for OpenRC"
+arch=('any')
+url="https://gitweb.gentoo.org/proj/udev-gentoo-scripts.git"
+license=('GPL2')
+depends=('eudev')
+provides=('udev-openrc' 'eudev-openrc')
+conflicts=(${provides[@]})
+replaces=(${provides[@]})
+source=(#"http://dev.gentoo.org/~williamh/dist/${pkgname}-${pkgver}.tar.gz"
+ "${url}/snapshot/${_pkgname}-${pkgver}.tar.gz")
+sha256sums=('62c8ad0f75bdd1c1039478007336b64a91245e1405591ba4ec3d7bd59b2bec54')
+
+package(){
+ cd "${_pkgname}-${pkgver}"
+ make DESTDIR="${pkgdir}" install
+
+ for f in ${pkgdir}/etc/init.d/*;do
+ sed -e "s|/bin/udevadm|/usr/bin/udevadm|g" \
+ -e "s|/sbin/udevd|/usr/bin/udevd|g" \
+ -e 's|#!/sbin/openrc-run|#!/usr/bin/openrc-run|g' \
+ -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"
+}