blob: 2c32e7a8fdd96ff656e49bbf5d45972204d9f663 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
|
# Created by: Autrijus Tang <autrijus@autrijus.org>
# $FreeBSD$
PORTNAME= sympa
PORTVERSION= 6.1.20
PORTREVISION= 1
CATEGORIES= mail
MASTER_SITES= http://www.sympa.org/distribution/ \
http://www.sympa.org/distribution/old/
MAINTAINER= crees@FreeBSD.org
COMMENT= Sympa is an electronic mailing list manager
LICENSE= GPLv2
BUILD_DEPENDS:= ${RUN_DEPENDS}
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 \
p5-Template-Toolkit>=0:${PORTSDIR}/www/p5-Template-Toolkit \
p5-MIME-Lite-HTML>=0:${PORTSDIR}/mail/p5-MIME-Lite-HTML
# Ignore alpha/beta versions
PORTSCOUT= limit:^[0-9]+(\.[0-9]+)*$$
USERS= sympa
GROUPS= sympa
# Shebang is corrected by configure script
USES= perl5
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} \
--with-spooldir=/var/spool/${PORTNAME}
CONFIGURE_ENV+= lt_cv_sys_max_cmd_len=${CONFIGURE_MAX_CMD_LEN}
MAKE_ENV?= PERL_EXTUTILS_AUTOINSTALL=--skip
SUB_FILES= pkg-install pkg-message
SUB_LIST= DB_TYPE=${DB_TYPE:tl}
PORTEXAMPLES= *
USE_RC_SUBR= sympa
CONFLICTS= sympa-5*
OPTIONS_DEFINE= FASTCGI APACHE NLS
OPTIONS_DEFAULT=APACHE
OPTIONS_RADIO= DATABASE
OPTIONS_RADIO_DATABASE= ORACLE PGSQL SYBASE MYSQL
SYBASE_DESC= Sybase database
.ifdef DB_TYPE
DB_TYPE:= ${DB_TYPE:tu}
. for option in ${OPTIONS_RADIO_DATABASE}
. if ${DB_TYPE} == ${option:S,PGSQL,PG,}
OPTIONS_SET+= ${option}
.warning You need to replace your DB_TYPE variable in make.conf with OPTIONS_SET+=${option}
. endif
. endfor
.endif
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MNLS}
USES+= gettext
PLIST_SUB+= NLS=""
.else
CONFIGURE_ARGS+=--disable-nls
PLIST_SUB+= NLS="@comment "
.endif
.if ${PORT_OPTIONS:MFASTCGI}
RUN_DEPENDS+= p5-FCGI>=0:${PORTSDIR}/www/p5-FCGI
SUB_LIST+= FCGI=""
. if ${PORT_OPTIONS:MAPACHE}
USE_APACHE_RUN= 22+
RUN_DEPENDS+= ${LOCALBASE}/${APACHEMODDIR}/mod_fastcgi.so:${PORTSDIR}/www/mod_fastcgi
. endif
.else
SUB_LIST+= FCGI="@comment "
.endif
.if ${PORT_OPTIONS:MORACLE}
RUN_DEPENDS+= p5-DBD-Oracle>=0:${PORTSDIR}/databases/p5-DBD-Oracle
DB_TYPE= oracle
.elif ${PORT_OPTIONS:MPGSQL}
SUB_LIST+= REQ_MYSQL="" REQ_PGSQL=postgresql
RUN_DEPENDS+= p5-DBD-Pg>=0:${PORTSDIR}/databases/p5-DBD-Pg
DB_TYPE= pg
.elif ${PORT_OPTIONS:MSYBASE}
RUN_DEPENDS+= p5-DBD-Sybase>=0:${PORTSDIR}/databases/p5-DBD-Sybase
DB_TYPE= sybase
.elif ${PORT_OPTIONS:MMYSQL}
SUB_LIST+= REQ_MYSQL=mysql REQ_PGSQL=""
RUN_DEPENDS+= p5-DBD-mysql>=0:${PORTSDIR}/databases/p5-DBD-mysql
DB_TYPE= mysql
.endif
post-patch:
@${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
@${REINPLACE_CMD} -e 's|\(--target.*sympa.conf\)|\1.sample|' \
-e 's|/bin/true$$|:|' \
${WRKSRC}/Makefile.in
@${REINPLACE_CMD} -e 's#\$$(DESTDIR)\$$(sampledir)#${STAGEDIR}\$$(sampledir)#g' \
${WRKSRC}/doc/sample/Makefile.in
pre-install:
${MKDIR} ${STAGEDIR}${ETCDIR}
post-install:
for dir in $$(sort ${WRKSRC}/createddirs | ${SED} 's,^${STAGEDIR},,'); do \
${MKDIR} -m755 ${STAGEDIR}$$dir; \
${TOUCH} ${STAGEDIR}$$dir/.keep; \
${ECHO_CMD} "@exec ${CHOWN} ${USERS}:${GROUPS} $${dir#${PREFIX}/}" >> ${TMPPLIST}; \
${ECHO_CMD} "$${dir#${PREFIX}/}/.keep" >> ${TMPPLIST}; \
done; \
for dir in $$(sort -r ${WRKSRC}/createddirs); do \
${ECHO_CMD} "@unexec rmdir $${dir#${STAGEDIR}} || : 2>/dev/null" >> ${TMPPLIST}; \
done
${INSTALL_DATA} ${WRKSRC}/etc_README ${STAGEDIR}/${ETCDIR}
.include <bsd.port.mk>
|