Skip site navigation (1)Skip section navigation (2)
Date:      13 Sep 2002 16:24:09 -0000
From:      Sergei Kolobov <sergei@kolobov.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/42746: Update port: mail/anubis to 3.4.6 [PATCH]
Message-ID:  <20020913162409.48326.qmail@outpost.globcon.net>

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

>Number:         42746
>Category:       ports
>Synopsis:       Update port: mail/anubis to 3.4.6 [PATCH]
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Fri Sep 13 09:30:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Sergei Kolobov
>Release:        FreeBSD 4.6-STABLE i386
>Organization:
>Environment:
System: FreeBSD outpost.globcon.net 4.6-STABLE FreeBSD 4.6-STABLE #0: Thu Aug 1 02:44:26 MSD 2002 sgk@outpost.globcon.net:/data/FreeBSD/obj/data/FreeBSD/src/sys/OUTPOST i386
>Description:
- Update to 3.4.6
- Add several compile-time knobs:
  - WITHOUT_OPENSSL=yes   Disable the OpenSSL library support
  - WITHOUT_GPGME=yes     Disable the GnuPG (GPGME library) support
  - WITH_PCRE=yes         Enable the PCRE library support
  - WITH_PAM=yes          Enable the Pluggable Authentication Modules support
  - WITH_TCP_WRAPPERS=yes Enable the libwrap (TCP wrappers) support
- Take maintainership
>How-To-Repeat:
>Fix:
--- anubis-3.4.6.patch begins here ---
diff -urN /usr/ports/mail/anubis/Makefile /home/sgk/ports/mail/anubis/Makefile
--- /usr/ports/mail/anubis/Makefile	Sun Sep  1 04:10:06 2002
+++ /home/sgk/ports/mail/anubis/Makefile	Fri Sep 13 20:17:50 2002
@@ -5,27 +5,68 @@
 #
 # $FreeBSD: ports/mail/anubis/Makefile,v 1.4 2002/08/31 17:45:36 dwcjr Exp $
 #
+###########################################################################
+#
+# Following compile-time options are available:
+#
+# WITHOUT_OPENSSL=yes	Disable the OpenSSL library support
+# WITHOUT_GPGME=yes	Disable the GnuPG (GPGME library) support
+# WITH_PCRE=yes		Enable the PCRE library support
+# WITH_PAM=yes		Enable the Pluggable Authentication Modules support
+# WITH_TCP_WRAPPERS=yes Enable the libwrap (TCP wrappers) support
+#
+###########################################################################
 
 PORTNAME=	anubis
-PORTVERSION=	3.4.2
+PORTVERSION=	3.4.6
 CATEGORIES=	mail
 MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
 MASTER_SITE_SUBDIR=	${PORTNAME}
 
-MAINTAINER=	ports@FreeBSD.org
+MAINTAINER=	sergei@kolobov.com
 
-LIB_DEPENDS=	gpgme:${PORTSDIR}/security/gpgme \
-		pcre:${PORTSDIR}/devel/pcre \
-		gnugetopt:${PORTSDIR}/devel/libgnugetopt
+LIB_DEPENDS=	gnugetopt:${PORTSDIR}/devel/libgnugetopt
 
 USE_REINPLACE=	yes
-USE_OPENSSL=	yes
 GNU_CONFIGURE=	yes
 CONFIGURE_ENV=	CPPFLAGS="${CXXFLAGS} -I${LOCALBASE}/include" \
 		LDFLAGS="-L${LOCALBASE}/lib -lgnugetopt"
 
+# OpenSSL
+.if defined(WITHOUT_OPENSSL)
+CONFIGURE_ARGS+=	--without-openssl
+.else
+USE_OPENSSL=		yes
+.endif
+
+# GPGME
+.if defined(WITHOUT_GPGME)
+CONFIGURE_ARGS+=	--without-gpgme
+.else
+LIB_DEPENDS+=		gpgme:${PORTSDIR}/security/gpgme
+.endif
+
+# PCRE
+.if defined(WITH_PCRE)
+LIB_DEPENDS+=		pcre:${PORTSDIR}/devel/pcre
+CONFIGURE_ARGS+=	--with-pcre
+.endif
+
+# PAM
+.if defined(WITH_PAM)
+CONFIGURE_ARGS+=	--with-pam
+.endif
+
+# TCP Wrappers
+.if defined(WITH_TCP_WRAPPERS)
+CONFIGURE_ARGS+=	--with-tcp-wrappers
+.endif
+
 MAN1=	anubis.1
-DOCS=	AUTHORS COPYING INSTALL NEWS README THANKS TODO
+DOCS=	AUTHORS INSTALL NEWS README THANKS TODO
+
+pre-everything::
+	@${CAT} ${PKGMESSAGE}
 
 post-patch:
 	@${REINPLACE_CMD} -e "s|/etc|${PREFIX}/etc|g" ${WRKSRC}/src/headers.h
@@ -35,11 +76,14 @@
 post-install:
 	${INSTALL_SCRIPT} ${WRKSRC}/anubis.sh ${PREFIX}/etc/rc.d
 	@${MKDIR} ${EXAMPLESDIR}
-	${CP} -R ${WRKSRC}/examples/* ${EXAMPLESDIR}
+	${INSTALL_DATA} ${WRKSRC}/examples/*rc ${EXAMPLESDIR}
+.if defined(WITH_PAM)
+	@${MKDIR} ${EXAMPLESDIR}/pam
+	${INSTALL_DATA} ${WRKSRC}/examples/pam/* ${EXAMPLESDIR}/pam
+.endif
 .if !defined(NOPORTDOCS)
 	@${MKDIR} ${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/doc/TUTORIAL ${DOCSDIR}
-.for file in ${DOCS} 
+.for file in ${DOCS}
 	${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
 .endfor
 .endif
diff -urN /usr/ports/mail/anubis/distinfo /home/sgk/ports/mail/anubis/distinfo
--- /usr/ports/mail/anubis/distinfo	Sun Sep  1 04:10:07 2002
+++ /home/sgk/ports/mail/anubis/distinfo	Mon Sep  9 14:41:02 2002
@@ -1 +1 @@
-MD5 (anubis-3.4.2.tar.gz) = e761ab843eeddaf4bbe5899312c93bf3
+MD5 (anubis-3.4.6.tar.gz) = 12e492c1b4287a93659530510db5b77b
diff -urN /usr/ports/mail/anubis/pkg-message /home/sgk/ports/mail/anubis/pkg-message
--- /usr/ports/mail/anubis/pkg-message	Thu Jan  1 03:00:00 1970
+++ /home/sgk/ports/mail/anubis/pkg-message	Fri Sep 13 19:27:15 2002
@@ -0,0 +1,11 @@
+###########################################################################
+# 
+# Following compile-time options are available:
+# 
+# WITHOUT_OPENSSL=yes	Disable the OpenSSL library support
+# WITHOUT_GPGME=yes	Disable the GnuPG (GPGME library) support
+# WITH_PCRE=yes		Enable the PCRE library support
+# WITH_PAM=yes		Enable the Pluggable Authentication Modules support
+# WITH_TCP_WRAPPERS=yes Enable the libwrap (TCP wrappers) support
+#
+###########################################################################
diff -urN /usr/ports/mail/anubis/pkg-plist /home/sgk/ports/mail/anubis/pkg-plist
--- /usr/ports/mail/anubis/pkg-plist	Sun Sep  1 04:10:07 2002
+++ /home/sgk/ports/mail/anubis/pkg-plist	Fri Sep 13 20:08:19 2002
@@ -1,18 +1,22 @@
 sbin/anubis
 etc/rc.d/anubis.sh
+@unexec install-info --delete %D/info/anubis.info %D/info/dir
 info/anubis.info
+info/anubis.info-1
+info/anubis.info-2
 @exec install-info %D/info/anubis.info %D/info/dir
-@unexec install-info --delete %D/info/anubis.info %D/info/dir
 %%PORTDOCS%%share/doc/anubis/AUTHORS
-%%PORTDOCS%%share/doc/anubis/COPYING
 %%PORTDOCS%%share/doc/anubis/INSTALL
 %%PORTDOCS%%share/doc/anubis/NEWS
 %%PORTDOCS%%share/doc/anubis/README
 %%PORTDOCS%%share/doc/anubis/THANKS
 %%PORTDOCS%%share/doc/anubis/TODO
-%%PORTDOCS%%share/doc/anubis/TUTORIAL
 %%PORTDOCS%%@dirrm share/doc/anubis
 share/examples/anubis/1anubisrc
 share/examples/anubis/2anubisrc
 share/examples/anubis/defaultrc
+share/examples/anubis/pam/anubis
+share/examples/anubis/pam/anubis.allow
+share/examples/anubis/pam/anubis.deny
+@dirrm share/examples/anubis/pam
 @dirrm share/examples/anubis
--- anubis-3.4.6.patch ends here ---

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

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




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