pkgsrc/net/vnstat/Makefile
gls 78449e56ab Update net/vnstat to 1.11
Fix a few pkglint warnings

Upstream changes
----------------

1.11 / 1-Jun-11

 - Fix: Memory allocation was miscalculated when creating interface list from
   /sys/class/net when /proc/net/dev wasn't available which in turn could
   crash the daemon
 - Fix: Daemon database cache could remain empty after a -HUP signal
 - Fix: Don't make temp directory in vnstat.cgi writable for everyone
 - Import GNU/kFreeBSD support from Debian
   (#608963, patch by Mats Erik Andersson)
 - Remove usage of GNU only '-D' option for install for BSD in Makefile
 - The daemon now automatically creates databases for available interfaces
   if no databases are found during startup

1.10 / 2-Jan-10

 - Fix: Buffer overflow was possible in hourly image output when RateUnit=1
   and HourlyRate=1
 - Fix: Minor memory leak was possible in the handling of HUP signal in daemon
 - Fix: Graphical elements weren't correctly aligned in summary image
   when header wasn't visible (-nh)
 - Fix: --delete didn't work
 - Possibility to merge statistics from several databases and save
   the end result to a new database (--mergesaved)
 - Added validation of database cache in daemon in order to be more robust
   in case of system memory corruption
 - Support for --style to -l (live mode)
 - Alternative print mode to -l (live mode) with optional parameter
 - Present options and elements in man pages in alphabetical order
 - Code cleanup
2012-04-17 21:35:56 +00:00

67 lines
2.1 KiB
Makefile

# $NetBSD: Makefile,v 1.6 2012/04/17 21:35:56 gls Exp $
DISTNAME= vnstat-1.11
CATEGORIES= net
MASTER_SITES= http://humdi.net/vnstat/
#DISTFILES=${DISTNAME}.tar.gz
MAINTAINER= sborrill@NetBSD.org
HOMEPAGE= http://humdi.net/vnstat/
COMMENT= Small network traffic monitor
LICENSE= gnu-gpl-v2
PKG_DESTDIR_SUPPORT= user-destdir
USE_TOOLS+= gmake
VNSTAT_CONFIG= ${PKG_SYSCONFDIR}/vnstat.conf
VNSTAT_EGDIR= ${PREFIX}/share/examples
SUBST_CLASSES+= fix-dbpath
SUBST_STAGE.fix-dbpath= pre-configure
SUBST_MESSAGE.fix-dbpath= Fixing path to database files
SUBST_FILES.fix-dbpath= src/common.h cfg/vnstat.conf
SUBST_FILES.fix-dbpath+= man/vnstat.1 man/vnstatd.1
SUBST_FILES.fix-dbpath+= man/vnstati.1
SUBST_SED.fix-dbpath= -e 's,/var/lib/,${VARBASE}/db/,g'
SUBST_CLASSES+= fix-etcpath
SUBST_STAGE.fix-etcpath= pre-configure
SUBST_MESSAGE.fix-etcpath= Fixing path to configuration files
SUBST_FILES.fix-etcpath= src/cfg.c
SUBST_FILES.fix-etcpath+= man/vnstat.1 man/vnstatd.1
SUBST_FILES.fix-etcpath+= man/vnstati.1
SUBST_SED.fix-etcpath= -e 's,/etc/,${PKG_SYSCONFDIR}/,g'
CONF_FILES= ${VNSTAT_EGDIR}/vnstat.conf ${VNSTAT_CONFIG}
RCD_SCRIPTS= vnstatd
BUILD_DEFS+= VARBASE
INSTALLATION_DIRS= bin ${VNSTAT_EGDIR} ${PKGMANDIR}/man1 \
${PKGMANDIR}/man5
.include "options.mk"
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/vnstat \
${DESTDIR}${PREFIX}/bin/vnstat
${INSTALL_PROGRAM} ${WRKSRC}/src/vnstatd \
${DESTDIR}${PREFIX}/bin/vnstatd
${INSTALL_DATA} ${WRKSRC}/cfg/vnstat.conf \
${DESTDIR}${VNSTAT_EGDIR}/vnstat.conf
${INSTALL_MAN} ${WRKSRC}/man/vnstat.1 \
${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/vnstat.1
${INSTALL_MAN} ${WRKSRC}/man/vnstatd.1 \
${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/vnstatd.1
${INSTALL_MAN} ${WRKSRC}/man/vnstat.conf.5 \
${DESTDIR}${PREFIX}/${PKGMANDIR}/man5/vnstat.conf.5
if [ ${PLIST.gd:Q} = "yes" ]; then \
${INSTALL_PROGRAM} ${WRKSRC}/src/vnstati \
${DESTDIR}${PREFIX}/bin/vnstati; \
${INSTALL_MAN} ${WRKSRC}/man/vnstati.1 \
${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/vnstati.1; \
fi
.include "../../mk/bsd.pkg.mk"