blob: 2ed994b0c80bc450ef3071d83530dd3f5a533d88 (
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
56
57
58
59
60
61
62
63
|
# New ports collection makefile for: Cricket
# Date created: 20 November 1999
# Whom: torstenb
#
# $FreeBSD$
#
PORTNAME= cricket
PORTVERSION= 1.0.4.p2
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
DISTNAME= ${PORTNAME}-${PORTVERSION:S/.p/-pre/}
MAINTAINER= ports@FreeBSD.org
COMMENT= A high performance, extremely flexible monitoring system
RUN_DEPENDS= ${SITE_PERL}/SNMP_Session.pm:${PORTSDIR}/net/p5-SNMP_Session \
${SITE_PERL_ARCH}/RRDs.pm:${PORTSDIR}/net/rrdtool \
${SITE_PERL_ARCH}/Digest/MD5.pm:${PORTSDIR}/security/p5-Digest-MD5 \
${SITE_PERL}/LWP.pm:${PORTSDIR}/www/p5-libwww \
${SITE_PERL}/Time/Zone.pm:${PORTSDIR}/devel/p5-TimeDate \
${SITE_PERL_ARCH}/Time/HiRes.pm:${PORTSDIR}/devel/p5-Time-HiRes
SITE_PERL= ${SITE_PERL}
SITE_PERL_ARCH= ${SITE_PERL}/${PERL_ARCH}
HAS_CONFIGURE= yes
USE_PERL5= yes
NO_BUILD= yes
PKGMESSAGE= ${WRKDIR}/pkg-message
PLIST_SUB+= VERSION=${PORTVERSION}
CRICKET_USER= cricket
CRICKET_GROUP= www
do-install:
@PREFIX="${PREFIX}" ${SH} ${PKGINSTALL} ${PORTNAME} PRE-INSTALL
@${MKDIR} -m 755 ${PREFIX}/cricket/cricket-${PORTVERSION}
@${CP} -R ${WRKSRC}/* ${PREFIX}/cricket/cricket-${PORTVERSION}
@${MV} ${PREFIX}/cricket/cricket-${PORTVERSION}/doc/new-devives.html \
${PREFIX}/cricket/cricket-${PORTVERSION}/doc/new-devices.html
@${FIND} ${PREFIX}/cricket/cricket-${PORTVERSION} -name \*.orig -or \
-name \*.bak | ${XARGS} ${RM} -f
${CHOWN} -R ${CRICKET_USER}:${CRICKET_GROUP} ${PREFIX}/cricket
@if [ -L ${PREFIX}/cricket/cricket ]; then \
${ECHO_MSG} "Updating ${PREFIX}/cricket/cricket symbolic link" ; \
${RM} ${PREFIX}/cricket/cricket ; \
fi
${LN} -s ${PREFIX}/cricket/cricket-${PORTVERSION} \
${PREFIX}/cricket/cricket
@if [ -f ${LOCALBASE}/cricket/compile ] ; then \
${ECHO_MSG} "You should migrate manually to use new cricket" ; \
${ECHO_MSG} "installation scheme." ; \
fi
post-install:
@${SED} -e "s:%%PREFIX%%:${PREFIX}:g" ${WRKSRC}/cricket-conf.pl.sample \
>${PREFIX}/etc/cricket-conf.pl.dist
@${SED} -e 's,%%PREFIX%%,${PREFIX},' ${FILESDIR}/pkg-message.in > \
${PKGMESSAGE}
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>
|