Lines 6-12
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= smokeping |
8 |
PORTNAME= smokeping |
9 |
PORTVERSION= 1.23 |
9 |
PORTVERSION= 1.24 |
10 |
CATEGORIES= net www |
10 |
CATEGORIES= net www |
11 |
MASTER_SITES= http://people.ee.ethz.ch/~oetiker/webtools/smokeping/pub/ |
11 |
MASTER_SITES= http://people.ee.ethz.ch/~oetiker/webtools/smokeping/pub/ |
12 |
|
12 |
|
Lines 24-30
Link Here
|
24 |
|
24 |
|
25 |
USE_PERL5= yes |
25 |
USE_PERL5= yes |
26 |
|
26 |
|
27 |
MAN1= Curl.pm.1 DNS.pm.1 EchoPing.pm.1 EchoPingChargen.pm.1 EchoPingDiscard.pm.1 \ |
27 |
MAN1= CiscoRTTMonDNS.pm.1 CiscoRTTMonEchoICMP.pm.1 CiscoRTTMonTcpConnect.pm.1 \ |
|
|
28 |
Curl.pm.1 DNS.pm.1 EchoPing.pm.1 EchoPingChargen.pm.1 EchoPingDiscard.pm.1 \ |
28 |
EchoPingHttp.pm.1 EchoPingHttps.pm.1 EchoPingIcp.pm.1 EchoPingSmtp.pm.1 \ |
29 |
EchoPingHttp.pm.1 EchoPingHttps.pm.1 EchoPingIcp.pm.1 EchoPingSmtp.pm.1 \ |
29 |
FPing.pm.1 FPing6.pm.1 IOSPing.pm.1 ParseConfig.pm.1 RemoteFPing.pm.1 \ |
30 |
FPing.pm.1 FPing6.pm.1 IOSPing.pm.1 ParseConfig.pm.1 RemoteFPing.pm.1 \ |
30 |
Smokeping.pm.1 base.pm.1 basefork.pm.1 basevars.pm.1 smokeping.1 \ |
31 |
Smokeping.pm.1 base.pm.1 basefork.pm.1 basevars.pm.1 smokeping.1 \ |
Lines 33-39
Link Here
|
33 |
PKGMESSAGE= ${WRKDIR}/pkg-message |
34 |
PKGMESSAGE= ${WRKDIR}/pkg-message |
34 |
|
35 |
|
35 |
DOC1= CHANGES CONTRIBUTORS COPYING COPYRIGHT README TODO |
36 |
DOC1= CHANGES CONTRIBUTORS COPYING COPYRIGHT README TODO |
36 |
DOC2= Curl.pm DNS.pm EchoPing.pm EchoPingChargen.pm EchoPingDiscard.pm \ |
37 |
DOC2= CiscoRTTMonDNS.pm CiscoRTTMonEchoICMP.pm CiscoRTTMonTcpConnect.pm \ |
|
|
38 |
Curl.pm DNS.pm EchoPing.pm EchoPingChargen.pm EchoPingDiscard.pm \ |
37 |
EchoPingHttp.pm EchoPingHttps.pm EchoPingIcp.pm EchoPingSmtp.pm \ |
39 |
EchoPingHttp.pm EchoPingHttps.pm EchoPingIcp.pm EchoPingSmtp.pm \ |
38 |
FPing.pm FPing6.pm IOSPing.pm ParseConfig.pm RemoteFPing.pm Smokeping.pm \ |
40 |
FPing.pm FPing6.pm IOSPing.pm ParseConfig.pm RemoteFPing.pm Smokeping.pm \ |
39 |
base.pm basefork.pm basevars.pm smokeping.cgi \ |
41 |
base.pm basefork.pm basevars.pm smokeping.cgi \ |
Lines 57-62
Link Here
|
57 |
s|imgurl = ../.simg|imgurl = /smokeimg|; \ |
59 |
s|imgurl = ../.simg|imgurl = /smokeimg|; \ |
58 |
' \ |
60 |
' \ |
59 |
${WRKSRC}/bin/smokeping ${WRKSRC}/htdocs/smokeping.cgi ${WRKSRC}/etc/config.dist |
61 |
${WRKSRC}/bin/smokeping ${WRKSRC}/htdocs/smokeping.cgi ${WRKSRC}/etc/config.dist |
|
|
62 |
@${PERL} -pi -e ' \ |
63 |
s|/usr/bin|${PREFIX}/bin|g; \ |
64 |
' \ |
65 |
${WRKSRC}/lib/probes/* |
60 |
@${PERL} -p -e ' \ |
66 |
@${PERL} -p -e ' \ |
61 |
s|%%PREFIX%%|${PREFIX}|g; \ |
67 |
s|%%PREFIX%%|${PREFIX}|g; \ |
62 |
' \ |
68 |
' \ |
Lines 65-70
Link Here
|
65 |
do-build: |
71 |
do-build: |
66 |
@${RM} ${WRKSRC}/lib/BER.pm |
72 |
@${RM} ${WRKSRC}/lib/BER.pm |
67 |
@${RM} ${WRKSRC}/lib/SNMP_*.pm |
73 |
@${RM} ${WRKSRC}/lib/SNMP_*.pm |
|
|
74 |
@${RM} ${WRKSRC}/lib/probes/patch |
68 |
|
75 |
|
69 |
pre-install: |
76 |
pre-install: |
70 |
PKG_PREFIX=${PREFIX} ${SH} pkg-install ${PKGNAME} PRE-INSTALL |
77 |
PKG_PREFIX=${PREFIX} ${SH} pkg-install ${PKGNAME} PRE-INSTALL |
Lines 72-94
Link Here
|
72 |
do-install: |
79 |
do-install: |
73 |
@${INSTALL_SCRIPT} ${WRKSRC}/bin/smokeping ${PREFIX}/bin |
80 |
@${INSTALL_SCRIPT} ${WRKSRC}/bin/smokeping ${PREFIX}/bin |
74 |
.if !defined(NOPORTDOCS) |
81 |
.if !defined(NOPORTDOCS) |
75 |
.for file in ${MAN1} |
82 |
.for FILE in ${MAN1} |
76 |
@${INSTALL_MAN} ${WRKSRC}/doc/${file} ${PREFIX}/man/man1 |
83 |
@${INSTALL_MAN} ${WRKSRC}/doc/${FILE} ${PREFIX}/man/man1 |
77 |
.endfor |
84 |
.endfor |
78 |
@${MKDIR} ${DOCSDIR} |
85 |
@${MKDIR} ${DOCSDIR} |
79 |
.for file in ${DOC1} |
86 |
.for FILE in ${DOC1} |
80 |
@${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR} |
87 |
@${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR} |
81 |
.endfor |
88 |
.endfor |
82 |
.for file in ${DOC2} |
89 |
.for FILE in ${DOC2} |
83 |
@${INSTALL_DATA} ${WRKSRC}/doc/${file}.html ${DOCSDIR} |
90 |
@${INSTALL_DATA} ${WRKSRC}/doc/${FILE}.html ${DOCSDIR} |
84 |
@${INSTALL_DATA} ${WRKSRC}/doc/${file}.txt ${DOCSDIR} |
91 |
@${INSTALL_DATA} ${WRKSRC}/doc/${FILE}.txt ${DOCSDIR} |
85 |
.endfor |
92 |
.endfor |
86 |
.endif |
93 |
.endif |
87 |
@${MKDIR} ${PREFIX}/etc/smokeping |
94 |
@${MKDIR} ${PREFIX}/etc/smokeping |
88 |
.for file in ${ETC1} |
95 |
.for FILE in ${ETC1} |
89 |
@${INSTALL_DATA} ${WRKSRC}/etc/${file}.dist ${PREFIX}/etc/smokeping |
96 |
@${INSTALL_DATA} ${WRKSRC}/etc/${FILE}.dist ${PREFIX}/etc/smokeping |
90 |
@if [ ! -f ${PREFIX}/etc/smokeping/${file} ]; then \ |
97 |
@if [ ! -f ${PREFIX}/etc/smokeping/${FILE} ]; then \ |
91 |
${INSTALL_DATA} ${WRKSRC}/etc/${file}.dist ${PREFIX}/etc/smokeping/${file} ; \ |
98 |
${INSTALL_DATA} ${WRKSRC}/etc/${FILE}.dist ${PREFIX}/etc/smokeping/${FILE} ; \ |
92 |
fi |
99 |
fi |
93 |
.endfor |
100 |
.endfor |
94 |
@${MKDIR} ${PREFIX}/smokeping |
101 |
@${MKDIR} ${PREFIX}/smokeping |