ports/129994: [NEW PORT] net/vnstati - PNG image output support for vnStat

Dennis Herrmann adox at mcx2.org
Sun Dec 28 13:30:06 UTC 2008


>Number:         129994
>Category:       ports
>Synopsis:       [NEW PORT] net/vnstati - PNG image output support for vnStat
>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 Dec 28 13:30:04 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Dennis Herrmann
>Release:        FreeBSD 7.1-PRERELEASE i386
>Organization:
>Environment:
System: FreeBSD dhn.homeunix.com 7.1-PRERELEASE FreeBSD 7.1-PRERELEASE #0: Thu Nov 6 17:50:47 CET 2008 root at dhn.homeunix.com:/usr/obj/usr/src/sys/PARANOIA i386


	
>Description:
The purpose of vnstati is to provide image output support for
statistics collected using vnstat(1). However, the image file
format is limited to png. All basic outputs of vnStat are
supported excluding live traffic features. The image can be
outputted either to a file or to standard output.

vnstati is the image output command for vnstat(1). It provides
png image file output from database files created using vnStat.

WWW:    http://humdi.net/vnstat/
>How-To-Repeat:
	
>Fix:

	

--- newport_vnstati.sh 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:
#
#	vnstati
#	vnstati/pkg-descr
#	vnstati/Makefile
#	vnstati/distinfo
#	vnstati/files
#	vnstati/files/patch-Makefile
#
echo c - vnstati
mkdir -p vnstati > /dev/null 2>&1
echo x - vnstati/pkg-descr
sed 's/^X//' >vnstati/pkg-descr << 'ecce95faabc31ff377b9a6515670afd0'
XThe purpose of vnstati is to provide image output support for
Xstatistics collected using vnstat(1). However, the image file
Xformat is limited to png. All basic outputs of vnStat are
Xsupported excluding live traffic features. The image can be
Xoutputted either to a file or to standard output.
X
Xvnstati is the image output command for vnstat(1). It provides
Xpng image file output from database files created using vnStat.
X
XWWW:	http://humdi.net/vnstat/
ecce95faabc31ff377b9a6515670afd0
echo x - vnstati/Makefile
sed 's/^X//' >vnstati/Makefile << '820ffc8c5c1c55b40ab88407b1510f18'
X# New ports collection makefile for:	vnstati
X# Date created:		28 Dez 2008
X# Whom:			Dennis Herrmann <adox at mcx2.org>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	vnstati
XDISTVERSION=	beta3
XCATEGORIES=	net
XMASTER_SITES=	http://humdi.net/vnstat/ \
X		http://mirror.mcx2.org/
X
XMAINTAINER=	adox at mcx2.org
XCOMMENT=	PNG image output support for vnStat
X
XLIB_DEPENDS+=	gd.4:${PORTSDIR}/graphics/gd
XRUN_DEPENDS+=	vnstat:${PORTSDIR}/net/vnstat
X
XMAKE_ARGS=	LIBRARY_PATH="${PREFIX}/lib" \
X		CPATH="${PREFIX}/include"
X
XUSE_GMAKE=	yes
XMAN1=	vnstati.1
XMANCOMPRESSED=	yes
X
XPLIST_FILES=	bin/${PORTNAME}
X
XPORTDOCS=	README
XPORTEXAMPLES=	vnstat.cgi
X
Xpost-install:
X.if !defined(NOPORTDOCS)
X	@${MKDIR} ${DOCSDIR}
X	${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}/
X.endif
X
X.if !defined(NOPORTEXAMPLES)
X	@${MKDIR} ${EXAMPLESDIR}
X	@${INSTALL_DATA} ${WRKSRC}/examples/vnstat.cgi ${EXAMPLESDIR}/
X.endif
X
X.include <bsd.port.mk>
820ffc8c5c1c55b40ab88407b1510f18
echo x - vnstati/distinfo
sed 's/^X//' >vnstati/distinfo << 'a3712dcb595a58bb3caf1a0485fdcddb'
XMD5 (vnstati-beta3.tar.gz) = 5652b955e16716cec48da464b083c76f
XSHA256 (vnstati-beta3.tar.gz) = 16a02930df0ab7eab44f1d63b655a64b63a7dee5ef70201fad395afcfafbf3a3
XSIZE (vnstati-beta3.tar.gz) = 31695
a3712dcb595a58bb3caf1a0485fdcddb
echo c - vnstati/files
mkdir -p vnstati/files > /dev/null 2>&1
echo x - vnstati/files/patch-Makefile
sed 's/^X//' >vnstati/files/patch-Makefile << '22d5d6bca54758c47d30892d10e5cadd'
X--- Makefile.orig	2008-02-13 13:51:56.000000000 +0100
X+++ Makefile	2008-12-28 12:59:16.000000000 +0100
X@@ -1,44 +1,24 @@
X # bin and man dirs
X-BIN = $(DESTDIR)/usr/bin
X-MAN = $(DESTDIR)/usr/share/man
X+PREFIX?= /usr/local
X 
X-vnstati:
X+all:
X 	+make -C src vnstati
X 
X clean:
X 	make -C src clean
X 
X install:
X-	@echo "Installing vnStat image output..."
X-
X-# update man page and gzip it
X-	install -m 644 man/vnstati.1 $(MAN)/man1
X-	gzip -f9 $(MAN)/man1/vnstati.1
X-
X-	install -s -m 755 src/vnstati $(BIN)
X-
X-uninstall:
X-	@echo "Uninstalling vnStat image output..."
X-	@echo
X-	@echo "Press CTRL-C to abort within 10 sec."
X-	@sleep 10
X-	rm -f $(BIN)/vnstati
X-	rm -f $(MAN)/man1/vnstati.1*
X-
X-bsdinstall:
X 	@echo "Installing vnStat image output (BSD)..."
X-
X-	strip src/vnstati
X-	install -m 755 src/vnstati /usr/local/bin
X+	install -m 755 src/vnstati ${PREFIX}/bin
X 
X # update man page
X-	install -m 644 man/vnstati.1 /usr/local/man/man1
X-	gzip -f9 /usr/local/man/man1/vnstati.1
X+	install -m 644 man/vnstati.1 ${PREFIX}/man/man1
X+	gzip -f9 ${PREFIX}/man/man1/vnstati.1
X 
X-bsduninstall:
X+uninstall:
X 	@echo "Uninstalling vnStat image output (BSD)..."
X 	@echo
X 	@echo "Press CTRL-C to abort within 10 sec."
X 	@sleep 10
X-	rm -f /usr/local/bin/vnstati
X-	rm -f /usr/local/man/man1/vnstati.1*
X+	rm -f ${PREFIX}/vnstati
X+	rm -f ${PREFIX}/man/man1/vnstati.1*
22d5d6bca54758c47d30892d10e5cadd
exit
--- newport_vnstati.sh ends here ---


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



More information about the freebsd-ports-bugs mailing list