2020-10-27 21:34:54 +00:00
|
|
|
PORTNAME= rntrack
|
|
|
|
PORTVERSION= 2.1.10
|
2020-10-28 10:13:07 +00:00
|
|
|
PORTREVISION= 1
|
2020-10-27 21:34:54 +00:00
|
|
|
CATEGORIES= news mail
|
|
|
|
MASTER_SITES= SF
|
|
|
|
MASTER_SITE_SUBDIR= ftrack-as/RNtrack/${PORTVERSION}
|
|
|
|
DISTNAME= rntrack-2_1_10-src
|
|
|
|
|
|
|
|
MAINTAINER= admin@5034.ru
|
|
|
|
COMMENT= FTN Messages tracker
|
|
|
|
|
|
|
|
LICENSE= GPLv2
|
|
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
|
2021-01-04 12:28:29 +00:00
|
|
|
USES= compiler:c11 tar:bzip2
|
2020-10-27 21:34:54 +00:00
|
|
|
|
2020-10-28 10:13:07 +00:00
|
|
|
MAKE_ENV= CONFIG=${ETCDIR}/rntrack.cfg
|
2020-10-27 21:34:54 +00:00
|
|
|
|
2020-10-28 10:13:07 +00:00
|
|
|
ETCDIR= ${PREFIX}/etc/fido
|
2020-10-27 21:34:54 +00:00
|
|
|
|
2020-10-28 10:13:07 +00:00
|
|
|
NO_WRKSUBDIR= yes
|
2020-10-28 10:38:49 +00:00
|
|
|
BUILD_WRKSRC= ${WRKSRC}/MakeFiles/FreeBSD
|
2020-10-27 21:34:54 +00:00
|
|
|
|
2020-10-28 10:38:49 +00:00
|
|
|
_DOCS= FAQ_en FAQ_ru report.err report.err.ru
|
2020-10-27 21:34:54 +00:00
|
|
|
|
2020-10-28 10:13:07 +00:00
|
|
|
OPTIONS_DEFINE= DOCS EXAMPLES LOG_PID SCRIPTS SYSLOG_FORMAT
|
2020-10-27 21:34:54 +00:00
|
|
|
|
2020-10-28 10:13:07 +00:00
|
|
|
LOG_PID_DESC= Enable PID logging
|
|
|
|
SCRIPTS_DESC= Enable Perl scripts support
|
|
|
|
SYSLOG_FORMAT_DESC= Use syslog-like log style
|
2020-10-27 21:34:54 +00:00
|
|
|
|
2020-10-28 10:13:07 +00:00
|
|
|
LOG_PID_MAKE_ARGS= ENABLE_LOG_PID=1
|
|
|
|
SCRIPTS_USES= perl5
|
|
|
|
SCRIPTS_MAKE_ARGS= ENABLE_SCRIPTS=1
|
|
|
|
SYSLOG_FORMAT_MAKE_ARGS= ENABLE_SYSLOG_LOG_FORMAT=1
|
2020-10-27 21:34:54 +00:00
|
|
|
|
|
|
|
do-install:
|
2020-10-28 10:38:49 +00:00
|
|
|
${INSTALL_PROGRAM} ${BUILD_WRKSRC}/rntrack ${STAGEDIR}${PREFIX}/sbin
|
2020-10-28 10:13:07 +00:00
|
|
|
${MKDIR} ${STAGEDIR}${ETCDIR}
|
|
|
|
${MKDIR} ${STAGEDIR}${ETCDIR}/tpl
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/samples/node.cfg ${STAGEDIR}${ETCDIR}/rntrack.cfg-dist
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/samples/test.pl ${STAGEDIR}${ETCDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/samples/tpl/* ${STAGEDIR}${ETCDIR}/tpl
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/rntrack.1 ${STAGEDIR}${PREFIX}/share/man/man1
|
|
|
|
${MKDIR} ${STAGEDIR}${ETCDIR}/tbl
|
2020-10-27 21:34:54 +00:00
|
|
|
.for f in alt2koi.tbl koi2alt.tbl
|
2020-10-28 10:13:07 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/samples/${f} ${STAGEDIR}${ETCDIR}/tbl
|
2020-10-27 21:34:54 +00:00
|
|
|
.endfor
|
2020-10-28 10:38:49 +00:00
|
|
|
|
|
|
|
post-install-DOCS-on:
|
2020-10-27 21:34:54 +00:00
|
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
2020-10-28 10:13:07 +00:00
|
|
|
.for f in ${_DOCS}
|
2020-10-27 21:34:54 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/${f} ${STAGEDIR}${DOCSDIR}
|
|
|
|
.endfor
|
2020-10-28 10:38:49 +00:00
|
|
|
|
|
|
|
post-install-EXAMPLES-on:
|
|
|
|
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
|
|
.for f in bignode.zip bignode2.zip node1042.zip node1157.zip node.cfg node2.cfg node3.cfg perl-test.cfg point.cfg point2.cfg traflog.tpl
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/samples/${f} ${STAGEDIR}${EXAMPLESDIR}
|
|
|
|
.endfor
|
|
|
|
|
2020-10-27 21:34:54 +00:00
|
|
|
.include <bsd.port.mk>
|