From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1QBWiw-0007ch-UO for garchives@archives.gentoo.org; Sun, 17 Apr 2011 18:29:31 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5DE041C009; Sun, 17 Apr 2011 18:29:23 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 1CDB31C009 for ; Sun, 17 Apr 2011 18:29:23 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 78B301B408D for ; Sun, 17 Apr 2011 18:29:22 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id C669C80065 for ; Sun, 17 Apr 2011 18:29:21 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: Subject: [gentoo-commits] dev/mgorny:master commit in: sys-apps/systemd/ X-VCS-Repository: dev/mgorny X-VCS-Files: sys-apps/systemd/Manifest sys-apps/systemd/metadata.xml sys-apps/systemd/systemd-24.ebuild X-VCS-Directories: sys-apps/systemd/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: fa6d57e35cedf6439a319446a99bea7e00046d0a Date: Sun, 17 Apr 2011 18:29:21 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: 750914baefe1bf86e2cf84e2c68ce773 commit: fa6d57e35cedf6439a319446a99bea7e00046d0a Author: Micha=C5=82 G=C3=B3rny gentoo org> AuthorDate: Sun Apr 17 18:27:25 2011 +0000 Commit: Micha=C5=82 G=C3=B3rny gentoo org> CommitDate: Sun Apr 17 18:29:31 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Ddev/mgorny.git;a=3D= commit;h=3Dfa6d57e3 sys-apps/systemd: Initial commit, based on work of Henry Gebhardt. Thanks= . (Portage version: 2.2.0_alpha29_p5/git/Linux x86_64, signed Manifest comm= it with key 05DE07BB) --- sys-apps/systemd/Manifest | 13 ++++ sys-apps/systemd/metadata.xml | 12 ++++ sys-apps/systemd/systemd-24.ebuild | 122 ++++++++++++++++++++++++++++++= ++++++ 3 files changed, 147 insertions(+), 0 deletions(-) diff --git a/sys-apps/systemd/Manifest b/sys-apps/systemd/Manifest new file mode 100644 index 0000000..63a02df --- /dev/null +++ b/sys-apps/systemd/Manifest @@ -0,0 +1,13 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +DIST systemd-24.tar.bz2 763671 RMD160 170bf702440cd9a3a454d05fd3a85e0eac= dac3ad SHA1 6eb502ec8c9573fd769dab3ca8a2fc5ed8ce2680 SHA256 47c309cfe4c67= 114d98088f3b2210bf22465cdbbc751cb7a9b3d0741b8724651 +EBUILD systemd-24.ebuild 3093 RMD160 9165f6a832089813487c2f03ce93c95cd3d= 1a7bc SHA1 113dec441d0033b2eb3b110221eb55aa3823fbd7 SHA256 6510ab16440be6= 19025a34c23f71f6458977c1abb08048b964fb3556b1b2702c +MISC metadata.xml 346 RMD160 0a87c8fe5dab7495fbe54aac0bbefa83a05ac451 SH= A1 b3a588f46564c9dc4dc186c7e6d8a31c37d2bbfd SHA256 1ea5b2ad74881e6dec7d2f= f29067cd6fced2dd838cc3bdec3638971e80c5870d +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.17 (GNU/Linux) + +iEYEARECAAYFAk2rMQ0ACgkQnGSe5QXeB7tzbgCglO1YEolnmTkeyze7Gq+d4bPk +/x0An1dHZV/+OMwiTXXW7FV6mONsk0Y1 +=3Dg1rI +-----END PGP SIGNATURE----- diff --git a/sys-apps/systemd/metadata.xml b/sys-apps/systemd/metadata.xm= l new file mode 100644 index 0000000..e44b596 --- /dev/null +++ b/sys-apps/systemd/metadata.xml @@ -0,0 +1,12 @@ + + + + no-herd + + mgorny@gentoo.org + Micha=C5=82 G=C3=B3rny + + + Enable support for sys-process/audit + + diff --git a/sys-apps/systemd/systemd-24.ebuild b/sys-apps/systemd/system= d-24.ebuild new file mode 100644 index 0000000..76385d8 --- /dev/null +++ b/sys-apps/systemd/systemd-24.ebuild @@ -0,0 +1,122 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=3D2 + +inherit autotools-utils linux-info pam + +DESCRIPTION=3D"systemd is a system and service manager for Linux" +HOMEPAGE=3D"http://www.freedesktop.org/wiki/Software/systemd" +SRC_URI=3D"http://www.freedesktop.org/software/systemd/${P}.tar.bz2" + +LICENSE=3D"GPL-2" +SLOT=3D"0" +KEYWORDS=3D"~amd64 ~x86" +IUSE=3D"audit gtk pam selinux tcpd" + +# XXX: libcryptsetup + +RDEPEND=3D"sys-apps/dbus + sys-libs/libcap + >=3Dsys-fs/udev-160 + audit? ( sys-process/audit ) + gtk? ( + dev-libs/dbus-glib + >=3Ddev-libs/glib-2.26 + x11-libs/gtk+:2 + >=3Dx11-libs/libnotify-0.7 ) + pam? ( virtual/pam ) + selinux? ( sys-libs/libselinux ) + tcpd? ( sys-apps/tcp-wrappers ) + >=3Dsys-apps/util-linux-2.19" + +# Vala-0.10 doesn't work with libnotify 0.7.1 +VALASLOT=3D"0.12" +DEPEND=3D"${RDEPEND} + gtk? ( dev-lang/vala:$VALASLOT ) + >=3Dsys-kernel/linux-headers-2.6.32" + +CONFIG_CHECK=3D"AUTOFS4_FS CGROUPS DEVTMPFS ~FANOTIFY ~IPV6" + +pkg_setup() { + linux-info_pkg_setup + enewgroup lock # used by var-lock.mount + enewgroup tty 5 # used by mount-setup for /dev/pts +} + +src_prepare() { + # Force the rebuild of .vala sources + touch src/*.vala + #autotools-utils_src_prepare +} + +src_configure() { + local myeconfargs=3D( + --with-distro=3Dgentoo + --with-rootdir=3D + --localstatedir=3D/var + $(use_enable audit) + $(use_enable gtk) + $(use_enable pam) + $(use_enable selinux) + $(use_enable tcpd tcpwrap) + ) + + if use gtk; then + export VALAC=3D"$(type -p valac-${VALASLOT})" + fi + + autotools-utils_src_configure +} + +src_install() { + autotools-utils_src_install + + dodoc "${D}"/usr/share/doc/systemd/* || die + rm -rf "${D}"/usr/share/doc/systemd + + cd "${D}"/usr/share/man/man8/ + for i in halt poweroff reboot runlevel shutdown telinit; do + mv ${i}.8 systemd.${i}.8 || die + done + + # XXX: maybe /var/run ? + keepdir /run || die +} + +check_mtab_is_symlink() { + if test ! -L "${ROOT}"etc/mtab; then + ewarn "${ROOT}etc/mtab must be a symlink to ${ROOT}proc/self/mounts!" + ewarn "To correct that, execute" + ewarn " $ ln -sf '${ROOT}proc/self/mounts' '${ROOT}etc/mtab'" + fi +} + +systemd_machine_id_setup() { + einfo "Setting up /etc/machine-id..." + if ! "${ROOT}"bin/systemd-machine-id-setup; then + ewarn "Setting up /etc/machine-id failed, to fix it please see" + ewarn " http://lists.freedesktop.org/archives/dbus/2011-March/014187.= html" + elif test ! -L "${ROOT}"var/lib/dbus/machine-id; then + # This should be fixed in the dbus ebuild, but we warn about it here. + ewarn "${ROOT}var/lib/dbus/machine-id ideally should be a symlink to" + ewarn "${ROOT}etc/machine-id to make it clear that they have the same" + ewarn "content." + fi +} + +pkg_postinst() { + check_mtab_is_symlink + systemd_machine_id_setup + + # Inform user about extra configuration + elog "You may need to perform some additional configuration for some" + elog "programs to work, see the systemd manpages for loading modules an= d" + elog "handling tmpfiles:" + elog " $ man modules-load.d" + elog " $ man tmpfiles.d" + elog + + ewarn "This a work-in-progress ebuild. You may brick your system. Have = fun!" +}