From owner-freebsd-ports-bugs Wed Jan 15 23:20: 6 2003 Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1D1AD37B401 for ; Wed, 15 Jan 2003 23:20:03 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9720543F1E for ; Wed, 15 Jan 2003 23:20:02 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id h0G7K2NS028237 for ; Wed, 15 Jan 2003 23:20:02 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id h0G7K2uV028236; Wed, 15 Jan 2003 23:20:02 -0800 (PST) Date: Wed, 15 Jan 2003 23:20:02 -0800 (PST) Message-Id: <200301160720.h0G7K2uV028236@freefall.freebsd.org> To: freebsd-ports-bugs@FreeBSD.org Cc: From: "Simon 'corecode' Schubert" Subject: Re: ports/47128: New port: hybserv (irc services for ircd-hybrid) Reply-To: "Simon 'corecode' Schubert" Sender: owner-freebsd-ports-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR ports/47128; it has been noted by GNATS. From: "Simon 'corecode' Schubert" To: Rick Fournier Cc: FreeBSD-gnats-submit@FreeBSD.org Subject: Re: ports/47128: New port: hybserv (irc services for ircd-hybrid) Date: Thu, 16 Jan 2003 08:19:59 +0100 --=.d2R7b4E9rMMvoS Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Lately Rick Fournier told: > sed 's/^X//' >hybserv/files/hybserv.sh << 'END-of-hybserv/files/hybserv.sh' > X#!/bin/sh > Xif [ $# -eq 0 -o x$1 = xstart ]; then ^^^^^^^^^^^ are you sure the users want this? POLA say: just start when requested :) i'd output options (= start|stop|restart?) when $# == 0 > X if [ -x %PREFIX%/hybserv/hybserv ]; then > X su -fm hybserv -c %PREFIX%/hybserv/hybserv && echo ' hybserv' > X fi > Xfi > Xif [ x$1 = xstop ]; then > X if [ -f %PREFIX%/hybserv/hybserv.pid ]; then > X kill `cat %PREFIX%/hybserv/hybserv.pid` i don't know hybserv, but is it possible to write the pid to /var/run/? this allows people to let ${PREFIX}/hybserv to be mounted ro [...] > sed 's/^X//' >hybserv/pkg-descr << 'END-of-hybserv/pkg-descr' > XHybServ was specifically designed to run with hybrid ircd, although it > X*should* work with CSr as well. These services (more or less same code) > Xare currently used by EFNet / DalNet / ICQ / WFNet / HybNet / > XEFNow / Openprojects Network. ^^^^^^^^^^^^^^^^^^^^ now freenode? > sed 's/^X//' >hybserv/pkg-install << 'END-of-hybserv/pkg-install' [...] > X pw groupadd hybserv -g 73 || exit [...] > X pw useradd hybserv -g hybserv -u 73 -h - -d /nonexistent \ > X -s /nonexistent -c "IRC Daemon" || exit really use a new UID? says that UID 72 is reserved for IRCd, wouldn't that suit? if not, you should register the GID/UID [...] > sed 's/^X//' >hybserv/pkg-plist << 'END-of-hybserv/pkg-plist' > Xhybserv/hybserv > Xhybserv/cleandb > Xhybserv/encryptconf > Xhybserv/encryptdb > Xhybserv/mkpasswd > Xhybserv/servchk > Xhybserv/fixlevel can hybserv be squeezed into hier(7)? i.e. install hybserv into bin/ and other binaries into libexec/hybserv/ > Xhybserv/hybserv.conf > Xhybserv/settings.conf > Xhybserv/motd.dcc > Xhybserv/motd.global use etc/hybserv? > Xhybserv/shownicks > Xhybserv/showchans dito > Xhybserv/help/memoserv/undel [...] > Xhybserv/help/chanserv/drop ${DATADIR}? cheers simon -- /"\ http://corecode.ath.cx/#donate \ / \ ASCII Ribbon Campaign / \ Against HTML Mail and News --=.d2R7b4E9rMMvoS Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+Jl0jr5S+dk6z85oRAi8BAKC8nZA2M0ti+IthsBlL7WXAXMl36QCfau+A 9nmWzo5Cc5qHjd5S6sIE+Ao= =qaip -----END PGP SIGNATURE----- --=.d2R7b4E9rMMvoS-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports-bugs" in the body of the message