aboutsummaryrefslogtreecommitdiff
path: root/mail/vmailmgr
diff options
context:
space:
mode:
authorKirill Ponomarev <krion@FreeBSD.org>2006-01-21 17:37:14 +0000
committerKirill Ponomarev <krion@FreeBSD.org>2006-01-21 17:37:14 +0000
commit01c588a6357d8452a3e0af157e9c1250c067db2f (patch)
treefb26bf418ea8791ab4d308a7931c623124611c3c /mail/vmailmgr
parentf484c99df79f169bf954fc4b0ed83e59279a596a (diff)
downloadports-01c588a6357d8452a3e0af157e9c1250c067db2f.tar.gz
ports-01c588a6357d8452a3e0af157e9c1250c067db2f.zip
Notes
Diffstat (limited to 'mail/vmailmgr')
-rw-r--r--mail/vmailmgr/Makefile22
-rw-r--r--mail/vmailmgr/pkg-plist20
2 files changed, 29 insertions, 13 deletions
diff --git a/mail/vmailmgr/Makefile b/mail/vmailmgr/Makefile
index 200c2ca27600..148518e95a1f 100644
--- a/mail/vmailmgr/Makefile
+++ b/mail/vmailmgr/Makefile
@@ -7,26 +7,36 @@
PORTNAME= vmailmgr
PORTVERSION= 0.96.9
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= mail
MASTER_SITES= http://www.vmailmgr.org/archive/
MAINTAINER= sergei@FreeBSD.org
COMMENT= Virtual MAIL ManaGeR for virtual mailboxes and domains
-RUN_DEPENDS= /var/qmail/bin/qmail-start:${PORTSDIR}/mail/qmail \
- unixserver:${PORTSDIR}/sysutils/ucspi-unix
+USE_APACHE= yes
+USE_QMAIL_RUN= yes
-HAS_CONFIGURE=yes
+HAS_CONFIGURE= yes
+USE_REINPLACE= yes
-SVC_DIR= "/var/qmail/service/vmailmgrd"
+SVC_DIR= "${QMAIL_PREFIX}/service/vmailmgrd"
+PHP_DIR= ${PREFIX}/www/data-dist/${PORTNAME}
+CGI_DIR= ${PREFIX}/www/cgi-bin-dist
+
+PLIST_SUB+= PHP_DIR=${PHP_DIR} CGI_DIR=${CGI_DIR}
MAN1= checkvpw.1 vauthenticate.1 vpasswd2cdb.1 vrehash.1 \
listvdomain.1 vadduser.1 vchattr.1 vchforwards.1 \
- vcheckquota.1 vdeliver.1 vdeluser.1 vpasswd.1
+ vcheckquota.1 vdeliver.1 vdeluser.1 vpasswd.1 \
+ vpasswd2db.1 vpasswds.1 vpopbull.1 vsetup.1
MAN7= vmailmgr.7
MAN8= vmailmgrd.8
+post-patch:
+ @${REINPLACE_CMD} -e 's|phpdir=".home.httpd.php"|phpdir="${PHP_DIR}"|g' \
+ -e 's|cgidir=...prefix./cgi-bin.|cgidir="${CGI_DIR}"|g' \
+ ${WRKSRC}/configure ${WRKSRC}/configure.in
post-install:
${MKDIR} ${PREFIX}/etc/vmailmgr
${CP} ${WRKSRC}/scripts/autoresponder.sh ${PREFIX}/etc/vmailmgr/vdeliver-postdeliver
diff --git a/mail/vmailmgr/pkg-plist b/mail/vmailmgr/pkg-plist
index 22574e15fb92..5d0922cb1ac9 100644
--- a/mail/vmailmgr/pkg-plist
+++ b/mail/vmailmgr/pkg-plist
@@ -19,18 +19,24 @@ bin/vconf2dir
bin/vauthenticate
bin/checkvpw
bin/showvconfig
-cgi-bin/vpasswd
-cgi-bin/vadduser
-cgi-bin/vdeluser
-cgi-bin/vaddalias
-cgi-bin/vchattr
-cgi-bin/vchforwards
-cgi-bin/listvdomain
+%%CGI_DIR%%/vpasswd
+%%CGI_DIR%%/vadduser
+%%CGI_DIR%%/vdeluser
+%%CGI_DIR%%/vaddalias
+%%CGI_DIR%%/vchattr
+%%CGI_DIR%%/vchforwards
+%%CGI_DIR%%/listvdomain
+@unexec rmdir %D/%%CGI_DIR%% 2>/dev/null || true
etc/vmailmgr/default-username
etc/vmailmgr/vdeliver-postdeliver
lib/courier-imap/libexec/authlib/authvmailmgr
+@dirrm lib/courier-imap/libexec/authlib
+@dirrm lib/courier-imap/libexec
+@dirrm lib/courier-imap
sbin/vmailmgrd
@dirrm etc/vmailmgr
+%%PHP_DIR%%/vmail.inc
+@dirrm %%PHP_DIR%%
@cwd /var/qmail/service
vmailmgrd/log/run
vmailmgrd/run