diff options
author | Roy Marples <uberlord@gentoo.org> | 2005-12-11 09:49:54 +0000 |
---|---|---|
committer | Roy Marples <uberlord@gentoo.org> | 2005-12-11 09:49:54 +0000 |
commit | b4c1a62f7352abd666f285a62e8120db1ac9677d (patch) | |
tree | 329b7c4bbf062b4668dc7085b61b40afe638c4cb /sys-process/daemontools/daemontools-0.76-r5.ebuild | |
parent | stable amd64 (diff) | |
download | gentoo-2-b4c1a62f7352abd666f285a62e8120db1ac9677d.tar.gz gentoo-2-b4c1a62f7352abd666f285a62e8120db1ac9677d.tar.bz2 gentoo-2-b4c1a62f7352abd666f285a62e8120db1ac9677d.zip |
Init script actually works now, #112950.
(Portage version: 2.0.51.22-r3)
Diffstat (limited to 'sys-process/daemontools/daemontools-0.76-r5.ebuild')
-rw-r--r-- | sys-process/daemontools/daemontools-0.76-r5.ebuild | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/sys-process/daemontools/daemontools-0.76-r5.ebuild b/sys-process/daemontools/daemontools-0.76-r5.ebuild new file mode 100644 index 000000000000..10db8ba2ebad --- /dev/null +++ b/sys-process/daemontools/daemontools-0.76-r5.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-process/daemontools/daemontools-0.76-r5.ebuild,v 1.1 2005/12/11 09:49:54 uberlord Exp $ + +inherit eutils toolchain-funcs + +DESCRIPTION="Collection of tools for managing UNIX services" +HOMEPAGE="http://cr.yp.to/daemontools.html" +SRC_URI="http://cr.yp.to/daemontools/${P}.tar.gz" + +LICENSE="freedist" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 m68k mips ppc ppc64 s390 sh sparc x86" +IUSE="selinux static doc" + +DEPEND="virtual/libc" +RDEPEND="selinux? ( sec-policy/selinux-daemontools ) + doc? ( app-doc/daemontools-man )" + +S=${WORKDIR}/admin/${P} + +src_unpack() { + unpack ${A} + cd ${S} + epatch ${FILESDIR}/${PV}-errno.patch + epatch ${FILESDIR}/${PV}-head-1.patch + + use static && LDFLAGS="${LDFLAGS} -static" + + echo "$(tc-getCC) ${CFLAGS}" > src/conf-cc + echo "$(tc-getCC) ${LDFLAGS}" > src/conf-ld + echo ${S} > src/home +} + +src_compile() { + cd ${S}/src + emake || die "make failed" +} + +src_install() { + einfo "Creating service directory ..." + keepdir /service + + einfo "Installing package ..." + cd ${S}/src + exeinto /usr/bin + for x in `cat ../package/commands` ; do + doexe $x || die + done + + dodoc CHANGES ../package/README TODO + + newinitd ${FILESDIR}/svscan.init svscan +} + +pkg_postinst() { + einfo "You can run daemontools using the svscan init.d script," + einfo "or you could run it through inittab." + einfo "To use inittab, emerge supervise-scripts and run:" + einfo "svscan-add-to-inittab" + einfo "Then you can hup init with the command telinit q" +} |