Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Jun 2004 21:54:47 +0200 (CEST)
From:      Christian Laursen <xi@borderworlds.dk>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:    ports/67911: New port: mail/mlmmj Mailing list managing made joyful 
Message-ID:  <20040613195447.E892DB89D@borg.borderworlds.dk>
Resent-Message-ID: <200406132000.i5DK0jmO065371@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         67911
>Category:       ports
>Synopsis:       New port: mail/mlmmj Mailing list managing made joyful
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jun 13 20:00:44 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Christian Laursen
>Release:        FreeBSD 5.2.1-RELEASE-p8 i386
>Organization:
The Border Worlds 
>Environment:
System: FreeBSD borg.borderworlds.dk 5.2.1-RELEASE-p8 FreeBSD 5.2.1-RELEASE-p8 #27: Wed May 26 16:50:30 CEST 2004 root@borg.borderworlds.dk:/usr/obj/usr/src/sys/BORG i386


	
>Description:
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.

	
>How-To-Repeat:
	
>Fix:

	

--- mlmmj.shar begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	mlmmj
#	mlmmj/files
#	mlmmj/files/patch-mlmmj-maintd
#	mlmmj/files/patch-mlmmj-make-ml.sh
#	mlmmj/Makefile
#	mlmmj/distinfo
#	mlmmj/pkg-descr
#	mlmmj/pkg-plist
#
echo c - mlmmj
mkdir -p mlmmj > /dev/null 2>&1
echo c - mlmmj/files
mkdir -p mlmmj/files > /dev/null 2>&1
echo x - mlmmj/files/patch-mlmmj-maintd
sed 's/^X//' >mlmmj/files/patch-mlmmj-maintd << 'END-of-mlmmj/files/patch-mlmmj-maintd'
X--- src/mlmmj-maintd.c	Thu Jun 10 18:11:55 2004
X+++ src/mlmmj-maintd.c	Fri Jun 11 12:26:58 2004
X@@ -293,6 +293,8 @@
X 		return 1;
X 	}
X 
X+	free(dirname);
X+	
X 	while((dp = readdir(queuedir)) != NULL) {
X 		if((strcmp(dp->d_name, "..") == 0) ||
X 			(strcmp(dp->d_name, ".") == 0))
X@@ -634,7 +636,7 @@
X {
X 	int opt, daemonize = 1;
X 	char *bindir, *listdir = NULL, *mlmmjsend, *mlmmjbounce, *mlmmjunsub;
X-	char *logstr, *logname, *random = random_str();
X+	char *logstr, *logname, *random;
X 	char uidstr[16];
X 	struct stat st;
X 
X@@ -697,10 +699,13 @@
X 	}
X 
X 	for(;;) {
X+		random = random_str();
X 		logname = concatstr(3, listdir, "maintdlog-", random);
X+		free(random);
X 		maintdlogfd = open(logname, O_WRONLY|O_EXCL|O_CREAT,
X 					S_IRUSR|S_IWUSR);
X 		if(maintdlogfd < 0) {
X+			free(logname);
X 			log_error(LOG_ARGS, "Could not open maintenance logfile");
X 			exit(EXIT_FAILURE);
X 		}
X@@ -744,6 +749,10 @@
X 		else
X 			sleep(MAINTD_SLEEP);
X 	}
X+
X+	free(mlmmjbounce);
X+	free(mlmmjsend);
X+	free(mlmmjunsub);
X 		
X 	exit(EXIT_SUCCESS);
X }
END-of-mlmmj/files/patch-mlmmj-maintd
echo x - mlmmj/files/patch-mlmmj-make-ml.sh
sed 's/^X//' >mlmmj/files/patch-mlmmj-make-ml.sh << 'END-of-mlmmj/files/patch-mlmmj-make-ml.sh'
Xdiff -urN mlmmj-0.7.1.orig/src/mlmmj-make-ml.sh mlmmj-0.7.1/src/mlmmj-make-ml.sh
X--- mlmmj-0.7.1.orig/src/mlmmj-make-ml.sh	Sun Jun  6 20:26:51 2004
X+++ src/mlmmj-make-ml.sh	Sat Jun 12 15:39:29 2004
X@@ -5,6 +5,7 @@
X 
X VERSION="0.1"
X DEFAULTDIR="/var/spool/mlmmj"
X+PREFIX="%%PREFIX%%"
X 
X USAGE="mlmmj-make-ml "$VERSION"
X "$0" [OPTIONS]
X@@ -74,8 +75,11 @@
X 	FQDN=`domainname`
X fi
X 
X-echo -n "The path to the directory with the texts for the list? [] : "
X+echo -n "The path to the directory with the texts for the list? [$PREFIX/share/mlmmj/listtexts] : "
X read TEXTPATH
X+if [ -z "$TEXTPATH" ]; then
X+	TEXTPATH="$PREFIX/share/mlmmj/listtexts"
X+fi
X if [ -z "$TEXTPATH" -o ! -d "$TEXTPATH" ]; then
X 	echo "**NOTE** Could not copy the texts for the list"
X 	echo "Please manually copy the files from the listtexts/ directory"
END-of-mlmmj/files/patch-mlmmj-make-ml.sh
echo x - mlmmj/Makefile
sed 's/^X//' >mlmmj/Makefile << 'END-of-mlmmj/Makefile'
X# New ports collection makefile for:   mlmmj
X# Date created:        12 june 2004
X# Whom:                Christian Laursen <xi@borderworlds.dk>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	mlmmj
XPORTVERSION=	0.7.1
XCATEGORIES=	mail
XMASTER_SITES=	http://mlmmj.mmj.dk/files/
X
XMAINTAINER=	xi@borderworlds.dk
XCOMMENT=	Mailing list managing made joyful
X
XUSE_BZIP2=	yes
XUSE_REINPLACE=  yes
X
XHAS_CONFIGURE=	yes
XCONFIGURE_ARGS+=	--prefix=${PREFIX}
X
Xpost-patch:
X	@${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/src/mlmmj-make-ml.sh
X
Xpost-install:
X	@${MKDIR} ${PREFIX}/share/mlmmj/listtexts
X	@${INSTALL_DATA} ${WRKSRC}/listtexts/* ${PREFIX}/share/mlmmj/listtexts
X
X.include <bsd.port.mk>
END-of-mlmmj/Makefile
echo x - mlmmj/distinfo
sed 's/^X//' >mlmmj/distinfo << 'END-of-mlmmj/distinfo'
XMD5 (mlmmj-0.7.1.tar.bz2) = f0b4af8821c6f67dcc3845d060ddb2a6
XSIZE (mlmmj-0.7.1.tar.bz2) = 92156
END-of-mlmmj/distinfo
echo x - mlmmj/pkg-descr
sed 's/^X//' >mlmmj/pkg-descr << 'END-of-mlmmj/pkg-descr'
XThis is an attempt at implementing a mailing list manager with the same
Xfunctionality as the brilliant ezmlm, but with a decent license and mail server
Xindependency.
X
XWWW: http://mlmmj.mmj.dk/
X
X- Christian
Xxi@borderworlds.dk
END-of-mlmmj/pkg-descr
echo x - mlmmj/pkg-plist
sed 's/^X//' >mlmmj/pkg-plist << 'END-of-mlmmj/pkg-plist'
Xbin/mlmmj-send
Xbin/mlmmj-recieve
Xbin/mlmmj-process
Xbin/mlmmj-sub
Xbin/mlmmj-unsub
Xbin/mlmmj-bounce
Xbin/mlmmj-maintd
Xbin/mlmmj-make-ml.sh
Xshare/mlmmj/listtexts/bounce-probe
Xshare/mlmmj/listtexts/listhelp
Xshare/mlmmj/listtexts/moderation
Xshare/mlmmj/listtexts/notintocc
Xshare/mlmmj/listtexts/sub-confirm
Xshare/mlmmj/listtexts/sub-ok
Xshare/mlmmj/listtexts/unsub-confirm
Xshare/mlmmj/listtexts/unsub-ok
X@dirrm share/mlmmj/listtexts
X@dirrm share/mlmmj
END-of-mlmmj/pkg-plist
exit
--- mlmmj.shar ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040613195447.E892DB89D>