diff options
author | Petre Rodan <kaiowas@gentoo.org> | 2006-03-31 13:47:35 +0000 |
---|---|---|
committer | Petre Rodan <kaiowas@gentoo.org> | 2006-03-31 13:47:35 +0000 |
commit | d7f0ad92af93206812bcc6cb2610ddb98d86f175 (patch) | |
tree | 9d8befcef3fb4353279af4e3ae25efe0e3c0eb52 /sys-process | |
parent | Fix bug #127980. (diff) | |
download | gentoo-2-d7f0ad92af93206812bcc6cb2610ddb98d86f175.tar.gz gentoo-2-d7f0ad92af93206812bcc6cb2610ddb98d86f175.tar.bz2 gentoo-2-d7f0ad92af93206812bcc6cb2610ddb98d86f175.zip |
added compatibility with >=policycoreutils-1.30
(Portage version: 2.1_pre6-r2)
Diffstat (limited to 'sys-process')
4 files changed, 101 insertions, 12 deletions
diff --git a/sys-process/daemontools-scripts/ChangeLog b/sys-process/daemontools-scripts/ChangeLog index 99de42b5dfdc..00d82cc2d9f8 100644 --- a/sys-process/daemontools-scripts/ChangeLog +++ b/sys-process/daemontools-scripts/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for sys-process/daemontools-scripts -# Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-process/daemontools-scripts/ChangeLog,v 1.8 2005/12/30 07:39:49 kaiowas Exp $ +# Copyright 2000-2006 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-process/daemontools-scripts/ChangeLog,v 1.9 2006/03/31 13:47:35 kaiowas Exp $ + +*daemontools-scripts-1.0.3 (31 Mar 2006) + + 31 Mar 2006; petre rodan <kaiowas@gentoo.org> + +daemontools-scripts-1.0.3.ebuild: + added compatibility with >=policycoreutils-1.30 30 Dec 2005; petre rodan <kaiowas@gentoo.org> daemontools-scripts-1.0.2.ebuild: diff --git a/sys-process/daemontools-scripts/Manifest b/sys-process/daemontools-scripts/Manifest index 1577a0ad4ae7..f29c5e6c431d 100644 --- a/sys-process/daemontools-scripts/Manifest +++ b/sys-process/daemontools-scripts/Manifest @@ -1,14 +1,18 @@ ------BEGIN PGP SIGNED MESSAGE----- -Hash: SHA1 - MD5 c1273d3368053d6da67951f878736684 ChangeLog 1609 +RMD160 359fb0d1a9a92dc3162e7361af906bd4aa5386fd ChangeLog 1609 +SHA256 59488f50457a681980cec43f3aead9fae7cef1e53d6b850dcfa4b4d377712f3a ChangeLog 1609 MD5 a3d478fd7d207573465dadefe9bc8c49 daemontools-scripts-1.0.2.ebuild 1795 +RMD160 80d61b00c9503636e87c70e3cb3bf449feb55902 daemontools-scripts-1.0.2.ebuild 1795 +SHA256 312e580391beaacb3fa814d00c05e948915012ed63103685ac477013f6cc3f6f daemontools-scripts-1.0.2.ebuild 1795 +MD5 def229f466b42324e2fe8441b246bb12 daemontools-scripts-1.0.3.ebuild 1684 +RMD160 0ab4e3c1e78eada62015966e171b15ed22efed1b daemontools-scripts-1.0.3.ebuild 1684 +SHA256 d010ee78cc81f4b1986256c7316ed80786745a6d031ae0a75bdd891a9f8403ce daemontools-scripts-1.0.3.ebuild 1684 MD5 71c7a292909d199a29725e94e98ff148 files/digest-daemontools-scripts-1.0.2 77 +RMD160 bd23f1a96cbd371e5cdb62534e297f94692abdfe files/digest-daemontools-scripts-1.0.2 77 +SHA256 659afd81c1edb1e869236177456ba599114e2c2ff20a10c1ec0ee9e7ba32bc9c files/digest-daemontools-scripts-1.0.2 77 +MD5 f1bb46336f8db9bc07b8395bb2827a6f files/digest-daemontools-scripts-1.0.3 274 +RMD160 436c3d583f188011b5b9de598dc66e6d4291fc29 files/digest-daemontools-scripts-1.0.3 274 +SHA256 623f8d2b29a4c3c1240c14936ff41073d24e064d129b680b6a242422a62def5d files/digest-daemontools-scripts-1.0.3 274 MD5 7b74ebc39d0a3ddfede1e6b4fe37dacc metadata.xml 358 ------BEGIN PGP SIGNATURE----- -Version: GnuPG v1.2.6 (GNU/Linux) - -iD8DBQFDtOSlGSBEIeh4AEYRAkvCAJ9cGjfvn1Vpt2Dk/hRfuEE1B44frQCfbwt/ -KkquboEovsum7NYxZa+H494= -=QB/Z ------END PGP SIGNATURE----- +RMD160 3c801c757537e0588a43053e99fbe29e90865986 metadata.xml 358 +SHA256 0637d557e904994f965e5f4a31789f689c359ea50eb48df3dcce8567975b4d08 metadata.xml 358 diff --git a/sys-process/daemontools-scripts/daemontools-scripts-1.0.3.ebuild b/sys-process/daemontools-scripts/daemontools-scripts-1.0.3.ebuild new file mode 100644 index 000000000000..1ed484a4b846 --- /dev/null +++ b/sys-process/daemontools-scripts/daemontools-scripts-1.0.3.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-process/daemontools-scripts/daemontools-scripts-1.0.3.ebuild,v 1.1 2006/03/31 13:47:35 kaiowas Exp $ + +inherit eutils flag-o-matic toolchain-funcs + +DESCRIPTION="gentoo specific daemontools wrapper scripts" +HOMEPAGE="http://dev.gentoo.org/~kaiowas/" +SRC_URI="mirror://gentoo/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86" +IUSE="static selinux withsamplescripts" + +RDEPEND="selinux? ( sys-apps/policycoreutils )" +DEPEND="" + +src_compile() { + use static && append-ldflags -static + + make -C ${S}/src CC="$(tc-getCC)" LD="$(tc-getCC) ${LDFLAGS}" \ + CFLAGS="${CFLAGS}" || die +} + +pkg_setup() { + + use withsamplescripts && ( echo "${CONFIG_PROTECT}" | grep '/var/service' >/dev/null || \ + if [ -d /var/service ]; then + ewarn "" + ewarn "PLEASE NOTE: You are currently using /var/service for" + ewarn "some daemontools services." + ewarn "In order to avoid damages to your system, please run" + ewarn "" + ewarn "echo 'CONFIG_PROTECT=\"/var/service\"' > /etc/env.d/51svcinit" + ewarn "env-update" + ewarn "source /etc/profile" + ewarn "" + epause 15 + fi + ) + +} + +src_install() { + into / + doenvd etc/env.d/50svcinit + dosbin sbin/* || die + dosbin src/svcinit || die + + # usage() script + exeinto /lib/rcscripts/sh + doexe lib/rcscripts/sh/* || die + + if use withsamplescripts ; then + + # fill up /var/service/* + keepdir /var/service + + cd "${S}"/var/service + + services=`find ./ -type d` + for service in ${services}; do + dodir /var/service/${item} + done + + files=`find ./ -type f` + for file in ${files}; do + path=`dirname ${file}` + exeinto /var/service/${path} + doexe ${file} + done + fi +} + + diff --git a/sys-process/daemontools-scripts/files/digest-daemontools-scripts-1.0.3 b/sys-process/daemontools-scripts/files/digest-daemontools-scripts-1.0.3 new file mode 100644 index 000000000000..8ff7a2996e2a --- /dev/null +++ b/sys-process/daemontools-scripts/files/digest-daemontools-scripts-1.0.3 @@ -0,0 +1,3 @@ +MD5 2149adde90b51b834f1a5ebde17f4bc8 daemontools-scripts-1.0.3.tar.bz2 7141 +RMD160 44969d9d34d336001c592ab8a725f686c3229cf8 daemontools-scripts-1.0.3.tar.bz2 7141 +SHA256 00f18fa7d9104ec26bb38abacdcec9a65ac2fa1b8a04ad364c0f203f9cb70806 daemontools-scripts-1.0.3.tar.bz2 7141 |