Lines 2-7
Link Here
|
2 |
|
2 |
|
3 |
PORTNAME= snmptt |
3 |
PORTNAME= snmptt |
4 |
PORTVERSION= 1.4 |
4 |
PORTVERSION= 1.4 |
|
|
5 |
PORTREVISION= 1 |
5 |
CATEGORIES= net-mgmt |
6 |
CATEGORIES= net-mgmt |
6 |
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}_${PORTVERSION} |
7 |
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}_${PORTVERSION} |
7 |
DISTNAME= ${PORTNAME}_${PORTVERSION} |
8 |
DISTNAME= ${PORTNAME}_${PORTVERSION} |
Lines 9-29
Link Here
|
9 |
MAINTAINER= nistor@snickers.org |
10 |
MAINTAINER= nistor@snickers.org |
10 |
COMMENT= SNMP trap handler/translator/swiss-army-knife |
11 |
COMMENT= SNMP trap handler/translator/swiss-army-knife |
11 |
|
12 |
|
12 |
NO_BUILD= yes |
|
|
13 |
LICENSE= GPLv2 |
13 |
LICENSE= GPLv2 |
|
|
14 |
LICENSE_FILE= ${WRKSRC}/COPYING |
15 |
|
16 |
RUN_DEPENDS= net-snmp>=0:net-mgmt/net-snmp \ |
17 |
p5-Config-IniFiles>=0:devel/p5-Config-IniFiles |
14 |
|
18 |
|
|
|
19 |
NO_BUILD= yes |
20 |
NO_ARCH= yes |
15 |
USES= perl5 shebangfix tar:tgz |
21 |
USES= perl5 shebangfix tar:tgz |
16 |
USE_RC_SUBR= snmptt |
22 |
USE_RC_SUBR= snmptt |
|
|
23 |
SUB_LIST= PERL=${PERL} |
17 |
|
24 |
|
18 |
RUN_DEPENDS= net-snmp>=0:net-mgmt/net-snmp \ |
25 |
PORTDOCS= faqs.html index.html layout1.css snmptt.html \ |
19 |
p5-Config-IniFiles>=0:devel/p5-Config-IniFiles \ |
|
|
20 |
p5-Text-Balanced>=0:textproc/p5-Text-Balanced \ |
21 |
p5-Text-ParseWords>=0:textproc/p5-Text-ParseWords \ |
22 |
p5-Time-HiRes>=0:devel/p5-Time-HiRes |
23 |
|
24 |
DOCS= faqs.html index.html layout1.css snmptt.html \ |
25 |
snmpttconvert.html snmpttconvertmib.html |
26 |
snmpttconvert.html snmpttconvertmib.html |
26 |
|
27 |
|
|
|
28 |
USERS= snmptt |
29 |
GROUPS= snmptt |
30 |
|
27 |
OPTIONS_DEFINE= DOCS |
31 |
OPTIONS_DEFINE= DOCS |
28 |
|
32 |
|
29 |
SCRIPTS= snmptt snmptt-net-snmp-test snmpttconvert \ |
33 |
SCRIPTS= snmptt snmptt-net-snmp-test snmpttconvert \ |
Lines 31-49
Link Here
|
31 |
|
35 |
|
32 |
SHEBANG_FILES= ${SCRIPTS} |
36 |
SHEBANG_FILES= ${SCRIPTS} |
33 |
|
37 |
|
|
|
38 |
post-patch: |
39 |
${REINPLACE_CMD} -e "s|/var/run|/var/run/${PORTNAME}|" \ |
40 |
-e "s|/etc|${PREFIX}/etc|" ${WRKSRC}/snmptt.ini |
34 |
|
41 |
|
35 |
do-install: |
42 |
do-install: |
36 |
.for _SCRIPT in ${SCRIPTS} |
43 |
cd ${WRKSRC} && ${INSTALL_SCRIPT} ${SCRIPTS} ${STAGEDIR}${PREFIX}/sbin |
37 |
@${INSTALL_SCRIPT} ${WRKSRC}/${_SCRIPT} ${STAGEDIR}${PREFIX}/sbin |
|
|
38 |
.endfor |
39 |
|
40 |
${MKDIR} ${STAGEDIR}${PREFIX}/etc/snmp |
44 |
${MKDIR} ${STAGEDIR}${PREFIX}/etc/snmp |
41 |
${INSTALL_DATA} ${WRKSRC}/snmptt.ini ${STAGEDIR}${PREFIX}/etc/snmp/snmptt.ini.sample |
45 |
${INSTALL_DATA} ${WRKSRC}/snmptt.ini ${STAGEDIR}${PREFIX}/etc/snmp/snmptt.ini.sample |
42 |
${INSTALL_DATA} ${WRKSRC}/examples/snmptt.conf.generic ${STAGEDIR}${PREFIX}/etc/snmp/snmptt.conf.generic.sample |
46 |
${INSTALL_DATA} ${WRKSRC}/examples/snmptt.conf.generic \ |
43 |
|
47 |
${STAGEDIR}${PREFIX}/etc/snmp/snmptt.conf.generic.sample |
44 |
${MKDIR} ${STAGEDIR}${DOCSDIR} |
48 |
${INSTALL_DATA} ${FILESDIR}/newsyslog-snmptt.conf \ |
45 |
.for _DOC in ${DOCS} |
49 |
${STAGEDIR}${PREFIX}/etc/snmp/newsyslog-snmptt.conf.sample |
46 |
${INSTALL_MAN} ${WRKSRC}/docs/${_DOC} ${STAGEDIR}${DOCSDIR} |
50 |
@${MKDIR} ${STAGEDIR}/var/log/${PORTNAME} |
47 |
.endfor |
51 |
@${MKDIR} ${STAGEDIR}/var/run/${PORTNAME} |
|
|
52 |
@${MKDIR} ${STAGEDIR}/var/spool/${PORTNAME} |
53 |
|
54 |
do-install-DOCS-on: |
55 |
@${MKDIR} ${STAGEDIR}${DOCSDIR} |
56 |
cd ${WRKSRC}/docs && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR} |
48 |
|
57 |
|
49 |
.include <bsd.port.mk> |
58 |
.include <bsd.port.mk> |