aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--print/cups-base/Makefile14
-rw-r--r--print/cups-base/pkg-plist1
2 files changed, 13 insertions, 2 deletions
diff --git a/print/cups-base/Makefile b/print/cups-base/Makefile
index 5573d68d19ad..1c4e7ef84413 100644
--- a/print/cups-base/Makefile
+++ b/print/cups-base/Makefile
@@ -34,7 +34,6 @@ DSOFLAGS= -Wl,-rpath,${PREFIX}/lib -L${PREFIX}/lib
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} \
@@ -48,7 +47,9 @@ CONFIGURE_ARGS+= --localstatedir=/var \
OPTIONS= GNUTLS "Build with GNUTLS library" on \
PHP "Build PHP support" off \
PYTHON "Build PYTHON support" off \
- LIBPAPER "Build with libpaper support" off
+ LIBPAPER "Build with libpaper support" off \
+ DNSSD "Build with DNS_SD (avahi) support" off \
+ PAM "Build with PAM support" off
CUPS_ETCDIR= ${PREFIX}/etc/cups
CUPS_SPOOLDIR= /var/spool/cups
@@ -104,6 +105,14 @@ CONFIGURE_ARGS+= --enable-dnssd \
LIB_DEPENDS+= dns_sd:${PORTSDIR}/net/avahi-libdns
.endif
+.if defined(WITH_PAM)
+CONFIGURE_ARGS+= --enable-pam
+PLIST_SUB+= WITH_PAMD=""
+.else
+CONFIGURE_ARGS+= --disable-pam
+PLIST_SUB+= WITH_PAMD="@comment "
+.endif
+
MAN1EXT= 1
MAN5EXT= 5
MAN7EXT= 7
@@ -158,6 +167,7 @@ post-patch:
@${REINPLACE_CMD} -e '/share/s|/usr/share|${PREFIX}/share|g' ${WRKSRC}/Makefile
@${REINPLACE_CMD} -e 's|/etc/cups|/usr/local/etc/cups|g' ${WRKSRC}/man/*.man*
@${REINPLACE_CMD} -e 's|CXX="$$CC"||g ; s|-lpthreads.*;|${PTHREAD_LIBS};|g' \
+ -e 's|/private/etc/pam.d|${LOCALBASE}/etc/pam.d|' \
${WRKSRC}/${CONFIGURE_SCRIPT}
pre-su-install:
diff --git a/print/cups-base/pkg-plist b/print/cups-base/pkg-plist
index 530e6b5d803a..a0ab73dc0728 100644
--- a/print/cups-base/pkg-plist
+++ b/print/cups-base/pkg-plist
@@ -33,6 +33,7 @@ etc/cups/mime.types.N
etc/cups/snmp.conf.N
@exec if test ! -f %D/etc/cups/snmp.conf; then cp -p %D/etc/cups/snmp.conf.N %D/etc/cups/snmp.conf; fi
@exec chgrp cups %D/etc/cups
+%%WITH_PAMD%%etc/pam.d/cups
bin/cancel
bin/cups-config
bin/cupstestdsc