pkgsrc/mail/sympa/Makefile
bouyer 0509bda2cb Update to 6.1.22. Main changes since 6.1.11:
[10541] src/lib/List.pm:  [Submitted by S. Shipway, Univ. of Auckland]
	Workaround for aggressive DMARC policy such as yahoo.com.  The patch
	adds option #3 of this DMARC FAQ: http://dmarc.org/faq.html#s_3
	- New list config paragraph "dmarc_protection" to munge "From:" header
	and put original header content erc. into comment.

	[10540] src/lib/Bulk.pm:  New parameters for merged messages.
	"part.description", "part.disposition", "part.encoding" and "part.type"
	may be used for each part of input messages.  These are all-lowercase
	(except "part.description").

*****	[10207] src/etc/script/create_db.Oracle, src/etc/script/create_db.Pg,
*****	src/etc/script/create_db.SQLite, src/etc/script/create_db.Sybase,
*****	src/etc/script/create_db.mysql:  Two new database fields appeared in
*****	this version and a field was modified.
*****	- The new fields are prev_id_session (varchar(30)) and
*****	refresh_date_session (int(11)). they are located in the session_table
*****	table.
*****	- The modified field is dkim_privatekey_bulkspool and is located in the
*****	bulkspool_table table. Its length went from varchar(1000) to
*****	varchar(2000).
*****	Sympa install using MySQL and SQLite backends will have no trouble at
*****	all, as the database structure is updated by Sympa.
*****	However, if you use Postgres, Oracle or Sybase, please have a look
*****	(respectively) at the create_db.Pg, create_db.Oracle or
*****	create_db.Sybase to check the definition of those fields. Please update
*****	your database structure before running Sympa.

	[10206] src/lib/Sympa/DatabaseDescription.pm:  Changing length of DKIM
	private key in database to ensure database creation scripts will be
	updated.

	[10074] mail_tt2/command_report.tt2, mail_tt2/info_report.tt2,
	mail_tt2/review.tt2, src/lib/Commands.pm, src/lib/List.pm,
	src/lib/tt2.pm, web_tt2/edit_list_request.tt2,
	web_tt2/review_family.tt2, web_tt2/search_user.tt2,
	web_tt2/suboptions.tt2, web_tt2/subscriber_table.tt2,
	web_tt2/suspend_request.tt2, wwsympa/wwslib.pm,
	wwsympa/wwsympa.fcgi.in:  i18n of options for list parameters and
	subscriber options.
	- Options on edit_list page are shown by i18n'ed titles.
	- Only listmasters can view real config values.
	- Subscriber options on review pages, command results, subscriber
	option pages and so on are shown by i17n'ed titles (along with real
	option values).

*****	[10051] src/lib/tt2.pm, web_tt2/Makefile.am, web_tt2/css.tt2,
*****	web_tt2/ja_JP, web_tt2/ja_JP/css.tt2, web_tt2/ko_KR,
*****	web_tt2/ko_KR/css.tt2, web_tt2/main.tt2, web_tt2/zh_CN,
*****	web_tt2/zh_CN/css.tt2, web_tt2/zh_TW, web_tt2/zh_TW/css.tt2,
*****	wwsympa/wwsympa.fcgi.in:  Per-language css.tt2 will override any
*****	portion of main css, not fully replacing it.  So they may be used for
*****	locale-specific customization.
*****	Background: Default css.tt2 specifies the font families covering
*****	Western scripts (Latin, Cyrillic, ...).  East Asian users may prefer
*****	consistent font family supporting Western along with Eastern scripts
*****	(Han, Hangul, ...).

	[9966] src/lib/Message.pm, src/lib/confdef.pm:	New site config
	parameter "sender_headers" to specify header fields by which message
	sender is detected.
	This is a enhancement to S. Shipway's improvement.

	[9963] web_tt2/review.tt2, web_tt2/show_exclude.tt2,
	wwsympa/wwsympa.fcgi.in: [Reported by so many listmasters we lost the
	count] Exclusion table was just a display of the users excluded. list
	owners could not do anything to restore subscriptions;
	This page is now a form, similar to the review page, which allows to
	restore users subscriptions.

	[9951] src/lib/List.pm:  Now you can define a "scenari" directory in
	the lists family directory. These scenarii will be available for lists
	instantiated from this family.
	The "scenari" directory must be put directly in the family directory,
	not in the overall "families" directory. For example, if you want to
	define scenarii specific to the "staff" family, you must define a
	scenari directory in the /home/sympa/etc/families/staff/ directory. Not
	in /home/sympa/etc/families/.

*****	[9989] configure.ac, src/Makefile.am, src/alias_manager.pl.in,
*****	src/etc/script/ldap_alias_manager.pl.in,
*****	src/etc/script/mysql_alias_manager.pl.in, src/lib/confdef.pm,
*****	src/sympa_newaliases-wrapper.c, src/sympa_newaliases.pl.in:  Now alias
*****	maintenance utilities other than newaliases may be used without special
*****	configure options nor patch to alias_manager.pl.
*****	Changes:
*****	- aliaswrapper and virtualwrapper were deprecated and replaced with
*****	sympa_newaliases-wrapper.
*****	- New alias management program sympa_newaliases.pl which will typically be
*****	called by alias_manager.pl via sympa_newaliases-wrapper.
*****	- New site configuration parameters aliases_db_type and aliases_program
*****	will control behaviour of alias database maintenance.
*****	- configure script:
*****	- Options --with-sendmail_aliases and --with-virtual_aliases were
*****	deprecated.  Use --with-aliases_file instead.
*****	- New options --with-makemap and --with-postalias, along with
*****	options --with-newaliases and --with-postmap are available.
*****	- Option --with-postmap_arg was removed.
*****	- Alias managers can handle postmap/makemap style maps (delimited by
*****	whitespace), not only newaliases style maps (delimited by colon).

	[9953] wwsympa/wwsympa.fcgi.in: [Submitted by S. Shipway, univ.
	Auckland] several changes in privilegs to ease everyday lists
	moderation:
	- Owners and lismasters can moderate messages and shared repository
	- Editors can moderate subscriptions
	- 'del' and 'add' sceanrios are evaluated to make their result
	available in each page.

	[8451] src/etc/Makefile.am, src/etc/create_list_templates/confidential,
	src/etc/create_list_templates/confidential/comment.tt2,
	src/etc/create_list_templates/confidential/config.tt2,
	src/etc/scenari/send.confidential:  New "confidential" list model.
	These lists are used for groups who don't want any publicity around
	their activities; All possible restrictions are applied to prevent
	unauthorized users to know these lists exist and to learn anything
	about them.

	[8454] web_tt2/footer.tt2, web_tt2/tt2_error.tt2:  Removing references
	to the Sympa version in web pages to avoid pages to be searched by bad
	guys willing to exploit known vulnerabilities on out of date servers.

For complete list of changes, see
http://www.sympa.org/distribution/latest-stable/NEWS
2014-08-30 20:26:45 +00:00

188 lines
8.2 KiB
Makefile

# $NetBSD: Makefile,v 1.56 2014/08/30 20:26:45 bouyer Exp $
DISTNAME= sympa-6.1.22
#PKGREVISION= 8
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
LICENSE= gnu-gpl-v2
PKG_DESTDIR_SUPPORT= destdir
DEPENDS+= mhonarc-[0-9]*:../../mail/mhonarc
DEPENDS+= p5-Archive-Zip>=1.05:../../archivers/p5-Archive-Zip
DEPENDS+= p5-AuthCAS>=1.5:../../security/p5-AuthCAS
DEPENDS+= p5-CGI>=2.52:../../www/p5-CGI
DEPENDS+= p5-Crypt-CipherSaber>=0.50:../../security/p5-Crypt-CipherSaber
DEPENDS+= p5-DBD-Sybase>=0.90:../../databases/p5-DBD-Sybase
DEPENDS+= p5-DBI>=1.06:../../databases/p5-DBI
DEPENDS+= {perl>=5.10,p5-Digest-MD5>=2.00}:../../security/p5-Digest-MD5
DEPENDS+= p5-Email-Date-Format>=1.002:../../mail/p5-Email-Date-Format
DEPENDS+= p5-FCGI>=0.67:../../www/p5-FCGI
DEPENDS+= p5-File-Copy-Recursive>=0.38:../../sysutils/p5-File-Copy-Recursive
DEPENDS+= p5-HTML-Format>=2.10:../../www/p5-HTML-Format
DEPENDS+= p5-HTML-StripScripts-Parser>=1.02:../../www/p5-HTML-StripScripts-Parser
DEPENDS+= p5-HTML-Tree>=4.2:../../www/p5-HTML-Tree
DEPENDS+= p5-IO-Socket-SSL>=0.90:../../security/p5-IO-Socket-SSL
DEPENDS+= p5-IO-stringy>=1.0:../../devel/p5-IO-stringy
DEPENDS+= p5-Locale-libintl>=1.16:../../misc/p5-Locale-libintl
DEPENDS+= {perl>=5.7.3,p5-MIME-Base64>=1.0}:../../converters/p5-MIME-Base64
DEPENDS+= p5-MIME-EncWords>=1.010.101:../../mail/p5-MIME-EncWords
DEPENDS+= p5-MIME-Lite-HTML>=1.23:../../mail/p5-MIME-Lite-HTML
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-Net-Netmask>=1.9015:../../devel/p5-Net-Netmask
DEPENDS+= p5-Net-SSLeay>=1.16:../../security/p5-Net-SSLeay
DEPENDS+= p5-Regexp-Common>=2.120:../../textproc/p5-Regexp-Common
DEPENDS+= p5-SOAP-Lite-[0-9]*:../../net/p5-SOAP-Lite
DEPENDS+= p5-Template-Toolkit>=2.20:../../www/p5-Template-Toolkit
DEPENDS+= p5-Term-ProgressBar>=2.09:../../devel/p5-Term-ProgressBar
DEPENDS+= {perl>=5.15.1,p5-Time-HiRes>=1.9724}:../../time/p5-Time-HiRes
DEPENDS+= p5-Unicode-LineBreak>=2012.02:../../textproc/p5-Unicode-LineBreak
DEPENDS+= p5-XML-LibXML>=1.61:../../textproc/p5-XML-LibXML
DEPENDS+= p5-libwww>=1.09:../../www/p5-libwww
DEPENDS+= p5-perl-ldap>=0.27:../../databases/p5-perl-ldap
DEPENDS.SunOS+= {perl>=5.10,p5-DB_File>=1.75}:../../databases/p5-DB_File
OPSYSVARS+= DEPENDS
USE_TOOLS+= gmake msgfmt perl:run
GNU_CONFIGURE= YES
CONFIGURE_ARGS+= --bindir=${PREFIX}/sympa/bin
CONFIGURE_ARGS+= --with-cgidir=${PREFIX}/sympa/libexec/cgi-bin
CONFIGURE_ARGS+= --libexecdir=${PREFIX}/sympa/bin
CONFIGURE_ARGS+= --localedir=${PREFIX}/share/locale
CONFIGURE_ARGS+= --sbindir=${PREFIX}/sympa/bin
CONFIGURE_ARGS+= --with-defaultdir=${PREFIX}/sympa/default
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
CONFIGURE_ARGS+= --with-confdir=${PKG_SYSCONFDIR}
CONFIGURE_ARGS+= --with-expldir=${SYMPA_VARBASE}/list_data
CONFIGURE_ARGS+= --with-lockdir=${SYMPA_VARBASE}/lock
CONFIGURE_ARGS+= --with-modulesdir=${PREFIX}/sympa/bin
CONFIGURE_ARGS+= --with-piddir=${SYMPA_VARBASE}/run
CONFIGURE_ARGS+= --with-scriptdir=${PREFIX}/sympa/bin
CONFIGURE_ARGS+= --with-spooldir=${SYMPA_SPOOL:Q}
CONFIGURE_ARGS+= --mandir=${MAN8PREFIX}/man
CONFIGURE_ARGS+= --with-perl=${PERL5:Q}
CONFIGURE_ARGS+= --sharedstatedir=${SYMPA_PREFIX}/libdata
CONFIGURE_ARGS+= --datadir=${PREFIX}/share
CONFIGURE_ARGS+= --localstatedir=${SYMPA_VARBASE}
CONFIGURE_ARGS+= --with-docdir=${PREFIX}/share/doc/sympa
CONFIGURE_ARGS+= --with-user=${SYMPA_USER:Q}
CONFIGURE_ARGS+= --with-group=${SYMPA_GROUP:Q}
PKG_SYSCONFSUBDIR?= sympa
PKG_OPTIONS_VAR= PKG_OPTIONS.sympa
PKG_SUPPORTED_OPTIONS= mysql pgsql
RCD_SCRIPTS= archived bounced bulk 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?= /var/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
BUILD_DEFS+= SYMPA_VARBASE
OWN_DIRS_PERMS+= ${PKG_SYSCONFDIR} ${SYMPA_USER} ${SYMPA_GROUP} 755
.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} 775
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_VARBASE}/arc ${SYMPA_USER} ${SYMPA_GROUP} 770
OWN_DIRS_PERMS+= ${SYMPA_VARBASE}/bounce ${SYMPA_USER} ${SYMPA_GROUP} 770
OWN_DIRS_PERMS+= ${SYMPA_VARBASE}/list_data ${SYMPA_USER} ${SYMPA_GROUP} 775
OWN_DIRS_PERMS+= ${SYMPA_VARBASE}/list_data/static_content ${SYMPA_USER} ${SYMPA_GROUP} 775
OWN_DIRS_PERMS+= ${SYMPA_VARBASE}/list_data/static_content/icons ${SYMPA_USER} ${SYMPA_GROUP} 775
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}/sympa_newaliases-wrapper ${ROOT_USER} ${SYMPA_GROUP} 4550
SPECIAL_PERMS+= ${SYMPA_BIN}/bouncequeue ${SYMPA_USER} ${SYMPA_GROUP} 4555
SPECIAL_PERMS+= ${SYMPA_BIN}/familyqueue ${SYMPA_USER} ${SYMPA_GROUP} 4555
SPECIAL_PERMS+= ${SYMPA_BIN}/queue ${SYMPA_USER} ${SYMPA_GROUP} 4555
SPECIAL_PERMS+= ${SYMPA_PREFIX}/libexec/cgi-bin/wwsympa-wrapper.fcgi \
${SYMPA_USER} ${SYMPA_GROUP} 6555
SPECIAL_PERMS+= ${SYMPA_PREFIX}/libexec/cgi-bin/sympa_soap_server-wrapper.fcgi \
${SYMPA_USER} ${SYMPA_GROUP} 6555
CONF_FILES= ${PREFIX}/share/examples/sympa/sympa.conf \
${PKG_SYSCONFDIR}/sympa.conf
CONF_FILES+= ${PREFIX}/share/examples/sympa/wwsympa.conf \
${PKG_SYSCONFDIR}/wwsympa.conf
.for f in back.png folder.open.png locked.png sound1.png begin.png folder.png\
logo-s-lock.png sv.png binary.png h.png logo-s.png text.png crosshairs.png\
image2.png logo_sympa.png top.png down.png junk.png movie.png unknown.png\
end.png left.png position.png favicon_sympa.png link.png right.png
CONF_FILES+= ${PREFIX}/sympa/static_content/icons/${f} \
${SYMPA_VARBASE}/list_data/static_content/icons/${f}
.endfor
MESSAGE_SUBST+= SYMPA_BIN=${SYMPA_BIN} SYMPA_VARBASE=${SYMPA_VARBASE}
INSTALLATION_DIRS+= share/doc/sympa
.include "../../mk/bsd.prefs.mk"
SUBST_CLASSES+= paths
SUBST_STAGE.paths= post-patch
SUBST_FILES.paths= configure
SUBST_SED.paths= -e "s|localstatedir/lib/sympa|localstatedir|g"
SUBST_SED.paths+= -e "s|prefix/static_content|prefix/sympa/static_content|g"
SUBST_SED.paths+= -e "s|prefix/default|prefix/sympa/default|g"
SUBST_SED.paths+= -e "s|prefix/arc|localstatedir/arc|g"
SUBST_SED.paths+= -e "s|prefix/bounce|localstatedir/bounce|g"
SUBST_MESSAGE.paths= Fixing configure paths
post-install:
${INSTALL_DATA} ${WRKSRC}/NEWS ${DESTDIR}${PREFIX}/share/doc/sympa/NEWS
${CHOWN} ${ROOT_USER}:${ROOT_GROUP} ${DESTDIR}${SYMPA_PREFIX}/static_content
${CHMOD} a-w \
${DESTDIR}${SYMPA_PREFIX}/libexec/cgi-bin/wwsympa-wrapper.fcgi \
${DESTDIR}${SYMPA_PREFIX}/libexec/cgi-bin/sympa_soap_server-wrapper.fcgi \
${DESTDIR}${SYMPA_BIN}/bouncequeue \
${DESTDIR}${SYMPA_BIN}/familyqueue \
${DESTDIR}${SYMPA_BIN}/queue
.include "../../lang/perl5/buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"