summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPacho Ramos <pacho@gentoo.org>2015-01-17 15:52:56 +0000
committerPacho Ramos <pacho@gentoo.org>2015-01-17 15:52:56 +0000
commit6ddc64465c634f0bf7df0173ccc9ca8220632c8c (patch)
tree3ae7e1e67dfdafa674b8bb6501bc7778d113b7ac /sys-apps/systemd-readahead
parentEAPI 5 (diff)
downloadgentoo-2-6ddc64465c634f0bf7df0173ccc9ca8220632c8c.tar.gz
gentoo-2-6ddc64465c634f0bf7df0173ccc9ca8220632c8c.tar.bz2
gentoo-2-6ddc64465c634f0bf7df0173ccc9ca8220632c8c.zip
Initial ebuild
(Portage version: 2.2.15/cvs/Linux x86_64, signed Manifest commit with key A188FBD4)
Diffstat (limited to 'sys-apps/systemd-readahead')
-rw-r--r--sys-apps/systemd-readahead/ChangeLog9
-rw-r--r--sys-apps/systemd-readahead/Manifest3
-rw-r--r--sys-apps/systemd-readahead/metadata.xml8
-rw-r--r--sys-apps/systemd-readahead/systemd-readahead-216.ebuild161
4 files changed, 181 insertions, 0 deletions
diff --git a/sys-apps/systemd-readahead/ChangeLog b/sys-apps/systemd-readahead/ChangeLog
new file mode 100644
index 000000000000..af34346d4b18
--- /dev/null
+++ b/sys-apps/systemd-readahead/ChangeLog
@@ -0,0 +1,9 @@
+# ChangeLog for sys-apps/systemd-readahead
+# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/systemd-readahead/ChangeLog,v 1.1 2015/01/17 15:52:56 pacho Exp $
+
+*systemd-readahead-216 (17 Jan 2015)
+
+ 17 Jan 2015; Pacho Ramos <pacho@gentoo.org> +metadata.xml,
+ +systemd-readahead-216.ebuild:
+ Initial ebuild
diff --git a/sys-apps/systemd-readahead/Manifest b/sys-apps/systemd-readahead/Manifest
new file mode 100644
index 000000000000..2292cc7cfb12
--- /dev/null
+++ b/sys-apps/systemd-readahead/Manifest
@@ -0,0 +1,3 @@
+DIST systemd-216.tar.xz 3612960 SHA256 945d3db7d840d6ffe98aa68394428e13317161ae79905397faab6671619728f3 SHA512 f4eee6664368168eafd61939f1355ac21c7eeecce6247de98ef36f40bb6a942d12c006ced4ee15f3d8f11699c194990222d5a5115b45f2aa81f2a1abafebbdd2 WHIRLPOOL 505e09b55209a4f9d8cec077970571b2e1298e8db02946a6c79df139dece9d1a08e46c86ef6c8053274abfd46c9a5ea09157f5bc9dc1f7461322c596e84ef494
+EBUILD systemd-readahead-216.ebuild 4297 SHA256 a78e3804dbd87010493fe07702b66f43e6fffbfbb95e05c98e0bd7df73c414e3 SHA512 d2891161ac2c2a9511391d88d362c49eb2440964f74d0c73f91bd750d6021bf634af65df9dca27cab120d5e45a3f498574ff51812c2b8bf404760c2ac95bcc13 WHIRLPOOL 86697901af39f5ba40fd5207bbd20f6013c30c0ee65897885ef4625f96a8fd98e587070b021123b3c5a19b041c3767d08521257b00e4c41dcfd7a561b592fdbf
+MISC metadata.xml 229 SHA256 48ced60ef6cc62af06fe824b28f4fbc737d944ff660719b9c3aba6586c69933d SHA512 533c90d311e7abbc812ce14130c77a0d1faeed9559e0b805ec5d59ecb1d48c4f5d33370579ae3acaff2d482a7eef29a4330c9481d8f006c249b218f038d151f0 WHIRLPOOL c94c25cf014c5e15ea7bac319171bbbb5b485da05ee7470dc5a7ebc28524a075808e67c7fe28b421abaf4cb99ab2839d8da6347805b4b15ed80d4081accc8b2d
diff --git a/sys-apps/systemd-readahead/metadata.xml b/sys-apps/systemd-readahead/metadata.xml
new file mode 100644
index 000000000000..8a0f59154c4c
--- /dev/null
+++ b/sys-apps/systemd-readahead/metadata.xml
@@ -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
index 000000000000..3fa5158acb5a
--- /dev/null
+++ b/sys-apps/systemd-readahead/systemd-readahead-216.ebuild
@@ -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
+}