Lines 1-47
Link Here
|
1 |
# New ports collection makefile for: rntrack |
|
|
2 |
# Date created: Fri Jan 14 00:57:28 MSK 2005 |
3 |
# Whom: Alex Soukhotine <ph0enix@users.sourceforge.net> |
4 |
# |
5 |
# $FreeBSD$ |
1 |
# $FreeBSD$ |
6 |
# |
|
|
7 |
PORTNAME= rntrack |
2 |
PORTNAME= rntrack |
8 |
PORTVERSION= 1.12 |
3 |
PORTVERSION= 2.0.26 |
9 |
CATEGORIES= mail |
4 |
CATEGORIES= news mail |
10 |
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} |
5 |
MASTER_SITES= SF |
11 |
MASTER_SITE_SUBDIR= ftrack-as |
6 |
MASTER_SITE_SUBDIR= ftrack-as/RNtrack/${PORTVERSION} |
12 |
DISTNAME= ${PORTNAME}-${PORTVERSION} |
7 |
DISTNAME= rntrack-2_0_15-src |
13 |
MAINTAINER= ph0enix@users.sourceforge.net |
8 |
MAINTAINER= ph0enix@users.sourceforge.net |
14 |
COMMENT= FTN Messages tracker |
9 |
COMMENT= FTN Messages tracker |
15 |
USE_BZIP2= yes |
10 |
LICENSE= GPLv2 |
|
|
11 |
|
12 |
USES= tar:bzip2 |
13 |
|
14 |
WRKSRC= ${WRKDIR}/${DISTNAME} |
15 |
|
16 |
USE_REINPLACE= yes |
16 |
USE_REINPLACE= yes |
17 |
ALL_TARGET= ${PORTNAME} |
17 |
ALL_TARGET= ${PORTNAME} |
18 |
MAKEFILE= ${WRKSRC}/MakeFiles/FreeBSD/Makefile |
18 |
MAKEFILE= ${WRKSRC}/MakeFiles/FreeBSD/Makefile |
19 |
MAKE_ENV= CONFIG\=${PREFIX}/etc/rntrack/rntrack.cfg |
19 |
MAKE_ENV= CONFIG\=${PREFIX}/etc/fido/rntrack/rntrack.cfg |
20 |
MAN1= rntrack.1 |
|
|
21 |
PORTDOCS= FAQ FAQ.ru README README.ru report.err report.err.ru |
20 |
DOCS= FAQ FAQ.ru README README.ru report.err report.err.ru |
|
|
21 |
OPTIONS_DEFINE= LOG_PID SCRIPTS SYSLOG_FORMAT |
22 |
|
23 |
SCRIPTS_DESC= Enable Perl scripts support |
24 |
LOG_PID_DESC= Enable pid logging |
25 |
SYSLOG_FORMAT_DESC= Use syslog-like log style |
26 |
|
27 |
.include <bsd.port.options.mk> |
28 |
|
29 |
.if ${PORT_OPTIONS:MSYSLOG_FORMAT} |
30 |
MAKE_ARGS+= ENABLE_SYSLOG_LOG_FORMAT=1 |
31 |
.endif |
32 |
|
33 |
.if ${PORT_OPTIONS:MLOG_PID} |
34 |
MAKE_ARGS+= ENABLE_LOG_PID=1 |
35 |
.endif |
36 |
|
37 |
.if ${PORT_OPTIONS:MSCRIPTS} |
38 |
USES+= perl5 |
39 |
MAKE_ARGS+= ENABLE_SCRIPTS=1 |
40 |
.endif |
41 |
|
22 |
pre-configure: |
42 |
pre-configure: |
23 |
${CP} ${WRKSRC}/MakeFiles/FreeBSD/Makefile ${WRKSRC} |
43 |
${CP} ${WRKSRC}/MakeFiles/FreeBSD/Makefile ${WRKSRC} |
24 |
pre-patch: |
44 |
pre-patch: |
25 |
${REINPLACE_CMD} -e "s@../../@@g" ${WRKSRC}/MakeFiles/FreeBSD/Makefile |
45 |
${REINPLACE_CMD} -e "s@\.\./\.\./@@g" ${WRKSRC}/MakeFiles/FreeBSD/Makefile |
26 |
do-install: |
46 |
do-install: |
27 |
${INSTALL_PROGRAM} ${WRKSRC}/rntrack ${PREFIX}/sbin |
47 |
${MKDIR} ${STAGEDIR}${PREFIX}/etc/fido/rntrack |
28 |
${MKDIR} ${PREFIX}/etc/rntrack/tpl |
48 |
${INSTALL_PROGRAM} ${WRKSRC}/rntrack ${STAGEDIR}${PREFIX}/sbin |
29 |
${INSTALL_DATA} ${WRKSRC}/samples/node.cfg ${PREFIX}/etc/rntrack/rntrack.cfg-dist |
49 |
${MKDIR} ${STAGEDIR}${PREFIX}/etc/fido/rntrack/tpl |
30 |
${INSTALL_DATA} ${WRKSRC}/samples/test.pl ${PREFIX}/etc/rntrack |
50 |
${INSTALL_DATA} ${WRKSRC}/samples/node.cfg ${STAGEDIR}${PREFIX}/etc/fido/rntrack/rntrack.cfg-dist |
31 |
${INSTALL_DATA} ${WRKSRC}/doc/rntrack.1 ${PREFIX}/man/man1 |
51 |
${INSTALL_DATA} ${WRKSRC}/samples/test.pl ${STAGEDIR}${PREFIX}/etc/fido/rntrack |
32 |
${INSTALL_DATA} ${WRKSRC}/samples/tpl/* ${PREFIX}/etc/rntrack/tpl |
52 |
${INSTALL_DATA} ${WRKSRC}/samples/tpl/* ${STAGEDIR}${PREFIX}/etc/fido/rntrack/tpl |
33 |
${MKDIR} ${PREFIX}/etc/rntrack/tbl |
53 |
${INSTALL_DATA} ${WRKSRC}/doc/rntrack.1 ${STAGEDIR}${PREFIX}/man/man1 |
|
|
54 |
${MKDIR} ${STAGEDIR}${PREFIX}/etc/fido/rntrack/tbl |
34 |
.for f in alt2koi.tbl koi2alt.tbl |
55 |
.for f in alt2koi.tbl koi2alt.tbl |
35 |
${INSTALL_DATA} ${WRKSRC}/samples/${f} ${PREFIX}/etc/rntrack/tbl |
56 |
${INSTALL_DATA} ${WRKSRC}/samples/${f} ${STAGEDIR}${PREFIX}/etc/fido/rntrack/tbl |
36 |
.endfor |
57 |
.endfor |
37 |
.if !defined(NOPORTDOCS) |
58 |
.if !defined(DOCS) |
38 |
${MKDIR} ${DOCSDIR} |
59 |
${MKDIR} ${DOCSDIR} |
39 |
.for f in ${PORTDOCS} |
60 |
.for f in ${PORTDOCS} |
40 |
${INSTALL_DATA} ${WRKSRC}/doc/${f} ${DOCSDIR} |
61 |
${INSTALL_DATA} ${WRKSRC}/doc/${f} ${DOCSDIR} |