blob: 9e2e57d5edcb34ec2d9d95561c253a31fe60a974 (
plain) (
blame)
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
|
# New ports collection makefile for: pancho
# Date created: november 2nd, 2001
# Whom: Nicolas Jombart <Nicolas.Jombart@hsc-labs.com>
#
# $FreeBSD$
#
PORTNAME= pancho
PORTVERSION= 6.0.0
CATEGORIES= net
MASTER_SITES= http://www.panchoproject.org/archives/pancho/
DISTNAME= pancho-v${PORTVERSION}
MAINTAINER= Nicolas.Jombart@hsc-labs.com
RUN_DEPENDS= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/Net/SNMP.pm:${PORTSDIR}/net/p5-Net-SNMP \
${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/Config/IniFiles.pm:${PORTSDIR}/devel/p5-Config-IniFiles
USE_PERL5= YES
NO_BUILD= YES
pre-patch:
@${MV} ${WRKSRC}/pancho ${WRKSRC}/pancho.old
@${SED} -e '1,1s:/usr/bin/perl:${PERL5}:' \
< ${WRKSRC}/pancho.old > ${WRKSRC}/pancho
@${RM} ${WRKSRC}/pancho.old
@${MV} ${WRKSRC}/pancho ${WRKSRC}/pancho.old
@${SED} -e '28,1s:pancho.conf:${PREFIX}/etc/pancho.conf:' \
< ${WRKSRC}/pancho.old > ${WRKSRC}/pancho
@${RM} ${WRKSRC}/pancho.old
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/pancho ${PREFIX}/bin
@${INSTALL_DATA} ${WRKSRC}/samples/sample.conf ${PREFIX}/etc/pancho.conf.sample
.include <bsd.port.mk>
|