summaryrefslogtreecommitdiff
path: root/pcr/udev-init-scripts/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'pcr/udev-init-scripts/PKGBUILD')
-rw-r--r--pcr/udev-init-scripts/PKGBUILD35
1 files changed, 35 insertions, 0 deletions
diff --git a/pcr/udev-init-scripts/PKGBUILD b/pcr/udev-init-scripts/PKGBUILD
new file mode 100644
index 000000000..7840d12da
--- /dev/null
+++ b/pcr/udev-init-scripts/PKGBUILD
@@ -0,0 +1,35 @@
+# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
+# Contributor: Luke Shumaker <lukeshu@parabola.nu>
+
+# Upstream information
+pkgname=udev-init-scripts
+pkgver=32
+pkgdesc="udev startup scripts for OpenRC"
+url="https://gitweb.gentoo.org/proj/${pkgname}.git"
+# Gentoo's package script: https://gitweb.gentoo.org/repo/gentoo.git/tree/sys-fs/udev-init-scripts
+source=("http://dev.gentoo.org/~williamh/dist/${pkgname}-${pkgver}.tar.gz")
+sha256sums=('d5ae437291ae140194f67fec2c9a6ceeda39708433840e7b4b0361cc5ae53eaa')
+depends=('openrc' 'udev>=217')
+license=('GPL2')
+
+# Package information
+pkgrel=5
+arch=('any')
+groups=('base-openrc')
+# Depend on any $X-openrc packages that exist for the dependencies of
+# eudev and systemd-udev
+depends+=('kmod-openrc')
+
+# Historical compatibility
+provides+=('udev-openrc' 'eudev-openrc')
+conflicts+=('udev-openrc' 'eudev-openrc')
+replaces+=('udev-openrc' 'eudev-openrc')
+
+package(){
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ make DESTDIR="${pkgdir}" install
+
+ 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"
+}