Summary: | daemontools-0.76-r2.build (improved) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Thilo Bangert (RETIRED) (RETIRED) <bangert> |
Component: | New packages | Assignee: | Thilo Bangert (RETIRED) (RETIRED) <bangert> |
Status: | RESOLVED INVALID | ||
Severity: | normal | ||
Priority: | High | ||
Version: | 1.0 RC6 r14 | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Thilo Bangert (RETIRED) (RETIRED)
2002-03-02 09:26:05 UTC
i am not sure if i understood SVCDIR's function correctly, but SVCDIR=/service would be a lot better Thilo and then, most of this would need reworked again :-( i am sorry... but i could do that if you want me too Thilo Hi, okay - now for the real thing! this defines SVCDIR to be /service (this is how it is now) - it also uses SVCDIR in the startup scripts effectivly making it configurable what is SVCDIR in /etc/init.d/functions.sh good for anyway???? == daemontools-0.76-r2.ebuild =========== # Copyright 1999-2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later # Maintainer: Geert Bevin <gbevin@theleaf.be> # /space/gentoo/cvsroot/gentoo-x86/sys-apps/daemontools/daemontools-0.76-r1.ebuild,v 1.2 2001/12/31 23:47:55 azarah Exp S=${WORKDIR}/admin/${P} 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" DEPEND="virtual/glibc" src_unpack() { unpack ${A} cd ${S} echo "gcc ${CFLAGS}" > src/conf-cc echo "gcc" > src/conf-ld echo ${S} > src/home } src_compile() { cd ${S}/src emake || die } src_install() { einfo "Installing package ..." cd ${S}/src exeinto /usr/bin for x in `cat ../package/commands` do doexe $x done dodoc CHANGES ../package/README TODO einfo "Installing the svscan startup file ..." exeinto /etc/init.d newexe ${FILESDIR}/svscan-r2 svscan insinto /etc/conf.d newins ${FILESDIR}/svscan.conf.d svscan } pkg_postinst() { echo einfo "Please configure daemontools in /etc/conf.d/svscan!" echo } == files/svscan.conf.d ============== #Supervise Dir # the directory where services are installed # and then linked to /service # SVCDIR=/service #default SVCDIR=/service == files/svscan.rc ========= #!/sbin/runscript # Copyright 1999-2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later # /space/gentoo/cvsroot/gentoo-x86/sys-apps/daemontools/files/svscan,v 1.2 2001/12/06 20:17:02 azarah Exp #NB: config is in /etc/conf.d/svscan depend() { need net } start() { if [ ! -e $SVCDIR ] then einfo "Creating service directory ( $SVCDIR )..." mkdir $SVCDIR fi ebegin "Starting service scan ..." PATH="/usr/bin:$PATH" cd $SVCDIR start-stop-daemon --start --quiet --exec /usr/bin/svscan -- & echo $! > /var/run/svscan.pid eend $? } stop() { ebegin "Stopping service scan ..." start-stop-daemon --stop --quiet --pid /var/run/svscan.pid eend $? if [ -e ${SVCDIR}/* ] then ebegin "Stopping services ..." svc -dx ${SVCDIR}/* eend $? ebegin "Stopping service logging ..." svc -dx ${SVCDIR}/*/log eend $? fi } ======= |