From dom@myrddin.demon.co.uk  Tue Jun  9 07:50:26 1998
Received: from myrddin.demon.co.uk (exim@myrddin.demon.co.uk [158.152.54.180])
          by hub.freebsd.org (8.8.8/8.8.8) with SMTP id HAA09397
          for <FreeBSD-gnats-submit@freebsd.org>; Tue, 9 Jun 1998 07:50:18 -0700 (PDT)
          (envelope-from dom@myrddin.demon.co.uk)
Received: from dom by myrddin.demon.co.uk with local (Exim 1.80 #1)
	id 0yjPiM-0002Uc-00; Tue, 9 Jun 1998 15:49:30 +0100
Message-Id: <E0yjPiM-0002Uc-00.qmail@myrddin.demon.co.uk>
Date: Tue, 9 Jun 1998 15:49:30 +0100
From: dom@myrddin.demon.co.uk
Reply-To: dom@myrddin.demon.co.uk
To: FreeBSD-gnats-submit@freebsd.org
Subject: new port - please commit!
X-Send-Pr-Version: 3.2

>Number:         6899
>Category:       ports
>Synopsis:       new port - please commit!
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    dburr
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jun  9 08:00:01 PDT 1998
>Closed-Date:    Tue Jun 16 09:50:06 MEST 1998
>Last-Modified:  Tue Jun 16 09:52:47 MEST 1998
>Originator:     Dom Mitchell
>Release:        FreeBSD 3.0-CURRENT i386
>Organization:
Big orange angry things, inc.
>Environment:

FreeBSD myrddin.demon.co.uk 3.0-CURRENT FreeBSD 3.0-CURRENT #0: Sun Apr 26 18:11
:38 BST 1998     dom@myrddin.demon.co.uk:/usr/src/sys/compile/MYRDDIN  i386

>Description:

Daemontools is a small set of /very/ useful utilities, from Dan 
Bernstein.  They are mainly used for controlling processes, and 
maintaining logfiles.

One thing to note is that because of Dan's usual uncertainty over 
licensing, I have made this a NO_PACKAGE port.  For more details, have a
look at http://www.pobox.com/~djb/djb.html, and look under the
"software" link, down near the bottom.  My interpretation of this says
that says that a port is OK, a package is not.

>How-To-Repeat:

Unshar, make install.

>Fix:

N/A

Here's the actual shar itself:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	daemontools
#	daemontools/Makefile
#	daemontools/files
#	daemontools/files/md5
#	daemontools/pkg
#	daemontools/pkg/DESCR
#	daemontools/pkg/COMMENT
#	daemontools/pkg/PLIST
#	daemontools/scripts
#	daemontools/scripts/configure
#
echo c - daemontools
mkdir -p daemontools > /dev/null 2>&1
echo x - daemontools/Makefile
sed 's/^X//' >daemontools/Makefile << 'END-of-daemontools/Makefile'
X# New ports collection makefile for:	daemontools
X# Version required:     0.53
X# Date created:		09 June 1998
X# Whom:			Dom Mitchell <dom@myrddin.demon.co.uk>
X#
X# $Id$
X#
X
XDISTNAME=	daemontools-0.53
XCATEGORIES=	sysutils
XMASTER_SITES=   ftp://koobera.math.uic.edu/www/software/
X
XNO_PACKAGE=	Unsure of djb's license
X
XMAINTAINER=     dom@myrddin.demon.co.uk
X
XALL_TARGET=	it man
XINSTALL_TARGET=	setup
X
XSCRIPTS_ENV=	BINOWN="${BINOWN}" BINGRP="${BINGRP}" BINMODE="${BINMODE}" \
X		MANMODE="${MANMODE}" CFLAGS="${CFLAGS}"
X
XMAN1= accustamp.1 cyclog.1 errorsto.1 fifo.1 setuser.1 supervise.1 svc.1 \
X	svstat.1 tailocal.1 testfilelock.1 usually.1
X
X.include <bsd.port.mk>
END-of-daemontools/Makefile
echo c - daemontools/files
mkdir -p daemontools/files > /dev/null 2>&1
echo x - daemontools/files/md5
sed 's/^X//' >daemontools/files/md5 << 'END-of-daemontools/files/md5'
XMD5 (daemontools-0.53.tar.gz) = e9c5817525ea138e8a143392b3ea8f6a
END-of-daemontools/files/md5
echo c - daemontools/pkg
mkdir -p daemontools/pkg > /dev/null 2>&1
echo x - daemontools/pkg/DESCR
sed 's/^X//' >daemontools/pkg/DESCR << 'END-of-daemontools/pkg/DESCR'
XFrom the BLURB file in the distribution:
X
X------------------------------------------------------------------------
Xsupervise monitors a service. It starts the service and restarts the
Xservice if it dies. The companion svc program stops, pauses, or restarts
Xthe service on sysadmin request. The svstat program prints a one-line
Xstatus report.
X
Xcyclog writes a log to disk. It automatically synchronizes the log every
X100KB (by default) to guarantee data integrity after a crash. It
Xautomatically rotates the log to keep it below 1MB (by default). If the
Xdisk fills up, cyclog pauses and then tries again, without losing any
Xdata.
X
Xaccustamp puts a precise timestamp on each line of input. The timestamp
Xis a numeric TAI timestamp with microsecond precision. The companion
Xtailocal program converts TAI timestamps to local time.
X
Xusually watches a log for lines that do not match specified patterns,
Xcopying those lines to stderr. The companion errorsto program redirects
Xstderr to a file.
X
Xsetuser runs a program under a user's uid and gid. Unlike su, setuser
Xdoes not gain privileges; it does not check passwords, and it cannot be
Xrun except by root.
X------------------------------------------------------------------------
X
XSee http://pobox.com/~djb/daemontools.html for updates.
X
X-Dom <dom@myrddin.demon.co.uk>
END-of-daemontools/pkg/DESCR
echo x - daemontools/pkg/COMMENT
sed 's/^X//' >daemontools/pkg/COMMENT << 'END-of-daemontools/pkg/COMMENT'
XService monitoring and logging utilities by djb.
END-of-daemontools/pkg/COMMENT
echo x - daemontools/pkg/PLIST
sed 's/^X//' >daemontools/pkg/PLIST << 'END-of-daemontools/pkg/PLIST'
Xbin/supervise
Xbin/svc
Xbin/svstat
Xbin/testfilelock
Xbin/fifo
Xbin/cyclog
Xbin/errorsto
Xbin/usually
Xbin/accustamp
Xbin/tailocal
Xbin/setuser
Xman/man1/supervise.1.gz
Xman/man1/svc.1.gz
Xman/man1/svstat.1.gz
Xman/man1/testfilelock.1.gz
Xman/man1/fifo.1.gz
Xman/man1/cyclog.1.gz
Xman/man1/errorsto.1.gz
Xman/man1/usually.1.gz
Xman/man1/accustamp.1.gz
Xman/man1/tailocal.1.gz
Xman/man1/setuser.1.gz
END-of-daemontools/pkg/PLIST
echo c - daemontools/scripts
mkdir -p daemontools/scripts > /dev/null 2>&1
echo x - daemontools/scripts/configure
sed 's/^X//' >daemontools/scripts/configure << 'END-of-daemontools/scripts/configure'
X#!/bin/sh
X#
X# Set up daemontools for the *BSD environment...
X#
X# @(#) $Id$
X#
X
X# Tune the options we're given.
Xecho ${PREFIX}/bin > ${WRKSRC}/conf-bin
Xecho ${PREFIX}/man > ${WRKSRC}/conf-man
Xecho cc ${CFLAGS} > ${WRKSRC}/conf-cc
X
X# Set up binaries correctly.
Xawk 'BEGIN {
X	FS=":"
X	OFS=":"
X}
X$1 == "c" {
X	if ($6 == "setuser") {
X		$2 = "0"
X		$3 = "0"
X	} else {
X		$2 = bu
X		$3 = bg
X		$4 = bm
X	}
X	print
X	next
X}
X{
X	print
X}' bu=`id -u ${BINOWN}` bg=`id -g ${BINGRP}` bm=${BINMODE} \
X    ${WRKSRC}/BIN > ${WRKSRC}/BIN.tmp
Xmv ${WRKSRC}/BIN.tmp ${WRKSRC}/BIN
X
X# Set up man pages correctly.
Xawk 'BEGIN {
X	FS=":"
X	OFS=":"
X}
X# Dispose of preformatted man pages.
X$5 ~ "cat" {
X	next
X}
X$1 == "c" {
X	$2 = bu
X	$3 = bg
X	$4 = mm
X	print
X	next
X}
X{
X	print
X}' bu=`id -u ${BINOWN}` bg=`id -g ${BINGRP}` mm=${MANMODE} \
X    ${WRKSRC}/MAN > ${WRKSRC}/MAN.tmp
Xmv ${WRKSRC}/MAN.tmp ${WRKSRC}/MAN
END-of-daemontools/scripts/configure
exit

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports->dburr 
Responsible-Changed-By: dburr 
Responsible-Changed-When: Tue Jun 9 20:02:54 PDT 1998 
Responsible-Changed-Why:  
Looks pretty interesting.  I'll check it out. 
State-Changed-From-To: open->closed 
State-Changed-By: dburr 
State-Changed-When: Tue Jun 16 09:50:06 MEST 1998 
State-Changed-Why:  
Imported with a few minor stylistic changes, Thanks! 
* pkg/DESCR was too long -- 24 lines maximum. 
* The sections in Makefile were slightly out of order. 
Read the Handbook section in porting (17.2.5) for more info. 
It is also suggested that you run ports through portlint ( 
(/usr/ports/devel/portlint) before send-pr'ing them, it will 
catch a lot of both serious and stylistic oopses. 

Your name will be added to the FreeBSD Handbook's "Additional 
Contributors" section.  Thanks! 
>Unformatted:
