blob: 9b61031995df8926a001b1d7f9357bcc57e37cbe (
plain)
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
|
# $NetBSD: Makefile,v 1.46 2012/01/03 03:44:39 joerg Exp $
#
DISTNAME= sympa-5.4.4
PKGREVISION= 4
CATEGORIES= mail
MASTER_SITES= http://www.sympa.org/distribution/ \
http://www.sympa.org/distribution/old/
MAINTAINER= bouyer@NetBSD.org
HOMEPAGE= http://www.sympa.org/
COMMENT= Mailing list manager
PKG_DESTDIR_SUPPORT= destdir
DEPENDS+= p5-Archive-Zip>=1.05:../../archivers/p5-Archive-Zip
DEPENDS+= p5-MIME-Base64>=1.0:../../converters/p5-MIME-Base64
DEPENDS+= p5-DBD-Sybase>=0.90:../../databases/p5-DBD-Sybase
DEPENDS+= p5-DBI>=1.06:../../databases/p5-DBI
DEPENDS+= p5-perl-ldap>=0.27:../../databases/p5-perl-ldap
DEPENDS+= p5-IO-stringy>=1.0:../../devel/p5-IO-stringy
DEPENDS+= mhonarc-[0-9]*:../../mail/mhonarc
DEPENDS+= p5-MIME-tools>=5.209:../../mail/p5-MIME-tools
DEPENDS+= p5-MailTools>=1.51:../../mail/p5-MailTools
DEPENDS+= {perl>=5.10,p5-Net>=1.0}:../../net/p5-Net
DEPENDS+= p5-SOAP-Lite-[0-9]*:../../net/p5-SOAP-Lite
DEPENDS+= p5-Crypt-CipherSaber>=0.50:../../security/p5-Crypt-CipherSaber
DEPENDS+= {perl>=5.10,p5-Digest-MD5>=2.00}:../../security/p5-Digest-MD5
DEPENDS+= p5-IO-Socket-SSL>=0.90:../../security/p5-IO-Socket-SSL
DEPENDS+= p5-Net-SSLeay>=1.16:../../security/p5-Net-SSLeay
DEPENDS+= {perl>=5.10,p5-CGI>=2.52}:../../www/p5-CGI
DEPENDS+= p5-FCGI>=0.67:../../www/p5-FCGI
DEPENDS+= p5-libwww>=1.09:../../www/p5-libwww
DEPENDS+= p5-Locale-libintl>=1.16:../../misc/p5-Locale-libintl
DEPENDS+= p5-XML-LibXML>=1.61:../../textproc/p5-XML-LibXML
DEPENDS+= p5-Regexp-Common>=2.120:../../textproc/p5-Regexp-Common
DEPENDS+= p5-HTML-StripScripts-Parser>=1.02:../../www/p5-HTML-StripScripts-Parser
DEPENDS+= p5-MIME-EncWords>=1.010.101:../../mail/p5-MIME-EncWords
DEPENDS+= p5-Template-Toolkit>=2.20:../../www/p5-Template-Toolkit
DEPENDS.SunOS+= {perl>=5.10,p5-DB_File>=1.75}:../../databases/p5-DB_File
OPSYSVARS+= DEPENDS
USE_TOOLS+= gmake msgfmt
GNU_CONFIGURE= YES
CONFIGURE_ARGS+= --with-confdir=${PKG_SYSCONFDIR:Q}
CONFIGURE_ARGS+= --with-cgidir=${SYMPA_BIN:Q}
CONFIGURE_ARGS+= --with-bindir=${SYMPA_BIN:Q}
CONFIGURE_ARGS+= --with-sbindir=${SYMPA_BIN:Q}
CONFIGURE_ARGS+= --with-libexecdir=${SYMPA_BIN:Q}
CONFIGURE_ARGS+= --with-libdir=${SYMPA_BIN:Q}
CONFIGURE_ARGS+= --with-datadir=${SYMPA_BIN}/etc
CONFIGURE_ARGS+= --with-expldir=${SYMPA_VARBASE}/expl
CONFIGURE_ARGS+= --with-mandir=${PREFIX}/${PKGMANDIR}
CONFIGURE_ARGS+= --with-lockdir=${SYMPA_VARBASE}/lock
CONFIGURE_ARGS+= --with-piddir=${SYMPA_VARBASE}/run
CONFIGURE_ARGS+= --with-etcdir=${PKG_SYSCONFDIR}/sympa
CONFIGURE_ARGS+= --with-nlsdir=${SYMPA_PREFIX}/nls
CONFIGURE_ARGS+= --with-docdir=${PREFIX}/share/doc/sympa
CONFIGURE_ARGS+= --with-scriptdir=${SYMPA_BIN:Q}
CONFIGURE_ARGS+= --with-sampledir=${PREFIX}/share/examples/sympa
CONFIGURE_ARGS+= --with-spooldir=${SYMPA_SPOOL:Q}
CONFIGURE_ARGS+= --with-perl=${PERL5:Q}
CONFIGURE_ARGS+= --with-mhonarc=${MHONARC_PREFIX}/bin/mhonarc
CONFIGURE_ARGS+= --with-openssl=${SSLBASE}/bin/openssl
CONFIGURE_ARGS+= --with-user=${SYMPA_USER:Q}
CONFIGURE_ARGS+= --with-group=${SYMPA_GROUP:Q}
CONFIGURE_ARGS+= --with-localedir=${PREFIX}/${PKGLOCALEDIR}/locale
MHONARC_PREFIX_DEFAULT= ${LOCALBASE}
EVAL_PREFIX+= MHONARC_PREFIX=mhonarc
PKG_OPTIONS_VAR= PKG_OPTIONS.sympa
PKG_SUPPORTED_OPTIONS= mysql pgsql
RCD_SCRIPTS= archived bounced sympa task_manager
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Mmysql)
DEPENDS+= p5-DBD-mysql>=2.0407:../../databases/p5-DBD-mysql
.endif
.if !empty(PKG_OPTIONS:Mpgsql)
DEPENDS+= p5-DBD-postgresql>=0.90:../../databases/p5-DBD-postgresql
.endif
SYMPA_USER?= sympa
SYMPA_GROUP?= sympa
SYMPA_VARBASE?= ${HOMEBASE}/sympa
SYMPA_PREFIX= ${PREFIX}/sympa
SYMPA_SPOOL= ${SYMPA_VARBASE}/spool
SYMPA_BIN= ${SYMPA_PREFIX}/bin
PKG_GROUPS= ${SYMPA_GROUP}
PKG_USERS= ${SYMPA_USER}:${SYMPA_GROUP}
PKG_HOME.${SYMPA_USER}= ${SYMPA_VARBASE}
PKG_GROUPS_VARS+= SYMPA_GROUP
PKG_USERS_VARS+= SYMPA_USER
USERGROUP_PHASE= pre-install
BUILD_DEFS+= SYMPA_VARBASE
.for d in sympa sympa/create_list_templates sympa/general_task_models \
sympa/scenari sympa/task_models sympa/templates sympa/wws_templates
OWN_DIRS_PERMS+= ${PKG_SYSCONFDIR}/${d} ${SYMPA_USER} ${SYMPA_GROUP} 755
.endfor
OWN_DIRS_PERMS+= ${SYMPA_VARBASE} ${SYMPA_USER} ${SYMPA_GROUP} 770
OWN_DIRS_PERMS+= ${SYMPA_VARBASE}/expl ${SYMPA_USER} ${SYMPA_GROUP} 770
OWN_DIRS_PERMS+= ${SYMPA_VARBASE}/lock ${SYMPA_USER} ${SYMPA_GROUP} 770
OWN_DIRS_PERMS+= ${SYMPA_VARBASE}/run ${SYMPA_USER} ${SYMPA_GROUP} 770
OWN_DIRS_PERMS+= ${SYMPA_SPOOL} ${SYMPA_USER} ${SYMPA_GROUP} 770
OWN_DIRS_PERMS+= ${SYMPA_SPOOL}/msg ${SYMPA_USER} ${SYMPA_GROUP} 770
OWN_DIRS_PERMS+= ${SYMPA_SPOOL}/digest ${SYMPA_USER} ${SYMPA_GROUP} 770
OWN_DIRS_PERMS+= ${SYMPA_SPOOL}/moderation ${SYMPA_USER} ${SYMPA_GROUP} 770
OWN_DIRS_PERMS+= ${SYMPA_SPOOL}/expire ${SYMPA_USER} ${SYMPA_GROUP} 770
OWN_DIRS_PERMS+= ${SYMPA_SPOOL}/auth ${SYMPA_USER} ${SYMPA_GROUP} 770
OWN_DIRS_PERMS+= ${SYMPA_SPOOL}/outgoing ${SYMPA_USER} ${SYMPA_GROUP} 770
OWN_DIRS_PERMS+= ${SYMPA_SPOOL}/task ${SYMPA_USER} ${SYMPA_GROUP} 770
OWN_DIRS_PERMS+= ${SYMPA_SPOOL}/tmp ${SYMPA_USER} ${SYMPA_GROUP} 770
SPECIAL_PERMS+= ${SYMPA_BIN}/aliaswrapper ${ROOT_USER} ${SYMPA_GROUP} 4550
SPECIAL_PERMS+= ${SYMPA_BIN}/bouncequeue ${SYMPA_USER} ${SYMPA_GROUP} 4555
SPECIAL_PERMS+= ${SYMPA_BIN}/queue ${SYMPA_USER} ${SYMPA_GROUP} 4555
SPECIAL_PERMS+= ${SYMPA_BIN}/virtualwrapper ${ROOT_USER} ${SYMPA_GROUP} 4550
# Which pkgsrc platforms support set-uid scripts?
#SPECIAL_PERMS+= ${SYMPA_BIN}/sympa_soap_server.fcgi ${SYMPA_USER} ${SYMPA_GROUP} 6555
#SPECIAL_PERMS+= ${SYMPA_BIN}/wwsympa.fcgi ${SYMPA_USER} ${SYMPA_GROUP} 6555
MESSAGE_SUBST+= SYMPA_BIN=${SYMPA_BIN}
INSTALLATION_DIRS+= share/doc/sympa
.include "../../mk/bsd.prefs.mk"
post-install:
.if ${OPSYS} == "NetBSD"
: We do not support set-uid scripts...
${CHMOD} ug-s ${DESTDIR}${SYMPA_BIN}/sympa_soap_server.fcgi
${CHMOD} ug-s ${DESTDIR}${SYMPA_BIN}/wwsympa.fcgi
.endif
${INSTALL_DATA} ${WRKSRC}/NEWS ${DESTDIR}${PREFIX}/share/doc/sympa/NEWS
.include "../../lang/perl5/buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|