aboutsummaryrefslogtreecommitdiffstats
path: root/mail/sqwebmail
diff options
context:
space:
mode:
authoroliver <oliver@FreeBSD.org>2003-07-22 18:42:46 +0800
committeroliver <oliver@FreeBSD.org>2003-07-22 18:42:46 +0800
commit926abfaf597d0a5c3f13cc6df74adf6312d0f7d6 (patch)
tree045b8c742dd31bfe8f206d1676642fe96ee3e28c /mail/sqwebmail
parent2ec1cef257b35a7acc637d30c005bfc585114353 (diff)
downloadfreebsd-ports-gnome-926abfaf597d0a5c3f13cc6df74adf6312d0f7d6.tar.gz
freebsd-ports-gnome-926abfaf597d0a5c3f13cc6df74adf6312d0f7d6.tar.zst
freebsd-ports-gnome-926abfaf597d0a5c3f13cc6df74adf6312d0f7d6.zip
add a WITHOUT_AUTHDAEMON knob
Diffstat (limited to 'mail/sqwebmail')
-rw-r--r--mail/sqwebmail/Makefile18
-rw-r--r--mail/sqwebmail/pkg-plist16
2 files changed, 26 insertions, 8 deletions
diff --git a/mail/sqwebmail/Makefile b/mail/sqwebmail/Makefile
index cf328349bd48..7917305881fb 100644
--- a/mail/sqwebmail/Makefile
+++ b/mail/sqwebmail/Makefile
@@ -11,7 +11,7 @@ CATEGORIES= mail www
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= courier
-MAINTAINER= oliver@freebsd.org
+MAINTAINER= oliver@FreeBSD.org
COMMENT= CGI Webmail client for Maildirs
#
@@ -34,6 +34,7 @@ IMAGEURL?= ${WEBDATASUBDIR}
#
# set WITHOUT_CACHEDIR to disable the cache dir (can't set it with WITH_LDAP)
+# set WITHOUT_AUTHDAEMON to disable the usage of authdaemond
# set CACHEOWNER to who you'd like to own the cache files
# set CACHEDIR to where you'd like your cache directory to be
# set WITH_LDAP for LDAP authentication and addressbook support
@@ -58,9 +59,10 @@ VCHKPWLOC?= ${LOCALBASE}/vpopmail
# End of user variables
-USE_PERL5= yes
+USE_PERL5= YES
HAS_CONFIGURE= YES
USE_BZIP2= YES
+USE_REINPLACE= YES
CONFIGURE_ARGS= \
--enable-cgibindir=${CGIBINDIR}/${CGIBINSUBDIR} \
@@ -80,6 +82,14 @@ CONFIGURE_ARGS+= --without-cachedir
PLIST_SUB+= CACHE=""
CONFIGURE_ARGS+= --with-cachedir=${CACHEDIR} \
--with-cacheowner=${CACHEOWNER}
+
+.endif
+.if !defined(WITHOUT_AUTHDAEMON)
+CONFIGURE_ARGS+= --with-authdaemon
+PLIST_SUB+= AUTHDFLAG=""
+.else
+CONFIGURE_ARGS+= --without-authdaemon
+PLIST_SUB+= AUTHDFLAG="@comment "
.endif
.if defined(WITH_LDAP)
@@ -183,4 +193,8 @@ MLINKS= authlib.7 authcram.7 \
CONFIGURE_ARGS+= ${CONFIGURE_TARGET}
+post-patch:
+ @${REINPLACE_CMD} -e 's|^@INSTALLAUTHMODULES@$$|& @AUTHMODULES@|' \
+ ${WRKSRC}/authlib/installlist.in
+
.include <bsd.port.mk>
diff --git a/mail/sqwebmail/pkg-plist b/mail/sqwebmail/pkg-plist
index fb838863a5cb..741f54fff6b7 100644
--- a/mail/sqwebmail/pkg-plist
+++ b/mail/sqwebmail/pkg-plist
@@ -1,10 +1,14 @@
-libexec/sqwebmail/authlib/authdaemon
-libexec/sqwebmail/authlib/authdaemon.passwd
-libexec/sqwebmail/authlib/authdaemond
+libexec/sqwebmail/authlib/authcram
+libexec/sqwebmail/authlib/authcustom
+%%AUTHDFLAG%%libexec/sqwebmail/authlib/authdaemon
+%%AUTHDFLAG%%libexec/sqwebmail/authlib/authdaemon.passwd
+%%AUTHDFLAG%%libexec/sqwebmail/authlib/authdaemond
%%PGSQLFLAG%%libexec/sqwebmail/authlib/authdaemond.pgsql
-libexec/sqwebmail/authlib/authdaemond.plain
+%%AUTHDFLAG%%libexec/sqwebmail/authlib/authdaemond.plain
%%MYSQLFLAG%%libexec/sqwebmail/authlib/authdaemond.mysql
+libexec/sqwebmail/authlib/authpam
libexec/sqwebmail/authlib/authsystem.passwd
+libexec/sqwebmail/authlib/authuserdb
libexec/sqwebmail/sqwebmail/deliverquota
libexec/sqwebmail/sqwebmail/maildirmake
libexec/sqwebmail/sqwebmail/makedatprog
@@ -12,7 +16,7 @@ libexec/sqwebmail/sqwebmail/makemime
libexec/sqwebmail/sqwebmail/mimegpg
libexec/sqwebmail/sqwebmail/pcpd
libexec/sqwebmail/sqwebmail/reformime
-share/sqwebmail/authdaemonrc.dist
+%%AUTHDFLAG%%share/sqwebmail/authdaemonrc.dist
share/sqwebmail/authmodulelist
%%MYSQLFLAG%%share/sqwebmail/authmysqlrc.dist
%%PGSQLFLAG%%share/sqwebmail/authpgsqlrc.dist
@@ -81,7 +85,7 @@ share/sqwebmail/webgpg
@dirrm share/sqwebmail/var/calendar/private
@dirrm share/sqwebmail/var/calendar/localcache
@dirrm share/sqwebmail/var/calendar
-@dirrm share/sqwebmail/var/authdaemon
+%%AUTHDFLAG%%@dirrm share/sqwebmail/var/authdaemon
@dirrm share/sqwebmail/var
@dirrm share/sqwebmail/share/locale
@dirrm share/sqwebmail/share