ports/134426: New port: net-mgmt/netams-front - PHP-based web interface for NeTAMS software

Alexey V.Degtyarev alexey at renatasystems.org
Sun May 10 16:20:02 UTC 2009


>Number:         134426
>Category:       ports
>Synopsis:       New port: net-mgmt/netams-front - PHP-based web interface for NeTAMS software
>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:   Sun May 10 16:20:01 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Alexey V. Degtyarev
>Release:        FreeBSD 7.1-RELEASE amd64
>Organization:
>Environment:
System: FreeBSD renatasystems.org 7.1-RELEASE FreeBSD 7.1-RELEASE #0: Thu Jan 1 08:58:24 UTC 2009 root at driscoll.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64


	
>Description:
NetAms Front - is an alternative to builtin web interface for NeTAMS software.
One of the main advantages of this interface is use of PHP for generation of
dynamic page allowing highly configurable web statistic available for system
administrator with NeTAMS.

Features:

- View traffic for all the configured networks and peers

- Manage accounting policies with web interface

- Manage NeTAMS peers: clusters, networks, groups, hosts and users with web
  interface

- NeTAMS database service

>How-To-Repeat:
	
>Fix:

	

--- netams-front.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:
#
#	netams-front
#	netams-front/files
#	netams-front/files/patch-www:config.php.simple
#	netams-front/files/pkg-message.in
#	netams-front/distinfo
#	netams-front/Makefile
#	netams-front/pkg-descr
#	netams-front/pkg-plist
#
echo c - netams-front
mkdir -p netams-front > /dev/null 2>&1
echo c - netams-front/files
mkdir -p netams-front/files > /dev/null 2>&1
echo x - netams-front/files/patch-www:config.php.simple
sed 's/^X//' >netams-front/files/patch-www:config.php.simple << '7915da7e6a223c1649a7203ff4b0ed3c'
X--- www/config.php.simple.orig	2009-04-06 16:24:21.000000000 +0400
X+++ www/config.php.simple	2009-05-10 19:30:54.000000000 +0400
X@@ -12,0 +13,2 @@
X+header("Content-Type: text/html; charset=utf-8");
X+
X@@ -67 +69 @@
X-$data_base[$i]['netamsclient'] = "ctl";
X+$data_base[$i]['netamsclient'] = "telnet";
X@@ -95 +97 @@
X-$data_base[$i]['adv_users'] = "127.0.0.1 192.168.0.1 192.168.0.2";
X+$data_base[$i]['adv_users'] = $cfg['admins_ip'] . "127.0.0.1 192.168.0.1 192.168.0.2";
X@@ -101 +103 @@
X-?>
X\ No newline at end of file
X+?>
7915da7e6a223c1649a7203ff4b0ed3c
echo x - netams-front/files/pkg-message.in
sed 's/^X//' >netams-front/files/pkg-message.in << '34d8903ff114197f44ca13fc5aa75a16'
X*******************************************************************************
X
XNetAms Front has been installed into:
X
X    %%WWWDIR%%
X
XYou can edit config.php to adjust some parameters to your network
Xconfiguration.
X
XTo access NetAms Front from web you may want to add the following configuration
Xto httpd.conf:
X
X    Alias /netams-front/ "%%WWWDIR%%/"
X
X    <Directory "%%WWWDIR%%/">
X	Options none
X	AllowOverride Limit
X	
X	Order Deny,Allow
X	Deny from all
X	Allow from 127.0.0.1 .example.com
X    </Directory>
X
XTry yet another NeTAMS web interface by pointing your browser to
X
X    http://localhost/netams-front/
X
X*******************************************************************************
34d8903ff114197f44ca13fc5aa75a16
echo x - netams-front/distinfo
sed 's/^X//' >netams-front/distinfo << 'd31c7e1694e9cc18c49b8d09ceb11c29'
XMD5 (netams-front-0.4.tar.gz) = 325d4e8aea9947de81e981d74e63b482
XSHA256 (netams-front-0.4.tar.gz) = c3e8cb97bea93c0f80532fa733e62b2b27d1e394b0062cb5a8cbfd27e7d409f3
XSIZE (netams-front-0.4.tar.gz) = 63362
d31c7e1694e9cc18c49b8d09ceb11c29
echo x - netams-front/Makefile
sed 's/^X//' >netams-front/Makefile << 'af4c5d293447be7086aaecd1c1681cd5'
X# New ports collection makefile for:	netams-front
X# Date created:				Sun 10 May 2009
X# Whom:					Alexey V. Degtyarev
X#
X# $FreeBSD$
X#
X
XPORTNAME=	netams-front
XPORTVERSION=	0.4
XCATEGORIES=	net-mgmt www
XMASTER_SITES=	ftp://ftp.renatasystems.org/pub/FreeBSD/ports/distfiles/
X
XMAINTAINER=	alexey at renatasystems.org
XCOMMENT=	PHP-based web interface for NeTAMS software
X
XNO_BUILD=	yes
X
XUSE_MYSQL=	yes
XWANT_PHP_WEB=	yes
XUSE_PHP=	mysql pcre
X
XSUB_FILES=	pkg-message
X
X# This target is only meant to be used by the port maintainer.
Xx-generate-plist: build
X	cd ${WRKSRC}/www; \
X	${FIND} . ! -type d ! -name '*.orig' | ${SORT} | \
X	    ${SED} -e "s,^\.,%%WWWDIR%%," >${.CURDIR}/pkg-plist.tmp ; \
X	${FIND} . -type d | ${SORT} -r | ${SED} \
X	     -e "s,^\.$$, at dirrmtry %%WWWDIR%%," \
X	     -e "s,^\., at dirrm %%WWWDIR%%," >>${.CURDIR}/pkg-plist.tmp
Xdo-install:
X	@cd ${WRKSRC}/www; \
X	for src in $$( ${FIND} . ! -name '*.orig' -a \
X			! -name 'config.php.simple' ) ; do \
X		dst=${WWWDIR}$${src#.} ; \
X		if ${TEST} -d $$src ; then \
X			${MKDIR} $$dst ; \
X		else \
X			${INSTALL_DATA} $$src $$dst ; \
X		fi \
X	done
X	@${MKDIR} ${EXAMPLESDIR}
X	@${INSTALL_DATA} ${WRKSRC}/www/config.php.simple \
X		${EXAMPLESDIR}/config.php
X	@if ! ${TEST} -f ${WWWDIR}/config.php; then \
X		${INSTALL_DATA} ${WRKSRC}/www/config.php.simple \
X		${WWWDIR}/config.php; \
X	fi
X	@${CAT} ${PKGMESSAGE}
X
X.include <bsd.port.mk>
af4c5d293447be7086aaecd1c1681cd5
echo x - netams-front/pkg-descr
sed 's/^X//' >netams-front/pkg-descr << 'bfd7f719de7e2c27c208f6db26d8e5a1'
XNetAms Front - is an alternative to builtin web interface for NeTAMS software.
XOne of the main advantages of this interface is use of PHP for generation of
Xdynamic page allowing highly configurable web statistic available for system
Xadministrator with NeTAMS.
X
XFeatures:
X
X- View traffic for all the configured networks and peers
X
X- Manage accounting policies with web interface
X
X- Manage NeTAMS peers: clusters, networks, groups, hosts and users with web
X  interface
X
X- NeTAMS database service
X
XWWW: http://netams.it2k.ru
bfd7f719de7e2c27c208f6db26d8e5a1
echo x - netams-front/pkg-plist
sed 's/^X//' >netams-front/pkg-plist << '659d9b8e747a3f9c2f0d1579218465d4'
X%%WWWDIR%%/admin.php
X%%WWWDIR%%/changelog.txt
X%%WWWDIR%%/images/add.gif
X%%WWWDIR%%/images/adv_url.gif
X%%WWWDIR%%/images/arr_left.gif
X%%WWWDIR%%/images/arr_rigth.gif
X%%WWWDIR%%/images/big_cluster.gif
X%%WWWDIR%%/images/big_group.gif
X%%WWWDIR%%/images/big_host.gif
X%%WWWDIR%%/images/big_net.gif
X%%WWWDIR%%/images/big_user.gif
X%%WWWDIR%%/images/calendar.gif
X%%WWWDIR%%/images/delete.gif
X%%WWWDIR%%/images/down.gif
X%%WWWDIR%%/images/folder.gif
X%%WWWDIR%%/images/mini_admin.gif
X%%WWWDIR%%/images/mini_backup.gif
X%%WWWDIR%%/images/mini_cluster.gif
X%%WWWDIR%%/images/mini_configuration.gif
X%%WWWDIR%%/images/mini_database.gif
X%%WWWDIR%%/images/mini_endyear.gif
X%%WWWDIR%%/images/mini_group.gif
X%%WWWDIR%%/images/mini_host.gif
X%%WWWDIR%%/images/mini_net.gif
X%%WWWDIR%%/images/mini_policy.gif
X%%WWWDIR%%/images/mini_server.gif
X%%WWWDIR%%/images/mini_stat.gif
X%%WWWDIR%%/images/mini_user.gif
X%%WWWDIR%%/images/proto/dns.gif
X%%WWWDIR%%/images/proto/ftp.gif
X%%WWWDIR%%/images/proto/icq.gif
X%%WWWDIR%%/images/proto/ip.gif
X%%WWWDIR%%/images/proto/local.gif
X%%WWWDIR%%/images/proto/mail.gif
X%%WWWDIR%%/images/proto/other.gif
X%%WWWDIR%%/images/proto/other_tcp.gif
X%%WWWDIR%%/images/proto/other_udp.gif
X%%WWWDIR%%/images/proto/ping.gif
X%%WWWDIR%%/images/proto/rdesktop.gif
X%%WWWDIR%%/images/proto/samba.gif
X%%WWWDIR%%/images/proto/ssh.gif
X%%WWWDIR%%/images/proto/urls.gif
X%%WWWDIR%%/images/proto/vnc.gif
X%%WWWDIR%%/images/proto/www.gif
X%%WWWDIR%%/images/quota/disabled.gif
X%%WWWDIR%%/images/quota/enabled.gif
X%%WWWDIR%%/images/quota/notset.gif
X%%WWWDIR%%/images/space.gif
X%%WWWDIR%%/images/table/sort_down.gif
X%%WWWDIR%%/images/table/sort_no.gif
X%%WWWDIR%%/images/table/sort_up.gif
X%%WWWDIR%%/images/up.gif
X%%WWWDIR%%/include/class-calendar.php
X%%WWWDIR%%/include/class-ctree.php
X%%WWWDIR%%/include/class-netams-client.php
X%%WWWDIR%%/include/class-table.php
X%%WWWDIR%%/include/db.php
X%%WWWDIR%%/include/functions.js
X%%WWWDIR%%/include/style.css
X%%WWWDIR%%/index.php
X%%WWWDIR%%/kernel.php
X%%WWWDIR%%/modules/mod.base.php
X%%WWWDIR%%/modules/mod.configuration.php
X%%WWWDIR%%/modules/mod.database.php
X%%WWWDIR%%/modules/mod.policy.php
X%%WWWDIR%%/modules/mod.units.php
X%%WWWDIR%%/netams-client.php
X%%WWWDIR%%/quota.php
X%%WWWDIR%%/stat.php
X%%WWWDIR%%/urls.php
X at unexec if cmp -s %D/%%EXAMPLESDIR%%/config.php %D/%%WWWDIR%%/config.php; then rm %D/%%WWWDIR%%/config.php; fi
X%%EXAMPLESDIR%%/config.php
X at exec if ! test -f %D/%%WWWDIR%%/%f; then cp -p %D/%F %D/%%WWWDIR%%/%f; fi
X at dirrm %%WWWDIR%%/modules
X at dirrm %%WWWDIR%%/include
X at dirrm %%WWWDIR%%/images/table
X at dirrm %%WWWDIR%%/images/quota
X at dirrm %%WWWDIR%%/images/proto
X at dirrm %%WWWDIR%%/images
X at dirrmtry %%WWWDIR%%
X at dirrmtry %%EXAMPLESDIR%%
659d9b8e747a3f9c2f0d1579218465d4
exit
--- netams-front.shar ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list