diff options
author | Mike Frysinger <vapier@gentoo.org> | 2003-02-27 06:25:28 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2003-02-27 06:25:28 +0000 |
commit | a06183fa80a0464f25a1e06cc91e4b0af8408bef (patch) | |
tree | c29cc68644990705e2758df0ed18d3d835bd9687 /sys-apps/daemontools | |
parent | errno patch for #16396 (#16267) (diff) | |
download | gentoo-2-a06183fa80a0464f25a1e06cc91e4b0af8408bef.tar.gz gentoo-2-a06183fa80a0464f25a1e06cc91e4b0af8408bef.tar.bz2 gentoo-2-a06183fa80a0464f25a1e06cc91e4b0af8408bef.zip |
errno patch for #16396 (#16267)
Diffstat (limited to 'sys-apps/daemontools')
-rw-r--r-- | sys-apps/daemontools/daemontools-0.76-r3.ebuild | 53 | ||||
-rw-r--r-- | sys-apps/daemontools/files/svscan | 29 |
2 files changed, 53 insertions, 29 deletions
diff --git a/sys-apps/daemontools/daemontools-0.76-r3.ebuild b/sys-apps/daemontools/daemontools-0.76-r3.ebuild new file mode 100644 index 000000000000..b40506af4b1d --- /dev/null +++ b/sys-apps/daemontools/daemontools-0.76-r3.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/daemontools/daemontools-0.76-r3.ebuild,v 1.1 2003/02/27 06:25:28 vapier Exp $ + +inherit eutils + +DESCRIPTION="Collection of tools for managing UNIX services" +SRC_URI="http://cr.yp.to/daemontools/${P}.tar.gz" +HOMEPAGE="http://cr.yp.to/daemontools.html" + +KEYWORDS="x86 ppc sparc" +SLOT="0" +LICENSE="freedist" + +DEPEND="virtual/glibc" + +S=${WORKDIR}/admin/${P} + +src_unpack() { + unpack ${A} + cd ${S} + epatch ${FILESDIR}/${PV}-errno.patch + + use static && LDFLAGS="${LDFLAGS} -static" + + echo "gcc ${CFLAGS}" > src/conf-cc + echo "gcc ${LDFLAGS}" > src/conf-ld + echo ${S} > src/home +} + +src_compile() { + cd ${S}/src + emake || die "make failed" +} + +src_install() { + einfo "Creating service directory ..." + dodir /service + touch ${D}/service/.keep + + einfo "Installing package ..." + cd ${S}/src + exeinto /usr/bin + for x in `cat ../package/commands` + do + doexe $x + done + + dodoc CHANGES ../package/README TODO + + exeinto /etc/init.d + doexe ${FILESDIR}/svscan svscan +} diff --git a/sys-apps/daemontools/files/svscan b/sys-apps/daemontools/files/svscan deleted file mode 100644 index 74389b5e7577..000000000000 --- a/sys-apps/daemontools/files/svscan +++ /dev/null @@ -1,29 +0,0 @@ -#!/sbin/runscript -# Copyright 1999-2003 Gentoo Technologies, Inc. -# Distributed under the terms of the GNU General Public License, v2 or later -# $Header: /var/cvsroot/gentoo-x86/sys-apps/daemontools/files/svscan,v 1.5 2003/02/14 23:12:11 vapier Exp $ - -depend() { - need net -} - -start() { - ebegin "Starting service scan..." - PATH="/usr/bin:$PATH" - start-stop-daemon --start --quiet --exec /usr/bin/svscan --pidfile /var/run/svscan.pid -- /service & - echo $! > /var/run/svscan.pid - eend $? -} - -stop() { - ebegin "Stopping service scan..." - start-stop-daemon --stop --quiet --pidfile /var/run/svscan.pid - eend $? - ebegin "Stopping services..." - svc -dx /service/* - eend $? - ebegin "Stopping service logging..." - svc -dx /service/*/log - eend $? -} - |