diff options
author | Ian Stakenvicius <axs@gentoo.org> | 2013-08-07 20:11:31 +0000 |
---|---|---|
committer | Ian Stakenvicius <axs@gentoo.org> | 2013-08-07 20:11:31 +0000 |
commit | 46d2f8c9951773fdbebb68864bafdf40ed832a14 (patch) | |
tree | 5090e3898e77129c7caf90bbcdc8f026d8a40389 /sys-fs/eudev | |
parent | added sys-fs/eudev to ssuominen's list of udev related multilib pmask entries (diff) | |
download | historical-46d2f8c9951773fdbebb68864bafdf40ed832a14.tar.gz historical-46d2f8c9951773fdbebb68864bafdf40ed832a14.tar.bz2 historical-46d2f8c9951773fdbebb68864bafdf40ed832a14.zip |
Initial multilib-minimal.eclass conversion (to build libudev.so.1)
Package-Manager: portage-2.1.12.2/cvs/Linux x86_64
Manifest-Sign-Key: 0x2B6559ED
Diffstat (limited to 'sys-fs/eudev')
-rw-r--r-- | sys-fs/eudev/ChangeLog | 7 | ||||
-rw-r--r-- | sys-fs/eudev/Manifest | 19 | ||||
-rw-r--r-- | sys-fs/eudev/eudev-1.2-r1.ebuild | 247 |
3 files changed, 258 insertions, 15 deletions
diff --git a/sys-fs/eudev/ChangeLog b/sys-fs/eudev/ChangeLog index bb3921d24038..2cda2978623a 100644 --- a/sys-fs/eudev/ChangeLog +++ b/sys-fs/eudev/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for sys-fs/eudev # Copyright 1999- Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-fs/eudev/ChangeLog,v 1.55 2013/08/02 00:31:49 blueness Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-fs/eudev/ChangeLog,v 1.56 2013/08/07 20:11:25 axs Exp $ + +*eudev-1.2-r1 (07 Aug 2013) + + 07 Aug 2013; Ian Stakenvicius <axs@gentoo.org> +eudev-1.2-r1.ebuild: + Initial multilib-minimal.eclass conversion (to build libudev.so.1) 02 Aug 2013; Anthony G. Basile <blueness@gentoo.org> eudev-1.2.ebuild: Fix SRC_URI and Manifest diff --git a/sys-fs/eudev/Manifest b/sys-fs/eudev/Manifest index fa38469d3751..5bdaa898ef8c 100644 --- a/sys-fs/eudev/Manifest +++ b/sys-fs/eudev/Manifest @@ -9,24 +9,15 @@ AUX udev-postmount 1207 SHA256 0220e949b1f31832a205021c0a8615e77b27b73b7c9b16ef4 DIST eudev-1.1.tar.gz 1706277 SHA256 462659ef77802f244f55cee58fcd6b2a0cf6c24716f64fbb0c6d88a580f398a8 SHA512 e7b54eaa49e21b350341c39848712458d85cd2d3a69233e11fa7e57e93cb7db2382d1138ebd9eebf971650af85b2aebeff2b71a8396c78c444b6759523e69730 WHIRLPOOL 57782df80ef923f9507e0edf31ead8528c764e0b653f69b9ed4c42925e88d5d26a7953d21083dece84e0bcd5521b6ef81e3ffb97215de934c9b631f8dc5ecb52 DIST eudev-1.2.tar.gz 1677976 SHA256 f9f78c2154eb174a6aab08afde9f5705a9072fc4069031a9f686cabc20beaa22 SHA512 673cd53339d62b23db615e1f67def71ed8d313dcf18edda37498db5fd507a2556073c798f81d16525594b0176fa5f0c9567bea6e4715cc0732b7651d24af4be5 WHIRLPOOL 3329ed127f0fa9696ce4fec406a2e6ff8e9d616ee4fbc6fac0a14a8b80909b6def983dd16c40e7c6abdc93f4da96805fbbb855460daddb1b1352815077b2e009 EBUILD eudev-1.1.ebuild 6393 SHA256 8ee517dc78dc456231cb6a6e016a62ffa3a66fb147f088037aed3fb9ce32f75c SHA512 5667e17439c3b01b32dad2c36f1665b048321d446490f418656e4f854f9619610b6515d020fab32abbcf03eb5607ac0735111b8770d0800a2b194c98dfce4a16 WHIRLPOOL 3802065d5e812abbbe1f641cc8a157905ae1d2fc32c02b8baf6f3e2dd632423eff0b99744eaa6e90d2df4792f528bf32bd19c09b8dd1ed04ace52c72ccb4ad40 +EBUILD eudev-1.2-r1.ebuild 6871 SHA256 e32a3fcfa1d8d34691f647dbea7de544b2e7c19d2d9e47a18ebc7968db8b1a77 SHA512 d0d8bf34e6f1a2fd3c4f36aa9d44077c3004b8bacd30607acfa6530e9f4ae137bc2ba9e5ddda1eb5093b83dc9becb1d64338a215885bd26d19365fa73e37f39f WHIRLPOOL a3ddb17b0c76f76017738113ffe555ce03ffbc23d6881daa841f3b506c61b1a4d39ca1546bdc6797c72530ee9759908f8c161b38dd04faed69c3359a7620aab3 EBUILD eudev-1.2.ebuild 6365 SHA256 9e805cd06a282932e5d39ba64631ee7f65cb69d3d7efb47d274a79de627e9190 SHA512 57443926f019395036e1eb7ebb7b5cb68a54c06d57c1cf15ba4465775cf638d339c3826387bd8bc60f59bdd1303c2c4c78b79483f83285c2caf4330a43b82d39 WHIRLPOOL b3951ed9c18a1ae693254d3ad48d0a98827c52022edeffba1591c8e1c8a9c31ea7e8b641397068a2f427426e106b92ce54566841f32126943c4476cd8e17debf EBUILD eudev-9999.ebuild 6407 SHA256 b359ed058de6d3c3c11bf9a50f14935e229b4d15a4e6dd93b6aaa47ff33bb903 SHA512 a5bf11735be64a0c12c5d6616282fa06090adcb826da834f1262fb2c72b0e1e4ec815dc53082e2f1de10257ceeeec53bf5101458f1e17cf25c53dae40dc2c392 WHIRLPOOL 0e253fe154e454bd51f50fa6c5cd2e2a9c9d27af5b7c2c2fb51135f9da2ce338a9ef8c3f85134d941869c8017980ab7cb50dd3f2e50481977c3e24efa15fd26a -MISC ChangeLog 9072 SHA256 e149d762e4ff29fd27a9cb76532faba7ab62d6fc2faad4ce264c785fa164fde9 SHA512 6d258203ae7362158818c25bd394040a605dadaaeea0d8071404fb3a06962fd13e88d0edbb677ba78dc66363aa3fa0127a89b5af398dc29a28bd130532ddbfb9 WHIRLPOOL 030d5e4df9059cbb9b3310a045d89dde13ca4e0be3a89c2bd2e4ad2e4228d9e8901df433d324072664badfd7ed04d13d6fe2e76ad43e11c4fc489bf5b2746edb +MISC ChangeLog 9237 SHA256 b3fe65e3719af3aba4adafbeb004e0ad8feba0ef2151e9be3a719a6cc697162a SHA512 20b377a5493723c76cbc0f21eca82c7fa049ccda34fa0cb177d27aabc1f337aabfec818b87ccd9333a387f30aeba81521e5c126dd0b9a75e12daed9483e9362c WHIRLPOOL 6ac691ba271405e6d28aa650f6b9c50bded7320349824ff41bd9d6ebfd2f0da45082f90f5c905e85b41df8b8feb66110105cd133601521f0805b5b13da73c9c2 MISC metadata.xml 956 SHA256 2dc374ed7a7236fc2044a93429e8ff9ce68474f5fce8961aff1209914d4bdbcd SHA512 e164394dee8fbd2afb6258fac4899b24607bbde5ec1e1d3cba51059a11768a653e2d841fecad902da0f85cdc579b3e8e2ea64e94d107a448fd1fdcf8362db4d9 WHIRLPOOL c6d492ca4498e509c8e04aead71a89b4481e8294c661968bdc7ca3081bfe116dd486f5676c3dfe08f5c43658a9f37d1fcb815c9378301a8c385852f83ea27544 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.20 (GNU/Linux) -iQIcBAEBCAAGBQJR+v6rAAoJEJOE+m71LUu6/TwP/10qc9MYfeBPqEMDmRosv6G9 -mjwKYMpbR7bo67+2/Iv257NTI6gHUsP+MNOW91OmCbmAZ0GEvLA8fM99+Qt6fGCK -NUOYwXKzJC0u9jrC2raSJD0SG9gR7+zUgKwdfDaJT3/0PONgkbSwfV/1Fb8XjY5A -1a/aCQdVYWx7OQz79+ru0hH9E/IugO4G9lZwUszGtiY4BogshHbdFc8rS0kaF6wX -ZjqbIKIKQ5BOcrf727CLcmqS4UmaMtmybswNzukK2QKQdGXr+l64cCYYNKARlk6S -hsbg43vwgNkZ8lyfEdCzK5qdKU2HtPCP1d0WLtC6SpSZPEO8TsxHUUJ7YLVAJ9oj -VGFPNzN9eFHjDp+ZYyksrR56XKa9wlC3mH9lnZKHH+GGocA6UrXhCh94o0an56HW -7m/FLCBhHCw2DeSu8nlwkkbSGGgYCCIXEDno3pf0TbVYISfSWIxg4LPElyltlmpi -speJIGzRnpoCM/IrLWcJCnw4LV2VW6lkXTpv6V17Hol3608yYpgYiJ57jTAs3CV+ -olw+zJlOvGdktjVuf92RRiZkcxMMxQ5UOYfgTKbQ9zgJnFnk0MsOQEhVSoPxrHXE -KEH3+oqtglhCZYO5Os6F3kzzUG2xhZWpdbjxGEOitgGLPws7Ax+VA4xIiyAnQj3O -hG8PdL/vTZteAbWuwTVH -=UxNW +iF4EAREIAAYFAlICqf8ACgkQ2ugaI38ACPBmewEAk8sTxOE/CcJGFzUGG1iYyqNV +te9T1jpRbuIzcHBiZWEBALHRGhBBzDoyqGmsE0a/uMrXOTAGqSTixHaw5vtjhWlM +=0jDW -----END PGP SIGNATURE----- diff --git a/sys-fs/eudev/eudev-1.2-r1.ebuild b/sys-fs/eudev/eudev-1.2-r1.ebuild new file mode 100644 index 000000000000..19bc91026d78 --- /dev/null +++ b/sys-fs/eudev/eudev-1.2-r1.ebuild @@ -0,0 +1,247 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-fs/eudev/eudev-1.2-r1.ebuild,v 1.1 2013/08/07 20:11:25 axs Exp $ + +EAPI="5" + +KV_min=2.6.31 + +inherit autotools eutils multilib linux-info multilib-minimal + +if [[ ${PV} = 9999* ]] +then + EGIT_REPO_URI="git://github.com/gentoo/eudev.git" + inherit git-2 +else + SRC_URI="http://dev.gentoo.org/~blueness/eudev/${P}.tar.gz" + KEYWORDS="~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~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 +rule-generator selinux static-libs test" + +COMMON_DEPEND="gudev? ( dev-libs/glib:2 ) + kmod? ( sys-apps/kmod ) + introspection? ( >=dev-libs/gobject-introspection-1.31.1 ) + selinux? ( sys-libs/libselinux ) + >=sys-apps/util-linux-2.20 + !<sys-libs/glibc-2.11" + +DEPEND="${COMMON_DEPEND} + keymap? ( dev-util/gperf ) + >=dev-util/intltool-0.40.0 + virtual/pkgconfig + virtual/os-headers + !<sys-kernel/linux-headers-${KV_min} + doc? ( dev-util/gtk-doc ) + app-text/docbook-xsl-stylesheets + dev-libs/libxslt + test? ( app-text/tree dev-lang/perl )" + +RDEPEND="${COMMON_DEPEND} + !sys-fs/udev + !sys-apps/coldplug + !sys-apps/systemd + !<sys-fs/lvm2-2.02.97 + !sys-fs/device-mapper + !<sys-fs/udev-init-scripts-18" + +PDEPEND=">=virtual/udev-180 + hwdb? ( >=sys-apps/hwids-20121202.2[udev] ) + keymap? ( >=sys-apps/hwids-20130717-r1[udev] ) + openrc? ( >=sys-fs/udev-init-scripts-18 )" + +REQUIRED_USE="keymap? ( hwdb )" +DOCS="" + +pkg_pretend() +{ + if ! use rule-generator; then + ewarn + ewarn "As of 2013-01-29, ${P} provides the new interface renaming functionality," + ewarn "as described in the URL below:" + ewarn "http://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames" + ewarn + ewarn "This functionality is enabled BY DEFAULT because eudev has no means of synchronizing" + ewarn "between the default or user-modified choice of sys-fs/udev. If you wish to disable" + ewarn "this new iface naming, please be sure that /etc/udev/rules.d/80-net-name-slot.rules" + ewarn "exists:" + ewarn "\ttouch /etc/udev/rules.d/80-net-name-slot.rules" + ewarn + ewarn "We are working on a better solution for the next beta release." + ewarn + fi +} + +pkg_setup() +{ + linux-info_pkg_setup + get_running_version + + # These are required kernel options, but we don't error out on them + # because you can build under one kernel and run under another. + CONFIG_CHECK="~BLK_DEV_BSG ~DEVTMPFS ~!IDE ~INOTIFY_USER ~SIGNALFD ~!SYSFS_DEPRECATED ~!SYSFS_DEPRECATED_V2" + + if kernel_is lt ${KV_min//./ }; then + ewarn + ewarn "Your current running kernel version ${KV_FULL} is too old to run ${P}." + ewarn "Make sure to run udev under kernel version ${KV_min} or above." + ewarn + fi +} + +src_prepare() +{ + # change rules back to group uucp instead of dialout for now + sed -e 's/GROUP="dialout"/GROUP="uucp"/' -i rules/*.rules \ + || die "failed to change group dialout to uucp" + + epatch_user + + if [[ ! -e configure ]] + then + if use doc + then + gtkdocize --docdir docs || die "gtkdocize failed" + else + echo 'EXTRA_DIST =' > docs/gtk-doc.make + fi + eautoreconf + else + elibtoolize + fi +} + +multilib_src_configure() +{ + local econf_args + + econf_args=( + --with-rootprefix= + --docdir=/usr/share/doc/${PF} + --libdir=/usr/$(get_libdir) + --with-firmware-path="${EPREFIX}usr/lib/firmware/updates:${EPREFIX}usr/lib/firmware:${EPREFIX}lib/firmware/updates:${EPREFIX}lib/firmware" + --with-html-dir="/usr/share/doc/${PF}/html" + --enable-split-usr + --exec-prefix=/ + $(use_enable doc gtk-doc) + $(use_enable keymap) + $(use_enable kmod libkmod) + $(use_enable modutils modules) + $(use_enable selinux) + $(use_enable rule-generator) + ) + # only install libs to /lib and build gudev for native abi + # also non-native-abi only need dynamic libs, so skip static + if multilib_is_native_abi; then econf_args+=( + --with-rootlibdir=/$(get_libdir) + $(use_enable gudev) + $(use_enable introspection) + $(use_enable static-libs static) + ) + else econf_args+=( + --disable-gudev + --disable-introspection + --disable-static + ) + fi + ECONF_SOURCE="${S}" econf "${econf_args[@]}" +} + +multilib_src_test() +{ + # make sandbox get out of the way + # these are safe because there is a fake root filesystem put in place, + # but sandbox seems to evaluate the paths of the test i/o instead of the + # paths of the actual i/o that results. + # also only test for native abi + if multilib_is_native_abi; then + addread /sys + addwrite /dev + addwrite /run + default_src_test + fi +} + +# disable header checks because we only install libudev headers for non-native abi +multilib_check_headers() +{ + : +} + +multilib_src_install_all() +{ + prune_libtool_files --all + rm -rf "${ED}"/usr/share/doc/${PF}/LICENSE.* + + use rule-generator && use openrc && doinitd "${FILESDIR}"/udev-postmount + + # drop distributed hwdb files, they override sys-apps/hwids + rm -f "${ED}"/etc/udev/hwdb.d/*.hwdb +} + +pkg_preinst() +{ + local htmldir + for htmldir in gudev libudev; do + if [[ -d ${EROOT}usr/share/gtk-doc/html/${htmldir} ]] + then + rm -rf "${EROOT}"usr/share/gtk-doc/html/${htmldir} + fi + if [[ -d ${ED}/usr/share/doc/${PF}/html/${htmldir} ]] + then + dosym ../../doc/${PF}/html/${htmldir} \ + /usr/share/gtk-doc/html/${htmldir} + fi + done +} + +pkg_postinst() +{ + mkdir -p "${EROOT}"run + + # "losetup -f" is confused if there is an empty /dev/loop/, Bug #338766 + # So try to remove it here (will only work if empty). + rmdir "${EROOT}"dev/loop 2>/dev/null + if [[ -d ${EROOT}dev/loop ]] + then + ewarn "Please make sure you remove /dev/loop, else losetup" + ewarn "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 + + if use hwdb && has_version 'sys-apps/hwids[udev]'; then + udevadm hwdb --update --root="${ROOT%/}" + fi + + ewarn + ewarn "You need to restart eudev as soon as possible to make the" + ewarn "upgrade go into effect:" + ewarn "\t/etc/init.d/udev --nodeps restart" + + if use rule-generator && use openrc; then + ewarn + ewarn "Please add the udev-postmount init script to your default runlevel" + ewarn "to ensure the legacy rule-generator functionality works as reliably" + ewarn "as possible." + ewarn "\trc-update add udev-postmount default" + fi + + 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" + elog +} |