diff options
author | Petre Rodan <kaiowas@gentoo.org> | 2005-08-06 11:10:14 +0000 |
---|---|---|
committer | Petre Rodan <kaiowas@gentoo.org> | 2005-08-06 11:10:14 +0000 |
commit | f6b253b5ab99bdd51c6ccf9fe4ec3029f0d760f8 (patch) | |
tree | e1e546d9a0917d4344552f95b13ad198e61f782a /sys-process | |
parent | Added ~mips. (diff) | |
download | historical-f6b253b5ab99bdd51c6ccf9fe4ec3029f0d760f8.tar.gz historical-f6b253b5ab99bdd51c6ccf9fe4ec3029f0d760f8.tar.bz2 historical-f6b253b5ab99bdd51c6ccf9fe4ec3029f0d760f8.zip |
added scripts from bug #28940 and #28945, usage script rewritten
Package-Manager: portage-2.0.51.22-r2
Diffstat (limited to 'sys-process')
4 files changed, 95 insertions, 5 deletions
diff --git a/sys-process/daemontools-scripts/ChangeLog b/sys-process/daemontools-scripts/ChangeLog index 493e7c8d3c75..e0a3723fafb3 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.5 2005/05/16 09:43:33 kaiowas Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-process/daemontools-scripts/ChangeLog,v 1.6 2005/08/06 11:10:14 kaiowas Exp $ + +*daemontools-scripts-1.0.2 (06 Aug 2005) + + 06 Aug 2005; petre rodan <kaiowas@gentoo.org> + +daemontools-scripts-1.0.2.ebuild: + added scripts from bug #28940 and #28945, usage script rewritten 16 May 2005; petre rodan <kaiowas@gentoo.org> daemontools-scripts-1.0.1.ebuild: diff --git a/sys-process/daemontools-scripts/Manifest b/sys-process/daemontools-scripts/Manifest index 1771ee29b18f..133263664e31 100644 --- a/sys-process/daemontools-scripts/Manifest +++ b/sys-process/daemontools-scripts/Manifest @@ -1,16 +1,18 @@ -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 -MD5 b65bffe774e48186bc04b4f2c37e6001 ChangeLog 1102 +MD5 a50f900fb93cc0db6fad21a7a902e189 ChangeLog 1297 MD5 d8f38699e78ad4853b74158c230c4de4 daemontools-scripts-1.0.0.ebuild 1828 MD5 7b74ebc39d0a3ddfede1e6b4fe37dacc metadata.xml 358 MD5 4d48fff51ffadf959938c4c3c07bb587 daemontools-scripts-1.0.1.ebuild 1828 +MD5 659d34839f074ba9eecf0347bb73dd37 daemontools-scripts-1.0.2.ebuild 1869 MD5 a5bdb6713b0be3e8c4e0bf206cb393d6 files/digest-daemontools-scripts-1.0.0 76 MD5 c656c3f7edfa35b4dd3006b0b36637ec files/digest-daemontools-scripts-1.0.1 76 +MD5 71c7a292909d199a29725e94e98ff148 files/digest-daemontools-scripts-1.0.2 77 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (GNU/Linux) -iD8DBQFCiG9BGSBEIeh4AEYRAvMyAKCFay64Ponb2+lFU1sQK7z0WIFY7ACfWxDx -GFLPiQK5SKxSlV3uA+Tla30= -=mc9L +iD8DBQFC9JlxGSBEIeh4AEYRAsfjAJ9R3aWYPjqZQThiPK1fEc5vweX2sQCdFMq0 +pfWgTzBWVMAQ0BnRkXDi5Zg= +=FN7g -----END PGP SIGNATURE----- diff --git a/sys-process/daemontools-scripts/daemontools-scripts-1.0.2.ebuild b/sys-process/daemontools-scripts/daemontools-scripts-1.0.2.ebuild new file mode 100644 index 000000000000..9d17d3e0cfcb --- /dev/null +++ b/sys-process/daemontools-scripts/daemontools-scripts-1.0.2.ebuild @@ -0,0 +1,81 @@ +# Copyright 1999-2005 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.2.ebuild,v 1.1 2005/08/06 11:10:14 kaiowas Exp $ + +inherit eutils flag-o-matic + +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 ) + sys-process/daemontools" +DEPEND="" + +src_compile() { + use static && append-ldflags -static + + make -C ${S}/src CC="${CC:-gcc}" LD="${CC:-gcc} ${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 ${S}/etc/env.d/50svcinit + dosbin ${S}/sbin/* + dosbin ${S}/src/svcinit + + # usage() script + exeinto /lib/rcscripts/sh + doexe ${S}/lib/rcscripts/sh/* + + # this directory is targeted by daemontools + keepdir /service + + use withsamplescripts && ( + + # 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 + ) +} + + diff --git a/sys-process/daemontools-scripts/files/digest-daemontools-scripts-1.0.2 b/sys-process/daemontools-scripts/files/digest-daemontools-scripts-1.0.2 new file mode 100644 index 000000000000..38d639b162e2 --- /dev/null +++ b/sys-process/daemontools-scripts/files/digest-daemontools-scripts-1.0.2 @@ -0,0 +1 @@ +MD5 ee40aff24e928cd673338628e2242697 daemontools-scripts-1.0.2.tar.bz2 10256 |