ajacoutot f50fdd748e Stop using the daemon class in @newuser.
If we need to make an exception we can do it and properly document the
reason but by default we should just use the default login class.
rc.d uses daemon or the login class provided in login.conf.d so this has
no impact there.

discussed with sthen@, tb@ and robert@

praying that my grep/sed skills did not break anything and still
believing in portbump :-)
2022-11-08 11:14:43 +00:00

96 lines
2.5 KiB
Makefile

COMMENT = mailing list manager with web interface
VERSION = 6.2.16
DISTNAME = sympa-${VERSION}
REVISION = 6
CATEGORIES = mail www
HOMEPAGE = http://www.sympa.org
# GPLv2
PERMIT_PACKAGE = Yes
MASTER_SITES = ${HOMEPAGE}/distribution/ \
${HOMEPAGE}/distribution/old/
MODULES = perl
USE_GMAKE = Yes
SYMPA_HOME = /var/sympa
SUBST_VARS += SYMPA_HOME
CONFIGURE_STYLE = gnu
CONFIGURE_ARGS = --with-modulesdir=${PREFIX}/${P5SITE} \
--with-initdir=${PREFIX}/sbin \
--without-smrshdir \
--with-user=_sympa \
--with-group=_sympa \
--with-aliases_file=${SYMPA_HOME}/sympa_aliases \
--with-confdir=${SYMPA_HOME}/etc \
--with-expldir=${SYMPA_HOME}/list_data \
--with-spooldir=${VARBASE}/spool/sympa \
--with-staticdir=${VARBASE}/www/sympa \
--with-cgidir=${PREFIX}/libexec/sympa \
--libexecdir=${PREFIX}/libexec/sympa \
--with-defaultdir=${PREFIX}/share/sympa \
--with-docdir=${PREFIX}/share/examples/sympa \
--sbindir=${PREFIX}/sbin \
--with-postmap=${LOCALBASE}/sbin/postmap \
--with-postalias=${LOCALBASE}/sbin/postalias \
--with-piddir=${VARBASE}/run/sympa \
--with-lockdir=${VARBASE}/spool/lock \
--with-localedir=${PREFIX}/share/locale
# no LIB_DEPENDS, doesn't link with it
BUILD_DEPENDS = devel/gettext,-runtime
# for postmap check
BUILD_DEPENDS += mail/postfix/stable
WANTLIB = c
RUN_DEPENDS = archivers/p5-Archive-Zip \
converters/p5-Unicode-LineBreak>=2011.05 \
databases/p5-DBI \
devel/gettext,-runtime \
devel/p5-IO-stringy \
devel/p5-File-Copy-Recursive \
devel/p5-Class-Singleton \
devel/p5-libintl \
devel/p5-DateTime-Format-Mail \
devel/p5-DateTime-TimeZone \
devel/p5-Term-ProgressBar \
net/p5-Net-Netmask \
net/p5-Net-CIDR \
mail/p5-MIME-tools \
mail/p5-MIME-Charset \
mail/p5-MIME-EncWords \
mail/p5-MIME-Lite-HTML \
security/p5-IO-Socket-SSL \
security/p5-Crypt-CipherSaber \
sysutils/p5-File-NFSLock \
textproc/p5-Template \
textproc/p5-XML-LibXML \
www/spawn-fcgi \
www/mhonarc \
www/p5-libwww \
www/p5-CGI \
www/p5-HTML-Format \
www/p5-HTML-StripScripts-Parser \
www/p5-HTML-Tree
NO_TEST = Yes
pre-configure:
${SUBST_CMD} ${WRKSRC}/src/lib/Sympa/ConfDef.pm
post-install:
# taken from Makefile's installconfig target
env PERL5LIB=${PREFIX}/${P5SITE} \
${PREFIX}/sbin/sympa_wizard.pl --create sympa.conf \
--target ${PREFIX}/share/examples/sympa/sympa.conf
echo ${VERSION} > ${PREFIX}/share/examples/sympa/data_structure.version
mv ${PREFIX}/../../var/www/sympa ${PREFIX}/share/sympa/wwwroot
.include <bsd.port.mk>