# Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/sys-fs/eudev/eudev-9999.ebuild,v 1.10 2012/12/20 00:09:40 ryao Exp $ EAPI=4 KV_min=2.6.31 inherit autotools eutils linux-info if [[ ${PV} = 9999* ]] then EGIT_REPO_URI="git://github.com/gentoo/eudev.git" inherit git-2 else SRC_URI="https://github.com/downloads/gentoo/${PN}/${P}.tar.gz" KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" fi DESCRIPTION="Linux dynamic and persistent device naming support (aka userspace devfs)" HOMEPAGE="https://github.com/gentoo/eudev" LICENSE="LGPL-2.1 MIT GPL-2" SLOT="0" IUSE="doc gudev hwdb kmod introspection keymap +modutils +openrc selinux static-libs" RESTRICT="test" COMMON_DEPEND="gudev? ( dev-libs/glib:2 ) introspection? ( >=dev-libs/gobject-introspection-1.31.1 ) selinux? ( sys-libs/libselinux ) >=sys-apps/util-linux-2.20 !/dev/null if [[ -d ${EROOT}/dev/loop ]] then ewarn "Please make sure you remove /dev/loop," ewarn "else losetup may be confused when looking for unused devices." fi # 64-device-mapper.rules now gets installed by sys-fs/device-mapper # remove it if user don't has sys-fs/device-mapper installed, 27 Jun 2007 if [[ -f ${EROOT}/etc/udev/rules.d/64-device-mapper.rules ]] && ! has_version sys-fs/device-mapper then rm -f "${EROOT}"/etc/udev/rules.d/64-device-mapper.rules einfo "Removed unneeded file 64-device-mapper.rules" fi ewarn ewarn "You need to restart eudev as soon as possible to make the" ewarn "upgrade go into effect." elog elog "For more information on eudev on Gentoo, writing udev rules, and" elog "fixing known issues visit:" elog " http://www.gentoo.org/doc/en/udev-guide.xml" }