Skip to content
Browse files

mdev-like-a-boss ebuild versioning.

  • Loading branch information...
1 parent dd240ed commit c560350b3dd904c9ba651aa805341a31a1e70b1a Piotr Karbowski committed Dec 23, 2012
View
42 sys-fs/mdev-like-a-boss/mdev-like-a-boss-20121223.ebuild
@@ -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
+}
View
8 sys-fs/mdev-like-a-boss/mdev-like-a-boss-9999.ebuild
@@ -4,9 +4,13 @@ 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"
-KEYWORDS="~amd64 ~x86"
+if [ "${PV}" != '9999' ]; then
+ EGIT_COMMIT="${PV}"
+ KEYWORDS="amd64 x86"
+else
+ KEYWORDS=""
+fi
LICENSE="BSD"
SLOT="0"
IUSE="+mdev-bb"

0 comments on commit c560350

Please sign in to comment.
Something went wrong with that request. Please try again.