blob: 66d92d93b6b72e1fde4e7a7bef9bde949b1edc70 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# $NetBSD: Makefile,v 1.100 2011/01/13 13:39:06 wiz Exp $
DISTNAME= mrtg-2.16.4
PKGREVISION= 1
CATEGORIES= net
MASTER_SITES= http://oss.oetiker.ch/mrtg/pub/ \
http://oss.oetiker.ch/mrtg/pub/old/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://oss.oetiker.ch/mrtg/
COMMENT= The Multi-Router Traffic Grapher
LICENSE= gnu-gpl-v2
PKG_DESTDIR_SUPPORT= user-destdir
USE_TOOLS+= perl:run
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --with-gd=${BUILDLINK_PREFIX.gd}
CONFIGURE_ARGS+= --with-png=${BUILDLINK_PREFIX.png}
CONFIGURE_ARGS+= --with-z=${BUILDLINK_PREFIX.zlib}
MAKE_ENV+= PERL5_INSTALLVENDORLIB=${PERL5_INSTALLVENDORLIB}
REPLACE_PERL= bin/cfgmaker bin/indexmaker bin/mrtg bin/mrtg-traffic-sum
EGDIR= ${PREFIX}/share/examples/${PKGBASE}
CONF_FILES= ${EGDIR}/mrtg.conf ${PKG_SYSCONFDIR}/mrtg.conf
.include "options.mk"
SUBST_CLASSES+= files
SUBST_STAGE.files= post-patch
SUBST_FILES.files= ../mrtg.conf.example ../netstat2mrtg \
../sys2mrtg ../envstat2mrtg
SUBST_SED.files= -e "s|@PREFIX@|${PREFIX}|g"
SUBST_MESSAGE.files= Fixing default configuration files.
INSTALLATION_DIRS+= ${EGDIR} libexec
post-extract:
cp ${FILESDIR}/mrtg.conf.example ${WRKDIR}
cp ${FILESDIR}/netstat2mrtg ${WRKDIR}
cp ${FILESDIR}/sys2mrtg ${WRKDIR}
cp ${FILESDIR}/envstat2mrtg ${WRKDIR}
post-install:
${INSTALL_DATA} ${WRKDIR}/mrtg.conf.example ${DESTDIR}${EGDIR}/mrtg.conf
${INSTALL_SCRIPT} ${WRKDIR}/envstat2mrtg ${DESTDIR}${PREFIX}/libexec
${INSTALL_SCRIPT} ${WRKDIR}/netstat2mrtg ${DESTDIR}${PREFIX}/libexec
${INSTALL_SCRIPT} ${WRKDIR}/sys2mrtg ${DESTDIR}${PREFIX}/libexec
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../graphics/gd/buildlink3.mk"
.include "../../graphics/png/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|