Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Jan 2008 11:14:27 +0100 (CET)
From:      Willy Offermans <willy@Offermans.Rompen.nl>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        dinoex@FreeBSD.org
Subject:   ports/119919: port print/cups-base add PAM support option to Makefile
Message-ID:  <200801231014.m0NAERCx026287@rose.wierts.nl>
Resent-Message-ID: <200801231030.m0NAU14Z002541@freefall.freebsd.org>

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

>Number:         119919
>Category:       ports
>Synopsis:       port print/cups-base add PAM support option to Makefile
>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:   Wed Jan 23 10:30:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Willy Offermans <Willy@Offermans.Rompen.nl>
>Release:        FreeBSD 6.2-RELEASE-p6 i386
>Organization:
>Environment:
System: FreeBSD rose.wierts.nl 6.2-RELEASE-p6 FreeBSD 6.2-RELEASE-p6 #1: Mon Oct 22 10:18:52 CEST 2007 willy@rose.wierts.nl:/usr/obj/usr/src/sys/ROSE i386


	
>Description:
	PAM support for print/cups-base should be enabled by default. It should be possible to set this option by running make config. The included diff file can be patched against the current Makefile to make this possible.
>How-To-Repeat:
	
>Fix:

	Simply change to the print/cups-base directory and apply the following patch like patch < Makefile.diff

--- Makefile.diff begins here ---
--- Makefile	Wed Jan 23 10:39:55 2008
+++ Makefile.new	Wed Jan 23 10:39:41 2008
@@ -34,7 +34,6 @@
 CONFIGURE_ENV=	CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" DSOFLAGS="${DSOFLAGS}"
 CONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
 CONFIGURE_ARGS+=	--localstatedir=/var			\
-			--disable-pam				\
 			--disable-slp				\
 			--disable-gssapi			\
 			--with-cups-user=${CUPSOWN}		\
@@ -46,9 +45,10 @@
 			--with-domainsocket=${CUPS_SOCKET}
 
 OPTIONS=	GNUTLS		"Build with GNUTLS library" on \
+		LIBPAPER	"Build with libpaper support" off \
+		PAM		"Build with PAM support" on \
 		PHP		"Build PHP support" off \
-		PYTHON		"Build PYTHON support" off \
-		LIBPAPER	"Build with libpaper support" off
+		PYTHON		"Build PYTHON support" off
 
 CUPS_ETCDIR=	${PREFIX}/etc/cups
 CUPS_SPOOLDIR=	/var/spool/cups
@@ -76,6 +76,17 @@
 .include "${PORTSDIR}/Mk/bsd.openssl.mk"
 .endif
 
+.if defined(WITH_LIBPAPER)
+CONFIGURE_ARGS+=	--enable-libpaper
+LIB_DEPENDS+=		paper.2:${PORTSDIR}/print/libpaper
+.endif
+
+.if !defined(WITHOUT_PAM)
+CONFIGURE_ARGS+=	--enable-pam
+.else
+CONFIGURE_ARGS+=	--disable-pam
+.endif
+
 .if defined(WITH_PHP)
 CONFIGURE_ARGS+=	--with-php
 USE_PHP=		yes
@@ -90,11 +101,6 @@
 CONFIGURE_ARGS+=	--with-python
 USE_PYTHON=		yes
 .include "${PORTSDIR}/Mk/bsd.python.mk"
-.endif
-
-.if defined(WITH_LIBPAPER)
-CONFIGURE_ARGS+=	--enable-libpaper
-LIB_DEPENDS+=		paper.2:${PORTSDIR}/print/libpaper
 .endif
 
 MAN1EXT=	1
--- Makefile.diff ends here ---


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



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