Initial ebuild
authorPacho Ramos <pacho@gentoo.org>
Sat, 17 Jan 2015 15:52:57 +0000 (15:52 +0000)
committerPacho Ramos <pacho@gentoo.org>
Sat, 17 Jan 2015 15:52:57 +0000 (15:52 +0000)
Package-Manager: portage-2.2.15/cvs/Linux x86_64
Manifest-Sign-Key: 0xA188FBD4

sys-apps/systemd-readahead/Manifest
sys-apps/systemd-readahead/metadata.xml [new file with mode: 0644]
sys-apps/systemd-readahead/systemd-readahead-216.ebuild [new file with mode: 0644]

index 2292cc7cfb1227b5bbd461ffc9db8feabd8c109b..bebeaddccf3038e812a0bb6e6ca6c63bdbb58e91 100644 (file)
@@ -1,3 +1,14 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA256
+
 DIST systemd-216.tar.xz 3612960 SHA256 945d3db7d840d6ffe98aa68394428e13317161ae79905397faab6671619728f3 SHA512 f4eee6664368168eafd61939f1355ac21c7eeecce6247de98ef36f40bb6a942d12c006ced4ee15f3d8f11699c194990222d5a5115b45f2aa81f2a1abafebbdd2 WHIRLPOOL 505e09b55209a4f9d8cec077970571b2e1298e8db02946a6c79df139dece9d1a08e46c86ef6c8053274abfd46c9a5ea09157f5bc9dc1f7461322c596e84ef494
-EBUILD systemd-readahead-216.ebuild 4297 SHA256 a78e3804dbd87010493fe07702b66f43e6fffbfbb95e05c98e0bd7df73c414e3 SHA512 d2891161ac2c2a9511391d88d362c49eb2440964f74d0c73f91bd750d6021bf634af65df9dca27cab120d5e45a3f498574ff51812c2b8bf404760c2ac95bcc13 WHIRLPOOL 86697901af39f5ba40fd5207bbd20f6013c30c0ee65897885ef4625f96a8fd98e587070b021123b3c5a19b041c3767d08521257b00e4c41dcfd7a561b592fdbf
+EBUILD systemd-readahead-216.ebuild 4312 SHA256 d7120aefcb79e5d94bbb0ce0204df18b0241a06338d4fdfadd61f0dbb505a83b SHA512 d6c585cb68bb2ad33becd5ae1e05132e9ba80cb96902c8797590e6fce9dd7701a853ccd0b25bb01b795335ad3fd7fa7fb3fdc8cf4f6e3fa34777a3823b41cbc7 WHIRLPOOL 5841cd6f41b503a7a8031e441e3dd09a2ae4b6ed306bf18d0279909ba4a164e7b1a4624d827b830fde4ee7a9d9cd513d9efce7f2346fed701256e2929b0fe14d
+MISC ChangeLog 373 SHA256 40038aa2cc2e1be83cf5d3883f4917e4b939ae2ded4da5660fbfe6268b0f8edd SHA512 78f050bbada9eec29f1aee17b58060714fe5c18974f63ea76d5bc13641753d9e2011a7a34d89a2180f13b90dd172f4a7ca81b8a6ad0325fcff3939434e077b27 WHIRLPOOL 7f77cd6b1d532935a1bd53ea624bd7398a5b3fd061863f77dab2ce05c5f4f0b34f18daa061a3611d667ab8a786cc6e1e49f9095ace0fa35f4bd9424a73fbc95d
 MISC metadata.xml 229 SHA256 48ced60ef6cc62af06fe824b28f4fbc737d944ff660719b9c3aba6586c69933d SHA512 533c90d311e7abbc812ce14130c77a0d1faeed9559e0b805ec5d59ecb1d48c4f5d33370579ae3acaff2d482a7eef29a4330c9481d8f006c249b218f038d151f0 WHIRLPOOL c94c25cf014c5e15ea7bac319171bbbb5b485da05ee7470dc5a7ebc28524a075808e67c7fe28b421abaf4cb99ab2839d8da6347805b4b15ed80d4081accc8b2d
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2
+
+iEYEAREIAAYFAlS6hVkACgkQCaWpQKGI+9RWGACeJyN7Ln8OfR+dARQc7SapJ64n
+KkMAn2mymGr/2XGtpVziwZ2f56drHB4V
+=2Gs5
+-----END PGP SIGNATURE-----
diff --git a/sys-apps/systemd-readahead/metadata.xml b/sys-apps/systemd-readahead/metadata.xml
new file mode 100644 (file)
index 0000000..8a0f591
--- /dev/null
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+       <maintainer>
+               <email>pacho@gentoo.org</email>
+               <name>Pacho Ramos</name>
+       </maintainer>
+</pkgmetadata>
diff --git a/sys-apps/systemd-readahead/systemd-readahead-216.ebuild b/sys-apps/systemd-readahead/systemd-readahead-216.ebuild
new file mode 100644 (file)
index 0000000..3fa5158
--- /dev/null
@@ -0,0 +1,161 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/systemd-readahead/systemd-readahead-216.ebuild,v 1.1 2015/01/17 15:52:56 pacho Exp $
+
+EAPI=5
+inherit systemd toolchain-funcs udev
+
+DESCRIPTION="Split of readahead systemd implementation"
+HOMEPAGE="http://dev.gentoo.org/~pacho/systemd-readahead.html"
+SRC_URI="http://www.freedesktop.org/software/systemd/systemd-${PV}.tar.xz"
+
+LICENSE="LGPL-2.1 MIT"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE=""
+
+S=${WORKDIR}/systemd-${PV}
+
+RDEPEND=">=sys-apps/systemd-217:="
+DEPEND="${RDEPEND}
+       app-arch/xz-utils:0
+       dev-util/gperf
+       >=dev-util/intltool-0.50
+       >=sys-apps/coreutils-8.16
+       >=sys-devel/binutils-2.23.1
+       >=sys-kernel/linux-headers-3.8
+       virtual/pkgconfig
+"
+
+src_prepare() {
+       # systemd-notify no longer supports readahead playing
+       sed -i -e 's:ExecStart=@SYSTEMD_NOTIFY@ --readahead=done:ExecStart=/bin/touch /run/systemd/readahead/done:' \
+               units/systemd-readahead-done.service.in || die
+}
+
+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
+
+       local myeconfargs=(
+               # disable -flto since it is an optimization flag
+               # and makes distcc less effective
+               cc_cv_CFLAGS__flto=no
+
+               --enable-readahead
+
+               --disable-maintainer-mode
+               --localstatedir=/var
+               # make sure we get /bin:/sbin in $PATH
+               --enable-split-usr
+               # For testing.
+               --with-rootprefix="${ROOTPREFIX-/usr}"
+               --with-rootlibdir="${ROOTPREFIX-/usr}/$(get_libdir)"
+               # disable sysv compatibility
+               --with-sysvinit-path=
+               --with-sysvrcnd-path=
+               # Disable most of the stuff
+               --disable-efi
+               --disable-ima
+               --disable-acl
+               --disable-apparmor
+               --disable-audit
+               --disable-libcryptsetup
+               --disable-libcurl
+               --disable-gtk-doc
+               --disable-elfutils
+               --disable-gcrypt
+               --disable-gudev
+               --disable-microhttpd
+               --disable-gnutls
+               --disable-libidn
+               --disable-introspection
+               --disable-kdbus
+               --disable-kmod
+               --disable-lz4
+               --disable-xz
+               --disable-pam
+               --disable-polkit
+               --without-python
+               --disable-python-devel
+               --disable-qrencode
+               --disable-seccomp
+               --disable-selinux
+               --disable-tests
+               --disable-dbus
+
+               --disable-smack
+               --disable-blkid
+               --disable-multi-seat-x
+               --disable-myhostname
+
+               # Disable optional binaries
+               --disable-backlight
+               --disable-binfmt
+               --disable-bootchart
+               --disable-coredump
+               --disable-firstboot
+               --disable-hostnamed
+               --disable-localed
+               --disable-logind
+               --disable-machined
+               --disable-networkd
+               --disable-quotacheck
+               --disable-randomseed
+               --disable-resolved
+               --disable-rfkill
+               --disable-sysusers
+               --disable-timedated
+               --disable-timesyncd
+               --disable-tmpfiles
+               --disable-vconsole
+
+               # not supported (avoid automagic deps in the future)
+               --disable-chkconfig
+
+               # 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"
+       )
+
+       # Work around bug 463846.
+       tc-export CC
+
+       econf "${myeconfargs[@]}"
+}
+
+src_compile() {
+       echo 'BUILT_SOURCES: $(BUILT_SOURCES)' > "${T}"/Makefile.extra
+       emake -f Makefile -f "${T}"/Makefile.extra BUILT_SOURCES
+
+       emake systemd-readahead
+       emake units/systemd-readahead-{drop,collect,replay,done}.service units/systemd-readahead-done.timer
+       emake man/{sd-readahead.3,sd_readahead.3,systemd-readahead-replay.service.8}
+}
+
+src_test() {
+       einfo "No specific tests for this"
+}
+
+src_install() {
+       # Install main app
+       exeinto /usr/lib/systemd/
+       doexe systemd-readahead
+
+       # Install unit files
+       systemd_dounit units/systemd-readahead-{drop,collect,replay,done}.service units/systemd-readahead-done.timer
+
+       # Install manpages and aliases
+       doman man/{sd-readahead.3,sd_readahead.3,systemd-readahead-replay.service.8}
+       newman man/systemd-readahead-replay.service.8 systemd-readahead-collect.service.8
+       newman man/systemd-readahead-replay.service.8 systemd-readahead-done.service.8
+       newman man/systemd-readahead-replay.service.8 systemd-readahead-done.timer.8
+       newman man/systemd-readahead-replay.service.8 systemd-readahead.8
+
+       # Install docs
+       dodoc TODO README
+}