blob: 1a4888d466550765c1ad5441ad7da24ccf6917a4 (
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
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
# New ports collection makefile for: plgrenouille_0
# Date created: 02 July 2002
# Whom: cyrille.lefevre@laposte.net
#
# $FreeBSD$
#
PORTNAME= plgrenouille
PORTVERSION= 0.61.7
CATEGORIES= french net
MASTER_SITES= ftp://blade.concept-micro.com/debian/
DISTNAME= ${PORTNAME}_${PORTVERSION:R}-${PORTVERSION:E}
MAINTAINER= cyrille.lefevre@laposte.net
COMMENT= Un client pour determiner votre bande passante a un raccordement large bande
RUN_DEPENDS= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/Net/FTP.pm:${PORTSDIR}/net/p5-Net
.if !defined(BATCH)
IS_INTERACTIVE= yes
.endif
NO_BUILD= yes
USE_PERL5= yes
USE_REINPLACE= yes
SCRIPTS_ENV= PKG_PREFIX=${PREFIX}
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:R}
MSG_FILE= ${PKGDIR}/pkg-message
PKGMESSAGE= ${WRKDIR}/pkg-message
PKGDEINSTALL= ${PKGINSTALL}
MAN1= plgrenouille.1
DOC_FILES= FAQ README
RUN_DIR= /var/run
LOG_DIR= /var/log
SPOOL_DIR= /var/spool/${PORTNAME}
SPOOL_USER= daemon
post-patch: patch-script patch-pkgmessage
patch-script:
@${REINPLACE_CMD} -e 's|%%PERL%%|${PERL}|;s|%%PREFIX%%|${PREFIX}|' \
-e 's|%%RUN_DIR%%|${RUN_DIR}|;s|%%SPOOL_DIR%%|${SPOOL_DIR}|' \
-e 's|%%LOG_DIR%%|${LOG_DIR}|;s|%%SPOOL_USER%%|${SPOOL_USER}|' \
${WRKSRC}/plgrenouille.pl
patch-pkgmessage:
@${SED} 's|%%PREFIX%%|${PREFIX}|g' ${MSG_FILE} > ${PKGMESSAGE}
do-install: install-script install-man install-data install-doc install-rc
install-script:
@${INSTALL_SCRIPT} ${WRKSRC}/plgrenouille.pl \
${PREFIX}/libexec/plgrenouille
install-man:
@${INSTALL_MAN} ${WRKSRC}/plgrenouille.1 ${MAN1PREFIX}/man/man1
install-data:
@${INSTALL_DATA} ${WRKSRC}/grenouillerc.sample ${PREFIX}/etc
install-doc:
.if !defined(NOPORTSDOC)
@${MKDIR} ${DOCSDIR}
.for file in ${DOC_FILES}
@${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
.endfor
.endif
install-rc:
@${INSTALL_SCRIPT} ${FILESDIR}/plgrenouille.sh ${PREFIX}/etc/rc.d
post-install: display-message configure-package
display-message:
@${ECHO_MSG}
@${CAT} ${PKGMESSAGE}
@${ECHO_MSG}
configure-package:
@${SETENV} ${SCRIPTS_ENV} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
.include <bsd.port.mk>
|