summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2014-06-14 16:33:27 +0000
committerMike Gilbert <floppym@gentoo.org>2014-06-14 16:33:27 +0000
commit549492d2c8ec673adc3f83bfe6ecb98b2c3db4a0 (patch)
treea6c493e331aa6ef4e92ed29e7fea947914ab8e2c /sys-apps
parentVersion bump. (diff)
downloadhistorical-549492d2c8ec673adc3f83bfe6ecb98b2c3db4a0.tar.gz
historical-549492d2c8ec673adc3f83bfe6ecb98b2c3db4a0.tar.bz2
historical-549492d2c8ec673adc3f83bfe6ecb98b2c3db4a0.zip
Version bump.
Package-Manager: portage-2.2.10/cvs/Linux x86_64 Manifest-Sign-Key: 0x0BBEEA1FEA4843A4
Diffstat (limited to 'sys-apps')
-rw-r--r--sys-apps/systemd/ChangeLog8
-rw-r--r--sys-apps/systemd/Manifest14
-rw-r--r--sys-apps/systemd/systemd-214.ebuild461
-rw-r--r--sys-apps/systemd/systemd-9999.ebuild29
4 files changed, 490 insertions, 22 deletions
diff --git a/sys-apps/systemd/ChangeLog b/sys-apps/systemd/ChangeLog
index 4ef97f3a3ac6..dc56a750cc61 100644
--- a/sys-apps/systemd/ChangeLog
+++ b/sys-apps/systemd/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for sys-apps/systemd
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/systemd/ChangeLog,v 1.263 2014/06/11 15:13:06 floppym Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/systemd/ChangeLog,v 1.264 2014/06/14 16:33:20 floppym Exp $
+
+*systemd-214 (14 Jun 2014)
+
+ 14 Jun 2014; Mike Gilbert <floppym@gentoo.org> +systemd-214.ebuild,
+ systemd-9999.ebuild:
+ Version bump.
11 Jun 2014; Mike Gilbert <floppym@gentoo.org> systemd-213.ebuild,
systemd-9999.ebuild:
diff --git a/sys-apps/systemd/Manifest b/sys-apps/systemd/Manifest
index d76fe54e6eb2..fe9d07c73a32 100644
--- a/sys-apps/systemd/Manifest
+++ b/sys-apps/systemd/Manifest
@@ -6,17 +6,19 @@ AUX 212-0002-fsck-Search-for-fsck.type-in-PATH.patch 6871 SHA256 a7b7a9e2d3cdf89
DIST systemd-208-r1.tar.xz 2382904 SHA256 aa64fa864466fd5727005c55d61c092828b94b4f857272c0b503695022146390 SHA512 c21989b747f5e73ba2311919e1ae558132e4ab2e0d8715c25f51e5e90069e147a52e04280c736ecca6b675af7d79def576171a9b08aaeda45fcd52bcdca011cb WHIRLPOOL e86fdbf96c75c4c94c9507900a5696ff811f5439e0cb45bdc765dc42c62a855c9d2e7d3414df7ec7e18013d937c9148e42c861d0e28e8b4c2fabebd234fbee03
DIST systemd-212.tar.xz 2722692 SHA256 652906b43704fe705cb47757ea9bbbf3c1ab4a1d55ea38b0013a6f2d0863f2c2 SHA512 3e6dac77785cb2f928886886f92cdd11ed00a4db1453699e0102d3ecffa03d1795f44df10239105e4b2b039f0e3e4b5d44c9f876f25c10a6dc4f7e1fbf87c333 WHIRLPOOL 31d1a967435963155c60ca5016f207aa105e9ddcb7d73e9fcde20f7e1fb66701384b81ee01134bf4d75dfa1ea0d412bb352ff11ac6f8c05e836135baf94bbe37
DIST systemd-213.tar.xz 2782712 SHA256 8a8f73c4a9c0602f3125d6a59e45c9d3fc6db86eb1de6ade4e7fa342cf7f44b2 SHA512 28baaa07ab63e3c4b328dc714b0411c9d895cf48419dbc11b08aa6d3a82557fb0fe0d6d48060a67773d312a9dcb5f7d31be973602cc8b5bcff03a28b4022f6a4 WHIRLPOOL 7ffcc80e6adf25732f03b20e94619895fcdcd1c04dcfd910c3cd58086abb94417971c87d06811936fcbd0d778fcde6f39a487d7e49ea9fa964977dd58af3b97f
+DIST systemd-214.tar.xz 2790264 SHA256 0e902796e1dc4e9cd3ee89793936166adb4a538605edd9692e271824c1579b15 SHA512 7e0a7541b7d423c9e8f9d97b8862bb68566bde24e0f6fbc4519c0b32da321d4339bad13dba55af6a45d61c713fbf49ad3e2018fcba1195b772392cbf3a87f83e WHIRLPOOL 443c42a53c0e2b5dd578fcae6155a757dfe98af4a29ac2d89d3030ed0d9b896342ccb048860bc4bc48abdb4d15755f474e3881a5fea2d69aa11c81d201f710f5
DIST systemd-gentoo-patchset-208_p19.tar.bz2 7351 SHA256 3fce1d7ff628b0f49d4bf45eb7beb7d3b4a45c219464be47e4b04e5e16ace335 SHA512 d2ee48a46a8dc097f41d23c58c2c8f40841b42ce175d633ba0090543164c353449a911c5f314b1d1aa7937e51b97cc2608aa4590f0ff56140b42108b0e76a2e8 WHIRLPOOL 934fd88ee12ed72709e0b7aabe01f9e21417480156049af80eaa5413d50726aa49abc03e756bdeff45a4f82decaafa1f76539f16b2319e3c42a0a593f2096417
EBUILD systemd-208-r3.ebuild 11235 SHA256 0017e2c10d85a05862e5e609f03c02c96e4a450a8693a9619575902ec71851e6 SHA512 36c2df2a640b5c5c70b21fea1d99fff0fd2fa4fc0e2354cf3d8aa5806e3274ed89c0bdd2b34372b79aa573d630f2a1db0519d5d000dd6bdfaef82a6a414ca281 WHIRLPOOL c75a977bae455e0e8b2e14df2c13bb146cc60adedef8058b9ee3a58e4ccd9f35f2f364c86adc01a728ac1f12916530c3f75a445321627032556995a39b1e1a62
EBUILD systemd-212-r5.ebuild 14030 SHA256 347c0599ed27a6f17132c6379ecc8faefbea0a346260144e54f77358d54c9a29 SHA512 440fa99025af8f1938c7a1608e061d2adc52818de1d41ad26d955d2aa4a7175fdd26e32518715fce3799633104ff26d601aee5c355412658c49ce9d14c1da23e WHIRLPOOL f03bf0c2a2dca63c6d0593d41420d83a6545c93a0af2c9782d1a06ff6e07b3298d96505b997dadd7d0251328cba79407642c237ec3621a2e39b4702ca153fafb
EBUILD systemd-213.ebuild 13649 SHA256 c651f2f43f3d380d1ce857ec3d991f69984aebd379ff3da891c9aefa30d6cd07 SHA512 fef465494b01e4a3aa197f2299efc6d2a6a26114f6597cbb98beb187dedaad4bb8d07a3ee7ea4faeaf7902e6759910edfeee5eaccd52fe4ba1921496120f2c70 WHIRLPOOL e63d3cc4cff356b053e0e1860e8ac99c1ccf1d02c1099bc5e0ff467518abcb2f1047041d9414df85a1956ec2d0f7e9d317c2db175ae13d3b94d3561feb45b135
-EBUILD systemd-9999.ebuild 14278 SHA256 6a8b1305d5d60858f091ea9d548d0ca8847634370cad5398e0596f1738e58f15 SHA512 e1eddf6cdfd4e41e688a7438e8909043650bc09dda38aae98f6690cda0210d83aa4531dc678d450aa02028dd582bf1d4c58c9a85ee2b7dc11cdeb4271a3adae3 WHIRLPOOL 48473b4b3cf5382371039178a7794fa5d1d7049c75bfa2001bc0aa8485de7890a54322257ba11f3722dedd89cd646d04c7ad6d9a76131df776ff63dc096eac0e
-MISC ChangeLog 49025 SHA256 25c709531dd30ed057c4d3f5e8c098742c34551d3cc2b54de2ba1333a29cbbea SHA512 f8e02fad00e88105a697a024386a220551a3b5d2500af2c63604bc6bad17a9f6cd94064b88928b6814fc739d9188c426121800ff4bf58ce927574bc5ec45ed34 WHIRLPOOL 623cddf16f684f035103456229917ac7eafa8c87b83fae278824e4a57b97489fd2090bdad53d568bd9339fb511649667a0d6b697fe86ce5b2f1efecde21a33bf
+EBUILD systemd-214.ebuild 13614 SHA256 859819fedd93c0b0095063ca7337bd3a677ff553a9f5fcfeb1b3ab5400d89324 SHA512 9a389f25304a09aafe95f31c8a144abf60d65a7ae553cfa01af33ec4bf3f3a22f85fc159d2bd9333580845541b0929c436c25da29b54e1be42cee304791d43dc WHIRLPOOL f22e58625a66d7b2b1092b191ad2e5df6f2bd322a8ace930f94df164104d78dcbc67eec6f4e98aaa76a73ca41350d7d58b3f8334729fba52259eebf77b26ac43
+EBUILD systemd-9999.ebuild 14128 SHA256 81cd36b6a404f1c78afdf3309a4302b7f76bb037cdd55a8b69d28d8799fed3cf SHA512 c3361c76d3f91f36dae78312bbf9072ce3dd7c8cf6507c1ae848663629177423fa70c2fd9620822748f33b124d133227e36625d97d8173c61307321511d777c5 WHIRLPOOL d0263382b8f72a7167871d568c47ef7059be7c2e54a9b294e9e5f944b31ecec629558d783420b7d65730bc10b97195508faf41e92ac25c5fcc0798c9f00ec669
+MISC ChangeLog 49163 SHA256 974f3bf7b85b1ac704eaef1c75a21719d941043819388e098fb7346eca569073 SHA512 9e51b68c501b532920d6e47e903c3ed150eb61b9c710d21d3edad88a8b22cbdff5660b3947007e85168f5d321978742f1166521c2f560968ae1488bd47f63026 WHIRLPOOL e68e3f1826fc96e9d57d5c3c8bcbc57b032e2d9b4576c63593e9ebf2849d87726980b27e711b80a752979347190eebe914b4cd4037593a7243022dcd88210340
MISC metadata.xml 1135 SHA256 b08dc3cad5afe2ed29a0d4c528efc9e97dccf235bdabe4451c3f064ccd5df804 SHA512 860e15b483c5b9a0310c4c5a58a1ffe9143105fdd171e7a8b66295f9a46d5bd14a03f96ec921cc1b31343d92f318ede8f035314dd96cb64de8578089eaa80226 WHIRLPOOL ec1a1762433afb7ffbf1475909ddd9b876919e4b7889a6db76fb3ce00694bdcc5c8971c2f040797afc4e7699a832c457c07972a9dddae138c4837da1376dc374
-----BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.22 (GNU/Linux)
+Version: GnuPG v2
-iF4EAREIAAYFAlOYcgcACgkQC77qH+pIQ6R7jgD+NWcnVVOsPEh+C3YUChno1TY0
-IwBIdg71YsH7yM7WVJkA/jCjn8wBUEhbRyRCK8i/q816bFlBA227pSGtAXWyn3Rj
-=/hDc
+iF4EAREIAAYFAlOceVYACgkQC77qH+pIQ6SgeQD9F0ZjEitHbAaUpsnmNRv5/g1/
+g8K/Om8ziBkkbcO6la4BAIHpYnoXUQgp8xmmo8TVtB+clUS3fzKmFon0Od+Ux8ik
+=pEK+
-----END PGP SIGNATURE-----
diff --git a/sys-apps/systemd/systemd-214.ebuild b/sys-apps/systemd/systemd-214.ebuild
new file mode 100644
index 000000000000..d3d2ef08f529
--- /dev/null
+++ b/sys-apps/systemd/systemd-214.ebuild
@@ -0,0 +1,461 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/systemd/systemd-214.ebuild,v 1.1 2014/06/14 16:33:20 floppym Exp $
+
+EAPI=5
+
+AUTOTOOLS_PRUNE_LIBTOOL_FILES=all
+PYTHON_COMPAT=( python{2_7,3_2,3_3} )
+inherit autotools-utils bash-completion-r1 fcaps linux-info multilib \
+ multilib-minimal pam python-single-r1 systemd toolchain-funcs udev \
+ user
+
+DESCRIPTION="System and service manager for Linux"
+HOMEPAGE="http://www.freedesktop.org/wiki/Software/systemd"
+SRC_URI="http://www.freedesktop.org/software/systemd/${P}.tar.xz"
+
+LICENSE="GPL-2 LGPL-2.1 MIT public-domain"
+SLOT="0/2"
+KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE="acl audit cryptsetup doc +firmware-loader gcrypt gudev http introspection
+ kdbus +kmod lzma pam policykit python qrcode +seccomp selinux ssl
+ test vanilla"
+
+MINKV="3.10"
+
+COMMON_DEPEND=">=sys-apps/util-linux-2.20:0=
+ sys-libs/libcap:0=
+ acl? ( sys-apps/acl:0= )
+ audit? ( >=sys-process/audit-2:0= )
+ cryptsetup? ( >=sys-fs/cryptsetup-1.6:0= )
+ gcrypt? ( >=dev-libs/libgcrypt-1.4.5:0= )
+ gudev? ( dev-libs/glib:2=[${MULTILIB_USEDEP}] )
+ http? (
+ >=net-libs/libmicrohttpd-0.9.33:0=
+ ssl? ( >=net-libs/gnutls-3.1.4:0= )
+ )
+ introspection? ( >=dev-libs/gobject-introspection-1.31.1:0= )
+ kmod? ( >=sys-apps/kmod-15:0= )
+ lzma? ( app-arch/xz-utils:0=[${MULTILIB_USEDEP}] )
+ pam? ( virtual/pam:= )
+ python? ( ${PYTHON_DEPS} )
+ qrcode? ( media-gfx/qrencode:0= )
+ seccomp? ( sys-libs/libseccomp:0= )
+ selinux? ( sys-libs/libselinux:0= )
+ abi_x86_32? ( !<=app-emulation/emul-linux-x86-baselibs-20130224-r9
+ !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)] )"
+
+# baselayout-2.2 has /run
+RDEPEND="${COMMON_DEPEND}
+ >=sys-apps/baselayout-2.2
+ || (
+ >=sys-apps/util-linux-2.22
+ <sys-apps/sysvinit-2.88-r4
+ )
+ !sys-auth/nss-myhostname
+ !<sys-libs/glibc-2.14
+ !sys-fs/udev"
+
+# sys-apps/daemon: the daemon only (+ build-time lib dep for tests)
+PDEPEND=">=sys-apps/dbus-1.6.8-r1:0
+ >=sys-apps/hwids-20130717-r1[udev]
+ >=sys-fs/udev-init-scripts-25
+ policykit? ( sys-auth/polkit )
+ !vanilla? ( sys-apps/gentoo-systemd-integration )"
+
+# Newer linux-headers needed by ia64, bug #480218
+DEPEND="${COMMON_DEPEND}
+ app-arch/xz-utils:0
+ dev-util/gperf
+ >=dev-util/intltool-0.50
+ >=sys-devel/binutils-2.23.1
+ >=sys-devel/gcc-4.6
+ >=sys-kernel/linux-headers-${MINKV}
+ ia64? ( >=sys-kernel/linux-headers-3.9 )
+ virtual/pkgconfig
+ doc? ( >=dev-util/gtk-doc-1.18 )
+ python? ( dev-python/lxml[${PYTHON_USEDEP}] )
+ test? ( >=sys-apps/dbus-1.6.8-r1:0 )"
+
+src_prepare() {
+ # Bug 463376
+ sed -i -e 's/GROUP="dialout"/GROUP="uucp"/' rules/*.rules || die
+
+ autotools-utils_src_prepare
+}
+
+pkg_pretend() {
+ local CONFIG_CHECK="~AUTOFS4_FS ~BLK_DEV_BSG ~CGROUPS ~DEVTMPFS ~DMIID
+ ~EPOLL ~FANOTIFY ~FHANDLE ~INOTIFY_USER ~IPV6 ~NET ~NET_NS ~PROC_FS
+ ~SECCOMP ~SIGNALFD ~SYSFS ~TIMERFD ~TMPFS_XATTR
+ ~!IDE ~!SYSFS_DEPRECATED ~!SYSFS_DEPRECATED_V2
+ ~!GRKERNSEC_PROC"
+
+ use acl && CONFIG_CHECK+=" ~TMPFS_POSIX_ACL"
+ kernel_is -lt 3 7 && CONFIG_CHECK+=" ~HOTPLUG"
+ use firmware-loader || CONFIG_CHECK+=" ~!FW_LOADER_USER_HELPER"
+
+ if linux_config_exists; then
+ local uevent_helper_path=$(linux_chkconfig_string UEVENT_HELPER_PATH)
+ if [ -n "${uevent_helper_path}" ] && [ "${uevent_helper_path}" != '""' ]; then
+ ewarn "It's recommended to set an empty value to the following kernel config option:"
+ ewarn "CONFIG_UEVENT_HELPER_PATH=${uevent_helper_path}"
+ fi
+ fi
+
+ if [[ ${MERGE_TYPE} != binary ]]; then
+ if [[ $(gcc-major-version) -lt 4
+ || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 6 ) ]]
+ then
+ eerror "systemd requires at least gcc 4.6 to build. Please switch the active"
+ eerror "gcc version using gcc-config."
+ die "systemd requires at least gcc 4.6"
+ fi
+ fi
+
+ if [[ ${MERGE_TYPE} != buildonly ]]; then
+ if kernel_is -lt ${MINKV//./ }; then
+ ewarn "Kernel version at least ${MINKV} required"
+ fi
+
+ if ! use firmware-loader && kernel_is -lt 3 8; then
+ ewarn "You seem to be using kernel older than 3.8. Those kernel versions"
+ ewarn "require systemd with USE=firmware-loader to support loading"
+ ewarn "firmware. Missing this flag may cause some hardware not to work."
+ fi
+
+ check_extra_config
+ fi
+}
+
+pkg_setup() {
+ use python && python-single-r1_pkg_setup
+}
+
+src_configure() {
+ # Keep using the one where the rules were installed.
+ MY_UDEVDIR=$(get_udevdir)
+ # Fix systems broken by bug #509454.
+ [[ ${MY_UDEVDIR} ]] || MY_UDEVDIR=/lib/udev
+
+ multilib-minimal_src_configure
+}
+
+multilib_src_configure() {
+ local myeconfargs=(
+ # disable -flto since it is an optimization flag
+ # and makes distcc less effective
+ cc_cv_CFLAGS__flto=no
+
+ --disable-maintainer-mode
+ --localstatedir=/var
+ --with-pamlibdir=$(getpam_mod_dir)
+ # avoid bash-completion dep
+ --with-bashcompletiondir="$(get_bashcompdir)"
+ # make sure we get /bin:/sbin in $PATH
+ --enable-split-usr
+ # disable sysv compatibility
+ --with-sysvinit-path=
+ --with-sysvrcnd-path=
+ # no deps
+ --enable-efi
+ --enable-ima
+ # optional components/dependencies
+ $(use_enable acl)
+ $(use_enable audit)
+ $(use_enable cryptsetup libcryptsetup)
+ $(use_enable doc gtk-doc)
+ $(use_enable gcrypt)
+ $(use_enable gudev)
+ $(use_enable http microhttpd)
+ $(usex http $(use_enable ssl gnutls) --disable-gnutls)
+ $(use_enable introspection)
+ $(use_enable kdbus)
+ $(use_enable kmod)
+ $(use_enable lzma xz)
+ $(use_enable pam)
+ $(use_enable policykit polkit)
+ $(use_with python)
+ $(use_enable python python-devel)
+ $(use_enable qrcode qrencode)
+ $(use_enable seccomp)
+ $(use_enable selinux)
+ $(use_enable test tests)
+
+ # not supported (avoid automagic deps in the future)
+ --disable-chkconfig
+
+ # hardcode a few paths to spare some deps
+ QUOTAON=/usr/sbin/quotaon
+ QUOTACHECK=/usr/sbin/quotacheck
+
+ # dbus paths
+ --with-dbuspolicydir="${EPREFIX}/etc/dbus-1/system.d"
+ --with-dbussessionservicedir="${EPREFIX}/usr/share/dbus-1/services"
+ --with-dbussystemservicedir="${EPREFIX}/usr/share/dbus-1/system-services"
+ --with-dbusinterfacedir="${EPREFIX}/usr/share/dbus-1/interfaces"
+
+ --with-ntp-servers="0.gentoo.pool.ntp.org 1.gentoo.pool.ntp.org 2.gentoo.pool.ntp.org 3.gentoo.pool.ntp.org"
+ )
+
+ if use firmware-loader; then
+ myeconfargs+=(
+ --with-firmware-path="/lib/firmware/updates:/lib/firmware"
+ )
+ fi
+
+ # Added for testing; this is UNSUPPORTED by the Gentoo systemd team!
+ if [[ -n ${ROOTPREFIX+set} ]]; then
+ myeconfargs+=(
+ --with-rootprefix="${ROOTPREFIX}"
+ --with-rootlibdir="${ROOTPREFIX}/$(get_libdir)"
+ )
+ fi
+
+ if ! multilib_is_native_abi; then
+ myeconfargs+=(
+ ac_cv_search_cap_init=
+ ac_cv_header_sys_capability_h=yes
+ DBUS_CFLAGS=' '
+ DBUS_LIBS=' '
+
+ --disable-acl
+ --disable-audit
+ --disable-gcrypt
+ --disable-gnutls
+ --disable-gtk-doc
+ --disable-introspection
+ --disable-kmod
+ --disable-libcryptsetup
+ --disable-microhttpd
+ --disable-networkd
+ --disable-pam
+ --disable-polkit
+ --disable-qrencode
+ --disable-seccomp
+ --disable-selinux
+ --disable-timesyncd
+ --disable-tests
+ --disable-xz
+ --disable-python-devel
+ )
+ fi
+
+ # Work around bug 463846.
+ tc-export CC
+
+ autotools-utils_src_configure
+}
+
+multilib_src_compile() {
+ local mymakeopts=(
+ udevlibexecdir="${MY_UDEVDIR}"
+ )
+
+ if multilib_is_native_abi; then
+ emake "${mymakeopts[@]}"
+ else
+ # prerequisites for gudev
+ use gudev && emake src/gudev/gudev{enumtypes,marshal}.{c,h}
+
+ echo 'gentoo: $(BUILT_SOURCES)' | \
+ emake "${mymakeopts[@]}" -f Makefile -f - gentoo
+ echo 'gentoo: $(lib_LTLIBRARIES) $(pkgconfiglib_DATA)' | \
+ emake "${mymakeopts[@]}" -f Makefile -f - gentoo
+ fi
+}
+
+multilib_src_test() {
+ multilib_is_native_abi || continue
+
+ default
+}
+
+multilib_src_install() {
+ local mymakeopts=(
+ # automake fails with parallel libtool relinking
+ # https://bugs.gentoo.org/show_bug.cgi?id=491398
+ -j1
+
+ udevlibexecdir="${MY_UDEVDIR}"
+ dist_udevhwdb_DATA=
+ DESTDIR="${D}"
+ )
+
+ if multilib_is_native_abi; then
+ emake "${mymakeopts[@]}" install
+ # Even with --enable-networkd, it's not right to have this running by default
+ # when it's unconfigured.
+ rm -f "${D}"/etc/systemd/system/multi-user.target.wants/systemd-networkd.service
+ else
+ mymakeopts+=(
+ install-libLTLIBRARIES
+ install-pkgconfiglibDATA
+ install-includeHEADERS
+ # safe to call unconditionally, 'installs' empty list
+ install-libgudev_includeHEADERS
+ install-pkgincludeHEADERS
+ )
+
+ emake "${mymakeopts[@]}"
+ fi
+
+ # install compat pkg-config files
+ local pcfiles=( src/compat-libs/libsystemd-{daemon,id128,journal,login}.pc )
+ emake "${mymakeopts[@]}" install-pkgconfiglibDATA \
+ pkgconfiglib_DATA="${pcfiles[*]}"
+}
+
+multilib_src_install_all() {
+ prune_libtool_files --modules
+ einstalldocs
+
+ # we just keep sysvinit tools, so no need for the mans
+ rm "${D}"/usr/share/man/man8/{halt,poweroff,reboot,runlevel,shutdown,telinit}.8 \
+ || die
+ rm "${D}"/usr/share/man/man1/init.1 || die
+
+ # Disable storing coredumps in journald, bug #433457
+ mv "${D}"/usr/lib/sysctl.d/50-coredump.conf{,.disabled} || die
+
+ # Preserve empty dirs in /etc & /var, bug #437008
+ keepdir /etc/binfmt.d /etc/modules-load.d /etc/tmpfiles.d \
+ /etc/systemd/ntp-units.d /etc/systemd/user /var/lib/systemd
+
+ # Symlink /etc/sysctl.conf for easy migration.
+ dosym ../sysctl.conf /etc/sysctl.d/99-sysctl.conf
+}
+
+migrate_locale() {
+ local envd_locale_def="${EROOT%/}/etc/env.d/02locale"
+ local envd_locale=( "${EROOT%/}"/etc/env.d/??locale )
+ local locale_conf="${EROOT%/}/etc/locale.conf"
+
+ if [[ ! -L ${locale_conf} && ! -e ${locale_conf} ]]; then
+ # If locale.conf does not exist...
+ if [[ -e ${envd_locale} ]]; then
+ # ...either copy env.d/??locale if there's one
+ ebegin "Moving ${envd_locale} to ${locale_conf}"
+ mv "${envd_locale}" "${locale_conf}"
+ eend ${?} || FAIL=1
+ else
+ # ...or create a dummy default
+ ebegin "Creating ${locale_conf}"
+ cat > "${locale_conf}" <<-EOF
+ # This file has been created by the sys-apps/systemd ebuild.
+ # See locale.conf(5) and localectl(1).
+
+ # LANG=${LANG}
+ EOF
+ eend ${?} || FAIL=1
+ fi
+ fi
+
+ if [[ ! -L ${envd_locale} ]]; then
+ # now, if env.d/??locale is not a symlink (to locale.conf)...
+ if [[ -e ${envd_locale} ]]; then
+ # ...warn the user that he has duplicate locale settings
+ ewarn
+ ewarn "To ensure consistent behavior, you should replace ${envd_locale}"
+ ewarn "with a symlink to ${locale_conf}. Please migrate your settings"
+ ewarn "and create the symlink with the following command:"
+ ewarn "ln -s -n -f ../locale.conf ${envd_locale}"
+ ewarn
+ else
+ # ...or just create the symlink if there's nothing here
+ ebegin "Creating ${envd_locale_def} -> ../locale.conf symlink"
+ ln -n -s ../locale.conf "${envd_locale_def}"
+ eend ${?} || FAIL=1
+ fi
+ fi
+}
+
+migrate_net_name_slot() {
+ # If user has disabled 80-net-name-slot.rules using a empty file or a symlink to /dev/null,
+ # do the same for 80-net-setup-link.rules to keep the old behavior
+ local net_move=no
+ local net_name_slot_sym=no
+ local net_rules_path="${EROOT%/}"/etc/udev/rules.d
+ local net_name_slot="${net_rules_path}"/80-net-name-slot.rules
+ local net_setup_link="${net_rules_path}"/80-net-setup-link.rules
+ if [[ -e ${net_setup_link} ]]; then
+ net_move=no
+ elif [[ -f ${net_name_slot} && $(sed -e "/^#/d" -e "/^\W*$/d" ${net_name_slot} | wc -l) == 0 ]]; then
+ net_move=yes
+ elif [[ -L ${net_name_slot} && $(readlink ${net_name_slot}) == /dev/null ]]; then
+ net_move=yes
+ net_name_slot_sym=yes
+ fi
+ if [[ ${net_move} == yes ]]; then
+ ebegin "Copying ${net_name_slot} to ${net_setup_link}"
+
+ if [[ ${net_name_slot_sym} == yes ]]; then
+ ln -nfs /dev/null "${net_setup_link}"
+ else
+ cp "${net_name_slot}" "${net_setup_link}"
+ fi
+ eend $? || FAIL=1
+ fi
+}
+
+pkg_postinst() {
+ newusergroup() {
+ enewgroup "$1"
+ enewuser "$1" -1 -1 -1 "$1"
+ }
+
+ enewgroup systemd-journal
+ newusergroup systemd-bus-proxy
+ newusergroup systemd-network
+ newusergroup systemd-resolve
+ newusergroup systemd-timesync
+ use http && newusergroup systemd-journal-gateway
+
+ systemd_update_catalog
+
+ # Keep this here in case the database format changes so it gets updated
+ # when required. Despite that this file is owned by sys-apps/hwids.
+ if has_version "sys-apps/hwids[udev]"; then
+ udevadm hwdb --update --root="${ROOT%/}"
+ fi
+
+ udev_reload || FAIL=1
+
+ # Bug 468876
+ fcaps cap_dac_override,cap_sys_ptrace=ep usr/bin/systemd-detect-virt
+
+ # Bug 465468, make sure locales are respect, and ensure consistency
+ # between OpenRC & systemd
+ migrate_locale
+
+ # Migrate 80-net-name-slot.rules -> 80-net-setup-link.rules
+ migrate_net_name_slot
+
+ if [[ ${FAIL} ]]; then
+ eerror "One of the postinst commands failed. Please check the postinst output"
+ eerror "for errors. You may need to clean up your system and/or try installing"
+ eerror "systemd again."
+ eerror
+ fi
+
+ if [[ ! -L "${ROOT}"/etc/mtab ]]; then
+ ewarn "Upstream mandates the /etc/mtab file should be a symlink to /proc/mounts."
+ ewarn "Not having it is not supported by upstream and will cause tools like 'df'"
+ ewarn "and 'mount' to not work properly. Please run:"
+ ewarn " # ln -sf '${ROOT}proc/self/mounts' '${ROOT}etc/mtab'"
+ ewarn
+ fi
+
+ if ! has_version sys-apps/systemd-ui; then
+ elog "To get additional features, a number of optional runtime dependencies may"
+ elog "be installed:"
+ elog "- sys-apps/systemd-ui: for GTK+ systemadm UI and gnome-ask-password-agent"
+ fi
+}
+
+pkg_prerm() {
+ # If removing systemd completely, remove the catalog database.
+ if [[ ! ${REPLACED_BY_VERSION} ]]; then
+ rm -f -v "${EROOT}"/var/lib/systemd/catalog/database
+ fi
+}
diff --git a/sys-apps/systemd/systemd-9999.ebuild b/sys-apps/systemd/systemd-9999.ebuild
index 9caef40e82d7..83dc8b4c0f7a 100644
--- a/sys-apps/systemd/systemd-9999.ebuild
+++ b/sys-apps/systemd/systemd-9999.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/systemd/systemd-9999.ebuild,v 1.114 2014/06/11 15:13:06 floppym Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/systemd/systemd-9999.ebuild,v 1.115 2014/06/14 16:33:20 floppym Exp $
EAPI=5
@@ -27,7 +27,7 @@ SLOT="0/2"
KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86"
IUSE="acl audit cryptsetup doc +firmware-loader gcrypt gudev http introspection
kdbus +kmod lzma pam policykit python qrcode +seccomp selinux ssl
- test vanilla xattr"
+ test vanilla"
MINKV="3.10"
@@ -50,7 +50,6 @@ COMMON_DEPEND=">=sys-apps/util-linux-2.20:0=
qrcode? ( media-gfx/qrencode:0= )
seccomp? ( sys-libs/libseccomp:0= )
selinux? ( sys-libs/libselinux:0= )
- xattr? ( sys-apps/attr:0= )
abi_x86_32? ( !<=app-emulation/emul-linux-x86-baselibs-20130224-r9
!app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)] )"
@@ -117,12 +116,11 @@ src_prepare() {
pkg_pretend() {
local CONFIG_CHECK="~AUTOFS4_FS ~BLK_DEV_BSG ~CGROUPS ~DEVTMPFS ~DMIID
~EPOLL ~FANOTIFY ~FHANDLE ~INOTIFY_USER ~IPV6 ~NET ~NET_NS ~PROC_FS
- ~SECCOMP ~SIGNALFD ~SYSFS ~TIMERFD
+ ~SECCOMP ~SIGNALFD ~SYSFS ~TIMERFD ~TMPFS_XATTR
~!IDE ~!SYSFS_DEPRECATED ~!SYSFS_DEPRECATED_V2
~!GRKERNSEC_PROC"
use acl && CONFIG_CHECK+=" ~TMPFS_POSIX_ACL"
- use xattr && CONFIG_CHECK+=" ~TMPFS_XATTR"
kernel_is -lt 3 7 && CONFIG_CHECK+=" ~HOTPLUG"
use firmware-loader || CONFIG_CHECK+=" ~!FW_LOADER_USER_HELPER"
@@ -212,7 +210,6 @@ multilib_src_configure() {
$(use_enable seccomp)
$(use_enable selinux)
$(use_enable test tests)
- $(use_enable xattr)
# not supported (avoid automagic deps in the future)
--disable-chkconfig
@@ -268,7 +265,6 @@ multilib_src_configure() {
--disable-selinux
--disable-timesyncd
--disable-tests
- --disable-xattr
--disable-xz
--disable-python-devel
)
@@ -432,15 +428,18 @@ migrate_net_name_slot() {
}
pkg_postinst() {
+ newusergroup() {
+ enewgroup "$1"
+ enewuser "$1" -1 -1 -1 "$1"
+ }
+
enewgroup systemd-journal
- enewgroup systemd-network
- enewuser systemd-network -1 -1 -1 systemd-network
- enewgroup systemd-timesync
- enewuser systemd-timesync -1 -1 -1 systemd-timesync
- if use http; then
- enewgroup systemd-journal-gateway
- enewuser systemd-journal-gateway -1 -1 -1 systemd-journal-gateway
- fi
+ newusergroup systemd-bus-proxy
+ newusergroup systemd-network
+ newusergroup systemd-resolve
+ newusergroup systemd-timesync
+ use http && newusergroup systemd-journal-gateway
+
systemd_update_catalog
# Keep this here in case the database format changes so it gets updated