Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Oct 2007 18:40:13 GMT
From:      Mij <mij@bitchx.it>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/117509: [new port] mail/vmailmgr -- A powerful, clean and easy-to-use virtual domain manager for qmail
Message-ID:  <200710251840.l9PIeD1Q018946@www.freebsd.org>
Resent-Message-ID: <200710251850.l9PIo1P1056879@freefall.freebsd.org>

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

>Number:         117509
>Category:       ports
>Synopsis:       [new port] mail/vmailmgr -- A powerful, clean and easy-to-use virtual domain manager for qmail
>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:   Thu Oct 25 18:50:01 UTC 2007
>Closed-Date:
>Last-Modified:
>Originator:     Mij
>Release:        FreeBSD 7.0-CURRENT
>Organization:
>Environment:
FreeBSD vecio 7.0-CURRENT FreeBSD 7.0-CURRENT #1: Thu Sep 20 16:34:38 CEST 2007     michele@vecio:/usr/obj/usr/src/sys/vecioMar07  i386

>Description:
vmailmgr has been expunged from the ports tree back in april. This fixes the long absence.

It required some tweaking in source files and autotools. Especially in the latter the author seemingly wrote against his very own setup.
This version of the port does not install extra documentation because manuals are complete and well written and because extra docs are available on the project website.
It does not install the "big php library" file either. This is a possible todo for the next port version.

See http://www.vmailmgr.org/
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

# 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:
#
#	/usr/ports/mail/vmailmgr
#	/usr/ports/mail/vmailmgr/pkg-descr
#	/usr/ports/mail/vmailmgr/Makefile
#	/usr/ports/mail/vmailmgr/distinfo
#	/usr/ports/mail/vmailmgr/files
#	/usr/ports/mail/vmailmgr/files/patch-recursive.diff
#	/usr/ports/mail/vmailmgr/pkg-plist
#
echo c - /usr/ports/mail/vmailmgr
mkdir -p /usr/ports/mail/vmailmgr > /dev/null 2>&1
echo x - /usr/ports/mail/vmailmgr/pkg-descr
sed 's/^X//' >/usr/ports/mail/vmailmgr/pkg-descr << 'END-of-/usr/ports/mail/vmailmgr/pkg-descr'
XVMailMgr (short for Virtual MAIL ManaGeR) is a package of programs designed to
Xmanage multiple domains of mail addresses and mailboxes on a single host. It
Xco-operates with qmail for mail delivery and program control. It features:
X
X    * A password checking interface between qmail-popup and qmail-pop3d which
X    replaces the usual checkpassword, as well as an authentication module for
X    Courier IMAP, that provide access to the virtual mailboxes by one of three
X    methods:
X          o IP-based virtual server access (invisible to the POP3 user)
X          o username-based access (username-virtualuser)
X          o hostname-based access (virtualuser@virtual.host or
X            virtualuser:virtual.host) 
X    * CDB-based password tables to speed up access for domains of any size.
X    * Tools to setup a virtual domain, add and delete individual virtual users
X      and aliases, and to change passwords.  CGI programs to accomplish the
X    * above tasks from a set of web pages.
X    * A native PHP library to compliment or replace the CGIs.
X    * A daemon process that securely directs the operation of the CGIs and PHP
X      code.
X    * A separate delivery agent that automatically deals with any address
X      inside a virtual domain from a single .qmail-default file. 
X
XWWW: http://www.vmailmgr.org
END-of-/usr/ports/mail/vmailmgr/pkg-descr
echo x - /usr/ports/mail/vmailmgr/Makefile
sed 's/^X//' >/usr/ports/mail/vmailmgr/Makefile << 'END-of-/usr/ports/mail/vmailmgr/Makefile'
X# New ports collection makefile for:   vmailmgr
X# Date created:        24 October 2007
X# Whom:                Mij <mij@bitchx.it>
X#
X# $FreeBSD$
X#
X
XPORTNAME=			vmailmgr
XPORTVERSION=		0.97
XCATEGORIES=			mail
XMASTER_SITES=		http://www.vmailmgr.org/current/	\
X					http://mirrors.dataloss.nl/vmailmgr.org/current/
X
XMAINTAINER=			mij@bitchx.it
XCOMMENT=			A powerful, clean and easy-to-use virtual domain manager for qmail
X
XMAN1=	checkvpw.1 vauthenticate.1 dumpvuser.1 \
X		listvdomain.1 vadduser.1 vchattr.1 vchforwards.1 \
X		vdeliver.1 vdeluser.1 vpasswd.1 vpasswds.1 vrehash.1 \
X		vsetup.1 vupgrade.1
X
XMAN7=	vmailmgr.7
XMAN8=	vmailmgrd.8
X
XUSE_CONFIGURE=		yes
XUSE_GMAKE=			yes
XUSE_PERL5_BUILD=	yes
XAUTOMAKE_ARGS+=		--add-missing -Wno-portability
XUSE_AUTOTOOLS=		aclocal:110	autoconf:261 automake:110
X
X.include <bsd.port.pre.mk>
X
X.if defined(PREFIX)
XCONFIGURE_ARGS+=	--prefix=${PREFIX}
X.endif
X
X.include <bsd.port.post.mk>
END-of-/usr/ports/mail/vmailmgr/Makefile
echo x - /usr/ports/mail/vmailmgr/distinfo
sed 's/^X//' >/usr/ports/mail/vmailmgr/distinfo << 'END-of-/usr/ports/mail/vmailmgr/distinfo'
XMD5 (vmailmgr-0.97.tar.gz) = c1e447f1fb2df146e11b519fca9c3339
XSHA256 (vmailmgr-0.97.tar.gz) = 6266873db29991bf74c912e8423cee5ebf11b3b944ea413682d6b75634c399c2
XSIZE (vmailmgr-0.97.tar.gz) = 635160
END-of-/usr/ports/mail/vmailmgr/distinfo
echo c - /usr/ports/mail/vmailmgr/files
mkdir -p /usr/ports/mail/vmailmgr/files > /dev/null 2>&1
echo x - /usr/ports/mail/vmailmgr/files/patch-recursive.diff
sed 's/^X//' >/usr/ports/mail/vmailmgr/files/patch-recursive.diff << 'END-of-/usr/ports/mail/vmailmgr/files/patch-recursive.diff'
Xdiff -ruN ../vmailmgr-0.97_orig/Makefile.am ./Makefile.am
X--- ../vmailmgr-0.97_orig/Makefile.am	2007-10-24 23:10:21.000000000 +0200
X+++ ./Makefile.am	2007-10-25 00:28:41.000000000 +0200
X@@ -1,7 +1,7 @@
X if WANTPYTHON
X-SUBDIRS = python php lib authenticate commands daemon cgi doc scripts
X+SUBDIRS = python lib authenticate commands daemon cgi doc scripts
X else
X-SUBDIRS = php lib authenticate commands daemon cgi doc scripts
X+SUBDIRS = lib authenticate commands daemon cgi doc scripts
X endif
X 
X dist-hook:
Xdiff -ruN ../vmailmgr-0.97_orig/authenticate/Makefile.am ./authenticate/Makefile.am
X--- ../vmailmgr-0.97_orig/authenticate/Makefile.am	2007-10-24 23:10:20.000000000 +0200
X+++ ./authenticate/Makefile.am	2007-10-25 01:14:12.000000000 +0200
X@@ -1,5 +1,5 @@
X bin_PROGRAMS = checkvpw vauthenticate
X-authlib_PROGRAMS = authvmailmgr
X+#authlib_PROGRAMS = authvmailmgr
X authlibdir = ${prefix}/lib/courier-imap/libexec/authlib/
X 
X noinst_PODS = checkvpw.pod vauthenticate.pod
X@@ -25,8 +25,8 @@
X checkvpw_SOURCES = checkvpw.cc authvlib.cc authvlib.h
X checkvpw_LDADD = ../lib/libvmailmgr.a
X 
X-authvmailmgr_SOURCES = authvmailmgr.cc authvlib.cc authvlib.h
X-authvmailmgr_LDADD = ../lib/libvmailmgr.a -L../lib/courier-authlib -lauthmod
X+#authvmailmgr_SOURCES = authvmailmgr.cc authvlib.cc authvlib.h
X+#authvmailmgr_LDADD = ../lib/libvmailmgr.a -L../lib/courier-authlib -lauthmod
X 
X vauthenticate_SOURCES = vauthenticate.cc authvlib.cc authvlib.h
X vauthenticate_LDADD = ../lib/libvmailmgr.a
Xdiff -ruN ../vmailmgr-0.97_orig/cgi/Makefile.am ./cgi/Makefile.am
X--- ../vmailmgr-0.97_orig/cgi/Makefile.am	2007-10-24 23:10:21.000000000 +0200
X+++ ./cgi/Makefile.am	2007-10-25 01:25:01.000000000 +0200
X@@ -1,5 +1,6 @@
X EXTRA_DIST = listvdomain.html vaddalias.html vadduser.html vchalias.html \
X 	vchattr.html vchforwards.html vdeluser.html vpasswd.html
X+cgidir=$(PREFIX)/libexec/vmailmgr/cgi-bin
X cgi_PROGRAMS = vpasswd vadduser vdeluser vaddalias vchattr vchforwards \
X 	listvdomain
X 
Xdiff -ruN ../vmailmgr-0.97_orig/commands/vdeliver.cc ./commands/vdeliver.cc
X--- ../vmailmgr-0.97_orig/commands/vdeliver.cc	2007-10-24 23:10:20.000000000 +0200
X+++ ./commands/vdeliver.cc	2007-10-25 00:30:33.000000000 +0200
X@@ -262,7 +262,7 @@
X     close(pipe2[1]);
X     if((dup2(pipe1[0], 0) != 0) || (dup2(pipe2[0], 1) != 1))
X       exit(111);
X-    execl(qq.c_str(), qq.c_str(), 0);
X+    execl(qq.c_str(), qq.c_str(), (char *)0);
X     die_temp("Exec of qmail-queue failed.");
X   default:
X     close(pipe1[0]);
Xdiff -ruN ../vmailmgr-0.97_orig/configure.in ./configure.in
X--- ../vmailmgr-0.97_orig/configure.in	2007-10-24 23:10:21.000000000 +0200
X+++ ./configure.in	2007-10-25 00:50:29.000000000 +0200
X@@ -62,27 +62,27 @@
X AC_SUBST(pythonlibdir)
X AM_CONDITIONAL(WANTPYTHON, test x$local_cv_python_lib_dir != xNONE)
X 
X-phpdir="/home/httpd/php"
X-AC_SUBST(phpdir)
X-
X AC_PATH_PROG(W3M, w3m)
X AC_PATH_PROG(LYNX, lynx)
X if test "x$W3M" != x; then
X   echo Using w3m to format html pages.
X-  HTML2TXT="w3m -dump"
X+  HTML2TXT=$W3M" -dump"
X elif test "x$LYNX" != x; then
X   echo Using lynx to format html pages.
X-  HTML2TXT="lynx -dump -nolist"
X+  HTML2TXT=$LYNX" -dump -nolist"
X else
X   echo "Can't find either w3m or lynx, building the plain text"
X   echo "documentation files will fail."
X   HTML2TXT="false"
X fi
X AC_SUBST(HTML2TXT)
X+AM_CONDITIONAL(MAKE_TXTS, test x$HTML2TXT != xfalse)
X 
X TODAY=`date +%Y-%m-%d`
X-POD2MAN="pod2man --release='vmailmgr ${VERSION}' --center='VMailMgr Tools Documentation' --date='${TODAY}'"
X-POD2HTML="pod2html --noindex"
X+AC_PATH_PROG(POD2MAN,pod2man)
X+AC_PATH_PROG(POD2HTML,pod2html)
X+POD2MAN=$POD2MAN" --release='vmailmgr ${VERSION}' --center='VMailMgr Tools Documentation' --date='${TODAY}'"
X+POD2HTML=$POD2HTML" --noindex"
X SUFFIXES="$SUFFIXES .1 .5 .7 .8 .pod .html .texi .txt .ps .fig .sgml .py .pyc .pyo"
X AC_SUBST(POD2MAN)
X AC_SUBST(POD2HTML)
X@@ -135,5 +135,4 @@
X 	  lib/vpwentry/Makefile
X 	  lib/vpwtable/Makefile
X 	  scripts/Makefile
X-	  php/Makefile
X 	  python/Makefile)
Xdiff -ruN ../vmailmgr-0.97_orig/doc/Makefile.am ./doc/Makefile.am
X--- ../vmailmgr-0.97_orig/doc/Makefile.am	2007-10-24 23:10:21.000000000 +0200
X+++ ./doc/Makefile.am	2007-10-25 00:29:38.000000000 +0200
X@@ -2,21 +2,23 @@
X noinst_TEXINFOS = FAQ.texi HOWTO.texi configuration.texi vmailmgr-cgi.texi
X noinst_HTMLS = vmailmgr.html HOWTO.html FAQ.html NEWS.html \
X 	configuration.html ChangeLog.html vmailmgr-cgi.html
X+if MAKE_TXTS
X noinst_TXTS = HOWTO.txt FAQ.txt \
X 	configuration.txt vmailmgr-cgi.txt protocol.txt \
X 	record-format.txt
X+else
X+noinst_TXTS = 
X+endif
X noinst_PODS = vmailmgr.pod
X-noinst_MISC = FAQ.info FAQ.pdf HOWTO.info HOWTO.pdf \
X-	configuration.info translation.pdf translation.ps
X+noinst_MISC = FAQ.info HOWTO.info configuration.info
X EXTRA_DIST = ChangeLog-pre-vmailmgr ChangeLog-pre-0.70 \
X 	changelog2html.pl news2html.pl \
X-	YEAR2000 translation.fig \
X+	YEAR2000 \
X 	$(man_MANS) \
X 	$(noinst_PODS) \
X 	$(noinst_TEXINFOS) \
X 	$(noinst_HTMLS) \
X-	$(noinst_MISC) \
X-	$(noinst_TXTS)
X+	$(noinst_MISC) $(noinst_TXTS)
X CLEANFILES = $(noinst_HTMLS) $(man_MANS) $(noinst_MISC) \
X 	HOWTO.txt FAQ.txt configuration.txt vmailmgr-cgi.txt \
X 	pod2htmd.tmp pod2htmi.tmp
Xdiff -ruN ../vmailmgr-0.97_orig/lib/fdbuf/fdobuf.h ./lib/fdbuf/fdobuf.h
X--- ../vmailmgr-0.97_orig/lib/fdbuf/fdobuf.h	2007-10-24 23:10:20.000000000 +0200
X+++ ./lib/fdbuf/fdobuf.h	2007-10-25 00:31:00.000000000 +0200
X@@ -18,6 +18,8 @@
X #ifndef FDBUF__FDOBUF__H__
X #define FDBUF__FDOBUF__H__
X 
X+#include <sys/types.h>
X+
X class fdobuf : protected fdbuf
X {
X public:
Xdiff -ruN ../vmailmgr-0.97_orig/lib/misc/maildir.cc ./lib/misc/maildir.cc
X--- ../vmailmgr-0.97_orig/lib/misc/maildir.cc	2007-10-24 23:10:20.000000000 +0200
X+++ ./lib/misc/maildir.cc	2007-10-25 00:32:17.000000000 +0200
X@@ -36,7 +36,7 @@
X     if(mkdirp(dirname.left(i), 0755))
X       return -1;
X   }
X-  if(i != dirname.length() - 1)
X+  if(i != (int)dirname.length() - 1)
X     return mkdir(dirname.c_str(), mode);
X   return 0;
X }
Xdiff -ruN ../vmailmgr-0.97_orig/lib/misc/server.cc ./lib/misc/server.cc
X--- ../vmailmgr-0.97_orig/lib/misc/server.cc	2007-10-24 23:10:20.000000000 +0200
X+++ ./lib/misc/server.cc	2007-10-25 00:30:44.000000000 +0200
X@@ -17,6 +17,7 @@
X #include <config.h>
X #include "server.h"
X #include <stdlib.h>
X+#include <string.h>
X #include <unistd.h>
X #include "un.h"
X #include "debug.h"
Xdiff -ruN ../vmailmgr-0.97_orig/php/Makefile.am ./php/Makefile.am
X--- ../vmailmgr-0.97_orig/php/Makefile.am	2007-10-24 23:10:21.000000000 +0200
X+++ ./php/Makefile.am	2007-10-25 01:26:19.000000000 +0200
X@@ -1,3 +1,4 @@
X+phpdir=$(PREFIX)/libexec/vmailmgr/php/
X php_DATA = vmail.inc
X EXTRA_DIST = vmail.features vmail.inc
X 
END-of-/usr/ports/mail/vmailmgr/files/patch-recursive.diff
echo x - /usr/ports/mail/vmailmgr/pkg-plist
sed 's/^X//' >/usr/ports/mail/vmailmgr/pkg-plist << 'END-of-/usr/ports/mail/vmailmgr/pkg-plist'
Xbin/showvconfig
Xbin/checkvpw
Xbin/vauthenticate
Xbin/dumpvuser
Xbin/listvdomain
Xbin/vadduser
Xbin/vaddusers
Xbin/vchattr
Xbin/vchforwards
Xbin/vdeliver
Xbin/vdeluser
Xbin/vpasswd
Xbin/vpasswds
Xbin/vrehash
Xbin/vsetup
Xbin/vupgrade
Xbin/vaddalias
Xbin/vconf2dir
Xlibexec/vmailmgr/cgi-bin/vpasswd
Xlibexec/vmailmgr/cgi-bin/vadduser
Xlibexec/vmailmgr/cgi-bin/vdeluser
Xlibexec/vmailmgr/cgi-bin/vaddalias
Xlibexec/vmailmgr/cgi-bin/vchattr
Xlibexec/vmailmgr/cgi-bin/vchforwards
Xlibexec/vmailmgr/cgi-bin/listvdomain
Xsbin/vmailmgrd
X@dirrmtry libexec/vmailmgr/cgi-bin
X@dirrmtry libexec/vmailmgr
END-of-/usr/ports/mail/vmailmgr/pkg-plist
exit



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



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