FreeBSD Bugzilla – Attachment 149663 Details for
Bug 194854
[patch] print/cups-base may fail to build package when PAM enabled.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
cups-base.patch4
cups-base.patch4 (text/plain), 5.49 KB, created by
takefu
on 2014-11-21 08:52:52 UTC
(
hide
)
Description:
cups-base.patch4
Filename:
MIME Type:
Creator:
takefu
Created:
2014-11-21 08:52:52 UTC
Size:
5.49 KB
patch
obsolete
>--- /usr/ports/print/cups-base/Makefile 2014-11-07 22:03:09.000000000 +0900 >+++ ./Makefile 2014-11-21 17:31:47.000000000 +0900 >@@ -50,22 +50,18 @@ > USERS= cups > > # UNIQUENAME must be set before bsd.port.pre.mk so OPTIONSFILE can be included >-.if defined(CUPS_CLIENT) >-PORTREVISION= 2 >-LICENSE= LGPL21 >-CUPS_SUFFIX= -client > OPTIONS_SINGLE= SSL > OPTIONS_SINGLE_SSL= GNUTLS OPENSSL > OPTIONS_DEFAULT= OPENSSL > OPTIONS_SUB= yes >+.if defined(CUPS_CLIENT) >+PORTREVISION= 2 >+LICENSE= LGPL21 >+CUPS_SUFFIX= -client > .elif defined(CUPS_IMAGE) > PORTREVISION= 1 > CUPS_SUFFIX= -image > LICENSE= LGPL21 >-OPTIONS_SINGLE= SSL >-OPTIONS_SINGLE_SSL= GNUTLS OPENSSL >-OPTIONS_DEFAULT= OPENSSL >-OPTIONS_SUB= yes > .else > PORTREVISION= 2 > CUPS_SUFFIX= -base >@@ -73,12 +69,9 @@ > OPTIONS_DEFINE= DBUS ICONS LIBPAPER LIBUSB PAM XDG_OPEN > OPTIONS_GROUP= WEB > OPTIONS_GROUP_WEB= JAVA PERL PHP PYTHON >-OPTIONS_SINGLE= SSL >-OPTIONS_SINGLE_SSL= GNUTLS OPENSSL > OPTIONS_RADIO= ZEROCONF > OPTIONS_RADIO_ZEROCONF= AVAHI MDNSRESPONDER >-OPTIONS_DEFAULT= LIBPAPER MDNSRESPONDER OPENSSL ICONS >-OPTIONS_SUB= yes >+OPTIONS_DEFAULT+= LIBPAPER MDNSRESPONDER ICONS > .endif > > ICONS_DESC= Desktop icons >@@ -144,84 +137,84 @@ > > # Don't use CONFIGURE_ARGS+=--without-* to disable web interpreters because it > # will set the path of the interpreter to "no" and set it's existence to TRUE. >-.if !defined(CUPS_CLIENT) && !defined(CUPS_IMAGE) && ${PORT_OPTIONS:MJAVA} >+.if !defined(CUPS_CLIENT) && !defined(CUPS_IMAGE) >+. if ${PORT_OPTIONS:MJAVA} > CONFIGURE_ARGS+= --with-java=${JAVA} > USE_JAVA= yes >-.endif >+. endif > >-.if !defined(CUPS_CLIENT) && !defined(CUPS_IMAGE) && ${PORT_OPTIONS:MPERL} >+. if ${PORT_OPTIONS:MPERL} > CONFIGURE_ARGS+= --with-perl=${PERL} > USES+= perl5 >-.endif >+. endif > >-.if !defined(CUPS_CLIENT) && !defined(CUPS_IMAGE) && ${PORT_OPTIONS:MPHP} >+. if ${PORT_OPTIONS:MPHP} > CONFIGURE_ARGS+= --with-php=${LOCALBASE}/bin/php-cgi > USE_PHP= yes > USE_PHP_BUILD= yes > WANT_PHP_CGI= yes >-.endif >+. endif > >-.if !defined(CUPS_CLIENT) && !defined(CUPS_IMAGE) && ${PORT_OPTIONS:MPYTHON} >+. if ${PORT_OPTIONS:MPYTHON} > CONFIGURE_ARGS+= --with-python=${PYTHON_CMD} > USES+= python >-.endif >+. endif > >-.if !defined(CUPS_CLIENT) && !defined(CUPS_IMAGE) && ${PORT_OPTIONS:MLIBPAPER} >+. if ${PORT_OPTIONS:MLIBPAPER} > CONFIGURE_ARGS+= --enable-libpaper > LIB_DEPENDS+= libpaper.so:${PORTSDIR}/print/libpaper >-.endif >+. endif > >-.if !defined(CUPS_CLIENT) && !defined(CUPS_IMAGE) && ${PORT_OPTIONS:MMDNSRESPONDER} >+. if ${PORT_OPTIONS:MMDNSRESPONDER} > LIB_DEPENDS+= libdns_sd.so:${PORTSDIR}/net/mDNSResponder > CONFIGURE_ARGS+= --with-dnssd-includes=${LOCALBASE}/include > CONFIGURE_ARGS+= --disable-avahi > SUB_LIST+= ZEROCONF="mdnsd" >-.elif !defined(CUPS_CLIENT) && !defined(CUPS_IMAGE) && ${PORT_OPTIONS:MAVAHI} >+. elif ${PORT_OPTIONS:MAVAHI} > CONFIGURE_ARGS+= --enable-avahi > LIB_DEPENDS+= libavahi-client.so:${PORTSDIR}/net/avahi-app > SUB_LIST+= ZEROCONF="avahi_daemon" >-.else >+. else > CONFIGURE_ARGS+= --disable-dnssd > CONFIGURE_ARGS+= --disable-avahi > SUB_LIST+= ZEROCONF="" >-.endif >+. endif > >-.if !defined(CUPS_CLIENT) && !defined(CUPS_IMAGE) && ${PORT_OPTIONS:MPAM} >+. if ${PORT_OPTIONS:MPAM} > CONFIGURE_ARGS+= --enable-pam >-.else >+. else > CONFIGURE_ARGS+= --disable-pam >-.endif >+. endif > >-.if !defined(CUPS_CLIENT) && !defined(CUPS_IMAGE) && ${PORT_OPTIONS:MDBUS} >+. if ${PORT_OPTIONS:MDBUS} > LIB_DEPENDS+= libdbus-1.so:${PORTSDIR}/devel/dbus > CONFIGURE_ARGS+= --enable-dbus >-.else >+. else > CONFIGURE_ARGS+= --disable-dbus >-.endif >+. endif > >-.if !defined(CUPS_CLIENT) && !defined(CUPS_IMAGE) && ${PORT_OPTIONS:MXDG_OPEN} >+. if ${PORT_OPTIONS:MXDG_OPEN} > RUN_DEPENDS+= xdg-open:${PORTSDIR}/devel/xdg-utils >-.endif >+. endif > >-.if !defined(CUPS_CLIENT) && !defined(CUPS_IMAGE) && ${PORT_OPTIONS:MLIBUSB} >+. if ${PORT_OPTIONS:MLIBUSB} > CONFIGURE_ARGS+= --enable-libusb >-.else >+. else > CONFIGURE_ARGS+= --disable-libusb >-.endif >+. endif > >-.if !defined(CUPS_CLIENT) && !defined(CUPS_IMAGE) && ${PORT_OPTIONS:MICONS} >+. if ${PORT_OPTIONS:MICONS} > INSTALLS_ICONS= yes > CONFIGURE_ARGS+= --with-icondir=${PREFIX}/share/icons >+. endif >+ >+SUB_FILES+= ulpt-cupsd.conf ulpt-cupsd.sh > .endif > > .if ${OSVERSION} < 1000036 && ${ARCH} == i386 > LIBS+= -lssp_nonshared > .endif > >-.if ! defined(CUPS_CLIENT) && ! defined(CUPS_IMAGE) >-SUB_FILES+= ulpt-cupsd.conf ulpt-cupsd.sh >-.endif >- > post-patch: > .if ${ARCH} == "amd64" > @${REINPLACE_CMD} -e 's|@PIEFLAGS@||' ${WRKSRC}/Makedefs.in >@@ -239,6 +232,13 @@ > -e 's|/private/etc/pam.d|${LOCALBASE}/etc/pam.d|' \ > -e 's|-D_LARGEFILE64_SOURCE||g' \ > ${WRKSRC}/${CONFIGURE_SCRIPT} >+ @${REINPLACE_CMD} -e 's|\.default|.sample|'\ >+ ${WRKSRC}/cgi-bin/admin.c\ >+ ${WRKSRC}/CHANGES-1.3.txt\ >+ ${WRKSRC}/conf/Makefile\ >+ ${WRKSRC}/packaging/cups.list.in\ >+ ${WRKSRC}/packaging/cups.spec\ >+ ${WRKSRC}/packaging/cups.spec.in > .if defined(CUPS_CLIENT) > @${REINPLACE_CMD} \ > -e 's|cups test|cups|' \ >--- /usr/ports/print/cups-base/pkg-plist 2014-11-13 16:41:17.000000000 +0900 >+++ ./pkg-plist 2014-11-21 16:47:14.000000000 +0900 >@@ -13,9 +13,7 @@ > @sample %%ETCDIR%%/mime.convs.sample > @sample %%ETCDIR%%/mime.types.sample > @sample %%ETCDIR%%/snmp.conf.sample >-%%PAM%%@unexec if cmp -s %D/etc/pam.d/cups.default %D/etc/pam.d/cups; then rm -f %D/etc/pam.d/cups ; fi >-%%PAM%%etc/pam.d/cups.default >-%%PAM%%@exec if [ ! -f %D/etc/pam.d/cups ] ; then cp -p %D/%F %B/cups; fi >+%%PAM%%@sample etc/pam.d/cups.sample > bin/cancel > bin/cupstestdsc > bin/cupstestppd >@@ -34,7 +32,6 @@ > bin/ppdi > bin/ppdmerge > bin/ppdpo >-etc/cups/cupsd.conf.default > include/cups/cgi.h > include/cups/help-index.h > include/cups/mime.h
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 194854
:
149110
|
149276
|
149579
|
149663
|
149923