diff options
author | Ciaran McCreesh <ciaranm@gentoo.org> | 2005-03-03 18:05:46 +0000 |
---|---|---|
committer | Ciaran McCreesh <ciaranm@gentoo.org> | 2005-03-03 18:05:46 +0000 |
commit | 747ed6a93ce877f8c624293aacb62cda451eefa2 (patch) | |
tree | 3aa647a49d2a56de112167422ead659a4bc647dd | |
parent | move daemontools-scripts (diff) | |
download | historical-747ed6a93ce877f8c624293aacb62cda451eefa2.tar.gz historical-747ed6a93ce877f8c624293aacb62cda451eefa2.tar.bz2 historical-747ed6a93ce877f8c624293aacb62cda451eefa2.zip |
Moved from sys-apps/daemontools-scripts to sys-process/daemontools-scripts.
5 files changed, 126 insertions, 0 deletions
diff --git a/sys-process/daemontools-scripts/ChangeLog b/sys-process/daemontools-scripts/ChangeLog new file mode 100644 index 000000000000..44b703d9fcb6 --- /dev/null +++ b/sys-process/daemontools-scripts/ChangeLog @@ -0,0 +1,20 @@ +# ChangeLog for sys-apps/daemontools-scripts +# Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-process/daemontools-scripts/ChangeLog,v 1.1 2005/03/03 18:05:46 ciaranm Exp $ + +*daemontools-scripts-1.0.0 (03 Mar 2005) + + 03 Mar 2005; Ciaran McCreesh <ciaranm@gentoo.org> +metadata.xml, + +daemontools-scripts-1.0.0.ebuild: + Moved from sys-apps/daemontools-scripts to sys-process/daemontools-scripts. + + 07 Dec 2004; petre rodan <kaiowas@gentoo.org> + daemontools-scripts-1.0.0.ebuild: + mark stable + +*daemontools-scripts-1.0.0 (20 Nov 2004) + + 20 Nov 2004; petre rodan <kaiowas@gentoo.org> +metadata.xml, + +daemontools-scripts-1.0.0.ebuild: + initial commit + diff --git a/sys-process/daemontools-scripts/Manifest b/sys-process/daemontools-scripts/Manifest new file mode 100644 index 000000000000..f5f4011988fe --- /dev/null +++ b/sys-process/daemontools-scripts/Manifest @@ -0,0 +1,14 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +MD5 afb753c8db8ed5d702d8536085b3aebd ChangeLog 489 +MD5 71ff2d38f1eb1e676c17e8ec9bb85d10 daemontools-scripts-1.0.0.ebuild 1822 +MD5 7b74ebc39d0a3ddfede1e6b4fe37dacc metadata.xml 358 +MD5 a5bdb6713b0be3e8c4e0bf206cb393d6 files/digest-daemontools-scripts-1.0.0 76 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1.2.6 (GNU/Linux) + +iD8DBQFBtXiuGSBEIeh4AEYRAmwtAJsE7s8EPMXtpCNkCaDj5L5ag4gWVQCeLdC1 +6r62sOlLsIL/OE4knWaxpxw= +=f8u7 +-----END PGP SIGNATURE----- diff --git a/sys-process/daemontools-scripts/daemontools-scripts-1.0.0.ebuild b/sys-process/daemontools-scripts/daemontools-scripts-1.0.0.ebuild new file mode 100644 index 000000000000..1486bffe6718 --- /dev/null +++ b/sys-process/daemontools-scripts/daemontools-scripts-1.0.0.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.0.ebuild,v 1.1 2005/03/03 18:05:46 ciaranm 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="x86 ppc sparc amd64" +IUSE="static selinux withsamplescripts" + +RDEPEND="selinux? ( sys-apps/policycoreutils ) + sys-apps/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.0 b/sys-process/daemontools-scripts/files/digest-daemontools-scripts-1.0.0 new file mode 100644 index 000000000000..2d03563940c4 --- /dev/null +++ b/sys-process/daemontools-scripts/files/digest-daemontools-scripts-1.0.0 @@ -0,0 +1 @@ +MD5 1a9bdc71f66833b6f58e251bf37eb0fe daemontools-scripts-1.0.0.tar.bz2 9842 diff --git a/sys-process/daemontools-scripts/metadata.xml b/sys-process/daemontools-scripts/metadata.xml new file mode 100644 index 000000000000..b4972ae3a215 --- /dev/null +++ b/sys-process/daemontools-scripts/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>base-system</herd> +<maintainer> + <email>kaiowas@gentoo.org</email> + <description>primary maintainer</description> +</maintainer> + <longdescription>gentoo specific daemontools wrapper scripts</longdescription> +</pkgmetadata> |