From chip@kaluga.net  Wed Jan  7 06:12:27 2004
Return-Path: <chip@kaluga.net>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 5073E16A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Wed,  7 Jan 2004 06:12:27 -0800 (PST)
Received: from basic.maxnet.ru (mx.maxnet.ru [195.112.97.17])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 3C5A343D41
	for <FreeBSD-gnats-submit@freebsd.org>; Wed,  7 Jan 2004 06:12:24 -0800 (PST)
	(envelope-from chip@kaluga.net)
Received: from void.su (client17.m-pool-2.maxnet.ru [195.112.114.81] (may be forged))
	by basic.maxnet.ru (8.11.3/8.11.3) with ESMTP id i07ECKZ06812
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 7 Jan 2004 17:12:21 +0300 (MSK)
	(envelope-from chip@kaluga.net)
Received: by void.su (Postfix, from userid 1000)
	id 946A5446; Wed,  7 Jan 2004 18:17:55 +0300 (MSK)
Message-Id: <20040107151755.946A5446@void.su>
Date: Wed,  7 Jan 2004 18:17:55 +0300 (MSK)
From: Nosov Artem <chip-set@mail.ru>
Reply-To: Nosov Artem <chip-set@mail.ru>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: New port: sysutils/daemon - turns other processes into daemons
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         61015
>Category:       ports
>Synopsis:       New port: sysutils/daemon - turns other processes into daemons
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    sergei
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jan 07 06:20:12 PST 2004
>Closed-Date:    Sat Feb 28 15:19:34 PST 2004
>Last-Modified:  Sat Feb 28 15:19:34 PST 2004
>Originator:     Nosov Artem
>Release:        FreeBSD 4.8-RELEASE i386
>Organization:
ASC
>Environment:
FreeBSD 4.8-RELEASE

	
>Description:

New port: sysutils/daemon - turns other processes into daemons

Daemon turns other processes into daemons. There are many tasks that need to
be performed to correctly set up a daemon process. This can be tedious.
Daemon performs these tasks for other processes. This is useful for writing
daemons in languages other than C, C++ or Perl (e.g. /bin/sh, Java).

So... how is this better than daemon(8) ?
- supports a setuid/setgid
- revokes any suid or sigd priviliges to reduce security risk
- prevents the generation of core file (optional)
- supports for chroot environment
- allow respawn the client process when it terminates
- supports for pidfile and lock files
- output of client stderr/stdout can be redirected to syslog or file
- supports restart/stop/running command line options
- supports configuration file to define default options
- other impovements see daemon(1)

>How-To-Repeat:
	
>Fix:

	

--- daemon.shar begins here ---
# 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:
#
#	daemon/
#	daemon/Makefile
#	daemon/distinfo
#	daemon/pkg-descr
#	daemon/pkg-plist
#
echo c - daemon/
mkdir -p daemon/ > /dev/null 2>&1
echo x - daemon/Makefile
sed 's/^X//' >daemon/Makefile << 'END-of-daemon/Makefile'
X# New ports collection makefile for:	daemon
X# Date created:				7 January 2004
X# Whom:					Nosov Artem <chip-set@mail.ru>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	daemon
XPORTVERSION=	0.6.2
XCATEGORIES=	sysutils
XMASTER_SITES=	http://libslack.org/daemon/download/
X
XMAINTAINER=	chip-set@mail.ru
XCOMMENT=	Turns other processes into daemons
X
XUSE_GMAKE=	yes
XUSE_PERL5_BUILD=	yes
X
XMANCOMPRESSED=	yes
XMAN1=		daemon.1
X# Really daemon.conf.5 is symbolic link to daemon.1 buf we can't use MLINK
X# via it location is man/man5 directory
XMAN5=		daemon.conf.5
X
Xpre-build:
X	@(cd ${WRKSRC} && ./config)
X
Xpost-install:
X.if !defined(NOPORTDOCS)
X	@${MKDIR} ${DOCSDIR}
X.for file in README
X	@${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
X.endfor
X.endif
X
X.include <bsd.port.mk>
END-of-daemon/Makefile
echo x - daemon/distinfo
sed 's/^X//' >daemon/distinfo << 'END-of-daemon/distinfo'
XMD5 (daemon-0.6.2.tar.gz) = 322e474d52feb9773f50b906c441ec82
END-of-daemon/distinfo
echo x - daemon/pkg-descr
sed 's/^X//' >daemon/pkg-descr << 'END-of-daemon/pkg-descr'
XDaemon turns other processes into daemons. There are many tasks that need to
Xbe performed to correctly set up a daemon process. This can be tedious.
XDaemon performs these tasks for other processes. This is useful for writing
Xdaemons in languages other than C, C++ or Perl (e.g. /bin/sh, Java).
X
XSo... how is this better than daemon(8) ?
X- supports a setuid/setgid
X- revokes any suid or sigd priviliges to reduce security risk
X- prevents the generation of core file (optional)
X- supports for chroot environment
X- allow respawn the client process when it terminates
X- supports for pidfile and lock files
X- output of client stderr/stdout can be redirected to syslog or file
X- supports restart/stop/running command line options
X- supports configuration file to define default options
X- other impovements see daemon(1)
X
X- Nosov Artem
Xchip-set@mail.ru
END-of-daemon/pkg-descr
echo x - daemon/pkg-plist
sed 's/^X//' >daemon/pkg-plist << 'END-of-daemon/pkg-plist'
Xbin/daemon
X%%PORTDOCS%%share/doc/daemon/README
X%%PORTDOCS%%@dirrm share/doc/daemon
END-of-daemon/pkg-plist
exit
--- daemon.shar ends here ---


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->sergei 
Responsible-Changed-By: sergei 
Responsible-Changed-When: Wed Jan 7 11:09:43 PST 2004 
Responsible-Changed-Why:  
Take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=61015 
State-Changed-From-To: open->feedback 
State-Changed-By: sergei 
State-Changed-When: Wed Jan 14 06:57:04 PST 2004 
State-Changed-Why:  
Awaiting submitter's feedback re: compile problems on -CURRENT. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=61015 

From: Sergei Kolobov <sergei@FreeBSD.org>
To: Nosov Artem <chip-set@mail.ru>
Cc: FreeBSD-gnats-submit@FreeBSD.org
Subject: Re: ports/61015: New port: sysutils/daemon - turns other processes into daemons
Date: Wed, 14 Jan 2004 17:56:27 +0300

 Artem,
 
 The port fails to compile under -CURRENT:
 
 ===>  Building for daemon-0.6.2
 gcc -DDAEMON_NAME=\"daemon\" -DDAEMON_VERSION=\"0.6.2\" -DDAEMON_DATE=\"20040102\" -DDAEMON_URL=\"http://libslack.org/daemon/\" -DHAVE_SNPRINTF=1 -DHAVE_VSSCANF=1 -DHAVE_PTHREAD_RWLOCK=1 -DNO_POSIX_SOURCE=1 -DNO_XOPEN_SOURCE=1  -Ilibslack -Wall -pedantic -o daemon.o -c daemon.c
 daemon.c: In function `handle_pidfile_option':
 daemon.c:933: warning: implicit declaration of function `snprintf'
 daemon.c: In function `prepare_child':
 daemon.c:1986: error: `SIGWINCH' undeclared (first use in this function)
 daemon.c:1986: error: (Each undeclared identifier is reported only once
 daemon.c:1986: error: for each function it appears in.)
 daemon.c: In function `spawn_child':
 daemon.c:2085: error: `SIGWINCH' undeclared (first use in this function)
 gmake: *** [daemon.o] Error 1
 
 Can you please investigate and fix it? Thanks.
 
 Sergei
State-Changed-From-To: feedback->closed 
State-Changed-By: pav 
State-Changed-When: Sat Feb 28 15:19:20 PST 2004 
State-Changed-Why:  
Feedback timeout (1.5 month) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=61015 
>Unformatted:
