HybServ was specifically designed to run with hybrid ircd, although it *should* work with CSr as well. These services (more or less same code) are currently used by EFNet / DalNet / ICQ / WFNet / HybNet / EFNow / Openprojects Network.
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? <http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/dads-uid.html> 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
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On January 16, 2003 02:19 am, Simon 'corecode' Schubert wrote: > 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 =3D xstart ]; then > > ^^^^^^^^^^^ > are you sure the users want this? POLA say: just start when requested := ) > i'd output options (=3D start|stop|restart?) when $# =3D=3D 0 thats right, I redid hybserv.sh according to the handbook's example. > > X if [ -x %PREFIX%/hybserv/hybserv ]; then > > X su -fm hybserv -c %PREFIX%/hybserv/hybserv && echo ' hybserv' > > X fi > > Xfi > > Xif [ x$1 =3D 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 it can write the pid anywhere but needs to be set via the settings.conf f= ile. > > 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 co= de) > > Xare currently used by EFNet / DalNet / ICQ / WFNet / HybNet / > > XEFNow / Openprojects Network. > > ^^^^^^^^^^^^^^^^^^^^ > now freenode? Il change that to. > > sed 's/^X//' >hybserv/pkg-install << 'END-of-hybserv/pkg-install' > > [...] > > > X=09=09pw groupadd hybserv -g 73 || exit > > [...] > > > X=09=09pw useradd hybserv -g hybserv -u 73 -h - -d /nonexistent \ > > X=09=09=09-s /nonexistent -c "IRC Daemon" || exit > > really use a new UID? > <http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/dads= -uid >.html> says that UID 72 is reserved for IRCd, wouldn't that suit? > if not, you should register the GID/UID herm, I guess it would make more sence to use the ircd 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/ Im trying this now and it can, but not very well. some lack of support fo= r a=20 data dir, (its saves the data where the pid exec's from) Il see what I can do and re-submit a new shar file. > > 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 - --=20 Rick Fournier (rick@help-desk.ca) PGP KeyID 31846E22 (B1E3 AE2E C867 F491 BF9F 9485 7818 122D 3184 6E22) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+JukseBgSLTGEbiIRAh3rAJ44RVs6G0pvHklY4LxIGh27X3pRpwCg+E+A Avseb/YH+57BWdOvZqpqAEQ=3D =3DGDTG -----END PGP SIGNATURE-----
>Submitter-Id: current-users >Originator: Rick Fournier >Organization: N/A >Confidential: no >Synopsis: Re: ports/47128: New port: hybserv (irc services for ircd-hybrid) >Severity: non-critical >Priority: low >Category: ports >Class: change-request >Release: FreeBSD 5.0-RC i386 >Environment: System: FreeBSD zombie.unix.int 5.0-RC FreeBSD 5.0-RC #1: Mon Jan 13 16:18:10 EST 2003 root@zombie.unix.int:/usr/obj/usr/src-5/sys/ZOMBIE i386 >Fix: I would recommend the usage of /usr/local/hybserv/ for now untill 1.9.0 is released. I'll contact the coder about adding better support for hier(7) --- hybserv-1.8.0.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: # # hybserv # hybserv/files # hybserv/files/hybserv.sh # hybserv/Makefile # hybserv/distinfo # hybserv/pkg-comment # hybserv/pkg-descr # hybserv/pkg-install # hybserv/pkg-plist # echo c - hybserv mkdir -p hybserv > /dev/null 2>&1 echo c - hybserv/files mkdir -p hybserv/files > /dev/null 2>&1 echo x - hybserv/files/hybserv.sh sed 's/^X//' >hybserv/files/hybserv.sh << 'END-of-hybserv/files/hybserv.sh' X#!/bin/sh XPREFIX=/usr/local X X echo -n ' hybserv' X X case "$1" in X start) X su -fm ircd -c ${PREFIX}/hybserv/hybserv >/dev/null 2>&1 X ;; X stop) X kill -9 `cat ${PREFIX}/hybserv/hybserv.pid` X ;; X *) X echo "Usage: `basename $0` {start|stop}" >&2 X exit 64 X ;; X esac X X exit 0 X END-of-hybserv/files/hybserv.sh echo x - hybserv/Makefile sed 's/^X//' >hybserv/Makefile << 'END-of-hybserv/Makefile' X# New ports collection makefile for: hybserv X# Date created: 15 Jan 2003 X# Whom: Rick Fournier <rick@help-desk.ca> X# X# $FreeBSD:$ X# X XPORTNAME= hybserv XPORTVERSION= 1.8.0 XCATEGORIES= irc XMASTER_SITES= http://www.srce.hr/~kreator/projects/tarballs/ X XMAINTAINER= rick@help-desk.ca X XUSE_GMAKE= yes XGNU_CONFIGURE= yes X XWRKSRC= ${WRKDIR}/hybserv X X.if !defined(PACKAGE_BUILDING) && !defined(BATCH) XIS_INTERACTIVE= yes X.endif X Xpre-install: X.if !defined(PACKAGE_BUILDING) && !defined(BATCH) X @${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL X.endif X Xpost-install: X @${SED} -e "s#%PREFIX%#${PREFIX}#" ${FILESDIR}/hybserv.sh \ X > ${WRKDIR}/hybserv.sh X @${INSTALL_SCRIPT} ${WRKDIR}/hybserv.sh ${PREFIX}/etc/rc.d X ${CHOWN} -R ircd:ircd ${PREFIX}/hybserv X ${CHMOD} 700 ${PREFIX}/hybserv X.include <bsd.port.mk> END-of-hybserv/Makefile echo x - hybserv/distinfo sed 's/^X//' >hybserv/distinfo << 'END-of-hybserv/distinfo' XMD5 (hybserv-1.8.0.tar.gz) = 48ddde6d48f62e72d7a9f457d31a96a2 END-of-hybserv/distinfo echo x - hybserv/pkg-comment sed 's/^X//' >hybserv/pkg-comment << 'END-of-hybserv/pkg-comment' XHybServ2 IRCD Services END-of-hybserv/pkg-comment echo x - hybserv/pkg-descr 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 / Freenode. END-of-hybserv/pkg-descr echo x - hybserv/pkg-install sed 's/^X//' >hybserv/pkg-install << 'END-of-hybserv/pkg-install' X#!/bin/sh X X# This script is a slightly modified copy of the pkg-install script from the X# original ircd-hybrid port, by desmo@bandwidth.org. X Xif [ "x$2" != "xPRE-INSTALL" ]; then X exit 0; Xfi X Xask() { X local question default answer X X question=$1 X default=$2 X if [ -z "${PACKAGE_BUILDING}" ]; then X read -p "${question} [${default}]? " answer X fi X if [ x${answer} = x ]; then X answer=${default} X fi X echo ${answer} X} X Xyesno() { X local dflt question answer X X question=$1 X dflt=$2 X while :; do X answer=$(ask "${question}" "${dflt}") X case "${answer}" in X [Yy]*) return 0;; X [Nn]*) return 1;; X esac X echo "Please answer yes or no." X done X} X Xif which -s pw ; then X : Xelse X cat <<EOF XYour system does not include the "pw" utility. You should upgrade Xto a newer version of FreeBSD. Without "pw" this script will not Xrun. XEOF X exit 1 Xfi X Xecho "" Xif pw groupshow ircd 2> /dev/null ; then X echo "You already have a group \"ircd\", so I will use it." Xelse X if pw groupshow 72 2> /dev/null ; then X echo "You already have a gid \"72\". Please create a user \"ircd\"" X echo "with a default group of \"ircd\"." X exit 1 X fi X echo "You need a group \"ircd\"." X if which -s pw && yesno "Would you like me to create it" y; then X pw groupadd ircd -g 72 || exit X echo "Done." X else X echo "Please create it, and try again." X if ! pw usershow ircd 2> /dev/null ; then X echo "While you're at it, please create a user \"ircd\"" X echo 'too, with a default group of "ircd".' X fi X exit 1 X fi Xfi X Xif pw usershow ircd 2> /dev/null ; then X echo "You already have a user \"ircd\", so I will use it." Xelse X if pw usershow 72 2> /dev/null ; then X echo "You already have a uid \"72\". Please create a user \"irc Xd\"" X echo "with a default group of \"ircd\"." X exit 1 X fi X echo "You need a user \"ircd\"." X if which -s pw && yesno "Would you like me to create it" y; then X pw useradd ircd -g ircd -u 72 -h - -d /nonexistent \ X -s /nonexistent -c "IRC Daemon" || exit X echo "Done." X else X echo "Please create it, and try again." X exit 1 X fi Xfi END-of-hybserv/pkg-install echo x - hybserv/pkg-plist sed 's/^X//' >hybserv/pkg-plist << 'END-of-hybserv/pkg-plist' Xetc/rc.d/hybserv.sh Xhybserv/hybserv Xhybserv/cleandb Xhybserv/encryptconf Xhybserv/encryptdb Xhybserv/mkpasswd Xhybserv/servchk Xhybserv/fixlevel Xhybserv/hybserv.conf Xhybserv/settings.conf Xhybserv/motd.dcc Xhybserv/motd.global Xhybserv/shownicks Xhybserv/showchans Xhybserv/help/memoserv/undel Xhybserv/help/memoserv/del Xhybserv/help/memoserv/index Xhybserv/help/memoserv/list Xhybserv/help/memoserv/purge Xhybserv/help/memoserv/read Xhybserv/help/memoserv/reply Xhybserv/help/memoserv/send Xhybserv/help/memoserv/forward Xhybserv/help/seenserv/seennick Xhybserv/help/seenserv/index Xhybserv/help/seenserv/seen Xhybserv/help/seenserv/seenstat Xhybserv/help/seenserv/unseen Xhybserv/help/operserv/dcc/motd Xhybserv/help/operserv/dcc/index Xhybserv/help/operserv/dcc/link Xhybserv/help/operserv/dcc/boot Xhybserv/help/operserv/dcc/quit Xhybserv/help/operserv/dcc/unlink Xhybserv/help/operserv/dcc/who Xhybserv/help/operserv/channel Xhybserv/help/operserv/clones Xhybserv/help/operserv/die Xhybserv/help/operserv/dump Xhybserv/help/operserv/gline Xhybserv/help/operserv/help Xhybserv/help/operserv/htm Xhybserv/help/operserv/hub Xhybserv/help/operserv/identify Xhybserv/help/operserv/ignore Xhybserv/help/operserv/index Xhybserv/help/operserv/join Xhybserv/help/operserv/jump Xhybserv/help/operserv/jupe Xhybserv/help/operserv/kill Xhybserv/help/operserv/killchan Xhybserv/help/operserv/killhost Xhybserv/help/operserv/kline Xhybserv/help/operserv/off Xhybserv/help/operserv/omode Xhybserv/help/operserv/on Xhybserv/help/operserv/part Xhybserv/help/operserv/rehash Xhybserv/help/operserv/reload Xhybserv/help/operserv/restart Xhybserv/help/operserv/save Xhybserv/help/operserv/secure Xhybserv/help/operserv/set Xhybserv/help/operserv/stats Xhybserv/help/operserv/status Xhybserv/help/operserv/trace Xhybserv/help/operserv/umode Xhybserv/help/operserv/ungline Xhybserv/help/operserv/unjupe Xhybserv/help/nickserv/access/add Xhybserv/help/nickserv/access/del Xhybserv/help/nickserv/access/index Xhybserv/help/nickserv/access/list Xhybserv/help/nickserv/set/url Xhybserv/help/nickserv/set/email Xhybserv/help/nickserv/set/gsm Xhybserv/help/nickserv/set/hide Xhybserv/help/nickserv/set/index Xhybserv/help/nickserv/set/kill Xhybserv/help/nickserv/set/master Xhybserv/help/nickserv/set/memos Xhybserv/help/nickserv/set/notify Xhybserv/help/nickserv/set/oper Xhybserv/help/nickserv/set/password Xhybserv/help/nickserv/set/phone Xhybserv/help/nickserv/set/private Xhybserv/help/nickserv/set/secure Xhybserv/help/nickserv/set/signon Xhybserv/help/nickserv/set/uin Xhybserv/help/nickserv/set/unsecure Xhybserv/help/nickserv/set/automask Xhybserv/help/nickserv/collide Xhybserv/help/nickserv/droplink Xhybserv/help/nickserv/flag Xhybserv/help/nickserv/forbid Xhybserv/help/nickserv/ghost Xhybserv/help/nickserv/identify Xhybserv/help/nickserv/index Xhybserv/help/nickserv/info Xhybserv/help/nickserv/link Xhybserv/help/nickserv/list Xhybserv/help/nickserv/noexpire Xhybserv/help/nickserv/recover Xhybserv/help/nickserv/register Xhybserv/help/nickserv/release Xhybserv/help/nickserv/setpass Xhybserv/help/nickserv/showlink Xhybserv/help/nickserv/unforbid Xhybserv/help/nickserv/unlink Xhybserv/help/nickserv/drop Xhybserv/help/statserv/stats Xhybserv/help/statserv/domain Xhybserv/help/statserv/greplog Xhybserv/help/statserv/host Xhybserv/help/statserv/index Xhybserv/help/statserv/refresh Xhybserv/help/statserv/server Xhybserv/help/statserv/showadmins Xhybserv/help/statserv/showopers Xhybserv/help/statserv/showstats Xhybserv/help/statserv/split Xhybserv/help/statserv/clearstats Xhybserv/help/helpserv/chanserv Xhybserv/help/helpserv/index Xhybserv/help/helpserv/memoserv Xhybserv/help/helpserv/nickserv Xhybserv/help/helpserv/operserv Xhybserv/help/helpserv/statserv Xhybserv/help/global/gchannote Xhybserv/help/global/gcmemo Xhybserv/help/global/gmemo Xhybserv/help/global/gnote Xhybserv/help/global/index Xhybserv/help/global/motd Xhybserv/help/chanserv/access/add Xhybserv/help/chanserv/access/del Xhybserv/help/chanserv/access/index Xhybserv/help/chanserv/access/list Xhybserv/help/chanserv/akick/add Xhybserv/help/chanserv/akick/del Xhybserv/help/chanserv/akick/index Xhybserv/help/chanserv/akick/list Xhybserv/help/chanserv/level/index Xhybserv/help/chanserv/level/list Xhybserv/help/chanserv/level/reset Xhybserv/help/chanserv/level/set Xhybserv/help/chanserv/set/verbose Xhybserv/help/chanserv/set/email Xhybserv/help/chanserv/set/founder Xhybserv/help/chanserv/set/forget Xhybserv/help/chanserv/set/password Xhybserv/help/chanserv/set/guard Xhybserv/help/chanserv/set/index Xhybserv/help/chanserv/set/mlock Xhybserv/help/chanserv/set/private Xhybserv/help/chanserv/set/restricted Xhybserv/help/chanserv/set/secure Xhybserv/help/chanserv/set/secureops Xhybserv/help/chanserv/set/splitops Xhybserv/help/chanserv/set/successor Xhybserv/help/chanserv/set/topic Xhybserv/help/chanserv/set/topiclock Xhybserv/help/chanserv/set/url Xhybserv/help/chanserv/set/entrymsg Xhybserv/help/chanserv/forbid Xhybserv/help/chanserv/forget Xhybserv/help/chanserv/halfop Xhybserv/help/chanserv/noexpire Xhybserv/help/chanserv/index Xhybserv/help/chanserv/info Xhybserv/help/chanserv/invite Xhybserv/help/chanserv/list Xhybserv/help/chanserv/clearnoexp Xhybserv/help/chanserv/op Xhybserv/help/chanserv/resetlevels Xhybserv/help/chanserv/register Xhybserv/help/chanserv/unforbid Xhybserv/help/chanserv/status Xhybserv/help/chanserv/unban Xhybserv/help/chanserv/voice Xhybserv/help/chanserv/setpass Xhybserv/help/chanserv/clear Xhybserv/help/chanserv/identify Xhybserv/help/chanserv/drop X@dirrm hybserv/help/memoserv X@dirrm hybserv/help/seenserv X@dirrm hybserv/help/operserv/dcc X@dirrm hybserv/help/operserv X@dirrm hybserv/help/nickserv/access X@dirrm hybserv/help/nickserv/set X@dirrm hybserv/help/nickserv X@dirrm hybserv/help/statserv X@dirrm hybserv/help/helpserv X@dirrm hybserv/help/global X@dirrm hybserv/help/chanserv/access X@dirrm hybserv/help/chanserv/akick X@dirrm hybserv/help/chanserv/level X@dirrm hybserv/help/chanserv/set X@dirrm hybserv/help/chanserv X@dirrm hybserv/help X@dirrm hybserv END-of-hybserv/pkg-plist exit --- hybserv-1.8.0.shar ends here ---
Is the submitter by any chance still interested in this port? By now this is one of the older "new ports" PRs in GNATS.
=2D----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 yes, still interested :) On November 9, 2003 10:18 pm, Mark Linimon wrote: > Is the submitter by any chance still interested in this port? By > now this is one of the older "new ports" PRs in GNATS. =2D --=20 Rick Fournier (rick@rptn.net) GnuPG/PGP Key: 31846E22 (http://www.rptn.net/rick.asc) Key Fingerprint: B1E3 AE2E C867 F491 BF9F 9485 7818 122D 3184 6E22 =2D----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (FreeBSD) iD8DBQE/r+EseBgSLTGEbiIRAnYZAJ9ZPNqRn49eVlbXv8i7edKEdZoTvgCfRcCH DTe/f5yasDeFUccCWzIoJ3w=3D =3DM3MV =2D----END PGP SIGNATURE-----
Responsible Changed From-To: freebsd-ports-bugs->linimon I'll take this as part of my campaign to deal with the oldest of the "new ports" PRs.
State Changed From-To: open->closed Committed, thanks.