diff options
author | Pav Lucistnik <pav@FreeBSD.org> | 2004-06-16 20:29:18 +0000 |
---|---|---|
committer | Pav Lucistnik <pav@FreeBSD.org> | 2004-06-16 20:29:18 +0000 |
commit | d3fb2f27d8cfb88c8ba7579892b22af5035c5163 (patch) | |
tree | 2ba2040207f5f127605b447cf3dc01ed4badccfa /mail/mlmmj | |
parent | - Fix distfile handling when building with dictionary (diff) |
Add mlmmj, Mailing list managing made joyful.
This is an attempt at implementing a mailing list manager with the same
functionality as the brilliant ezmlm, but with a decent license and mail
server independency.
PR: ports/67911
Submitted by: Christian Laursen <xi@borderworlds.dk>
Notes
Notes:
svn path=/head/; revision=111626
Diffstat (limited to 'mail/mlmmj')
-rw-r--r-- | mail/mlmmj/Makefile | 29 | ||||
-rw-r--r-- | mail/mlmmj/distinfo | 2 | ||||
-rw-r--r-- | mail/mlmmj/files/patch-mlmmj-maintd | 45 | ||||
-rw-r--r-- | mail/mlmmj/files/patch-mlmmj-make-ml.sh | 24 | ||||
-rw-r--r-- | mail/mlmmj/files/patch-src-init_sockfd.c | 10 | ||||
-rw-r--r-- | mail/mlmmj/pkg-descr | 8 | ||||
-rw-r--r-- | mail/mlmmj/pkg-plist | 18 |
7 files changed, 136 insertions, 0 deletions
diff --git a/mail/mlmmj/Makefile b/mail/mlmmj/Makefile new file mode 100644 index 000000000000..8372e2aa5f2b --- /dev/null +++ b/mail/mlmmj/Makefile @@ -0,0 +1,29 @@ +# New ports collection makefile for: mlmmj +# Date created: 12 june 2004 +# Whom: Christian Laursen <xi@borderworlds.dk> +# +# $FreeBSD$ +# + +PORTNAME= mlmmj +PORTVERSION= 0.7.1 +CATEGORIES= mail +MASTER_SITES= http://mlmmj.mmj.dk/files/ + +MAINTAINER= xi@borderworlds.dk +COMMENT= Mailing list managing made joyful + +USE_BZIP2= yes +USE_REINPLACE= yes + +HAS_CONFIGURE= yes +CONFIGURE_ARGS+= --prefix=${PREFIX} + +post-patch: + @${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/src/mlmmj-make-ml.sh + +post-install: + @${MKDIR} ${PREFIX}/share/mlmmj/listtexts + @${INSTALL_DATA} ${WRKSRC}/listtexts/* ${PREFIX}/share/mlmmj/listtexts + +.include <bsd.port.mk> diff --git a/mail/mlmmj/distinfo b/mail/mlmmj/distinfo new file mode 100644 index 000000000000..faa68f6a5883 --- /dev/null +++ b/mail/mlmmj/distinfo @@ -0,0 +1,2 @@ +MD5 (mlmmj-0.7.1.tar.bz2) = f0b4af8821c6f67dcc3845d060ddb2a6 +SIZE (mlmmj-0.7.1.tar.bz2) = 92156 diff --git a/mail/mlmmj/files/patch-mlmmj-maintd b/mail/mlmmj/files/patch-mlmmj-maintd new file mode 100644 index 000000000000..74454a4b9694 --- /dev/null +++ b/mail/mlmmj/files/patch-mlmmj-maintd @@ -0,0 +1,45 @@ +--- src/mlmmj-maintd.c Thu Jun 10 18:11:55 2004 ++++ src/mlmmj-maintd.c Fri Jun 11 12:26:58 2004 +@@ -293,6 +293,8 @@ + return 1; + } + ++ free(dirname); ++ + while((dp = readdir(queuedir)) != NULL) { + if((strcmp(dp->d_name, "..") == 0) || + (strcmp(dp->d_name, ".") == 0)) +@@ -634,7 +636,7 @@ + { + int opt, daemonize = 1; + char *bindir, *listdir = NULL, *mlmmjsend, *mlmmjbounce, *mlmmjunsub; +- char *logstr, *logname, *random = random_str(); ++ char *logstr, *logname, *random; + char uidstr[16]; + struct stat st; + +@@ -697,10 +699,13 @@ + } + + for(;;) { ++ random = random_str(); + logname = concatstr(3, listdir, "maintdlog-", random); ++ free(random); + maintdlogfd = open(logname, O_WRONLY|O_EXCL|O_CREAT, + S_IRUSR|S_IWUSR); + if(maintdlogfd < 0) { ++ free(logname); + log_error(LOG_ARGS, "Could not open maintenance logfile"); + exit(EXIT_FAILURE); + } +@@ -744,6 +749,10 @@ + else + sleep(MAINTD_SLEEP); + } ++ ++ free(mlmmjbounce); ++ free(mlmmjsend); ++ free(mlmmjunsub); + + exit(EXIT_SUCCESS); + } diff --git a/mail/mlmmj/files/patch-mlmmj-make-ml.sh b/mail/mlmmj/files/patch-mlmmj-make-ml.sh new file mode 100644 index 000000000000..a76b60ac2ddc --- /dev/null +++ b/mail/mlmmj/files/patch-mlmmj-make-ml.sh @@ -0,0 +1,24 @@ +diff -urN mlmmj-0.7.1.orig/src/mlmmj-make-ml.sh mlmmj-0.7.1/src/mlmmj-make-ml.sh +--- mlmmj-0.7.1.orig/src/mlmmj-make-ml.sh Sun Jun 6 20:26:51 2004 ++++ src/mlmmj-make-ml.sh Sat Jun 12 15:39:29 2004 +@@ -5,6 +5,7 @@ + + VERSION="0.1" + DEFAULTDIR="/var/spool/mlmmj" ++PREFIX="%%PREFIX%%" + + USAGE="mlmmj-make-ml "$VERSION" + "$0" [OPTIONS] +@@ -74,8 +75,11 @@ + FQDN=`domainname` + fi + +-echo -n "The path to the directory with the texts for the list? [] : " ++echo -n "The path to the directory with the texts for the list? [$PREFIX/share/mlmmj/listtexts] : " + read TEXTPATH ++if [ -z "$TEXTPATH" ]; then ++ TEXTPATH="$PREFIX/share/mlmmj/listtexts" ++fi + if [ -z "$TEXTPATH" -o ! -d "$TEXTPATH" ]; then + echo "**NOTE** Could not copy the texts for the list" + echo "Please manually copy the files from the listtexts/ directory" diff --git a/mail/mlmmj/files/patch-src-init_sockfd.c b/mail/mlmmj/files/patch-src-init_sockfd.c new file mode 100644 index 000000000000..8e695250e4ff --- /dev/null +++ b/mail/mlmmj/files/patch-src-init_sockfd.c @@ -0,0 +1,10 @@ +--- src/init_sockfd.c.orig Thu May 20 01:19:02 2004 ++++ src/init_sockfd.c Wed Jun 16 22:12:20 2004 +@@ -7,6 +7,7 @@ + */ + + #include <stdlib.h> ++#include <sys/types.h> + #include <sys/socket.h> + #include <netinet/in.h> + #include <arpa/inet.h> diff --git a/mail/mlmmj/pkg-descr b/mail/mlmmj/pkg-descr new file mode 100644 index 000000000000..1bcf12b7f2df --- /dev/null +++ b/mail/mlmmj/pkg-descr @@ -0,0 +1,8 @@ +This is an attempt at implementing a mailing list manager with the same +functionality as the brilliant ezmlm, but with a decent license and mail server +independency. + +WWW: http://mlmmj.mmj.dk/ + +- Christian +xi@borderworlds.dk diff --git a/mail/mlmmj/pkg-plist b/mail/mlmmj/pkg-plist new file mode 100644 index 000000000000..54d08075b3f9 --- /dev/null +++ b/mail/mlmmj/pkg-plist @@ -0,0 +1,18 @@ +bin/mlmmj-send +bin/mlmmj-recieve +bin/mlmmj-process +bin/mlmmj-sub +bin/mlmmj-unsub +bin/mlmmj-bounce +bin/mlmmj-maintd +bin/mlmmj-make-ml.sh +share/mlmmj/listtexts/bounce-probe +share/mlmmj/listtexts/listhelp +share/mlmmj/listtexts/moderation +share/mlmmj/listtexts/notintocc +share/mlmmj/listtexts/sub-confirm +share/mlmmj/listtexts/sub-ok +share/mlmmj/listtexts/unsub-confirm +share/mlmmj/listtexts/unsub-ok +@dirrm share/mlmmj/listtexts +@dirrm share/mlmmj |