pkgsrc-Changes archive

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

CVS commit: pkgsrc/print



Module Name:    pkgsrc
Committed By:   maya
Date:           Sat May 16 18:07:57 UTC 2020

Modified Files:
        pkgsrc/print: Makefile
        pkgsrc/print/cups-base: Makefile PLIST buildlink3.mk
Added Files:
        pkgsrc/print/libcups: DESCR Makefile PLIST buildlink3.mk options.mk

Log Message:
Split cups-base in two: libcups and the printer daemon.

The intention with this change is to make it easier to enable CUPS support
by default in places, without requiring the daemon (which might conflict
with other printing setups).

Bump cups-base PKGREVISION and make it depend on libcups.


To generate a diff of this commit:
cvs rdiff -u -r1.769 -r1.770 pkgsrc/print/Makefile
cvs rdiff -u -r1.33 -r1.34 pkgsrc/print/cups-base/Makefile
cvs rdiff -u -r1.4 -r1.5 pkgsrc/print/cups-base/PLIST
cvs rdiff -u -r1.13 -r1.14 pkgsrc/print/cups-base/buildlink3.mk
cvs rdiff -u -r0 -r1.1 pkgsrc/print/libcups/DESCR \
    pkgsrc/print/libcups/Makefile pkgsrc/print/libcups/PLIST \
    pkgsrc/print/libcups/buildlink3.mk pkgsrc/print/libcups/options.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/print/Makefile
diff -u pkgsrc/print/Makefile:1.769 pkgsrc/print/Makefile:1.770
--- pkgsrc/print/Makefile:1.769 Fri May 15 11:57:35 2020
+++ pkgsrc/print/Makefile       Sat May 16 18:07:56 2020
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.769 2020/05/15 11:57:35 nia Exp $
+# $NetBSD: Makefile,v 1.770 2020/05/16 18:07:56 maya Exp $
 #
 
 COMMENT=       Desktop publishing
@@ -78,6 +78,7 @@ SUBDIR+=      lacheck
 SUBDIR+=       latex-mk
 SUBDIR+=       latexmk
 SUBDIR+=       lgrind
+SUBDIR+=       libcups
 SUBDIR+=       libgxps
 SUBDIR+=       libpaper
 SUBDIR+=       libspectre

Index: pkgsrc/print/cups-base/Makefile
diff -u pkgsrc/print/cups-base/Makefile:1.33 pkgsrc/print/cups-base/Makefile:1.34
--- pkgsrc/print/cups-base/Makefile:1.33        Thu May 14 19:45:50 2020
+++ pkgsrc/print/cups-base/Makefile     Sat May 16 18:07:56 2020
@@ -1,10 +1,10 @@
-# $NetBSD: Makefile,v 1.33 2020/05/14 19:45:50 joerg Exp $
+# $NetBSD: Makefile,v 1.34 2020/05/16 18:07:56 maya Exp $
 
 .include "../../print/cups/Makefile.common"
 
 DISTNAME=      cups-${CUPS_VERS}-source
 PKGNAME=       cups-base-${CUPS_VERS}
-PKGREVISION=   1
+PKGREVISION=   2
 CATEGORIES=    print
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=apple/}
 
@@ -137,6 +137,11 @@ post-extract:
        ${CP} ${FILESDIR}/cups.pam ${WRKDIR}/cups.pam
 
 post-install:
+       # Delete files installed by libcups
+       ${RM} ${DESTDIR}${PREFIX}/bin/cups-config
+       ${RM} -rf ${DESTDIR}${PREFIX}/lib
+       ${RM} -rf ${DESTDIR}${PREFIX}/include/cups
+       ${RM} -rf ${DESTDIR}${PREFIX}/share/locale
        set -e; for file in LICENSE README.md; do                       \
                ${INSTALL_DATA} ${WRKSRC}/$${file}                      \
                     ${DESTDIR}${DOCDIR}/$${file}; \
@@ -157,6 +162,7 @@ post-install:
 .include "../../devel/zlib/buildlink3.mk"
 .include "../../graphics/png/buildlink3.mk"
 .include "../../graphics/tiff/buildlink3.mk"
+.include "../../print/libcups/buildlink3.mk"
 .include "../../print/libpaper/buildlink3.mk"
 .include "../../security/gnutls/buildlink3.mk"
 .include "../../textproc/libunistring/buildlink3.mk"

Index: pkgsrc/print/cups-base/PLIST
diff -u pkgsrc/print/cups-base/PLIST:1.4 pkgsrc/print/cups-base/PLIST:1.5
--- pkgsrc/print/cups-base/PLIST:1.4    Sun Nov 17 21:22:03 2019
+++ pkgsrc/print/cups-base/PLIST        Sat May 16 18:07:56 2020
@@ -1,6 +1,5 @@
-@comment $NetBSD: PLIST,v 1.4 2019/11/17 21:22:03 leot Exp $
+@comment $NetBSD: PLIST,v 1.5 2020/05/16 18:07:56 maya Exp $
 bin/cancel
-bin/cups-config
 bin/cupstestppd
 bin/ippeveprinter
 ${PLIST.ippfind}bin/ippfind
@@ -16,23 +15,6 @@ bin/ppdhtml
 bin/ppdi
 bin/ppdmerge
 bin/ppdpo
-include/cups/adminutil.h
-include/cups/array.h
-include/cups/backend.h
-include/cups/cups.h
-include/cups/dir.h
-include/cups/file.h
-include/cups/http.h
-include/cups/ipp.h
-include/cups/language.h
-include/cups/ppd.h
-include/cups/pwg.h
-include/cups/raster.h
-include/cups/sidechannel.h
-include/cups/transcode.h
-include/cups/versioning.h
-lib/libcups.la
-lib/libcupsimage.la
 ${PLIST.apple}libexec/cups/apple/http
 ${PLIST.apple}libexec/cups/apple/https
 ${PLIST.apple}libexec/cups/apple/ipp
@@ -781,14 +763,3 @@ share/examples/cups/cups-files.conf
 ${PLIST.pam}share/examples/cups/cups.pam
 share/examples/cups/cupsd.conf
 share/examples/cups/snmp.conf
-share/locale/ca/cups_ca.po
-share/locale/cs/cups_cs.po
-share/locale/de/cups_de.po
-share/locale/en/cups_en.po
-share/locale/es/cups_es.po
-share/locale/fr/cups_fr.po
-share/locale/it/cups_it.po
-share/locale/ja/cups_ja.po
-share/locale/pt_BR/cups_pt_BR.po
-share/locale/ru/cups_ru.po
-share/locale/zh_CN/cups_zh_CN.po

Index: pkgsrc/print/cups-base/buildlink3.mk
diff -u pkgsrc/print/cups-base/buildlink3.mk:1.13 pkgsrc/print/cups-base/buildlink3.mk:1.14
--- pkgsrc/print/cups-base/buildlink3.mk:1.13   Tue Mar 10 22:08:57 2020
+++ pkgsrc/print/cups-base/buildlink3.mk        Sat May 16 18:07:56 2020
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.13 2020/03/10 22:08:57 wiz Exp $
+# $NetBSD: buildlink3.mk,v 1.14 2020/05/16 18:07:56 maya Exp $
 
 BUILDLINK_TREE+=       cups-base
 
@@ -27,6 +27,7 @@ pkgbase := cups-base
 .include "../../converters/libiconv/buildlink3.mk"
 .include "../../graphics/png/buildlink3.mk"
 .include "../../graphics/tiff/buildlink3.mk"
+.include "../../print/libcups/buildlink3.mk"
 .include "../../security/gnutls/buildlink3.mk"
 .endif # CUPS_BASE_BUILDLINK3_MK
 

Added files:

Index: pkgsrc/print/libcups/DESCR
diff -u /dev/null pkgsrc/print/libcups/DESCR:1.1
--- /dev/null   Sat May 16 18:07:57 2020
+++ pkgsrc/print/libcups/DESCR  Sat May 16 18:07:56 2020
@@ -0,0 +1,14 @@
+The Common UNIX Printing System provides a portable printing layer for
+UNIX operating systems. It has been developed by Easy Software Products
+to promote a standard printing solution for all UNIX vendors and users.
+CUPS provides the System V and Berkeley command-line interfaces.
+
+CUPS uses the Internet Printing Protocol (IETF-IPP) as the basis for
+managing print jobs and queues.  The Line Printer Daemon (LPD, RFC1179)
+and AppSocket protocols are also supported with reduced functionality.
+
+CUPS adds network printer browsing and PostScript Printer Description
+("PPD")-based printing options to support real world applications under
+UNIX.
+
+This package consists of the library used for talking to CUPS.
Index: pkgsrc/print/libcups/Makefile
diff -u /dev/null pkgsrc/print/libcups/Makefile:1.1
--- /dev/null   Sat May 16 18:07:57 2020
+++ pkgsrc/print/libcups/Makefile       Sat May 16 18:07:56 2020
@@ -0,0 +1,75 @@
+# $NetBSD: Makefile,v 1.1 2020/05/16 18:07:56 maya Exp $
+
+.include "../../print/cups/Makefile.common"
+
+PKGNAME=       libcups-${CUPS_VERS}
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=apple/}
+
+MAINTAINER=    sbd%NetBSD.org@localhost
+COMMENT=       Common UNIX Printing System library
+
+DISTINFO_FILE?=        ${.CURDIR}/../../print/cups-base/distinfo
+PATCHDIR?=     ${.CURDIR}/../../print/cups-base/patches
+
+GITHUB_PROJECT=        cups
+GITHUB_RELEASE=        v${PKGVERSION_NOREV}
+
+CONFLICTS+=    LPRng-[0-9]* LPRng-core-[0-9]*
+
+WRKSRC=                        ${WRKDIR}/${DISTNAME:S/-source//}
+UNLIMIT_RESOURCES=     datasize memorysize
+USE_LANGUAGES=         c c++   # pdftops is a C++ application
+USE_LIBTOOL=           yes
+USE_PKGLOCALEDIR=      yes
+USE_TOOLS+=            aclocal autoconf automake gmake pkg-config
+GNU_CONFIGURE=         yes
+CONFIGURE_ARGS+=       --localedir=${PREFIX}/${PKGLOCALEDIR}/locale
+CONFIGURE_ARGS+=       --sysconfdir=${PKG_SYSCONFBASEDIR}
+CONFIGURE_ARGS+=       --localstatedir=${VARBASE}
+CONFIGURE_ARGS+=       --with-cachedir=${CUPS_CACHE:Q}
+CONFIGURE_ARGS+=       --with-docdir=${PREFIX}/share/doc/cups
+CONFIGURE_ARGS+=       --with-serverbindir=${PREFIX}/libexec/cups
+CONFIGURE_ARGS+=       --with-components=libcups
+CONFIGURE_ARGS+=       --enable-libpaper
+CONFIGURE_ARGS+=       --enable-ssl
+
+CONFIGURE_ENV+=                DSOFLAGS=${LDFLAGS:M*:Q}
+
+.include "../../mk/bsd.prefs.mk"
+.include "options.mk"
+
+# Explicitly disable epoll on illumos, it is provided for Linux compat only.
+CONFIGURE_ENV.SunOS+=  ac_cv_func_epoll_create=no
+
+LIBS+=                 ${BUILDLINK_LDADD.iconv}
+
+# Avoid the following error when compiling with clang.
+# /usr/local/bin/ld: /usr/lib/crt1.o: relocation R_X86_64_32 against `_DYNAMIC'
+# can not be used when making a shared object; recompile with -fPIC
+BUILDLINK_TRANSFORM.FreeBSD+=  rm:-Wl,-pie
+
+PKG_SYSCONFSUBDIR=     cups
+CUPS_CACHE=            ${VARBASE}/cache/cups
+
+.if !empty(OPSYS:MNetBSD) && !empty(MACHINE_ARCH:Mpowerpc)
+SUBST_CLASSES+=                piefix
+SUBST_FILES.piefix=    Makedefs.in
+SUBST_MESSAGE.piefix=  Removing PIE flags
+SUBST_SED.piefix=      -e 's|@PIEFLAGS@||g'
+SUBST_STAGE.piefix=    pre-configure
+.endif
+
+pre-configure:
+       cd ${WRKSRC} && aclocal && autoconf
+
+.include "../../converters/libiconv/buildlink3.mk"
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../graphics/png/buildlink3.mk"
+.include "../../graphics/tiff/buildlink3.mk"
+.include "../../print/libpaper/buildlink3.mk"
+.include "../../security/gnutls/buildlink3.mk"
+.include "../../textproc/libunistring/buildlink3.mk"
+.include "../../mk/curses.buildlink3.mk"
+.include "../../mk/jpeg.buildlink3.mk"
+.include "../../mk/pthread.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/print/libcups/PLIST
diff -u /dev/null pkgsrc/print/libcups/PLIST:1.1
--- /dev/null   Sat May 16 18:07:57 2020
+++ pkgsrc/print/libcups/PLIST  Sat May 16 18:07:56 2020
@@ -0,0 +1,30 @@
+@comment $NetBSD: PLIST,v 1.1 2020/05/16 18:07:56 maya Exp $
+bin/cups-config
+include/cups/adminutil.h
+include/cups/array.h
+include/cups/backend.h
+include/cups/cups.h
+include/cups/dir.h
+include/cups/file.h
+include/cups/http.h
+include/cups/ipp.h
+include/cups/language.h
+include/cups/ppd.h
+include/cups/pwg.h
+include/cups/raster.h
+include/cups/sidechannel.h
+include/cups/transcode.h
+include/cups/versioning.h
+lib/libcups.la
+lib/libcupsimage.la
+share/locale/ca/cups_ca.po
+share/locale/cs/cups_cs.po
+share/locale/de/cups_de.po
+share/locale/en/cups_en.po
+share/locale/es/cups_es.po
+share/locale/fr/cups_fr.po
+share/locale/it/cups_it.po
+share/locale/ja/cups_ja.po
+share/locale/pt_BR/cups_pt_BR.po
+share/locale/ru/cups_ru.po
+share/locale/zh_CN/cups_zh_CN.po
Index: pkgsrc/print/libcups/buildlink3.mk
diff -u /dev/null pkgsrc/print/libcups/buildlink3.mk:1.1
--- /dev/null   Sat May 16 18:07:57 2020
+++ pkgsrc/print/libcups/buildlink3.mk  Sat May 16 18:07:56 2020
@@ -0,0 +1,33 @@
+# $NetBSD: buildlink3.mk,v 1.1 2020/05/16 18:07:56 maya Exp $
+
+BUILDLINK_TREE+=       libcups
+
+.if !defined(LIBCUPS_BUILDLINK3_MK)
+LIBCUPS_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.libcups+=        libcups>=1.1.19nb3
+BUILDLINK_ABI_DEPENDS.libcups+=        libcups>=2.3.1nb3
+BUILDLINK_PKGSRCDIR.libcups?=          ../../print/libcups
+
+pkgbase := libcups
+.include "../../mk/pkg-build-options.mk"
+
+.if !empty(PKG_BUILD_OPTIONS.libcups:Mkerberos)
+.include "../../mk/krb5.buildlink3.mk"
+.endif
+
+.if !empty(PKG_BUILD_OPTIONS.libcups:Mdnssd)
+.include "../../net/mDNSResponder/buildlink3.mk"
+.endif
+
+.if ${OPSYS} != "Darwin" && !empty(PKG_BUILD_OPTIONS.libcups:Mavahi)
+.include "../../net/avahi/buildlink3.mk"
+.endif
+
+.include "../../converters/libiconv/buildlink3.mk"
+.include "../../graphics/png/buildlink3.mk"
+.include "../../graphics/tiff/buildlink3.mk"
+.include "../../security/gnutls/buildlink3.mk"
+.endif # LIBCUPS_BUILDLINK3_MK
+
+BUILDLINK_TREE+=       -libcups
Index: pkgsrc/print/libcups/options.mk
diff -u /dev/null pkgsrc/print/libcups/options.mk:1.1
--- /dev/null   Sat May 16 18:07:57 2020
+++ pkgsrc/print/libcups/options.mk     Sat May 16 18:07:56 2020
@@ -0,0 +1,66 @@
+# $NetBSD: options.mk,v 1.1 2020/05/16 18:07:56 maya Exp $
+
+PKG_OPTIONS_VAR=       PKG_OPTIONS.libcups
+PKG_SUPPORTED_OPTIONS= acl dnssd kerberos tcpwrappers
+PKG_SUGGESTED_OPTIONS= dnssd kerberos
+
+.if defined(PKG_OPTIONS.cups)
+PKG_LEGACY_OPTIONS+=           ${PKG_OPTIONS.cups}
+PKG_OPTIONS_DEPRECATED_WARNINGS+= \
+       "Deprecated variable PKG_OPTIONS.cups used, use ${PKG_OPTIONS_VAR} instead."
+.endif
+
+.if ${OPSYS} != "Darwin"
+# CUPS on Darwin does not support DBus and libusb
+PKG_SUPPORTED_OPTIONS+=        avahi dbus
+PKG_SUGGESTED_OPTIONS+=        dbus
+.endif
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Macl)
+CONFIGURE_ARGS+=       --enable-acl
+.else
+CONFIGURE_ARGS+=       --disable-acl
+.endif
+
+.if !empty(PKG_OPTIONS:Mavahi)
+.include "../../net/avahi/buildlink3.mk"
+CONFIGURE_ARGS+=       --enable-avahi
+.else
+CONFIGURE_ARGS+=       --disable-avahi
+.endif
+
+.if !empty(PKG_OPTIONS:Mdbus)
+.  include "../../sysutils/dbus/buildlink3.mk"
+CONFIGURE_ARGS+=       --enable-dbus
+.else
+CONFIGURE_ARGS+=       --disable-dbus
+.endif
+
+.if !empty(PKG_OPTIONS:Mdnssd)
+.include "../../net/mDNSResponder/buildlink3.mk"
+CONFIGURE_ARGS+=       --enable-dnssd
+.else
+CONFIGURE_ARGS+=       --disable-dnssd
+.endif
+
+.if !empty(PKG_OPTIONS:Mkerberos)
+.include "../../mk/krb5.buildlink3.mk"
+CONFIGURE_ARGS+=       --enable-gssapi
+.else
+CONFIGURE_ARGS+=       --disable-gssapi
+# https://github.com/apple/cups/issues/4947
+SUBST_CLASSES+=                nokerb
+SUBST_STAGE.nokerb=    post-build
+SUBST_SED.nokerb+=     -e '\%<Policy kerberos>%,\%</Policy>%s/^/\#/'
+SUBST_FILES.nokerb+=   conf/cupsd.conf
+SUBST_MESSAGE.nokerb=  Commenting out kerberos section in config.
+.endif
+
+.if !empty(PKG_OPTIONS:Mtcpwrappers)
+.include "../../security/tcp_wrappers/buildlink3.mk"
+CONFIGURE_ARGS+=       --enable-tcp-wrappers
+.else
+CONFIGURE_ARGS+=       --disable-tcp-wrappers
+.endif



Home | Main Index | Thread Index | Old Index