From owner-freebsd-ports Sun Dec 30 16:10:13 2001 Delivered-To: freebsd-ports@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 2AA7937B417 for ; Sun, 30 Dec 2001 16:10:01 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id fBV0A1x56268; Sun, 30 Dec 2001 16:10:01 -0800 (PST) (envelope-from gnats) Received: from postfix2-2.free.fr (postfix2-2.free.fr [213.228.0.140]) by hub.freebsd.org (Postfix) with ESMTP id 9F40B37B417 for ; Sun, 30 Dec 2001 16:08:10 -0800 (PST) Received: from graf.pompo.net (lyon-2-a7-20-233.dial.proxad.net [62.147.20.233]) by postfix2-2.free.fr (Postfix) with ESMTP id 346115F7F9 for ; Mon, 31 Dec 2001 01:08:07 +0100 (CET) Received: by graf.pompo.net (Postfix, from userid 1001) id 7A4A9750D; Mon, 31 Dec 2001 01:00:33 +0100 (CET) Message-Id: <20011231000033.7A4A9750D@graf.pompo.net> Date: Mon, 31 Dec 2001 01:00:33 +0100 (CET) From: Thierry Thomas Reply-To: Thierry Thomas To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: ports/33359: New port: net/nic - a suite of web-based simple network utilities. Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 33359 >Category: ports >Synopsis: New port: net/nic - a suite of web-based simple network utilities. >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun Dec 30 16:10:01 PST 2001 >Closed-Date: >Last-Modified: >Originator: Thierry Thomas >Release: FreeBSD 4.5-PRERELEASE i386 >Organization: Kabbale Eros >Environment: System: FreeBSD graf.pompo.net 4.5-PRERELEASE FreeBSD 4.5-PRERELEASE #0: Thu Dec 27 11:39:31 CET 2001 root@graf.pompo.net:/usr/obj/mntsrc/src/sys/GRAF010429 i386 >Description: NIC is the Horde's suite of simple network utilities. The list of tools includes: . Finger . ICQ lookup . DNS lookup . Email address verification . Ping . SMTP open relay checking . Service status . Traceroute . Whois >How-To-Repeat: Pre-requisite: PR ports/33172 must be committed. >Fix: Execute the following shar file: # 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: # # /usr/ports/net/nic # /usr/ports/net/nic/files # /usr/ports/net/nic/files/patch-ping.php # /usr/ports/net/nic/files/httpd.conf.nic # /usr/ports/net/nic/files/patch-icq.php # /usr/ports/net/nic/pkg-plist # /usr/ports/net/nic/pkg-message # /usr/ports/net/nic/pkg-comment # /usr/ports/net/nic/distinfo # /usr/ports/net/nic/Makefile # /usr/ports/net/nic/pkg-descr # echo c - /usr/ports/net/nic mkdir -p /usr/ports/net/nic > /dev/null 2>&1 echo c - /usr/ports/net/nic/files mkdir -p /usr/ports/net/nic/files > /dev/null 2>&1 echo x - /usr/ports/net/nic/files/patch-ping.php sed 's/^X//' >/usr/ports/net/nic/files/patch-ping.php << 'END-of-/usr/ports/net/nic/files/patch-ping.php' X--- ping.php.orig Wed Nov 21 23:17:27 2001 X+++ ping.php Sun Dec 30 22:05:49 2001 X@@ -26,7 +26,7 @@ X $results .= "
$ping[$i]\n"; X } X } else { X- exec("/bin/ping -c 5 \"$addr\"", $ping); X+ exec("/sbin/ping -c 5 \"$addr\"", $ping); X X for ($i = 0; $i < count($ping); $i++) { X $results .= "
$ping[$i]\n"; END-of-/usr/ports/net/nic/files/patch-ping.php echo x - /usr/ports/net/nic/files/httpd.conf.nic sed 's/^X//' >/usr/ports/net/nic/files/httpd.conf.nic << 'END-of-/usr/ports/net/nic/files/httpd.conf.nic' X# This is included in Apache's httpd.conf for Nic X# X# For security, don't serve pages from the Nic configuration and X# library directories. X# X X order deny,allow X deny from all X X X order deny,allow X deny from all X X X order deny,allow X deny from all X X# End of Nic configuration ================ X END-of-/usr/ports/net/nic/files/httpd.conf.nic echo x - /usr/ports/net/nic/files/patch-icq.php sed 's/^X//' >/usr/ports/net/nic/files/patch-icq.php << 'END-of-/usr/ports/net/nic/files/patch-icq.php' X--- icq.php.orig Mon Oct 15 23:12:21 2001 X+++ icq.php Mon Dec 31 00:37:35 2001 X@@ -17,10 +17,10 @@ X X $uin = Horde::getFormData('uin'); X $results=""; X+$email_next=false; X if (!empty($uin)) { X- $fd = fopen("http://wwp.icq.com/$uin", 'r'); X+ $fd = fopen("http://web.icq.com/wwp?Uin=" . $uin, 'r'); X while ($buffer = fgetss($fd, 4096)) { X- X if (ereg('Handle/Nickname:', $buffer)) { X // echo ereg_replace('Handle/Nickname:', 'NickName: ', $buffer); X // echo "
"; X@@ -34,6 +34,20 @@ X $results .= ereg_replace('E-Mail', 'Email: ', $buffer); X $results .="
"; X } X+ X+ if (ereg('Hello my name is', $buffer)) { X+ $results .= ereg_replace('Hello my name is', 'Name:', $buffer); X+ $results .="
"; X+ } X+ X+ if ($email_next) { X+ $results .= 'Email: ' . $buffer; X+ $email_next = false; X+ } X+ if (ereg('Send me an Email message', $buffer)) { X+ $email_next = true; X+ } X+ X } X fclose($fd); X END-of-/usr/ports/net/nic/files/patch-icq.php echo x - /usr/ports/net/nic/pkg-plist sed 's/^X//' >/usr/ports/net/nic/pkg-plist << 'END-of-/usr/ports/net/nic/pkg-plist' X%%PORTDOCS%%share/doc/nic/CHANGES X%%PORTDOCS%%share/doc/nic/CREDITS X%%PORTDOCS%%share/doc/nic/INSTALL X%%PORTDOCS%%share/doc/nic/LICENSE X%%PORTDOCS%%share/doc/nic/README X%%NICDIR%%/config/conf.php X%%NICDIR%%/config/conf.php.dist X%%NICDIR%%/config/html.php X%%NICDIR%%/config/html.php.dist X%%NICDIR%%/config/menu.php X%%NICDIR%%/config/menu.php.dist X%%NICDIR%%/finger.php X%%NICDIR%%/graphics/finger.gif X%%NICDIR%%/graphics/icq_disabled.gif X%%NICDIR%%/graphics/icq_offline.gif X%%NICDIR%%/graphics/icq_online.gif X%%NICDIR%%/graphics/mailaddrcheck.gif X%%NICDIR%%/graphics/nic.gif X%%NICDIR%%/graphics/ping.gif X%%NICDIR%%/graphics/relay.gif X%%NICDIR%%/graphics/services.gif X%%NICDIR%%/graphics/whois.gif X%%NICDIR%%/icq.php X%%NICDIR%%/index.php X%%NICDIR%%/lib/Finger.php X%%NICDIR%%/lib/NIC.php X%%NICDIR%%/lib/base.php X%%NICDIR%%/lib/version.php X%%NICDIR%%/lookup.php X%%NICDIR%%/mailaddrcheck.php X%%NICDIR%%/menu.php X%%NICDIR%%/nic.php X%%NICDIR%%/ping.php X%%NICDIR%%/relay.php X%%NICDIR%%/services.php X%%NICDIR%%/status.php X%%NICDIR%%/templates/common-footer.inc X%%NICDIR%%/templates/common-header.inc X%%NICDIR%%/templates/finger/finger.inc X%%NICDIR%%/templates/footer.inc X%%NICDIR%%/templates/icq/icq.inc X%%NICDIR%%/templates/index/css.inc X%%NICDIR%%/templates/index/notconfigured.inc X%%NICDIR%%/templates/lookup/lookup.inc X%%NICDIR%%/templates/mailaddrcheck/mailaddrcheck.inc X%%NICDIR%%/templates/menu/menu.inc X%%NICDIR%%/templates/nic_footer.html X%%NICDIR%%/templates/nic_frame.html X%%NICDIR%%/templates/ping/ping.inc X%%NICDIR%%/templates/relay/relay.inc X%%NICDIR%%/templates/services/services.inc X%%NICDIR%%/templates/traceroute/traceroute.inc X%%NICDIR%%/templates/whois/whois.inc X%%NICDIR%%/traceroute.php X%%NICDIR%%/whois.php Xetc/horde/httpd.conf.nic X@dirrm %%NICDIR%%/config X@dirrm %%NICDIR%%/graphics X@dirrm %%NICDIR%%/lib X@dirrm %%NICDIR%%/templates/finger X@dirrm %%NICDIR%%/templates/icq X@dirrm %%NICDIR%%/templates/index X@dirrm %%NICDIR%%/templates/lookup X@dirrm %%NICDIR%%/templates/mailaddrcheck X@dirrm %%NICDIR%%/templates/menu X@dirrm %%NICDIR%%/templates/ping X@dirrm %%NICDIR%%/templates/relay X@dirrm %%NICDIR%%/templates/services X@dirrm %%NICDIR%%/templates/traceroute X@dirrm %%NICDIR%%/templates/whois X@dirrm %%NICDIR%%/templates X@dirrm %%NICDIR%% X%%PORTDOCS%%@dirrm share/doc/nic END-of-/usr/ports/net/nic/pkg-plist echo x - /usr/ports/net/nic/pkg-message sed 's/^X//' >/usr/ports/net/nic/pkg-message << 'END-of-/usr/ports/net/nic/pkg-message' X************************************************************************ XNic has been installed in %%NICDIR%% with your blank Xconfiguration files. It should be available from X. X XYou may tune the configuration files located in X%%CONFDIR%%/, specially the files conf.php. X XTo protect your configuration files, you have to restart Apache. X************************************************************************ END-of-/usr/ports/net/nic/pkg-message echo x - /usr/ports/net/nic/pkg-comment sed 's/^X//' >/usr/ports/net/nic/pkg-comment << 'END-of-/usr/ports/net/nic/pkg-comment' XNic is a set of small web-based network applications END-of-/usr/ports/net/nic/pkg-comment echo x - /usr/ports/net/nic/distinfo sed 's/^X//' >/usr/ports/net/nic/distinfo << 'END-of-/usr/ports/net/nic/distinfo' XMD5 (nic-0.0.2.011230.tar.gz) = ce4fa57fedf482dc020308d0730952f6 END-of-/usr/ports/net/nic/distinfo echo x - /usr/ports/net/nic/Makefile sed 's/^X//' >/usr/ports/net/nic/Makefile << 'END-of-/usr/ports/net/nic/Makefile' X# Ports collection makefile for: Nic X# Date created: Sun Dec 30, 2001 X# Whom: Thierry Thomas () X# X# $FreeBSD$ X# X XPORTNAME= nic XPORTVERSION= 0.0.2.011230 XCATEGORIES= net www XMASTER_SITES= http://pompo.net/horde/nic/ X XMAINTAINER= thierry@pompo.net X XRUN_DEPENDS= ${LOCALBASE}/www/horde/index.php:${PORTSDIR}/www/horde-devel X XNO_BUILD= yes X XDOCS= LICENSE README docs/CHANGES docs/CREDITS docs/INSTALL XCONFFILE= conf.php html.php menu.php X XLHORDEDIR?= www/horde XLNICDIR?= ${LHORDEDIR}/nic X XPLIST_SUB= HORDEDIR=${LHORDEDIR} NICDIR=${LNICDIR} X XHORDEDIR= ${PREFIX}/${LHORDEDIR} XNICDIR= ${PREFIX}/${LNICDIR} XCONFDIR= ${NICDIR}/config X XHORDE_INC= ${LOCALBASE}/etc/horde X Xdo-install: X @${MKDIR} ${NICDIR} X @${CP} -Rp ${WRKSRC}/config ${WRKSRC}/graphics ${WRKSRC}/lib ${NICDIR} X @${CP} -Rp ${WRKSRC}/templates ${NICDIR} X @${CP} -p ${WRKSRC}/*.php ${NICDIR} X.for FILE in ${CONFFILE} X @if [ ! -f ${CONFDIR}/${FILE} ]; then \ X ${CP} ${CONFDIR}/${FILE}.dist ${CONFDIR}/${FILE} ; \ X fi X.endfor X @${CHOWN} -R www:www ${NICDIR} X @${CHMOD} -R o-rwx ${CONFDIR} X @${CP} -p ${FILESDIR}/httpd.conf.nic ${HORDE_INC} X @${PERL} -pi -e "s:/home/httpd/html/horde/nic:${NICDIR}:g" \ X ${HORDE_INC}/httpd.conf.nic X @${PERL} -pi -e "s://UNCOMMENTWHENINSTNIC::" ${HORDEDIR}/config/registry.php X.if !defined(NOPORTDOCS) X @${MKDIR} ${DOCSDIR} X.for FILE in ${DOCS} X @${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR} X.endfor X @${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}." X.endif X Xpost-install: X @${ECHO_MSG} X @${CAT} ${PKGMESSAGE} | \ X ${SED} -e "s:%%NICDIR%%:${NICDIR}:g;s:%%CONFDIR%%:${CONFDIR}:g" X @${ECHO_MSG} X X.include END-of-/usr/ports/net/nic/Makefile echo x - /usr/ports/net/nic/pkg-descr sed 's/^X//' >/usr/ports/net/nic/pkg-descr << 'END-of-/usr/ports/net/nic/pkg-descr' XNIC is the Horde's suite of simple network utilities. XThe list of tools includes: X X . Finger X . ICQ lookup X . DNS lookup X . Email address verification X . Ping X . SMTP open relay checking X . Service status X . Traceroute X . Whois X XWWW: http://horde.org/nic/ END-of-/usr/ports/net/nic/pkg-descr exit >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message