aboutsummaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authorPawel Pekala <pawel@FreeBSD.org>2014-06-05 12:53:38 +0000
committerPawel Pekala <pawel@FreeBSD.org>2014-06-05 12:53:38 +0000
commit5e28364767054500775ca1adc4d617f3d5673d8e (patch)
tree89b293db35aaf82eca584f6d7f50e79c871aa534 /mail
parentbcdab77b115b8480a8949bd393661ce3d3b2a5eb (diff)
downloadports-5e28364767054500775ca1adc4d617f3d5673d8e.tar.gz
ports-5e28364767054500775ca1adc4d617f3d5673d8e.zip
Notes
Diffstat (limited to 'mail')
-rw-r--r--mail/popfile/Makefile67
-rw-r--r--mail/popfile/files/popfile.sh.in (renamed from mail/popfile/files/popfile.sh)0
2 files changed, 22 insertions, 45 deletions
diff --git a/mail/popfile/Makefile b/mail/popfile/Makefile
index 3db3338f7fe0..6dbd6a8311b2 100644
--- a/mail/popfile/Makefile
+++ b/mail/popfile/Makefile
@@ -18,69 +18,46 @@ RUN_DEPENDS= p5-DBD-SQLite>=0:${PORTSDIR}/databases/p5-DBD-SQLite \
p5-HTML-Tagset>=0:${PORTSDIR}/www/p5-HTML-Tagset \
p5-HTML-Template>=0:${PORTSDIR}/www/p5-HTML-Template
-OPTIONS_DEFINE= SSL XMLRPC UPGRADE_FROM_0_20 KAKASI MECABU
-SSL_DESC= \
- Depend SSL libraries/modules to use SSL connection to the servers
-XMLRPC_DESC= \
- Depend SOAP libraries to use POPFile as XMLRPC server
-UPGRADE_FROM_0_20_DESC= \
- Depend BerkeleyDB libraries to upgrade old POPFile corpus
-KAKASI_DESC= \
- Depend Kakasi library to handle Japanese text
-MECABU_DESC= \
- Depend MeCab library to handle Japanese text
-
NO_WRKSUBDIR= yes
NO_BUILD= yes
-USES= perl5 zip
+USES= perl5 shebangfix zip
USE_PERL5= run
+SHEBANG_FILES= popfile.pl
PLIST_SUB= VERSION="${PORTVERSION}"
+SUB_FILES= popfile.sh
-NO_STAGE= yes
-.include <bsd.port.options.mk>
+OPTIONS_DEFINE= SSL XMLRPC UPGRADE_FROM_0_20 KAKASI MECABU
-.if ${PORT_OPTIONS:MSSL}
# POPFile works with IO::Socket::SSL version 1.07 (and not 0.97/0.99).
-RUN_DEPENDS+= p5-IO-Socket-SSL>=1.07:${PORTSDIR}/security/p5-IO-Socket-SSL
-.endif
+SSL_RUN_DEPENDS=p5-IO-Socket-SSL>=1.07:${PORTSDIR}/security/p5-IO-Socket-SSL
+
+XMLRPC_DESC= POPFile as XMLRPC server
+XMLRPC_RUN_DEPENDS= p5-SOAP-Lite>=0:${PORTSDIR}/net/p5-SOAP-Lite
+
+UPGRADE_FROM_0_20_DESC= Upgrade old POPFile corpus
+UPGRADE_FROM_0_20_RUN_DEPENDS= p5-BerkeleyDB>=0:${PORTSDIR}/databases/p5-BerkeleyDB
-.if ${PORT_OPTIONS:MXMLRPC}
-RUN_DEPENDS+= p5-SOAP-Lite>=0:${PORTSDIR}/net/p5-SOAP-Lite
-.endif
+KAKASI_DESC= Handle Japanese text via Kakasi library
+KAKASI_RUN_DEPENDS= p5-Text-Kakasi>=0:${PORTSDIR}/japanese/p5-Text-Kakasi
+
+MECABU_DESC= Handle Japanese text via MeCab library
+MECABU_RUN_DEPENDS= p5-MeCab>=0:${PORTSDIR}/japanese/p5-MeCab
#.if ${PORT_OPTIONS:MSOCKS}
# XXX: IO::Socket::Socks should be listed here but no ports yet. For those
# interested, check http://search.cpan.org/~reatmon/IO-Socket-Socks-0.1/.
#.endif
-.if ${PORT_OPTIONS:MUPGRADE_FROM_0_20}
-RUN_DEPENDS+= p5-BerkeleyDB>=0:${PORTSDIR}/databases/p5-BerkeleyDB
-.endif
-
-.if ${PORT_OPTIONS:MKAKASI}
-RUN_DEPENDS+= p5-Text-Kakasi>=0:${PORTSDIR}/japanese/p5-Text-Kakasi
-.endif
-
-.if ${PORT_OPTIONS:MMECAB}
-RUN_DEPENDS+= p5-MeCab>=0:${PORTSDIR}/japanese/p5-MeCab
-.endif
-
-post-patch:
- @${REINPLACE_CMD} -e \
- 's|^#!/usr/bin/perl$$|#!${PERL}|' ${WRKSRC}/popfile.pl
- @${SED} 's|%%DATADIR%%|${DATADIR}|' \
- < ${FILESDIR}/popfile.sh > ${WRKDIR}/popfile.sh
-
do-install:
- ${INSTALL_SCRIPT} ${WRKDIR}/popfile.sh ${PREFIX}/sbin
- @${MKDIR} ${DATADIR}
- (cd ${WRKSRC} && ${INSTALL_SCRIPT} *.pl ${DATADIR})
- (cd ${WRKSRC} && ${INSTALL_DATA} \
- stopwords *.change* *.gif *.ico *.pck *.png ${DATADIR})
+ ${INSTALL_SCRIPT} ${WRKDIR}/popfile.sh ${STAGEDIR}${PREFIX}/sbin
+ @${MKDIR} ${STAGEDIR}${DATADIR}
+ (cd ${WRKSRC} && ${INSTALL_SCRIPT} *.pl ${STAGEDIR}${DATADIR})
+ (cd ${WRKSRC} && ${INSTALL_DATA} stopwords *.change* *.gif *.ico \
+ *.pck *.png ${STAGEDIR}${DATADIR})
.for i in Classifier POPFile Proxy Services UI languages skins
- @(cd ${WRKSRC} && ${COPYTREE_SHARE} ${i} ${DATADIR})
+ @(cd ${WRKSRC} && ${COPYTREE_SHARE} ${i} ${STAGEDIR}${DATADIR})
.endfor
.include <bsd.port.mk>
diff --git a/mail/popfile/files/popfile.sh b/mail/popfile/files/popfile.sh.in
index 3ce20d4e255f..3ce20d4e255f 100644
--- a/mail/popfile/files/popfile.sh
+++ b/mail/popfile/files/popfile.sh.in