diff options
author | dinoex <dinoex@FreeBSD.org> | 2008-01-24 00:00:56 +0800 |
---|---|---|
committer | dinoex <dinoex@FreeBSD.org> | 2008-01-24 00:00:56 +0800 |
commit | 96fee6892e2a3198a0ce1abb0f9527e1d2cc5eb0 (patch) | |
tree | 3b92d93425ac7b3a69c90d14506b690a0555b47d /print | |
parent | 9ac011d18f323a10e7872b77860cdf1402a31823 (diff) | |
download | freebsd-ports-gnome-96fee6892e2a3198a0ce1abb0f9527e1d2cc5eb0.tar.gz freebsd-ports-gnome-96fee6892e2a3198a0ce1abb0f9527e1d2cc5eb0.tar.zst freebsd-ports-gnome-96fee6892e2a3198a0ce1abb0f9527e1d2cc5eb0.zip |
- add option DNSSD to make config
- new option WITH_PAM
PR: 119919
Submitted by: Willy Offermans
Diffstat (limited to 'print')
-rw-r--r-- | print/cups-base/Makefile | 14 | ||||
-rw-r--r-- | print/cups-base/pkg-plist | 1 |
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 |