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
|
2014-03-25 21:57:30 +01:00
|
|
|
PORTVERSION= 6.1.20
|
2003-12-09 10:07:37 +01:00
|
|
|
CATEGORIES= mail
|
2010-07-30 13:50:16 +02:00
|
|
|
MASTER_SITES= http://www.sympa.org/distribution/ \
|
|
|
|
http://www.sympa.org/distribution/old/
|
2003-12-09 10:07:37 +01:00
|
|
|
|
2011-07-13 21:35:39 +02:00
|
|
|
MAINTAINER= crees@FreeBSD.org
|
2010-07-30 13:50:16 +02:00
|
|
|
COMMENT= Sympa is an electronic mailing list manager
|
|
|
|
|
2012-05-02 19:03:27 +02:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2012-06-10 20:42:48 +02:00
|
|
|
BUILD_DEPENDS:= ${RUN_DEPENDS}
|
2012-05-21 22:12:39 +02:00
|
|
|
RUN_DEPENDS+= \
|
|
|
|
p5-Archive-Zip>=0:${PORTSDIR}/archivers/p5-Archive-Zip \
|
|
|
|
p5-DBI>=0:${PORTSDIR}/databases/p5-DBI \
|
|
|
|
p5-File-Copy-Recursive>=0:${PORTSDIR}/devel/p5-File-Copy-Recursive \
|
|
|
|
p5-IO-stringy>=0:${PORTSDIR}/devel/p5-IO-stringy \
|
|
|
|
p5-Locale-libintl>=0:${PORTSDIR}/devel/p5-Locale-libintl \
|
|
|
|
p5-Term-ProgressBar>=0:${PORTSDIR}/devel/p5-Term-ProgressBar \
|
|
|
|
p5-MIME-EncWords>=0:${PORTSDIR}/mail/p5-MIME-EncWords \
|
|
|
|
p5-MIME-Tools>=0:${PORTSDIR}/mail/p5-MIME-Tools \
|
|
|
|
p5-Mail-Tools>=0:${PORTSDIR}/mail/p5-Mail-Tools \
|
|
|
|
p5-Msgcat>=0:${PORTSDIR}/misc/p5-Locale-Msgcat \
|
|
|
|
p5-perl-ldap>=0:${PORTSDIR}/net/p5-perl-ldap \
|
|
|
|
p5-Net-Netmask>=0:${PORTSDIR}/net-mgmt/p5-Net-Netmask \
|
|
|
|
p5-IO-Socket-SSL>=0:${PORTSDIR}/security/p5-IO-Socket-SSL \
|
|
|
|
p5-Crypt-CipherSaber>=0:${PORTSDIR}/security/p5-Crypt-CipherSaber \
|
|
|
|
p5-HTML-Format>=0:${PORTSDIR}/textproc/p5-HTML-Format \
|
|
|
|
p5-Unicode-LineBreak>=0:${PORTSDIR}/textproc/p5-Unicode-LineBreak \
|
|
|
|
p5-XML-LibXML>=0:${PORTSDIR}/textproc/p5-XML-LibXML \
|
|
|
|
p5-HTML-StripScripts-Parser>=0:${PORTSDIR}/www/p5-HTML-StripScripts-Parser \
|
|
|
|
p5-HTML-Tree>=0:${PORTSDIR}/www/p5-HTML-Tree \
|
2012-10-31 11:05:46 +01:00
|
|
|
p5-Template-Toolkit>=0:${PORTSDIR}/www/p5-Template-Toolkit \
|
|
|
|
p5-MIME-Lite-HTML>=0:${PORTSDIR}/mail/p5-MIME-Lite-HTML
|
2012-05-21 20:19:17 +02:00
|
|
|
|
2011-06-06 22:34:16 +02:00
|
|
|
# Ignore alpha/beta versions
|
|
|
|
PORTSCOUT= limit:^[0-9]+(\.[0-9]+)*$$
|
|
|
|
|
|
|
|
USERS= sympa
|
|
|
|
GROUPS= sympa
|
2013-12-29 16:46:13 +01:00
|
|
|
# Shebang is corrected by configure script
|
2013-09-14 20:12:50 +02:00
|
|
|
USES= perl5
|
2011-06-06 22:34:16 +02:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
ICONSDIR?= www/icons
|
|
|
|
CONFIGURE_ARGS+=--bindir=${PREFIX}/libexec/${PORTNAME} \
|
|
|
|
--libexecdir=${PREFIX}/libexec/${PORTNAME} \
|
|
|
|
--localedir=${PREFIX}/share/locale \
|
|
|
|
--sbindir=${PREFIX}/libexec/${PORTNAME} \
|
|
|
|
--sysconfdir=${ETCDIR} \
|
|
|
|
--with-confdir=${PREFIX}/etc \
|
|
|
|
--with-docdir=${EXAMPLESDIR} \
|
|
|
|
--with-expldir=${DATADIR}/list_data \
|
|
|
|
--with-initdir=${PREFIX}/etc/rc.d \
|
|
|
|
--with-lockdir=/var/spool/lock \
|
|
|
|
--with-modulesdir=${PREFIX}/libexec/${PORTNAME} \
|
|
|
|
--with-piddir=/var/run/${PORTNAME} \
|
|
|
|
--with-scriptdir=${PREFIX}/libexec/${PORTNAME} \
|
2012-10-31 11:05:46 +01:00
|
|
|
--with-spooldir=/var/spool/${PORTNAME}
|
2007-09-29 23:02:10 +02:00
|
|
|
CONFIGURE_ENV+= lt_cv_sys_max_cmd_len=${CONFIGURE_MAX_CMD_LEN}
|
|
|
|
MAKE_ENV?= PERL_EXTUTILS_AUTOINSTALL=--skip
|
2011-06-06 22:34:16 +02:00
|
|
|
SUB_FILES= pkg-install
|
2013-12-29 16:46:13 +01:00
|
|
|
SUB_LIST= DB_TYPE=${DB_TYPE:L} WITH_FASTCGI=${PORT_OPTIONS:MFASTCGI}
|
2007-09-29 23:02:10 +02:00
|
|
|
|
2013-03-14 20:14:47 +01:00
|
|
|
USE_RC_SUBR= sympa
|
|
|
|
|
2005-09-29 15:03:55 +02:00
|
|
|
CONFLICTS= sympa-5*
|
|
|
|
|
2013-02-16 14:21:22 +01:00
|
|
|
OPTIONS_DEFINE= FASTCGI APACHE
|
|
|
|
OPTIONS_DEFAULT=APACHE
|
|
|
|
OPTIONS_RADIO= DATABASE
|
|
|
|
OPTIONS_RADIO_DATABASE= ORACLE PGSQL SYBASE MYSQL
|
2003-12-09 10:07:37 +01:00
|
|
|
|
2013-02-16 14:21:22 +01:00
|
|
|
SYBASE_DESC= Sybase database
|
|
|
|
|
|
|
|
.ifdef DB_TYPE
|
|
|
|
DB_TYPE:= ${DB_TYPE:U}
|
|
|
|
. for option in ${OPTIONS_RADIO_DATABASE}
|
|
|
|
. if ${DB_TYPE} == ${option:S,PGSQL,PG,}
|
|
|
|
OPTIONS_SET+= ${option}
|
2013-03-14 20:14:47 +01:00
|
|
|
.warning You need to replace your DB_TYPE variable in make.conf with OPTIONS_SET+=${option}
|
2013-02-16 14:21:22 +01:00
|
|
|
. endif
|
|
|
|
. endfor
|
2011-07-13 21:35:39 +02:00
|
|
|
.endif
|
|
|
|
|
2012-05-02 19:03:27 +02:00
|
|
|
.include <bsd.port.options.mk>
|
2005-05-08 09:44:30 +02:00
|
|
|
|
2013-06-04 16:17:16 +02:00
|
|
|
.if ${PORT_OPTIONS:MNLS}
|
|
|
|
USES+= gettext
|
|
|
|
PLIST_SUB+= NLS=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-nls
|
|
|
|
PLIST_SUB+= NLS="@comment "
|
|
|
|
.endif
|
|
|
|
|
2013-02-16 14:21:22 +01:00
|
|
|
.if ${PORT_OPTIONS:MFASTCGI}
|
2012-05-21 22:12:39 +02:00
|
|
|
RUN_DEPENDS+= p5-FCGI>=0:${PORTSDIR}/www/p5-FCGI
|
2013-02-16 14:21:22 +01:00
|
|
|
. if ${PORT_OPTIONS:MAPACHE}
|
2012-08-18 16:29:08 +02:00
|
|
|
USE_APACHE_RUN= 22+
|
2013-02-16 14:21:22 +01:00
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/${APACHEMODDIR}/mod_fastcgi.so:${PORTSDIR}/www/mod_fastcgi
|
2012-05-02 19:03:27 +02:00
|
|
|
. endif
|
2003-12-09 10:07:37 +01:00
|
|
|
.endif
|
|
|
|
|
2013-02-16 14:21:22 +01:00
|
|
|
.if ${PORT_OPTIONS:MORACLE}
|
2012-05-21 22:12:39 +02:00
|
|
|
RUN_DEPENDS+= p5-DBD-Oracle>=0:${PORTSDIR}/databases/p5-DBD-Oracle
|
2013-12-29 16:46:13 +01:00
|
|
|
DB_TYPE= oracle
|
2013-02-16 14:21:22 +01:00
|
|
|
.elif ${PORT_OPTIONS:MPGSQL}
|
2013-03-14 20:14:47 +01:00
|
|
|
SUB_LIST+= REQ_MYSQL="" REQ_PGSQL=postgresql
|
2012-05-21 22:12:39 +02:00
|
|
|
RUN_DEPENDS+= p5-DBD-Pg>=0:${PORTSDIR}/databases/p5-DBD-Pg
|
2013-12-29 16:46:13 +01:00
|
|
|
DB_TYPE= pg
|
2013-02-16 14:21:22 +01:00
|
|
|
.elif ${PORT_OPTIONS:MSYBASE}
|
2012-05-21 22:12:39 +02:00
|
|
|
RUN_DEPENDS+= p5-DBD-Sybase>=0:${PORTSDIR}/databases/p5-DBD-Sybase
|
2013-12-29 16:46:13 +01:00
|
|
|
DB_TYPE= sybase
|
2013-02-16 14:21:22 +01:00
|
|
|
.elif ${PORT_OPTIONS:MMYSQL}
|
2013-03-14 20:14:47 +01:00
|
|
|
SUB_LIST+= REQ_MYSQL=mysql REQ_PGSQL=""
|
2012-06-08 22:30:40 +02:00
|
|
|
RUN_DEPENDS+= p5-DBD-mysql>=0:${PORTSDIR}/databases/p5-DBD-mysql
|
2013-12-29 16:46:13 +01:00
|
|
|
DB_TYPE= mysql
|
2003-12-09 10:07:37 +01:00
|
|
|
.endif
|
|
|
|
|
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|^\( *defaultdir=\).*$$|\1${EXAMPLESDIR}|' \
|
|
|
|
-e 's|^\( *arcdir=\).*$$|\1${DATADIR}/arc|' \
|
|
|
|
-e 's|^\( *bouncedir=\).*$$|\1${DATADIR}/bounce|' \
|
|
|
|
-e 's|^\( *execcgidir=\).*$$|\1${PREFIX}/libexec/${PORTNAME}|' \
|
|
|
|
${WRKSRC}/configure
|
2014-03-25 21:57:30 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|\(--target.*sympa.conf\)|\1.sample|' \
|
2014-01-01 21:46:35 +01:00
|
|
|
-e 's|/bin/true$$|:|' \
|
2011-06-06 22:34:16 +02:00
|
|
|
${WRKSRC}/Makefile.in
|
2013-12-29 16:46:13 +01:00
|
|
|
@${REINPLACE_CMD} -e 's#\$$(DESTDIR)\$$(sampledir)#${STAGEDIR}\$$(sampledir)#g' \
|
2011-01-10 02:12:11 +01:00
|
|
|
${WRKSRC}/doc/sample/Makefile.in
|
2003-12-09 10:07:37 +01:00
|
|
|
|
2014-01-01 21:46:35 +01:00
|
|
|
pre-install:
|
|
|
|
${MKDIR} ${STAGEDIR}${ETCDIR}
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
for dir in $$(sort ${WRKSRC}/createddirs); do \
|
|
|
|
${MKDIR} -m755 ${STAGEDIR}$$dir; \
|
|
|
|
${TOUCH} ${STAGEDIR}$$dir/.keep; \
|
2014-03-25 21:57:30 +01:00
|
|
|
${ECHO_CMD} "@exec ${CHOWN} ${USERS}:${GROUPS} $${dir#${PREFIX}/}" >> ${TMPPLIST}; \
|
2014-01-01 21:46:35 +01:00
|
|
|
${ECHO_CMD} "$${dir#${PREFIX}/}/.keep" >> ${TMPPLIST}; \
|
|
|
|
done; \
|
|
|
|
for dir in $$(sort -r ${WRKSRC}/createddirs); do \
|
2014-03-25 21:57:30 +01:00
|
|
|
${ECHO_CMD} "@unexec ${RMDIR} $$dir" >> ${TMPPLIST}; \
|
2014-01-01 21:46:35 +01:00
|
|
|
done
|
2014-03-25 21:57:30 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/etc_README ${STAGEDIR}/${ETCDIR}
|
2014-01-01 21:46:35 +01:00
|
|
|
|
2012-05-02 19:03:27 +02:00
|
|
|
.include <bsd.port.mk>
|