Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Piotr Karbowski
committed
Dec 23, 2012
1 parent
dd240ed
commit c560350
Showing
2 changed files
with
48 additions
and
2 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,42 @@ | ||
EAPI=4 | ||
|
||
inherit git-2 | ||
|
||
DESCRIPTION="Config and scripts mdev-like-a-boss" | ||
HOMEPAGE="https://github.com/slashbeast/mdev-like-a-boss" | ||
EGIT_REPO_URI="git://github.com/slashbeast/mdev-like-a-boss.git" | ||
if [ "${PV}" != '9999' ]; then | ||
EGIT_COMMIT="${PV}" | ||
KEYWORDS="amd64 x86" | ||
else | ||
KEYWORDS="" | ||
fi | ||
LICENSE="BSD" | ||
SLOT="0" | ||
IUSE="+mdev-bb" | ||
|
||
DEPEND="" | ||
RDEPEND="${DEPEND} | ||
mdev-bb? ( sys-fs/mdev-bb )" | ||
|
||
src_install() { | ||
mkdir -p "${D}/etc" || die | ||
mv "${S}/mdev.conf" "${D}/etc/mdev.conf" | ||
|
||
newinitd "${S}/mdev.init" mdev || die | ||
rm -f "${S}/mdev.init" | ||
|
||
mkdir -p "${D}/opt/mdev" || die | ||
cp -a "${S}"/* "${D}/opt/mdev/" || die | ||
} | ||
|
||
pkg_postinst() { | ||
einfo | ||
einfo "Remember to add mdev to sysinit runlevel." | ||
einfo " rc-update add mdev sysinit" | ||
einfo | ||
ewarn | ||
ewarn "Also remember to remove any udev* and devfs init scripts" | ||
ewarn "from all runlevels." | ||
ewarn | ||
} |
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