blob: 99095eea7e182335477bf72495e10ce9f8028d94 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
# Maintainer: David P. <megver83@parabola.nu>
# Contributor: Omar Vega Ramos <ovruni@gnu.org.pe>
# Contributor: Luke Shumaker <lukeshu@parabola.nu>
_pkgname=udev-gentoo-scripts
pkgname=udev-init-scripts
pkgver=34
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=("${url}/snapshot/${_pkgname}-${pkgver}.tar.gz")
sha256sums=('b245b999f0f3a5c2fa12e95115767d0983013e6a23c4b3792640385bb8e1e853')
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"
}
|