This repository has been archived by the owner on Jun 6, 2018. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
change depend to eudev
- Loading branch information
udeved
committed
Apr 1, 2017
1 parent
a2cf5ff
commit a8c0aab
Showing
3 changed files
with
63 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# Maintainer: artoo <artoo@manjaro.org> | ||
|
||
_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" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 $? | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters