pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mail/perdition Make "pam" an option as it is with many...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e290c770f950
branches:  trunk
changeset: 509170:e290c770f950
user:      tv <tv%pkgsrc.org@localhost>
date:      Sat Mar 04 16:06:29 2006 +0000

description:
Make "pam" an option as it is with many other pkgs; it is now off by
default.  This correctly fixes the PLIST problem with pam, and makes the
package more consistent with the rest of pkgsrc.

diffstat:

 mail/perdition/Makefile   |   4 ++--
 mail/perdition/PLIST      |   3 ++-
 mail/perdition/options.mk |  16 ++++++++++++++--
 3 files changed, 18 insertions(+), 5 deletions(-)

diffs (60 lines):

diff -r a00926ae4eb4 -r e290c770f950 mail/perdition/Makefile
--- a/mail/perdition/Makefile   Sat Mar 04 15:58:58 2006 +0000
+++ b/mail/perdition/Makefile   Sat Mar 04 16:06:29 2006 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.5 2006/03/03 16:56:35 tv Exp $
+# $NetBSD: Makefile,v 1.6 2006/03/04 16:06:29 tv Exp $
 #
 
-PKGREVISION=           4
+PKGREVISION=           5
 
 PERDITION_COMMENT=     main program
 
diff -r a00926ae4eb4 -r e290c770f950 mail/perdition/PLIST
--- a/mail/perdition/PLIST      Sat Mar 04 15:58:58 2006 +0000
+++ b/mail/perdition/PLIST      Sat Mar 04 16:06:29 2006 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.3 2006/03/03 16:56:35 tv Exp $
+@comment $NetBSD: PLIST,v 1.4 2006/03/04 16:06:29 tv Exp $
 include/jain.h
 lib/libjain.la
 lib/libperditiondb_nis.la
@@ -16,6 +16,7 @@
 sbin/perdition.imaps
 sbin/perdition.pop3
 sbin/perdition.pop3s
+${PERDITION_HAVE_PAM}share/examples/pam.d/perdition
 share/examples/perdition/Makefile
 share/examples/perdition/Makefile.popmap
 share/examples/perdition/perdition.conf
diff -r a00926ae4eb4 -r e290c770f950 mail/perdition/options.mk
--- a/mail/perdition/options.mk Sat Mar 04 15:58:58 2006 +0000
+++ b/mail/perdition/options.mk Sat Mar 04 16:06:29 2006 +0000
@@ -1,12 +1,24 @@
-# $NetBSD: options.mk,v 1.1 2006/01/31 21:07:30 tv Exp $
+# $NetBSD: options.mk,v 1.2 2006/03/04 16:06:29 tv Exp $
 
 PKG_OPTIONS_VAR=       PKG_OPTIONS.perdition
-PKG_SUPPORTED_OPTIONS= ssl
+PKG_SUPPORTED_OPTIONS= ssl pam
 PKG_SUGGESTED_OPTIONS= ssl
 
 .include "../../mk/bsd.options.mk"
 
 ###
+### Build with PAM support.
+###
+.if !empty(PKG_OPTIONS:Mpam)
+.  include "../../mk/pam.buildlink3.mk"
+PLIST_SUBST+=          PERDITION_HAVE_PAM=
+.else
+# prevent recognition of PAM in the base system
+CONFIGURE_ENV+=                ac_cv_header_security_pam_appl_h=no
+PLIST_SUBST+=          PERDITION_HAVE_PAM="@comment "
+.endif
+
+###
 ### Build with OpenSSL as the underlying crypto library.
 ###
 .if !empty(PKG_OPTIONS:Mssl)



Home | Main Index | Thread Index | Old Index