summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetre Rodan <kaiowas@gentoo.org>2004-11-20 17:09:43 +0000
committerPetre Rodan <kaiowas@gentoo.org>2004-11-20 17:09:43 +0000
commit5baadd4127a08538e91b239b39c47e45d82496ef (patch)
treeaaae836368ffdc8326ffa00ebe692c7e68e0645f /sys-apps
parentadd USE flag for daemontools-scripts (diff)
downloadhistorical-5baadd4127a08538e91b239b39c47e45d82496ef.tar.gz
historical-5baadd4127a08538e91b239b39c47e45d82496ef.tar.bz2
historical-5baadd4127a08538e91b239b39c47e45d82496ef.zip
initial commit
Diffstat (limited to 'sys-apps')
-rw-r--r--sys-apps/daemontools-scripts/ChangeLog10
-rw-r--r--sys-apps/daemontools-scripts/Manifest14
-rw-r--r--sys-apps/daemontools-scripts/daemontools-scripts-1.0.0.ebuild81
-rw-r--r--sys-apps/daemontools-scripts/files/digest-daemontools-scripts-1.0.01
-rw-r--r--sys-apps/daemontools-scripts/metadata.xml10
5 files changed, 116 insertions, 0 deletions
diff --git a/sys-apps/daemontools-scripts/ChangeLog b/sys-apps/daemontools-scripts/ChangeLog
new file mode 100644
index 000000000000..dd90245eb6cb
--- /dev/null
+++ b/sys-apps/daemontools-scripts/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for sys-apps/daemontools-scripts
+# Copyright 2000-2004 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/daemontools-scripts/ChangeLog,v 1.1 2004/11/20 17:09:43 kaiowas Exp $
+
+*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-apps/daemontools-scripts/Manifest b/sys-apps/daemontools-scripts/Manifest
new file mode 100644
index 000000000000..9e6ede3f3ca0
--- /dev/null
+++ b/sys-apps/daemontools-scripts/Manifest
@@ -0,0 +1,14 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+MD5 c1cf83178e617c05d97e58ffa91e3ee7 ChangeLog 390
+MD5 7b74ebc39d0a3ddfede1e6b4fe37dacc metadata.xml 358
+MD5 07226c6257ad9ceeba906dc8f08eed24 daemontools-scripts-1.0.0.ebuild 1826
+MD5 a5bdb6713b0be3e8c4e0bf206cb393d6 files/digest-daemontools-scripts-1.0.0 76
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.2.6 (GNU/Linux)
+
+iD8DBQFBn3F9GSBEIeh4AEYRAjUcAJ9Bpxw84TPqhDQ8Q6XBa/xKbs05agCfYkT/
+c8+6pAeA7lVF+dV7/87TMHE=
+=SXzP
+-----END PGP SIGNATURE-----
diff --git a/sys-apps/daemontools-scripts/daemontools-scripts-1.0.0.ebuild b/sys-apps/daemontools-scripts/daemontools-scripts-1.0.0.ebuild
new file mode 100644
index 000000000000..f85cfe3a15a0
--- /dev/null
+++ b/sys-apps/daemontools-scripts/daemontools-scripts-1.0.0.ebuild
@@ -0,0 +1,81 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/daemontools-scripts/daemontools-scripts-1.0.0.ebuild,v 1.1 2004/11/20 17:09:43 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="~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-apps/daemontools-scripts/files/digest-daemontools-scripts-1.0.0 b/sys-apps/daemontools-scripts/files/digest-daemontools-scripts-1.0.0
new file mode 100644
index 000000000000..2d03563940c4
--- /dev/null
+++ b/sys-apps/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-apps/daemontools-scripts/metadata.xml b/sys-apps/daemontools-scripts/metadata.xml
new file mode 100644
index 000000000000..b4972ae3a215
--- /dev/null
+++ b/sys-apps/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>