FreeBSD Bugzilla – Attachment 18592 Details for
Bug 33359
New port: net/nic - a suite of web-based simple network utilities.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
file.shar
file.shar (text/plain), 8.86 KB, created by
thierry
on 2001-12-31 00:10:01 UTC
(
hide
)
Description:
file.shar
Filename:
MIME Type:
Creator:
thierry
Created:
2001-12-31 00:10:01 UTC
Size:
8.86 KB
patch
obsolete
># 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 .= "<br />$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 .= "<br />$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<Directory "/home/httpd/html/horde/nic/config"> >X order deny,allow >X deny from all >X</Directory> >X<Directory "/home/httpd/html/horde/nic/lib"> >X order deny,allow >X deny from all >X</Directory> >X<Directory "/home/httpd/html/horde/nic/templates"> >X order deny,allow >X deny from all >X</Directory> >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 "<br>"; >X@@ -34,6 +34,20 @@ >X $results .= ereg_replace('E-Mail', 'Email: ', $buffer); >X $results .="<br>"; >X } >X+ >X+ if (ereg('Hello my name is', $buffer)) { >X+ $results .= ereg_replace('Hello my name is', 'Name:', $buffer); >X+ $results .="<br>"; >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<URL:http://localhost/horde/>. >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 (<thierry@pompo.net>) >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 <bsd.port.mk> >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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 33359
: 18592