2015-10-05 16:29:01 +00:00
|
|
|
# $OpenBSD: Makefile,v 1.27 2015/10/05 16:29:02 sthen Exp $
|
2010-10-25 10:14:53 +00:00
|
|
|
|
2015-06-03 12:34:10 +00:00
|
|
|
COMMENT-main = network traffic monitor
|
|
|
|
COMMENT-vnstati = image output support for vnstat
|
|
|
|
|
2015-10-05 16:29:01 +00:00
|
|
|
V = 1.14
|
|
|
|
REVISION-main = 4
|
2015-06-04 05:44:11 +00:00
|
|
|
REVISION-vnstati = 1
|
2015-10-05 16:29:01 +00:00
|
|
|
DISTNAME = vnstat-${V}
|
|
|
|
PKGNAME-main = ${DISTNAME}
|
|
|
|
PKGNAME-vnstati = vnstati-${V}
|
2010-10-25 10:14:53 +00:00
|
|
|
|
2012-05-17 07:30:27 +00:00
|
|
|
CATEGORIES = net sysutils
|
2010-10-25 10:14:53 +00:00
|
|
|
|
2012-05-17 07:30:27 +00:00
|
|
|
HOMEPAGE = http://humdi.net/vnstat/
|
2010-10-25 10:14:53 +00:00
|
|
|
|
2015-01-05 09:46:42 +00:00
|
|
|
MASTER_SITES = ${HOMEPAGE}
|
2010-10-25 10:14:53 +00:00
|
|
|
|
2012-05-17 07:30:27 +00:00
|
|
|
MAINTAINER = Pierre-Emmanuel Andre <pea@openbsd.org>
|
2010-10-25 10:14:53 +00:00
|
|
|
|
|
|
|
# GPLv2
|
2012-05-17 07:30:27 +00:00
|
|
|
PERMIT_PACKAGE_CDROM = Yes
|
2010-10-25 10:14:53 +00:00
|
|
|
|
2015-06-03 12:39:51 +00:00
|
|
|
WANTLIB = c m
|
2015-06-03 12:34:10 +00:00
|
|
|
WANTLIB-vnstati = ${WANTLIB} gd pthread
|
|
|
|
|
|
|
|
MULTI_PACKAGES = -main -vnstati
|
2010-10-25 10:14:53 +00:00
|
|
|
|
2015-06-04 05:44:11 +00:00
|
|
|
LIB_DEPENDS-vnstati = graphics/gd
|
|
|
|
RUN_DEPENDS-vnstati = net/vnstat
|
2010-10-25 10:14:53 +00:00
|
|
|
|
2012-05-17 07:30:27 +00:00
|
|
|
USE_GMAKE = Yes
|
2010-10-25 10:14:53 +00:00
|
|
|
|
2013-03-11 11:35:43 +00:00
|
|
|
NO_TEST = Yes
|
2010-10-25 10:14:53 +00:00
|
|
|
|
|
|
|
INSTALL_TARGET = bsdinstall
|
|
|
|
|
2012-05-17 07:30:27 +00:00
|
|
|
MAKE_FLAGS = CC="${CC}" CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \
|
2012-03-09 09:33:03 +00:00
|
|
|
LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib"
|
2010-10-25 10:14:53 +00:00
|
|
|
|
2013-03-08 10:37:03 +00:00
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/examples/vnstat.cgi ${PREFIX}/share/examples/vnstat/
|
|
|
|
|
2010-10-25 10:14:53 +00:00
|
|
|
.include <bsd.port.mk>
|