ports/61015: New port: sysutils/daemon - turns other processes into daemons
Nosov Artem
chip-set at mail.ru
Wed Jan 7 14:20:16 UTC 2004
>Number: 61015
>Category: ports
>Synopsis: New port: sysutils/daemon - turns other processes into daemons
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Wed Jan 07 06:20:12 PST 2004
>Closed-Date:
>Last-Modified:
>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 at 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 at 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 at 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:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list