openbsd-ports/net/vnstat/Makefile
pea e4ebe93e71 Import of vnstat:
vnStat is a console-based network traffic monitor for Linux and BSD that
keeps a log of network traffic for the selected interface(s). It uses the
network interface statistics provided by the kernel as information source.
This means that vnStat won't actually be sniffing any traffic and also
ensures light use of system resources.

With tweaks and advices from jasper@. Thanks

ok jasper@
2010-10-25 10:14:53 +00:00

42 lines
899 B
Makefile

# $OpenBSD: Makefile,v 1.1.1.1 2010/10/25 10:14:53 pea Exp $
COMMENT = network traffic monitor
DISTNAME = vnstat-1.10
CATEGORIES = net sysutils
HOMEPAGE = http://humdi.net/vnstat/
MASTER_SITES = ${HOMEPAGE}
MAINTAINER = Pierre-Emmanuel Andre <pea@openbsd.org>
# GPLv2
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP = Yes
WANTLIB = c m gd
LIB_DEPENDS = ::graphics/gd
USE_GMAKE = Yes
NO_REGRESS = Yes
INSTALL_TARGET = bsdinstall
LDFLAGS += -L${LOCALBASE}/lib -L/usr/X11R6/lib
MAKE_FLAGS = CC="${CC}" CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \
LDFLAGS="${LDFLAGS}"
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/vnstat
${SUBST_CMD} -c ${FILESDIR}/README.OpenBSD \
${PREFIX}/share/doc/vnstat/README.OpenBSD
chown ${SHAREOWN}:${SHAREGRP} \
${PREFIX}/share/doc/vnstat/README.OpenBSD
.include <bsd.port.mk>