2013-02-16 14:21:22 +01:00
|
|
|
# Created by: Autrijus Tang <autrijus@autrijus.org>
|
2003-12-09 10:07:37 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= sympa
|
2019-07-26 13:34:50 +02:00
|
|
|
DISTVERSION= 6.2.44
|
2003-12-09 10:07:37 +01:00
|
|
|
CATEGORIES= mail
|
|
|
|
|
2014-12-19 18:17:22 +01:00
|
|
|
MAINTAINER= dgeo@centrale-marseille.fr
|
2010-07-30 13:50:16 +02:00
|
|
|
COMMENT= Sympa is an electronic mailing list manager
|
|
|
|
|
2019-04-18 19:40:54 +02:00
|
|
|
LICENSE= GPLv2+
|
|
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
2012-05-02 19:03:27 +02:00
|
|
|
|
2018-07-09 10:40:17 +02:00
|
|
|
BUILD_DEPENDS= ${RUN_DEPENDS}
|
2015-10-15 16:19:52 +02:00
|
|
|
RUN_DEPENDS= \
|
2019-04-18 19:40:54 +02:00
|
|
|
p5-App-cpanminus>=0:devel/p5-App-cpanminus \
|
|
|
|
p5-Archive-Zip>=1.05:archivers/p5-Archive-Zip \
|
|
|
|
p5-CGI>=3.51:www/p5-CGI \
|
|
|
|
p5-Class-Singleton>=1.03:devel/p5-Class-Singleton \
|
|
|
|
p5-Crypt-CipherSaber>=0.50:security/p5-Crypt-CipherSaber \
|
|
|
|
p5-Crypt-Eksblowfish>=0.009:security/p5-Crypt-Eksblowfish \
|
|
|
|
p5-Crypt-OpenSSL-X509>=1.800.1:security/p5-Crypt-OpenSSL-X509 \
|
|
|
|
p5-Crypt-SMIME>=0.15:security/p5-Crypt-SMIME \
|
|
|
|
p5-Data-Password>=1.07:security/p5-Data-Password \
|
|
|
|
p5-DateTime-Format-Mail>=0.28:devel/p5-DateTime-Format-Mail \
|
|
|
|
p5-DateTime-TimeZone>=0.59:devel/p5-DateTime-TimeZone \
|
|
|
|
p5-DBD-CSV>=0.22:databases/p5-DBD-CSV \
|
|
|
|
p5-DBI>=1.48:databases/p5-DBI \
|
|
|
|
p5-Encode-Locale>=1.02:converters/p5-Encode-Locale \
|
|
|
|
p5-File-Copy-Recursive>=0.36:devel/p5-File-Copy-Recursive \
|
|
|
|
p5-File-NFSLock>=0:devel/p5-File-NFSLock \
|
2016-04-01 16:16:16 +02:00
|
|
|
p5-HTML-Format>=0:textproc/p5-HTML-Format \
|
2019-04-18 19:40:54 +02:00
|
|
|
p5-HTML-StripScripts-Parser>=1.03:www/p5-HTML-StripScripts-Parser \
|
2016-04-01 16:16:16 +02:00
|
|
|
p5-HTML-Tree>=0:www/p5-HTML-Tree \
|
2019-04-18 19:40:54 +02:00
|
|
|
p5-IO-Socket-SSL>=0.90:security/p5-IO-Socket-SSL \
|
|
|
|
p5-IO-stringy>=0:devel/p5-IO-stringy \
|
|
|
|
p5-Locale-libintl>=1.22:devel/p5-Locale-libintl \
|
|
|
|
p5-Mail-Tools>=0:mail/p5-Mail-Tools \
|
2019-07-26 13:34:50 +02:00
|
|
|
p5-Mail-DKIM>=0.55:mail/p5-Mail-DKIM \
|
2019-04-18 19:40:54 +02:00
|
|
|
p5-MIME-Charset>=1.011.3:mail/p5-MIME-Charset \
|
|
|
|
p5-MIME-EncWords>=1.014:mail/p5-MIME-EncWords \
|
|
|
|
p5-MIME-Lite-HTML>=1.23:mail/p5-MIME-Lite-HTML \
|
|
|
|
p5-MIME-Tools>=5.423:mail/p5-MIME-Tools \
|
|
|
|
p5-Net-CIDR>=0.16:net-mgmt/p5-Net-CIDR \
|
|
|
|
p5-Net-DNS>=0.65:dns/p5-Net-DNS \
|
|
|
|
p5-perl-ldap>=0.40:net/p5-perl-ldap \
|
|
|
|
p5-Scalar-List-Utils>=1.20:lang/p5-Scalar-List-Utils \
|
|
|
|
p5-SOAP-Lite>=0.712:net/p5-SOAP-Lite \
|
|
|
|
p5-Template-Toolkit>=2.21:www/p5-Template-Toolkit \
|
|
|
|
p5-Term-ProgressBar>=2.09:devel/p5-Term-ProgressBar \
|
|
|
|
p5-Time-HiRes>=1.29:devel/p5-Time-HiRes \
|
|
|
|
p5-Unicode-LineBreak>=2011.05:textproc/p5-Unicode-LineBreak \
|
|
|
|
p5-URI>=1.35:net/p5-URI \
|
|
|
|
p5-XML-LibXML>=1.70:textproc/p5-XML-LibXML \
|
|
|
|
mhonarc>=0:www/mhonarc
|
2012-05-21 20:19:17 +02:00
|
|
|
|
2018-10-19 02:18:55 +02:00
|
|
|
# Shebang is corrected by configure script
|
|
|
|
USES= autoreconf cpe fakeroot perl5 shebangfix gettext
|
2019-04-18 19:40:54 +02:00
|
|
|
USE_GITHUB= YES
|
|
|
|
GH_ACCOUNT= sympa-community
|
|
|
|
USE_RC_SUBR= sympa
|
2018-10-19 02:18:55 +02:00
|
|
|
|
2011-06-06 22:34:16 +02:00
|
|
|
# Ignore alpha/beta versions
|
|
|
|
PORTSCOUT= limit:^[0-9]+(\.[0-9]+)*$$
|
|
|
|
|
2017-11-26 21:29:06 +01:00
|
|
|
PORTDOCS= NEWS.md
|
2015-10-15 16:19:52 +02:00
|
|
|
|
2011-06-06 22:34:16 +02:00
|
|
|
USERS= sympa
|
|
|
|
GROUPS= sympa
|
2017-11-26 21:29:06 +01:00
|
|
|
SHEBANG_FILES= po/sympa/xgettext.pl \
|
2018-10-19 02:18:55 +02:00
|
|
|
po/sympa/add-lang.pl
|
2017-11-26 21:29:06 +01:00
|
|
|
|
2011-06-06 22:34:16 +02:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
ICONSDIR?= www/icons
|
2017-11-26 21:29:06 +01:00
|
|
|
CONFIGURE_ARGS+=--enable-fhs \
|
|
|
|
--bindir=${PREFIX}/bin \
|
2011-06-06 22:34:16 +02:00
|
|
|
--libexecdir=${PREFIX}/libexec/${PORTNAME} \
|
|
|
|
--localedir=${PREFIX}/share/locale \
|
2017-11-26 21:29:06 +01:00
|
|
|
--localstatedir=/var/${PORTNAME} \
|
2011-06-06 22:34:16 +02:00
|
|
|
--sbindir=${PREFIX}/libexec/${PORTNAME} \
|
2015-10-15 16:19:52 +02:00
|
|
|
--datadir=${DATADIR} \
|
2011-06-06 22:34:16 +02:00
|
|
|
--sysconfdir=${ETCDIR} \
|
2015-10-15 16:19:52 +02:00
|
|
|
--with-confdir=${ETCDIR} \
|
2011-06-06 22:34:16 +02:00
|
|
|
--with-docdir=${EXAMPLESDIR} \
|
|
|
|
--with-expldir=${DATADIR}/list_data \
|
2015-10-15 16:19:52 +02:00
|
|
|
--with-defaultdir=${DATADIR}/defaults \
|
2016-05-23 14:04:43 +02:00
|
|
|
--without-initdir \
|
2011-06-06 22:34:16 +02:00
|
|
|
--with-lockdir=/var/spool/lock \
|
|
|
|
--with-modulesdir=${PREFIX}/libexec/${PORTNAME} \
|
2017-11-26 21:29:06 +01:00
|
|
|
--with-staticdir=${DATADIR}/static \
|
2018-04-06 14:15:01 +02:00
|
|
|
--with-cssdir=${DATADIR}/static/css \
|
|
|
|
--with-picturesdir=${DATADIR}/static/pictures \
|
2011-06-06 22:34:16 +02:00
|
|
|
--with-piddir=/var/run/${PORTNAME} \
|
|
|
|
--with-scriptdir=${PREFIX}/libexec/${PORTNAME} \
|
2015-10-15 16:19:52 +02:00
|
|
|
--with-spooldir=/var/spool/${PORTNAME} \
|
|
|
|
--with-cgidir=${PREFIX}/libexec/${PORTNAME} \
|
|
|
|
--without-smrshdir
|
|
|
|
|
2017-07-18 19:52:17 +02:00
|
|
|
CONFIGURE_ENV+= lt_cv_sys_max_cmd_len=${CONFIGURE_MAX_CMD_LEN} \
|
|
|
|
ac_cv_path_POSTALIAS=${LOCALBASE}/sbin/postalias
|
2007-09-29 23:02:10 +02:00
|
|
|
MAKE_ENV?= PERL_EXTUTILS_AUTOINSTALL=--skip
|
2015-10-15 16:19:52 +02:00
|
|
|
SUB_FILES= pkg-install pkg-message apache.sample nginx.sample fcgi.sample
|
2014-03-26 17:54:29 +01:00
|
|
|
PORTEXAMPLES= *
|
2007-09-29 23:02:10 +02:00
|
|
|
|
2018-09-10 15:15:47 +02:00
|
|
|
OPTIONS_DEFINE= FASTCGI APACHE DOCS EXAMPLES
|
2019-04-18 19:40:54 +02:00
|
|
|
OPTIONS_DEFAULT=FASTCGI MYSQL
|
2013-02-16 14:21:22 +01:00
|
|
|
OPTIONS_RADIO= DATABASE
|
2019-04-18 19:40:54 +02:00
|
|
|
OPTIONS_RADIO_DATABASE= PGSQL MYSQL SQLITE
|
2015-10-15 16:19:52 +02:00
|
|
|
OPTIONS_SUB= yes
|
2003-12-09 10:07:37 +01:00
|
|
|
|
2019-04-18 19:40:54 +02:00
|
|
|
FASTCGI_RUN_DEPENDS= p5-FCGI>=0.67:www/p5-FCGI \
|
|
|
|
p5-CGI-Fast>=1.08:www/p5-CGI-Fast
|
|
|
|
|
2015-10-15 16:19:52 +02:00
|
|
|
APACHE_IMPLIES= FASTCGI
|
2019-04-18 19:40:54 +02:00
|
|
|
APACHE_USES= apache:run
|
2016-04-01 16:16:16 +02:00
|
|
|
APACHE_RUN_DEPENDS= ${LOCALBASE}/${APACHEMODDIR}/mod_fastcgi.so:www/mod_fastcgi
|
2015-10-15 16:19:52 +02:00
|
|
|
|
|
|
|
PGSQL_SUB_LIST= REQ_PGSQL=postgresql
|
|
|
|
PGSQL_SUB_LIST_OFF= REQ_PGSQL=""
|
2019-04-18 19:40:54 +02:00
|
|
|
PGSQL_RUN_DEPENDS= p5-DBD-Pg>=2.00:databases/p5-DBD-Pg
|
2015-10-15 16:19:52 +02:00
|
|
|
MYSQL_SUB_LIST= REQ_MYSQL=mysql
|
|
|
|
MYSQL_SUB_LIST_OFF= REQ_MYSQL=""
|
2016-04-01 16:16:16 +02:00
|
|
|
MYSQL_RUN_DEPENDS= p5-DBD-mysql>=0:databases/p5-DBD-mysql
|
2019-04-18 19:40:54 +02:00
|
|
|
SQLITE_RUN_DEPENDS= p5-DBD-SQLite>=1.31:databases/p5-DBD-SQLite
|
2003-12-09 10:07:37 +01:00
|
|
|
|
2004-10-25 15:09:20 +02:00
|
|
|
post-patch:
|
2011-06-06 22:34:16 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|^\( *staticdir=\).*$$|\1${DATADIR}|' \
|
|
|
|
-e 's|^\( *arcdir=\).*$$|\1${DATADIR}/arc|' \
|
|
|
|
-e 's|^\( *bouncedir=\).*$$|\1${DATADIR}/bounce|' \
|
2017-11-26 21:29:06 +01:00
|
|
|
${WRKSRC}/configure.ac
|
2014-01-01 21:46:35 +01:00
|
|
|
|
|
|
|
post-install:
|
2015-10-15 16:19:52 +02:00
|
|
|
for link in sympa.pl sympa_wizard.pl upgrade_bulk_spool.pl upgrade_send_spool.pl; do \
|
|
|
|
(cd ${STAGEDIR}${PREFIX}/bin && ${LN} -f -s ../libexec/sympa/$$link) \
|
2014-01-01 21:46:35 +01:00
|
|
|
done
|
2015-10-15 16:19:52 +02:00
|
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
2017-11-26 21:29:06 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/NEWS.md ${STAGEDIR}${DOCSDIR}
|
2015-10-15 16:19:52 +02:00
|
|
|
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/apache.sample ${WRKDIR}/nginx.sample \
|
|
|
|
${WRKDIR}/fcgi.sample ${STAGEDIR}${EXAMPLESDIR}
|
2014-01-01 21:46:35 +01:00
|
|
|
|
2012-05-02 19:03:27 +02:00
|
|
|
.include <bsd.port.mk>
|