2003-12-09 10:07:37 +01:00
|
|
|
# New ports collection makefile for: sympa
|
|
|
|
# Date created: 29 November 2003
|
|
|
|
# Whom: Autrijus Tang <autrijus@autrijus.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= sympa
|
2004-10-25 15:09:20 +02:00
|
|
|
PORTVERSION?= 4.1.2
|
2005-06-11 18:13:12 +02:00
|
|
|
PORTREVISION= 3
|
2003-12-09 10:07:37 +01:00
|
|
|
CATEGORIES= mail
|
2005-02-27 14:55:24 +01:00
|
|
|
MASTER_SITES?= http://www.sympa.org/distribution/old/
|
2003-12-09 10:07:37 +01:00
|
|
|
|
2005-09-10 11:23:13 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-12-09 10:07:37 +01:00
|
|
|
COMMENT?= Sympa is an electronic mailing list manager
|
|
|
|
|
|
|
|
BUILD_DEPENDS+= ${SITE_PERL}/Mail/Mailer.pm:${PORTSDIR}/mail/p5-Mail-Tools \
|
|
|
|
${SITE_PERL}/IO/Stringy.pm:${PORTSDIR}/devel/p5-IO-stringy \
|
|
|
|
${SITE_PERL}/MIME/Tools.pm:${PORTSDIR}/mail/p5-MIME-Tools \
|
2005-06-11 18:13:12 +02:00
|
|
|
${SITE_PERL}/${PERL_ARCH}/File/Spec.pm:${PORTSDIR}/devel/p5-PathTools \
|
2003-12-09 10:07:37 +01:00
|
|
|
${SITE_PERL}/CGI.pm:${PORTSDIR}/www/p5-CGI.pm \
|
|
|
|
${SITE_PERL}/IO/Socket/SSL.pm:${PORTSDIR}/security/p5-IO-Socket-SSL \
|
|
|
|
${SITE_PERL}/Crypt/CipherSaber.pm:${PORTSDIR}/security/p5-Crypt-CipherSaber \
|
|
|
|
${SITE_PERL}/Net/LDAP.pm:${PORTSDIR}/net/p5-perl-ldap \
|
|
|
|
${SITE_PERL}/${PERL_ARCH}/BerkeleyDB.pm:${PORTSDIR}/databases/p5-BerkeleyDB \
|
|
|
|
${SITE_PERL}/${PERL_ARCH}/Digest/MD5.pm:${PORTSDIR}/security/p5-Digest-MD5 \
|
|
|
|
${SITE_PERL}/${PERL_ARCH}/MIME/Base64.pm:${PORTSDIR}/converters/p5-MIME-Base64 \
|
|
|
|
${SITE_PERL}/${PERL_ARCH}/Locale/Msgcat.pm:${PORTSDIR}/misc/p5-Locale-Msgcat \
|
2007-04-04 19:39:14 +02:00
|
|
|
${SITE_PERL}/Archive/Zip.pm:${PORTSDIR}/archivers/p5-Archive-Zip \
|
|
|
|
${SITE_PERL}/${PERL_ARCH}/DBI.pm:${PORTSDIR}/databases/p5-DBI
|
2004-01-12 09:33:26 +01:00
|
|
|
RUN_DEPENDS= ${BUILD_DEPENDS}
|
2003-12-09 10:07:37 +01:00
|
|
|
|
2005-09-29 15:03:55 +02:00
|
|
|
CONFLICTS= sympa-5*
|
|
|
|
|
2004-10-25 15:09:20 +02:00
|
|
|
DB_TYPE=
|
2003-12-09 10:07:37 +01:00
|
|
|
|
2005-05-08 09:44:30 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2003-12-09 10:07:37 +01:00
|
|
|
.if defined(WITH_FASTCGI)
|
|
|
|
.if defined(WITH_APACHE2)
|
|
|
|
BUILD_DEPENDS+= ${LOCALBASE}/libexec/apache2/mod_fastcgi.so:${PORTSDIR}/www/mod_fastcgi
|
|
|
|
.else
|
|
|
|
BUILD_DEPENDS+= ${LOCALBASE}/libexec/apache/mod_fastcgi.so:${PORTSDIR}/www/mod_fastcgi
|
|
|
|
.endif
|
|
|
|
BUILD_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/FCGI.pm:${PORTSDIR}/www/p5-FastCGI
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${DB_TYPE} == "Oracle"
|
2004-10-25 15:09:20 +02:00
|
|
|
BUILD_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/DBD/Oracle.pm:${PORTSDIR}/databases/p5-DBD-Oracle
|
2003-12-09 10:07:37 +01:00
|
|
|
.else
|
|
|
|
.if ${DB_TYPE} == "Pg"
|
2004-10-25 15:09:20 +02:00
|
|
|
BUILD_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/DBD/Pg.pm:${PORTSDIR}/databases/p5-DBD-Pg
|
2003-12-09 10:07:37 +01:00
|
|
|
.else
|
|
|
|
.if ${DB_TYPE} == "Sybase"
|
2004-10-25 15:09:20 +02:00
|
|
|
BUILD_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/DBD/Sybase.pm:${PORTSDIR}/databases/p5-DBD-Sybase
|
2003-12-09 10:07:37 +01:00
|
|
|
.else
|
|
|
|
.if ${DB_TYPE} == "mysql"
|
|
|
|
BUILD_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/DBD/mysql.pm:${PORTSDIR}/databases/p5-DBD-mysql
|
|
|
|
.endif
|
|
|
|
.endif
|
|
|
|
.endif
|
|
|
|
.endif
|
|
|
|
|
2004-03-17 08:11:06 +01:00
|
|
|
HAS_CONFIGURE= yes
|
2003-12-09 10:07:37 +01:00
|
|
|
USE_PERL5= yes
|
|
|
|
CONFIGURE_ARGS+=--prefix=${PREFIX}/sympa \
|
|
|
|
--with-confdir=${PREFIX}/etc \
|
2004-03-17 08:11:06 +01:00
|
|
|
--with-initdir=${PREFIX}/etc/rc.d \
|
2004-10-25 15:09:20 +02:00
|
|
|
--with-etcdir=${PREFIX}/sympa/bin/etc \
|
2005-02-28 09:56:01 +01:00
|
|
|
--with-iconsdir=${PREFIX}/www/icons \
|
2004-03-17 08:11:06 +01:00
|
|
|
${CONFIGURE_TARGET}
|
|
|
|
CONFIGURE_ENV+= lt_cv_sys_max_cmd_len=${CONFIGURE_MAX_CMD_LEN}
|
2003-12-09 10:07:37 +01:00
|
|
|
MAKE_ENV?= PERL_EXTUTILS_AUTOINSTALL=--skip
|
|
|
|
|
2005-02-28 09:56:01 +01:00
|
|
|
MAN8= alias_manager.8 archived.8 bounced.8 sympa.8
|
|
|
|
|
2003-12-09 10:07:37 +01:00
|
|
|
pre-fetch:
|
|
|
|
@${ECHO} ""
|
|
|
|
@${ECHO} "You may use the following build options:"
|
|
|
|
@${ECHO} ""
|
2004-10-25 15:09:20 +02:00
|
|
|
@${ECHO} " DB_TYPE=type Optional: mysql, Oracle, Pg or Sybase"
|
2003-12-09 10:07:37 +01:00
|
|
|
@${ECHO} " WITH_FASTCGI Use FastCGI instead of plain CGI"
|
|
|
|
@${ECHO} ""
|
|
|
|
|
|
|
|
pre-install:
|
2004-10-25 15:09:20 +02:00
|
|
|
@PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
${MV} ${WRKSRC}/src/etc/script/sympa ${WRKSRC}/src/etc/script/sympa.sh
|
|
|
|
@${FIND} ${WRKSRC} -name "*.orig" -a -exec ${RM} -f {} \;
|
2003-12-09 10:07:37 +01:00
|
|
|
|
2004-03-16 23:06:04 +01:00
|
|
|
post-install:
|
2004-10-25 15:09:20 +02:00
|
|
|
@PKG_PREFIX=${PREFIX} DB_TYPE=${DB_TYPE} WITH_FASTCGI=${WITH_FASTCGI} \
|
|
|
|
${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
2004-03-16 23:06:04 +01:00
|
|
|
|
2003-12-09 10:07:37 +01:00
|
|
|
post-deinstall:
|
2004-10-25 15:09:20 +02:00
|
|
|
@PKG_PREFIX=${PREFIX} ${SH} ${PKGDEINSTALL} ${PKGNAME} POST-DEINSTALL
|
2003-12-09 10:07:37 +01:00
|
|
|
|
2004-05-17 15:31:37 +02:00
|
|
|
.include <bsd.port.post.mk>
|