mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-02 06:03:50 +00:00
New port: sympa.
SYMPA is an electronic mailing list manager. It is used to automate list management functions such as subscription, moderation and management of archives. SYMPA also manages sending of messages to the lists, and makes it possible to reduce the load on the system. Provided that you have enough memory on your system, Sympa is especially well adapted for big lists. For a list with 20 000 subscribers, it takes 5 minutes to send a message to 90% of subscribers, of course considering that the network is available. WWW: http://www.sympa.org/ PR: 46615 Submitted by: Autrijus Tang <autrijus@autrijus.org>
This commit is contained in:
parent
89c28ec278
commit
c41147feae
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=95459
@ -352,6 +352,7 @@
|
||||
SUBDIR += sylpheed
|
||||
SUBDIR += sylpheed-claws
|
||||
SUBDIR += sylpheed-gtk2
|
||||
SUBDIR += sympa
|
||||
SUBDIR += teapop
|
||||
SUBDIR += tkrat2
|
||||
SUBDIR += tlb
|
||||
|
79
mail/sympa/Makefile
Normal file
79
mail/sympa/Makefile
Normal file
@ -0,0 +1,79 @@
|
||||
# New ports collection makefile for: sympa
|
||||
# Date created: 29 November 2003
|
||||
# Whom: Autrijus Tang <autrijus@autrijus.org>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= sympa
|
||||
PORTVERSION?= 4.0.a5
|
||||
CATEGORIES= mail
|
||||
MASTER_SITES?= http://www.sympa.org/distribution/
|
||||
|
||||
MAINTAINER= autrijus@autrijus.org
|
||||
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 \
|
||||
${SITE_PERL}/File/Spec.pm:${PORTSDIR}/devel/p5-File-Spec \
|
||||
${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}/DBI.pm:${PORTSDIR}/databases/p5-DBI \
|
||||
${SITE_PERL}/${PERL_ARCH}/Locale/Msgcat.pm:${PORTSDIR}/misc/p5-Locale-Msgcat \
|
||||
${SITE_PERL}/Archive/Zip.pm:${PORTSDIR}/archivers/p5-Archive-Zip
|
||||
|
||||
DB_TYPE?= none
|
||||
|
||||
.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"
|
||||
BUILD_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/DBD/Oracle.pm:${PORTSDIR}/databases/p5-DBD-Oracle
|
||||
.else
|
||||
.if ${DB_TYPE} == "Pg"
|
||||
BUILD_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/DBD/Pg.pm:${PORTSDIR}/databases/p5-DBD-Pg
|
||||
.else
|
||||
.if ${DB_TYPE} == "Sybase"
|
||||
BUILD_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/DBD/Sybase.pm:${PORTSDIR}/databases/p5-DBD-Sybase
|
||||
.else
|
||||
.if ${DB_TYPE} == "mysql"
|
||||
BUILD_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/DBD/mysql.pm:${PORTSDIR}/databases/p5-DBD-mysql
|
||||
.endif
|
||||
.endif
|
||||
.endif
|
||||
.endif
|
||||
|
||||
HAS_CONFIGURE= yes
|
||||
USE_PERL5= yes
|
||||
CONFIGURE_ARGS+=--prefix=${PREFIX}/sympa \
|
||||
--with-confdir=${PREFIX}/etc \
|
||||
--with-initdir=${PREFIX}/etc/rc.d
|
||||
MAKE_ENV?= PERL_EXTUTILS_AUTOINSTALL=--skip
|
||||
|
||||
pre-fetch:
|
||||
@${ECHO} ""
|
||||
@${ECHO} "You may use the following build options:"
|
||||
@${ECHO} ""
|
||||
@${ECHO} " DB_TYPE=type Optional: mysql, Oracle, Pg or SQLite"
|
||||
@${ECHO} " WITH_FASTCGI Use FastCGI instead of plain CGI"
|
||||
@${ECHO} ""
|
||||
|
||||
pre-install:
|
||||
PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
|
||||
|
||||
post-deinstall:
|
||||
PKG_PREFIX=${PREFIX} ${SH} ${PKGDEINSTALL} ${PKGNAME} POST-DEINSTALL
|
||||
|
||||
.include <bsd.port.mk>
|
1
mail/sympa/distinfo
Normal file
1
mail/sympa/distinfo
Normal file
@ -0,0 +1 @@
|
||||
MD5 (sympa-4.0.a5.tar.gz) = 3831c0f51edb1bc4a2838ee175b0a1bb
|
20
mail/sympa/files/patch-check_perl_modules.pl
Normal file
20
mail/sympa/files/patch-check_perl_modules.pl
Normal file
@ -0,0 +1,20 @@
|
||||
--- check_perl_modules.pl 2003/11/28 18:16:39
|
||||
+++ check_perl_modules.pl 2003/12/08 22:37:28
|
||||
@@ -155,6 +162,8 @@
|
||||
sub install_module {
|
||||
my ($module, $default) = @_;
|
||||
|
||||
+ return if $ENV{'PERL_EXTUTILS_AUTOINSTALL'} =~ /--skip|--default/;
|
||||
+
|
||||
unless ($ENV{'FTP_PASSIVE'} eq 1) {
|
||||
$ENV{'FTP_PASSIVE'} = 1;
|
||||
print "Setting FTP Passive mode\n";
|
||||
@@ -171,7 +180,7 @@
|
||||
print "Install module $module ? [$default]";
|
||||
my $answer = <STDIN>; chomp $answer;
|
||||
$answer ||= $default;
|
||||
- next unless ($answer =~ /^y$/i);
|
||||
+ return unless ($answer =~ /^y$/i);
|
||||
CPAN::Shell->conf('inactivity_timeout', 4);
|
||||
CPAN::Shell->install($module);
|
||||
}
|
84
mail/sympa/files/patch-src-etc-script-sympa
Normal file
84
mail/sympa/files/patch-src-etc-script-sympa
Normal file
@ -0,0 +1,84 @@
|
||||
--- src/etc/script/sympa 2003/11/28 18:16:39
|
||||
+++ src/etc/script/sympa 2003/12/02 16:32:40
|
||||
@@ -30,6 +30,8 @@
|
||||
sympaconf="--CONFIG--"
|
||||
wwsympaconf="--WWSCONFIG--"
|
||||
|
||||
+lockdir="--LOCKDIR--"
|
||||
+
|
||||
##'echo -n' not supported with SH on Solaris
|
||||
if [ ${OSTYPE} = "solaris" ]; then
|
||||
echo_opt=""
|
||||
@@ -37,6 +39,10 @@
|
||||
echo_opt="-n"
|
||||
fi
|
||||
|
||||
+if [ ${OSTYPE} = "FreeBSD" ]; then
|
||||
+ lockdir="/var/spool/lock"
|
||||
+fi
|
||||
+
|
||||
# End of parameters
|
||||
|
||||
# Current state of the module
|
||||
@@ -55,7 +61,7 @@
|
||||
if [ -f --PIDDIR--/$1.pid ] ; then
|
||||
pid=`head -1 --PIDDIR--/$1.pid`
|
||||
if [ "$pid" != "" ] ; then
|
||||
- running=`ps -A | grep "$pid"`
|
||||
+ running=`ps -ax | grep perl | grep $pid`
|
||||
if [ "$running" != "" ]; then
|
||||
echo "$1 (pid $pid) is active..."
|
||||
return 0
|
||||
@@ -83,8 +89,8 @@
|
||||
# startparam=""
|
||||
# fi
|
||||
|
||||
- if [ ${OSTYPE} = "IRIX" ]; then
|
||||
- $sympadir/$1.pl $startparam && echo "success" || echo "failure"
|
||||
+ if [ ${OSTYPE} = "IRIX" -o ${OSTYPE} = "FreeBSD" ]; then
|
||||
+ su sympa -c "$sympadir/$1.pl $startparam" && echo "success" || echo "failure"
|
||||
else
|
||||
$sympadir/$1.pl $startparam && success || failure
|
||||
fi
|
||||
@@ -139,7 +145,7 @@
|
||||
if [ -f --PIDDIR--/$1.pid ]; then
|
||||
echo $echo_opt "Stopping module $1.pl: "
|
||||
pid=`head -1 --PIDDIR--/$1.pid`
|
||||
- running=`ps -A | grep "$pid"`
|
||||
+ running=`ps -ax | grep perl | grep "$pid"`
|
||||
if [ "$running" != "" ]; then
|
||||
if [ ${OSTYPE} = "IRIX" ]; then
|
||||
kill -TERM $pid && echo "success" || echo "failure"
|
||||
@@ -175,13 +181,13 @@
|
||||
# See how we were called.
|
||||
case "$1" in
|
||||
start)
|
||||
- if [ ! -f --LOCKDIR--/sympa ]; then
|
||||
+ if [ ! -f "$lockdir/sympa" ]; then
|
||||
echo "Starting Sympa subsystem: "
|
||||
sympa_start sympa
|
||||
sympa_start archived
|
||||
sympa_start bounced
|
||||
sympa_start task_manager
|
||||
- touch --LOCKDIR--/sympa
|
||||
+ touch "$lockdir/sympa"
|
||||
echo
|
||||
else
|
||||
|
||||
@@ -196,13 +202,13 @@
|
||||
sympa_stop archived
|
||||
sympa_stop sympa
|
||||
sympa_stop task_manager
|
||||
- if [ -f --LOCKDIR--/sympa ]; then
|
||||
- rm -f --LOCKDIR--/sympa
|
||||
+ if [ -f "$lockdir/sympa" ]; then
|
||||
+ rm -f "$lockdir/sympa"
|
||||
fi
|
||||
;;
|
||||
status)
|
||||
echo "Status of Sympa subsystem: "
|
||||
- if [ -f --LOCKDIR--/sympa ]; then
|
||||
+ if [ -f "$lockdir/sympa" ]; then
|
||||
echo "Status file for subsystem found."
|
||||
else
|
||||
echo "Status file for subsystem NOT found."
|
15
mail/sympa/pkg-deinstall
Normal file
15
mail/sympa/pkg-deinstall
Normal file
@ -0,0 +1,15 @@
|
||||
#!/bin/sh
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
if [ "$2" != "POST-DEINSTALL" ]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
USER=simpa
|
||||
|
||||
if pw usershow "${USER}" 2>/dev/null 1>&2; then
|
||||
echo "To delete Simpa user permanently, use 'pw userdel ${USER}'"
|
||||
fi
|
||||
|
||||
exit 0
|
12
mail/sympa/pkg-descr
Normal file
12
mail/sympa/pkg-descr
Normal file
@ -0,0 +1,12 @@
|
||||
SYMPA -- Systeme de Multi-Postage Automatique
|
||||
|
||||
SYMPA is an electronic mailing list manager. It is used to automate list
|
||||
management functions such as subscription, moderation and management of
|
||||
archives. SYMPA also manages sending of messages to the lists, and
|
||||
makes it possible to reduce the load on the system. Provided that you
|
||||
have enough memory on your system, Sympa is especially well adapted for big
|
||||
lists. For a list with 20 000 subscribers, it takes 5 minutes to send a
|
||||
message to 90% of subscribers, of course considering that the network is
|
||||
available.
|
||||
|
||||
WWW: http://www.sympa.org/
|
35
mail/sympa/pkg-install
Normal file
35
mail/sympa/pkg-install
Normal file
@ -0,0 +1,35 @@
|
||||
#!/bin/sh
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
if [ "$2" != "PRE-INSTALL" ]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
USER=sympa
|
||||
GROUP=${USER}
|
||||
UID=1025
|
||||
GID=${UID}
|
||||
|
||||
if ! pw groupshow "${GROUP}" 2>/dev/null 1>&2; then
|
||||
if pw groupadd ${GROUP} -g ${GID}; then
|
||||
echo "Added group \"${GROUP}\"."
|
||||
else
|
||||
echo "Adding group \"${GROUP}\" failed..."
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
if ! pw usershow "${USER}" 2>/dev/null 1>&2; then
|
||||
if pw useradd ${USER} -u ${UID} -g ${GROUP} -h - \
|
||||
-s "/sbin/nologin" -d "/nonexistent" \
|
||||
-c "Simpa Owner"; \
|
||||
then
|
||||
echo "Added user \"${USER}\"."
|
||||
else
|
||||
echo "Adding user \"${USER}\" failed..."
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
exit 0
|
1177
mail/sympa/pkg-plist
Normal file
1177
mail/sympa/pkg-plist
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user