KEYWORDS="~amd64 ~x86"
SLOT="0"
LICENSE="BSD-2"
-IUSE="consolekit elogind static-libs"
+IUSE="consolekit static-libs"
DEPEND="
dev-libs/json-c:=
virtual/pkgconfig"
RDEPEND="${DEPEND}
consolekit? ( sys-auth/consolekit[acl] )
- elogind? ( sys-auth/elogind[acl] )
"
-REQUIRED_USE="?? ( consolekit elogind )"
-
S="${WORKDIR}/yubikey-personalization-${PV}"
DOCS=( doc/. AUTHORS NEWS README )
src_prepare() {
default
eautoreconf
-
- if use elogind ; then
- sed '/TEST==/d' -i 70-yubikey.rules || die
- fi
}
src_configure() {
src_install() {
default
- if use consolekit || use elogind ; then
- udev_dorules *.rules
+
+ udev_dorules 69-yubikey.rules
+ if use consolekit ; then
+ udev_dorules 70-yubikey.rules
fi
find "${D}" -name '*.la' -delete || die