summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Maier <tamiko@gentoo.org>2014-10-15 16:39:20 +0000
committerMatthias Maier <tamiko@gentoo.org>2014-10-15 16:39:20 +0000
commitb26304b3713f177714b78906fa7fdc5806439e90 (patch)
treec613361326bb15d61cb7600da16ab084956c2e1c /net-print
parentDrop old (diff)
downloadhistorical-b26304b3713f177714b78906fa7fdc5806439e90.tar.gz
historical-b26304b3713f177714b78906fa7fdc5806439e90.tar.bz2
historical-b26304b3713f177714b78906fa7fdc5806439e90.zip
version bump; fix build (verbosity and compiler used) wrt bugs 524338 524340, update live ebuilds
Package-Manager: portage-2.2.8-r2/cvs/Linux x86_64 Manifest-Sign-Key: 0xBD3A97A3
Diffstat (limited to 'net-print')
-rw-r--r--net-print/cups/ChangeLog10
-rw-r--r--net-print/cups/Manifest38
-rw-r--r--net-print/cups/cups-1.7.5-r1.ebuild367
-rw-r--r--net-print/cups/cups-1.7.9999.ebuild8
-rw-r--r--net-print/cups/cups-2.0.0.ebuild347
-rw-r--r--net-print/cups/cups-9999.ebuild38
-rw-r--r--net-print/cups/files/cups-2.0.0-rename-systemd-service-files.patch177
7 files changed, 940 insertions, 45 deletions
diff --git a/net-print/cups/ChangeLog b/net-print/cups/ChangeLog
index 6f014e91f53b..794f2e73c1cd 100644
--- a/net-print/cups/ChangeLog
+++ b/net-print/cups/ChangeLog
@@ -1,6 +1,14 @@
# ChangeLog for net-print/cups
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-print/cups/ChangeLog,v 1.640 2014/09/21 21:00:54 dilfridge Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-print/cups/ChangeLog,v 1.641 2014/10/15 16:39:08 tamiko Exp $
+
+*cups-1.7.5-r1 (15 Oct 2014)
+*cups-2.0.0 (15 Oct 2014)
+
+ 15 Oct 2014; Matthias Maier <tamiko@gentoo.org> +cups-1.7.5-r1.ebuild,
+ +cups-2.0.0.ebuild, cups-1.7.9999.ebuild:
+ revbump; verbose build log and use correct compiler (bug 524338 524340); also
+ fix 1.7* live ebuild
21 Sep 2014; Andreas K. Huettel <dilfridge@gentoo.org> -cups-1.7.1-r1.ebuild,
-cups-1.7.3.ebuild, -cups-1.7.4.ebuild,
diff --git a/net-print/cups/Manifest b/net-print/cups/Manifest
index 712cce400223..34f6ff211801 100644
--- a/net-print/cups/Manifest
+++ b/net-print/cups/Manifest
@@ -5,27 +5,31 @@ AUX cups-1.4.4-nostrip.patch 487 SHA256 b96448896f08c5f91d5afb0c093f2638a262d1c4
AUX cups-1.6.0-dont-compress-manpages.patch 435 SHA256 d3e41e8d4a841ac71e5ed8598fc444a2f11b4c94215b55dcf5147694bbbc88c3 SHA512 f004b1e7178212eddefda8416c33514834e0e444243c456a8f0723e763247330b8366e71f64ee0e84196789498c5b22334049a8bec210068e02f06b64b683d7c WHIRLPOOL 1453927d8478c740f74ad9f18ef2bdc3dea30596b59cd5fb2a740942da14bef76a2418c3e536aeaad1cbf5ffb14c72e914ba6726776fe5f23f8b43ef4dedd25f
AUX cups-1.6.0-fix-install-perms.patch 948 SHA256 4a4a885bb2e111bd67bcb90a5780f33841b18bc02382317fb5e64c384aa0c4c8 SHA512 9b2ecc47be2fd08d092017316af39e217e17a540d096cc62971521052632c40033a06cd7bdd5b319bd7f623fea803d569ced6728504d680fd50087288302164f WHIRLPOOL 7d6f4a5eab9964e6c2277f03affaf0eada9b7408eeac742a75d541ec5efe883940c816ea508a59c733327d3bbe0e31bd242b8c183e3f817a54208ed4a3071982
AUX cups-1.7.2-systemd-socket-2.patch 11799 SHA256 aec7a98202143e26384fc46baa434f9da022b97793413c95bc1b3765449aceef SHA512 f551e6e1917303ce3e2206284f396885a9aa15bfdee6fdcd88182279cd52a26fc92f5e529b8b30edb0c58dbc749440d23515fa1246959875f525fb5e6b08d466 WHIRLPOOL 063253ffc641c1fd35d929f65c3e42374d5223afc106c2a2f2f0098d5115788573eeaad8fb2c53efe90334ef7a1605d164b1741189c8f8b77e7788097aa76923
+AUX cups-2.0.0-rename-systemd-service-files.patch 5448 SHA256 77979083a9f29a4ce1b57060a3c7d7887855018d1238ad09ccc18753c1bd7642 SHA512 73435b52da065f4eeb82ff201ccdf635c0b7c53522c196594dac37276dff7091c32d5410ab229e24f1b2c8fe7d82df018094d0c036c21957835b75596cad9876 WHIRLPOOL 36e1921d30cdc72904c0974e22d970e4510cb647985aefddf2386d938005d2e26d6420972d1f7896538b42bebabc63b31aa66d16d11f3d14301aa659ad17b09a
AUX cupsd.init.d-r1 504 SHA256 4705b68372090ee7db69da1ad35131551ed1ba99032db2486ff6c31d2170ce6b SHA512 9eac4fc725b14615bb31c96a69c00a14ab2fb23fa355f1ced655f93e6364555b2710a277ceab439199a275405b016492b4c9183fab755c02354013e0904a03bc WHIRLPOOL e0ce34f4b73de6e63ba1f01b0df543cd66fecc692af8254acb3dd1147c0cd4e1f42ed7df4b18b26af0114db54c3b8c1bca526ed54146307223ac24a0b3d3502c
DIST cups-1.7.5-source.tar.bz2 8793338 SHA256 18cb4c6847dbaaaa05c8b35af787f19dd5c7686970b46548e72c711c6f26bd02 SHA512 fe446b3d904539d744d3fa24f3ced2549ef9dfea8c805f1602eb71d03e19c2f06edaacf51f148e8216207af0c901f7d956c855f49b13b01112b01c9c45b75b9d WHIRLPOOL 7a85ec51f6333493b42b566471ba218cdf7d3bf9ac6314d4a1b1e922c0bbc3f51380331c0a3da9d2ecf4bf0d58dc9e50f905c8aa6b328592fb5427ddb167ae2d
+DIST cups-2.0.0-source.tar.bz2 8737532 SHA256 83fdbbcb4ac4d82949bbde6d5dce7a4b6a62557da8f3d46c5e34b951110f5be2 SHA512 d6b3f3ef786c477914678825cff68c96d8e3457fdf8742e65f444312e8b9da44b44a5a91b09b855011a2abb4b16b3351d5dfd649ddb9e98d17bec849c9908d33 WHIRLPOOL 2615a2d339e4702538ee717d485130be2245cfec4091032de13ada89c9eb06b92a12de4302fcb7b15731fcfad6dcc4a0c7240d988b830a844b5701c0c067bd0a
+EBUILD cups-1.7.5-r1.ebuild 10614 SHA256 6598b08d48ec12c4dba13a507446a22d93b35a81bc75f089d016533804c3105d SHA512 3f4fec835e2ffb6c103ec47974e9d291a04ab4258f17ecdc049226cfdda3751a6e76e6a095d15dee5ba43f59410806e50c6bbcce500191c3ef7634030d9be83d WHIRLPOOL c0616188225d8029ec15a55b8bcb95b8116973d179ebcec49ea5eecd610e7f9c614ba48439638a19583cb29b2651d2348f71adb34c97bf42995c88aa004b3c2e
EBUILD cups-1.7.5.ebuild 10410 SHA256 9f01ae032b20ec62a6a0467dbbdf538451513f6ca0b931db94fc093ecefdd49b SHA512 240d4ac1d4533832977aca84a418e2b4ebee1e35f6417d616da3e99a6d5b72b9216baaf0a00e517e3a6cda7e1e9f7bc6d544c6d7241ac87dbf1ecc95975cc832 WHIRLPOOL 25b4dc4a9a6660529a849ede0b9ce2ebbf9390c7310479f5b835589a783f36bb9da428e788337a45e09f96fce63765fcedbeee590647e36499c0ddcc5d4e5b8f
-EBUILD cups-1.7.9999.ebuild 10380 SHA256 295da95ccbe8e0072566ad01888818381b1626b283ee95aa7803d5742a0c9fb7 SHA512 3c72acdcdeb6444692d04b332a1a4b223bf087a16300d6420cbfa96849e14e2c332a91582de04ccd613c02421be24a0f53653c0efea4419f01c59904c746b7d5 WHIRLPOOL edd990169a90f8cc36d6dbcee1c55310140e0f3922fbb787cf90f484a17f975d39daefb2e5d57922fc26d3fb28d80dac09099a52a2479e1883713202584f65e0
-EBUILD cups-9999.ebuild 10377 SHA256 b1cd00448cb44988ed34abe9302d8bc8d780169c29cde35199b2167cbb8aa25b SHA512 4407b40797fe8acd9865a78b0294438e993bd603831e34e059d72e5100e7f95ee0f8a571c07531e05cb8e9d78bef73c75208e66cb4ed8cdd78e34f629e34b5f5 WHIRLPOOL 75e57a1b0f7c149bc265a4e6d0d0cca617839024cdaec5a77397086b65faf313472e41c04065b6020712df3a4acc98fa770a18b8ed21dcd3554f712952dbadab
-MISC ChangeLog 96442 SHA256 5acb8eb8cc1c9401dd6b06c031bb7b3784db1aa6b1b4776da653f914fe02d5af SHA512 f7ab8c6f99d9be904c150ae36d024c38f019590ea2d426a2e6ad5aada6d399bcda4f2e8e9a6262d78eb6f018a924bae247bf0ad51d743f8d38c89bedac6d9c22 WHIRLPOOL c41d5865b274b4fcaae74781a2113b651546a233690c9e5e7d487a7dc4e0e39a1954e004a86ee74b35a9b397e328775e451a4b9fefe3caafe3ac5d52e93acb96
+EBUILD cups-1.7.9999.ebuild 10570 SHA256 f7be21bde397ebc65129c2458dc302b4f64093bc6051095ebe63b0e27ca1a10f SHA512 d20a87595f4781b439c0d1f98576bed24d9bbf10a5aa37cf8d9a49b518a6598d3719849c8be1146f507211e8a59148b80f58acca731c12e7a19d041ea2866136 WHIRLPOOL 1c9a38176c45f88e32b97e9f1c9a3658c76e387a6f66a27dfabdfcb2b577c76257278ceb66476ee7c1c080eb5d36555bd9b34d95d0be602d76d17185a6f13db8
+EBUILD cups-2.0.0.ebuild 10124 SHA256 8a354e8e787a2989f4300248db07830862cb2f9cea6fce08116448d3cade05c5 SHA512 aa8cc990180f32fc9877d190680b0919ccaecaa51a2bed4f0a5a45c12d72f8e8e7b477a3d7f207a7db008255958c57e26d40b6a91a32a1455d2b3b34e44a3bf8 WHIRLPOOL ecc717c4cb56b27e4fc571f61f83981e1e30b1edc2beeaca1504f520b24b1e9c73d9c1ff76a7271e2538b49aad156f7df42e2d56ca81a5fb4cf515f325d11f95
+EBUILD cups-9999.ebuild 10222 SHA256 004f4068ec7f88db4b76f894c289d31c7f9ef68030a09b16ae116799530b394a SHA512 a423b12fee224d0811fb913d2bae081144151f10aa3efec6b4a996d33bb33ee3bafc6f9a4c0d2e04cb21295e033d9aaeabf889dac398eb11d7a076961a4b8846 WHIRLPOOL 2ba88ba982aea06c3f9b342ee0d099e347b28d5ecf45a241103c8a22a4e14b8f28ae1f5751bb1ed1def91e8843bcf302fb17faa2ee570a152e55deb0879f8ec5
+MISC ChangeLog 96716 SHA256 456b2466e1a28f68f67a1f8747f96dd14e96f6335830d4bc0570d69d7a5dc107 SHA512 b247f1c7edc2f5415dbb82061ee1ca0e4f7fdec04fd7e8b00caff31a7a3f0bdaf878c606ff81a61066983cab4cccf0d3abfa9e6c93a5d2a9044fc36c44f785c8 WHIRLPOOL a61184d181089f3ea001dcfe56accb8642443e438f88f2de69703c726fcef48eebd5216abadf1f5ee8be5298ec72bbadfbb65bf36d1b3916f06bf0aca1b63e69
MISC metadata.xml 496 SHA256 732bba7ee060b7be5e0b23d06d24c12c2bfc1c6be1440cdfebe6d5d94d145c47 SHA512 713300abb461ad923c4f6e59326fa97b2372181df4ef82bf04dd6f2d68dc0eb7c34e518cbb40ebd535cb9c4bf52d2648512002cc2cb55c6f21406cc973fa4496 WHIRLPOOL 061013ee6ddaf510964589024e39c4a05f18f0a6d2488eb5b121bb962a378348e71261f7e153f34dbb33337a2e49eb7da94e52d0cb7a128d71e9b4466f8a5933
-----BEGIN PGP SIGNATURE-----
-Version: GnuPG v2
+Version: GnuPG v2.0
-iQIcBAEBCAAGBQJUHzyMAAoJEJS/30SErRQvPGkP/2zZMIEFYvw2Q/diYNldfPs1
-0WDEZq+iZiaicIAdTdJ9sGF7xYCY/BBpDLcy/IuIh/q1yEF0BPPXbXRglm00lw2V
-FtHZYcA6yLQXljgPQbNT1sdX3SfoG2A1Z3XULFWBApH/0srTx5a61RYrLqWql0ra
-CgCZnhOcwMUe8oH4TSFhXwd6mLtn1lgXw2X5sS8emj+/IduEL9FrrnqjtcVeKXVM
-wPm89vcYYs86ila9neAHrug2yQQlkVny8YRFx42x09guZEz3122BxtUiCLzOsHHe
-upc2yrt9HMFYYVyAkpKWuh4DiOO8uKsIX9lb0Nbt96nKeAaOpdfnkl5Doe78swFp
-o94GDr/JAXGQJnCYJAmmXPecEZz3hExn+sMEDG427Z8no8FO7jt0xxsOFOfj+QwN
-nS8J1Tu1noHJkKrAJqn8g449oH0/RJVcX/zN9C1OmL/nR36TiTthBlC09JzLd7vm
-e8ZRIjANPYNGHx11kmycexByxMwgB+we0E6RzLUkglSEtPhyBgQGVV28maNHZu05
-kD2w2qMevXr5Gcgn62cydXDB7o15trzTiUldMaXc5dc9iFabGIBAhHyo9GLBUKjn
-STljIuvTNHz2cr0yOwe42+Aq8YVBPyiwyd4rhXiQrS2mzx3F2p2uGB6ebNV4AdqH
-4FaNbyy8NPxCimnVQRKX
-=5xMX
+iQIcBAEBCAAGBQJUPqMhAAoJELhOzYlK7nn/9zAQAIepSHW/IeKFD2YSIcp7xCqE
+w3JZw9zcYIeHa9rEgeACTIBIxeyfwGVo37uwSxxSzo2rEoQkILIozEfHRXq9fi1P
+3U5tG9jTAPuAZB3jN2wbJaEDFm7uuUo3df4w2QXDdeNhR6WLc8il+4ftcuulxgNz
+QLaCUbkHmNDckTmYXim/AStmRgwPjSOEEZ0ewj6fq3rBrd4iZB+4gn1LhPeuds+o
+GTvbqegdeZdjVOK1Gv2kJZsfPWoS16KypIZ+goP/zuMERhkMNfzV3ehGHNdRcR3o
+5yWrAYCa0QZyWyvzPFjW1oXIyGbfcROQEVlOR5qetsFHwATNYuLZx62kxYCpeudA
+PjzwZHZReu+5JQ9WvxPhQrrePLfdaYBRA3sMCu1ScweOPwCbiyXln90L4EjlQWAa
+NEKs5Bthqc4lvIOwZl0vOw4ruSIiTh6OJiPWZHgHSBxuSsBdGEeRW9j9BGJDSJfP
+bRioNlstHUOy3DDQw5IRgP4AAJVCDxJW8goWkf0FhM94VDsnxGw5A9ta8TR3o4xD
+6qVHwb78WspICeUFKs7MTrqMLxEivGa/14BdcoH5ZZcrHwdR1oIhrjnYhXEGHA6x
+8P1CrhfYIpFW4z36vR1qo9NGSZX53QabMgxavNb6qme3j/Q5+jOsyKiULK+UezTT
+SfSpLlm8+xTXkn6Rp4Dy
+=1S1J
-----END PGP SIGNATURE-----
diff --git a/net-print/cups/cups-1.7.5-r1.ebuild b/net-print/cups/cups-1.7.5-r1.ebuild
new file mode 100644
index 000000000000..50806094f331
--- /dev/null
+++ b/net-print/cups/cups-1.7.5-r1.ebuild
@@ -0,0 +1,367 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-print/cups/cups-1.7.5-r1.ebuild,v 1.1 2014/10/15 16:39:08 tamiko Exp $
+
+EAPI=5
+
+PYTHON_COMPAT=( python{2_6,2_7} )
+
+inherit autotools base fdo-mime gnome2-utils flag-o-matic linux-info \
+ multilib multilib-minimal pam python-single-r1 user versionator \
+ java-pkg-opt-2 systemd toolchain-funcs
+
+MY_P=${P/_rc/rc}
+MY_P=${MY_P/_beta/b}
+MY_PV=${PV/_rc/rc}
+MY_PV=${MY_PV/_beta/b}
+
+if [[ ${PV} == *9999 ]]; then
+ inherit git-2
+ EGIT_REPO_URI="http://www.cups.org/cups.git"
+ if [[ ${PV} != 9999 ]]; then
+ EGIT_BRANCH=branch-${PV/.9999}
+ fi
+ KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 sparc x86"
+else
+ SRC_URI="http://www.cups.org/software/${MY_PV}/${MY_P}-source.tar.bz2"
+ KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~m68k-mint"
+fi
+
+DESCRIPTION="The Common Unix Printing System"
+HOMEPAGE="http://www.cups.org/"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="acl dbus debug gnutls java kerberos lprng-compat pam
+ python selinux +ssl static-libs systemd +threads usb X xinetd zeroconf"
+
+LANGS="ca es fr it ja pt_BR ru"
+for X in ${LANGS} ; do
+ IUSE="${IUSE} +linguas_${X}"
+done
+
+RDEPEND="
+ app-text/libpaper
+ acl? (
+ kernel_linux? (
+ sys-apps/acl
+ sys-apps/attr
+ )
+ )
+ dbus? ( >=sys-apps/dbus-1.6.18-r1[${MULTILIB_USEDEP}] )
+ java? ( >=virtual/jre-1.6 )
+ kerberos? ( >=virtual/krb5-0-r1[${MULTILIB_USEDEP}] )
+ !lprng-compat? ( !net-print/lprng )
+ pam? ( virtual/pam )
+ python? ( ${PYTHON_DEPS} )
+ selinux? ( sec-policy/selinux-cups )
+ ssl? (
+ gnutls? (
+ >=dev-libs/libgcrypt-1.5.3:0[${MULTILIB_USEDEP}]
+ >=net-libs/gnutls-2.12.23-r6[${MULTILIB_USEDEP}]
+ )
+ !gnutls? ( >=dev-libs/openssl-1.0.1h-r2[${MULTILIB_USEDEP}] )
+ )
+ usb? ( virtual/libusb:1 )
+ X? ( x11-misc/xdg-utils )
+ xinetd? ( sys-apps/xinetd )
+ zeroconf? ( >=net-dns/avahi-0.6.31-r2[${MULTILIB_USEDEP}] )
+ abi_x86_32? (
+ !<=app-emulation/emul-linux-x86-baselibs-20140508
+ !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
+ )
+"
+
+DEPEND="${RDEPEND}
+ >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}]
+"
+
+PDEPEND="
+ app-text/ghostscript-gpl[cups]
+ app-text/poppler[utils]
+ >=net-print/cups-filters-1.0.43
+"
+
+REQUIRED_USE="
+ gnutls? ( ssl )
+ python? ( ${PYTHON_REQUIRED_USE} )
+ usb? ( threads )
+"
+
+# upstream includes an interactive test which is a nono for gentoo
+RESTRICT="test"
+
+S="${WORKDIR}/${MY_P}"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-1.6.0-dont-compress-manpages.patch"
+ "${FILESDIR}/${PN}-1.6.0-fix-install-perms.patch"
+ "${FILESDIR}/${PN}-1.4.4-nostrip.patch"
+)
+
+MULTILIB_CHOST_TOOLS=(
+ /usr/bin/cups-config
+)
+
+pkg_setup() {
+ enewgroup lp
+ enewuser lp -1 -1 -1 lp
+ enewgroup lpadmin 106
+
+ use python && python-single-r1_pkg_setup
+
+ if use kernel_linux; then
+ linux-info_pkg_setup
+ if ! linux_config_exists; then
+ ewarn "Can't check the linux kernel configuration."
+ ewarn "You might have some incompatible options enabled."
+ else
+ # recheck that we don't have usblp to collide with libusb
+ if use usb; then
+ if linux_chkconfig_present USB_PRINTER; then
+ eerror "Your usb printers will be managed via libusb. In this case, "
+ eerror "${P} requires the USB_PRINTER support disabled."
+ eerror "Please disable it:"
+ eerror " CONFIG_USB_PRINTER=n"
+ eerror "in /usr/src/linux/.config or"
+ eerror " Device Drivers --->"
+ eerror " USB support --->"
+ eerror " [ ] USB Printer support"
+ eerror "Alternatively, just disable the usb useflag for cups (your printer will still work)."
+ fi
+ else
+ #here we should warn user that he should enable it so he can print
+ if ! linux_chkconfig_present USB_PRINTER; then
+ ewarn "If you plan to use USB printers you should enable the USB_PRINTER"
+ ewarn "support in your kernel."
+ ewarn "Please enable it:"
+ ewarn " CONFIG_USB_PRINTER=y"
+ ewarn "in /usr/src/linux/.config or"
+ ewarn " Device Drivers --->"
+ ewarn " USB support --->"
+ ewarn " [*] USB Printer support"
+ ewarn "Alternatively, enable the usb useflag for cups and use the libusb code."
+ fi
+ fi
+ fi
+ fi
+}
+
+src_prepare() {
+ base_src_prepare
+ use systemd && epatch "${FILESDIR}/${PN}-1.7.2-systemd-socket-2.patch"
+
+ # Remove ".SILENT" rule for verbose output (bug 524338).
+ sed 's#^.SILENT:##g' -i "${S}"/Makedefs.in || die "sed failed"
+
+ # Fix install-sh, posix sh does not have 'function'.
+ sed 's#function gzipcp#gzipcp()#g' -i "${S}/install-sh"
+
+ AT_M4DIR=config-scripts eaclocal
+ eautoconf
+
+ # custom Makefiles
+ multilib_copy_sources
+}
+
+multilib_src_configure() {
+ export DSOFLAGS="${LDFLAGS}"
+
+ einfo LANGS=\"${LANGS}\"
+ einfo LINGUAS=\"${LINGUAS}\"
+
+ local myconf=()
+ if use ssl ; then
+ myconf+=(
+ $(use_enable gnutls)
+ $(use_enable !gnutls openssl)
+ )
+ else
+ myconf+=(
+ --disable-gnutls
+ --disable-openssl
+ )
+ fi
+
+ if tc-is-static-only; then
+ myconf+=(
+ --disable-shared
+ )
+ fi
+
+ if use systemd; then
+ myconf+=(
+ --with-systemdsystemunitdir="$(systemd_get_unitdir)"
+ )
+ fi
+
+ # explicitly specify compiler wrt bug 524340
+ #
+ # need to override KRB5CONFIG for proper flags
+ # https://www.cups.org/str.php?L4423
+ econf \
+ CC="$(tc-getCC)" \
+ KRB5CONFIG="${EPREFIX}"/usr/bin/${CHOST}-krb5-config \
+ --libdir="${EPREFIX}"/usr/$(get_libdir) \
+ --localstatedir="${EPREFIX}"/var \
+ --with-rundir="${EPREFIX}"/run/cups \
+ --with-cups-user=lp \
+ --with-cups-group=lp \
+ --with-docdir="${EPREFIX}"/usr/share/cups/html \
+ --with-languages="${LINGUAS}" \
+ --with-system-groups=lpadmin \
+ $(multilib_native_use_enable acl) \
+ $(use_enable zeroconf avahi) \
+ $(use_enable dbus) \
+ $(use_enable debug) \
+ $(use_enable debug debug-guards) \
+ $(use_enable kerberos gssapi) \
+ $(multilib_native_use_enable pam) \
+ $(use_enable static-libs static) \
+ $(use_enable threads) \
+ $(multilib_native_use_enable usb libusb) \
+ --disable-dnssd \
+ $(multilib_native_use_with java) \
+ --without-perl \
+ --without-php \
+ $(multilib_native_use_with python python "${PYTHON}") \
+ $(multilib_native_use_with xinetd xinetd /etc/xinetd.d) \
+ $(multilib_is_native_abi && echo --enable-libpaper || echo --disable-libpaper) \
+ "${myconf[@]}"
+
+ # install in /usr/libexec always, instead of using /usr/lib/cups, as that
+ # makes more sense when facing multilib support.
+ sed -i -e "s:SERVERBIN.*:SERVERBIN = \"\$\(BUILDROOT\)${EPREFIX}/usr/libexec/cups\":" Makedefs || die
+ sed -i -e "s:#define CUPS_SERVERBIN.*:#define CUPS_SERVERBIN \"${EPREFIX}/usr/libexec/cups\":" config.h || die
+ sed -i -e "s:cups_serverbin=.*:cups_serverbin=\"${EPREFIX}/usr/libexec/cups\":" cups-config || die
+}
+
+multilib_src_compile() {
+ if multilib_is_native_abi; then
+ default
+ else
+ emake libs
+ fi
+}
+
+multilib_src_test() {
+ multilib_is_native_abi && default
+}
+
+multilib_src_install() {
+ if multilib_is_native_abi; then
+ emake BUILDROOT="${D}" install
+ else
+ emake BUILDROOT="${D}" install-libs install-headers
+ dobin cups-config
+ fi
+}
+
+multilib_src_install_all() {
+ dodoc {CHANGES,CREDITS,README}.txt
+
+ # move the default config file to docs
+ dodoc "${ED}"/etc/cups/cupsd.conf.default
+ rm -f "${ED}"/etc/cups/cupsd.conf.default
+
+ # clean out cups init scripts
+ rm -rf "${ED}"/etc/{init.d/cups,rc*,pam.d/cups}
+
+ # install our init script
+ local neededservices
+ use zeroconf && neededservices+=" avahi-daemon"
+ use dbus && neededservices+=" dbus"
+ [[ -n ${neededservices} ]] && neededservices="need${neededservices}"
+ cp "${FILESDIR}"/cupsd.init.d-r1 "${T}"/cupsd || die
+ sed -i \
+ -e "s/@neededservices@/$neededservices/" \
+ "${T}"/cupsd || die
+ doinitd "${T}"/cupsd
+
+ # install our pam script
+ pamd_mimic_system cups auth account
+
+ if use xinetd ; then
+ # correct path
+ sed -i \
+ -e "s:server = .*:server = /usr/libexec/cups/daemon/cups-lpd:" \
+ "${ED}"/etc/xinetd.d/cups-lpd || die
+ # it is safer to disable this by default, bug #137130
+ grep -w 'disable' "${ED}"/etc/xinetd.d/cups-lpd || \
+ { sed -i -e "s:}:\tdisable = yes\n}:" "${ED}"/etc/xinetd.d/cups-lpd || die ; }
+ # write permission for file owner (root), bug #296221
+ fperms u+w /etc/xinetd.d/cups-lpd || die "fperms failed"
+ else
+ rm -rf "${ED}"/etc/xinetd.d
+ fi
+
+ keepdir /usr/libexec/cups/driver /usr/share/cups/{model,profiles} \
+ /var/log/cups /var/spool/cups/tmp
+
+ keepdir /etc/cups/{interfaces,ppd,ssl}
+
+ use X || rm -r "${ED}"/usr/share/applications
+
+ # create /etc/cups/client.conf, bug #196967 and #266678
+ echo "ServerName ${EPREFIX}/run/cups/cups.sock" >> "${ED}"/etc/cups/client.conf
+
+ # the following files are now provided by cups-filters:
+ rm -r "${ED}"/usr/share/cups/banners || die
+ rm -r "${ED}"/usr/share/cups/data/testprint || die
+
+ # the following are created by the init script
+ rm -r "${ED}"/var/cache/cups || die
+ rm -r "${ED}"/run || die
+
+ # for the special case of running lprng and cups together, bug 467226
+ if use lprng-compat ; then
+ rm -fv "${ED}"/usr/bin/{lp*,cancel}
+ rm -fv "${ED}"/usr/sbin/lp*
+ rm -fv "${ED}"/usr/share/man/man1/{lp*,cancel*}
+ rm -fv "${ED}"/usr/share/man/man8/lp*
+ ewarn "Not installing lp... binaries, since the lprng-compat useflag is set."
+ ewarn "Unless you plan to install an exotic server setup, you most likely"
+ ewarn "do not want this. Disable the useflag then and all will be fine."
+ fi
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ # Update desktop file database and gtk icon cache (bug 370059)
+ gnome2_icon_cache_update
+ fdo-mime_desktop_database_update
+
+ # not slotted - at most one value
+ if ! [[ "${REPLACING_VERSIONS}" ]]; then
+ echo
+ elog "For information about installing a printer and general cups setup"
+ elog "take a look at: http://www.gentoo.org/doc/en/printing-howto.xml"
+ echo
+ fi
+
+ if [[ "${REPLACING_VERSIONS}" ]] && [[ "${REPLACING_VERSIONS}" < "1.6" ]]; then
+ echo
+ elog "CUPS-1.6 no longer supports automatic remote printers or implicit classes"
+ elog "via the CUPS, LDAP, or SLP protocols, i.e. \"network browsing\"."
+ elog "You will have to find printers using zeroconf/avahi instead, enter"
+ elog "the location manually, or run cups-browsed from net-print/cups-filters"
+ elog "which re-adds that functionality as a separate daemon."
+ echo
+ fi
+
+ if [[ "${REPLACING_VERSIONS}" == "1.6.2-r4" ]]; then
+ ewarn
+ ewarn "You are upgrading from the broken version net-print/cups-1.6.2-r4."
+ ewarn "Please rebuild net-print/cups-filters now to make sure everything is OK."
+ ewarn
+ fi
+}
+
+pkg_postrm() {
+ # Update desktop file database and gtk icon cache (bug 370059)
+ gnome2_icon_cache_update
+ fdo-mime_desktop_database_update
+}
diff --git a/net-print/cups/cups-1.7.9999.ebuild b/net-print/cups/cups-1.7.9999.ebuild
index d9ab5d33eafd..3dc7b6d22fbe 100644
--- a/net-print/cups/cups-1.7.9999.ebuild
+++ b/net-print/cups/cups-1.7.9999.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-print/cups/cups-1.7.9999.ebuild,v 1.3 2014/09/07 20:48:21 dilfridge Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-print/cups/cups-1.7.9999.ebuild,v 1.4 2014/10/15 16:39:08 tamiko Exp $
EAPI=5
@@ -151,6 +151,9 @@ src_prepare() {
base_src_prepare
use systemd && epatch "${FILESDIR}/${PN}-1.7.2-systemd-socket-2.patch"
+ # Remove ".SILENT" rule for verbose output (bug 524338).
+ sed 's#^.SILENT:##g' -i "${S}"/Makedefs.in || die "sed failed"
+
# Fix install-sh, posix sh does not have 'function'.
sed 's#function gzipcp#gzipcp()#g' -i "${S}/install-sh"
@@ -192,9 +195,12 @@ multilib_src_configure() {
)
fi
+ # explicitly specify compiler wrt bug 524340
+ #
# need to override KRB5CONFIG for proper flags
# https://www.cups.org/str.php?L4423
econf \
+ CC="$(tc-getCC)" \
KRB5CONFIG="${EPREFIX}"/usr/bin/${CHOST}-krb5-config \
--libdir="${EPREFIX}"/usr/$(get_libdir) \
--localstatedir="${EPREFIX}"/var \
diff --git a/net-print/cups/cups-2.0.0.ebuild b/net-print/cups/cups-2.0.0.ebuild
new file mode 100644
index 000000000000..16240b1282ed
--- /dev/null
+++ b/net-print/cups/cups-2.0.0.ebuild
@@ -0,0 +1,347 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-print/cups/cups-2.0.0.ebuild,v 1.1 2014/10/15 16:39:08 tamiko Exp $
+
+EAPI=5
+
+PYTHON_COMPAT=( python{2_6,2_7} )
+
+inherit autotools base fdo-mime gnome2-utils flag-o-matic linux-info \
+ multilib multilib-minimal pam python-single-r1 user versionator \
+ java-pkg-opt-2 systemd toolchain-funcs
+
+MY_P=${P/_rc/rc}
+MY_P=${MY_P/_beta/b}
+MY_PV=${PV/_rc/rc}
+MY_PV=${MY_PV/_beta/b}
+
+if [[ ${PV} == *9999 ]]; then
+ inherit git-2
+ EGIT_REPO_URI="http://www.cups.org/cups.git"
+ if [[ ${PV} != 9999 ]]; then
+ EGIT_BRANCH=branch-${PV/.9999}
+ fi
+ KEYWORDS=""
+else
+ SRC_URI="http://www.cups.org/software/${MY_PV}/${MY_P}-source.tar.bz2"
+ KEYWORDS="~amd64"
+fi
+
+DESCRIPTION="The Common Unix Printing System"
+HOMEPAGE="http://www.cups.org/"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="acl dbus debug java kerberos lprng-compat pam
+ python selinux +ssl static-libs systemd +threads usb X xinetd zeroconf"
+
+LANGS="ca es fr it ja pt_BR ru"
+for X in ${LANGS} ; do
+ IUSE="${IUSE} +linguas_${X}"
+done
+
+RDEPEND="
+ app-text/libpaper
+ acl? (
+ kernel_linux? (
+ sys-apps/acl
+ sys-apps/attr
+ )
+ )
+ dbus? ( >=sys-apps/dbus-1.6.18-r1[${MULTILIB_USEDEP}] )
+ java? ( >=virtual/jre-1.6 )
+ kerberos? ( >=virtual/krb5-0-r1[${MULTILIB_USEDEP}] )
+ !lprng-compat? ( !net-print/lprng )
+ pam? ( virtual/pam )
+ python? ( ${PYTHON_DEPS} )
+ selinux? ( sec-policy/selinux-cups )
+ ssl? (
+ >=dev-libs/libgcrypt-1.5.3:0[${MULTILIB_USEDEP}]
+ >=net-libs/gnutls-2.12.23-r6[${MULTILIB_USEDEP}]
+ )
+ usb? ( virtual/libusb:1 )
+ X? ( x11-misc/xdg-utils )
+ xinetd? ( sys-apps/xinetd )
+ zeroconf? ( >=net-dns/avahi-0.6.31-r2[${MULTILIB_USEDEP}] )
+ abi_x86_32? (
+ !<=app-emulation/emul-linux-x86-baselibs-20140508
+ !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
+ )
+"
+
+DEPEND="${RDEPEND}
+ >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}]
+"
+
+PDEPEND="
+ app-text/ghostscript-gpl[cups]
+ app-text/poppler[utils]
+ >=net-print/cups-filters-1.0.43
+"
+
+REQUIRED_USE="
+ python? ( ${PYTHON_REQUIRED_USE} )
+ usb? ( threads )
+"
+
+# upstream includes an interactive test which is a nono for gentoo
+RESTRICT="test"
+
+S="${WORKDIR}/${MY_P}"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-1.6.0-dont-compress-manpages.patch"
+ "${FILESDIR}/${PN}-1.6.0-fix-install-perms.patch"
+ "${FILESDIR}/${PN}-1.4.4-nostrip.patch"
+ "${FILESDIR}/${PN}-2.0.0-rename-systemd-service-files.patch"
+)
+
+MULTILIB_CHOST_TOOLS=(
+ /usr/bin/cups-config
+)
+
+pkg_setup() {
+ enewgroup lp
+ enewuser lp -1 -1 -1 lp
+ enewgroup lpadmin 106
+
+ use python && python-single-r1_pkg_setup
+
+ if use kernel_linux; then
+ linux-info_pkg_setup
+ if ! linux_config_exists; then
+ ewarn "Can't check the linux kernel configuration."
+ ewarn "You might have some incompatible options enabled."
+ else
+ # recheck that we don't have usblp to collide with libusb
+ if use usb; then
+ if linux_chkconfig_present USB_PRINTER; then
+ eerror "Your usb printers will be managed via libusb. In this case, "
+ eerror "${P} requires the USB_PRINTER support disabled."
+ eerror "Please disable it:"
+ eerror " CONFIG_USB_PRINTER=n"
+ eerror "in /usr/src/linux/.config or"
+ eerror " Device Drivers --->"
+ eerror " USB support --->"
+ eerror " [ ] USB Printer support"
+ eerror "Alternatively, just disable the usb useflag for cups (your printer will still work)."
+ fi
+ else
+ #here we should warn user that he should enable it so he can print
+ if ! linux_chkconfig_present USB_PRINTER; then
+ ewarn "If you plan to use USB printers you should enable the USB_PRINTER"
+ ewarn "support in your kernel."
+ ewarn "Please enable it:"
+ ewarn " CONFIG_USB_PRINTER=y"
+ ewarn "in /usr/src/linux/.config or"
+ ewarn " Device Drivers --->"
+ ewarn " USB support --->"
+ ewarn " [*] USB Printer support"
+ ewarn "Alternatively, enable the usb useflag for cups and use the libusb code."
+ fi
+ fi
+ fi
+ fi
+}
+
+src_prepare() {
+ base_src_prepare
+
+ # Remove ".SILENT" rule for verbose output (bug 524338).
+ sed 's#^.SILENT:##g' -i "${S}"/Makedefs.in || die "sed failed"
+
+ # Fix install-sh, posix sh does not have 'function'.
+ sed 's#function gzipcp#gzipcp()#g' -i "${S}/install-sh"
+
+ AT_M4DIR=config-scripts eaclocal
+ eautoconf
+
+ # custom Makefiles
+ multilib_copy_sources
+}
+
+multilib_src_configure() {
+ export DSOFLAGS="${LDFLAGS}"
+
+ einfo LANGS=\"${LANGS}\"
+ einfo LINGUAS=\"${LINGUAS}\"
+
+ local myconf=()
+
+ if tc-is-static-only; then
+ myconf+=(
+ --disable-shared
+ )
+ fi
+
+ # explicitly specify compiler wrt bug 524340
+ #
+ # need to override KRB5CONFIG for proper flags
+ # https://www.cups.org/str.php?L4423
+ econf \
+ CC="$(tc-getCC)" \
+ KRB5CONFIG="${EPREFIX}"/usr/bin/${CHOST}-krb5-config \
+ --libdir="${EPREFIX}"/usr/$(get_libdir) \
+ --localstatedir="${EPREFIX}"/var \
+ --with-rundir="${EPREFIX}"/run/cups \
+ --with-cups-user=lp \
+ --with-cups-group=lp \
+ --with-docdir="${EPREFIX}"/usr/share/cups/html \
+ --with-languages="${LINGUAS}" \
+ --with-system-groups=lpadmin \
+ $(multilib_native_use_enable acl) \
+ $(use_enable zeroconf avahi) \
+ $(use_enable dbus) \
+ $(use_enable debug) \
+ $(use_enable debug debug-guards) \
+ $(use_enable kerberos gssapi) \
+ $(multilib_native_use_enable pam) \
+ $(use_enable static-libs static) \
+ $(use_enable threads) \
+ $(use_enable ssl gnutls) \
+ $(multilib_native_use_enable usb libusb) \
+ --disable-dnssd \
+ $(multilib_native_use_with java) \
+ --without-perl \
+ --without-php \
+ $(multilib_native_use_with python python "${PYTHON}") \
+ $(multilib_native_use_with xinetd xinetd /etc/xinetd.d) \
+ $(multilib_is_native_abi && echo --enable-libpaper || echo --disable-libpaper) \
+ "${myconf[@]}"
+
+ # install in /usr/libexec always, instead of using /usr/lib/cups, as that
+ # makes more sense when facing multilib support.
+ sed -i -e "s:SERVERBIN.*:SERVERBIN = \"\$\(BUILDROOT\)${EPREFIX}/usr/libexec/cups\":" Makedefs || die
+ sed -i -e "s:#define CUPS_SERVERBIN.*:#define CUPS_SERVERBIN \"${EPREFIX}/usr/libexec/cups\":" config.h || die
+ sed -i -e "s:cups_serverbin=.*:cups_serverbin=\"${EPREFIX}/usr/libexec/cups\":" cups-config || die
+}
+
+multilib_src_compile() {
+ if multilib_is_native_abi; then
+ default
+ else
+ emake libs
+ fi
+}
+
+multilib_src_test() {
+ multilib_is_native_abi && default
+}
+
+multilib_src_install() {
+ if multilib_is_native_abi; then
+ emake BUILDROOT="${D}" install
+ else
+ emake BUILDROOT="${D}" install-libs install-headers
+ dobin cups-config
+ fi
+}
+
+multilib_src_install_all() {
+ dodoc {CHANGES,CREDITS,README}.txt
+
+ # move the default config file to docs
+ dodoc "${ED}"/etc/cups/cupsd.conf.default
+ rm -f "${ED}"/etc/cups/cupsd.conf.default
+
+ # clean out cups init scripts
+ rm -rf "${ED}"/etc/{init.d/cups,rc*,pam.d/cups}
+
+ # install our init script
+ local neededservices
+ use zeroconf && neededservices+=" avahi-daemon"
+ use dbus && neededservices+=" dbus"
+ [[ -n ${neededservices} ]] && neededservices="need${neededservices}"
+ cp "${FILESDIR}"/cupsd.init.d-r1 "${T}"/cupsd || die
+ sed -i \
+ -e "s/@neededservices@/$neededservices/" \
+ "${T}"/cupsd || die
+ doinitd "${T}"/cupsd
+
+ # install our pam script
+ pamd_mimic_system cups auth account
+
+ if use xinetd ; then
+ # correct path
+ sed -i \
+ -e "s:server = .*:server = /usr/libexec/cups/daemon/cups-lpd:" \
+ "${ED}"/etc/xinetd.d/cups-lpd || die
+ # it is safer to disable this by default, bug #137130
+ grep -w 'disable' "${ED}"/etc/xinetd.d/cups-lpd || \
+ { sed -i -e "s:}:\tdisable = yes\n}:" "${ED}"/etc/xinetd.d/cups-lpd || die ; }
+ # write permission for file owner (root), bug #296221
+ fperms u+w /etc/xinetd.d/cups-lpd || die "fperms failed"
+ else
+ rm -rf "${ED}"/etc/xinetd.d
+ fi
+
+ keepdir /usr/libexec/cups/driver /usr/share/cups/{model,profiles} \
+ /var/log/cups /var/spool/cups/tmp
+
+ keepdir /etc/cups/{interfaces,ppd,ssl}
+
+ use X || rm -r "${ED}"/usr/share/applications
+
+ # create /etc/cups/client.conf, bug #196967 and #266678
+ echo "ServerName ${EPREFIX}/run/cups/cups.sock" >> "${ED}"/etc/cups/client.conf
+
+ # the following files are now provided by cups-filters:
+ rm -r "${ED}"/usr/share/cups/banners || die
+ rm -r "${ED}"/usr/share/cups/data/testprint || die
+
+ # the following are created by the init script
+ rm -r "${ED}"/var/cache/cups || die
+ rm -r "${ED}"/run || die
+
+ # for the special case of running lprng and cups together, bug 467226
+ if use lprng-compat ; then
+ rm -fv "${ED}"/usr/bin/{lp*,cancel}
+ rm -fv "${ED}"/usr/sbin/lp*
+ rm -fv "${ED}"/usr/share/man/man1/{lp*,cancel*}
+ rm -fv "${ED}"/usr/share/man/man8/lp*
+ ewarn "Not installing lp... binaries, since the lprng-compat useflag is set."
+ ewarn "Unless you plan to install an exotic server setup, you most likely"
+ ewarn "do not want this. Disable the useflag then and all will be fine."
+ fi
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ # Update desktop file database and gtk icon cache (bug 370059)
+ gnome2_icon_cache_update
+ fdo-mime_desktop_database_update
+
+ # not slotted - at most one value
+ if ! [[ "${REPLACING_VERSIONS}" ]]; then
+ echo
+ elog "For information about installing a printer and general cups setup"
+ elog "take a look at: http://www.gentoo.org/doc/en/printing-howto.xml"
+ echo
+ fi
+
+ if [[ "${REPLACING_VERSIONS}" ]] && [[ "${REPLACING_VERSIONS}" < "1.6" ]]; then
+ echo
+ elog "CUPS-1.6 no longer supports automatic remote printers or implicit classes"
+ elog "via the CUPS, LDAP, or SLP protocols, i.e. \"network browsing\"."
+ elog "You will have to find printers using zeroconf/avahi instead, enter"
+ elog "the location manually, or run cups-browsed from net-print/cups-filters"
+ elog "which re-adds that functionality as a separate daemon."
+ echo
+ fi
+
+ if [[ "${REPLACING_VERSIONS}" == "1.6.2-r4" ]]; then
+ ewarn
+ ewarn "You are upgrading from the broken version net-print/cups-1.6.2-r4."
+ ewarn "Please rebuild net-print/cups-filters now to make sure everything is OK."
+ ewarn
+ fi
+}
+
+pkg_postrm() {
+ # Update desktop file database and gtk icon cache (bug 370059)
+ gnome2_icon_cache_update
+ fdo-mime_desktop_database_update
+}
diff --git a/net-print/cups/cups-9999.ebuild b/net-print/cups/cups-9999.ebuild
index 539412df53e8..1925e80fcdfc 100644
--- a/net-print/cups/cups-9999.ebuild
+++ b/net-print/cups/cups-9999.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-print/cups/cups-9999.ebuild,v 1.63 2014/09/07 20:48:21 dilfridge Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-print/cups/cups-9999.ebuild,v 1.64 2014/10/15 16:39:08 tamiko Exp $
EAPI=5
@@ -32,7 +32,7 @@ HOMEPAGE="http://www.cups.org/"
LICENSE="GPL-2"
SLOT="0"
-IUSE="acl dbus debug gnutls java kerberos lprng-compat pam
+IUSE="acl dbus debug java kerberos lprng-compat pam
python selinux +ssl static-libs systemd +threads usb X xinetd zeroconf"
LANGS="ca es fr it ja pt_BR ru"
@@ -56,11 +56,8 @@ RDEPEND="
python? ( ${PYTHON_DEPS} )
selinux? ( sec-policy/selinux-cups )
ssl? (
- gnutls? (
- >=dev-libs/libgcrypt-1.5.3:0[${MULTILIB_USEDEP}]
- >=net-libs/gnutls-2.12.23-r6[${MULTILIB_USEDEP}]
- )
- !gnutls? ( >=dev-libs/openssl-1.0.1h-r2[${MULTILIB_USEDEP}] )
+ >=dev-libs/libgcrypt-1.5.3:0[${MULTILIB_USEDEP}]
+ >=net-libs/gnutls-2.12.23-r6[${MULTILIB_USEDEP}]
)
usb? ( virtual/libusb:1 )
X? ( x11-misc/xdg-utils )
@@ -83,7 +80,6 @@ PDEPEND="
"
REQUIRED_USE="
- gnutls? ( ssl )
python? ( ${PYTHON_REQUIRED_USE} )
usb? ( threads )
"
@@ -97,6 +93,7 @@ PATCHES=(
"${FILESDIR}/${PN}-1.6.0-dont-compress-manpages.patch"
"${FILESDIR}/${PN}-1.6.0-fix-install-perms.patch"
"${FILESDIR}/${PN}-1.4.4-nostrip.patch"
+ "${FILESDIR}/${PN}-2.0.0-rename-systemd-service-files.patch"
)
MULTILIB_CHOST_TOOLS=(
@@ -149,7 +146,9 @@ pkg_setup() {
src_prepare() {
base_src_prepare
- use systemd && epatch "${FILESDIR}/${PN}-1.7.2-systemd-socket-2.patch"
+
+ # Remove ".SILENT" rule for verbose output (bug 524338).
+ sed 's#^.SILENT:##g' -i "${S}"/Makedefs.in || die "sed failed"
# Fix install-sh, posix sh does not have 'function'.
sed 's#function gzipcp#gzipcp()#g' -i "${S}/install-sh"
@@ -168,17 +167,6 @@ multilib_src_configure() {
einfo LINGUAS=\"${LINGUAS}\"
local myconf=()
- if use ssl ; then
- myconf+=(
- $(use_enable gnutls)
- $(use_enable !gnutls openssl)
- )
- else
- myconf+=(
- --disable-gnutls
- --disable-openssl
- )
- fi
if tc-is-static-only; then
myconf+=(
@@ -186,15 +174,12 @@ multilib_src_configure() {
)
fi
- if use systemd; then
- myconf+=(
- --with-systemdsystemunitdir="$(systemd_get_unitdir)"
- )
- fi
-
+ # explicitly specify compiler wrt bug 524340
+ #
# need to override KRB5CONFIG for proper flags
# https://www.cups.org/str.php?L4423
econf \
+ CC="$(tc-getCC)" \
KRB5CONFIG="${EPREFIX}"/usr/bin/${CHOST}-krb5-config \
--libdir="${EPREFIX}"/usr/$(get_libdir) \
--localstatedir="${EPREFIX}"/var \
@@ -213,6 +198,7 @@ multilib_src_configure() {
$(multilib_native_use_enable pam) \
$(use_enable static-libs static) \
$(use_enable threads) \
+ $(use_enable ssl gnutls) \
$(multilib_native_use_enable usb libusb) \
--disable-dnssd \
$(multilib_native_use_with java) \
diff --git a/net-print/cups/files/cups-2.0.0-rename-systemd-service-files.patch b/net-print/cups/files/cups-2.0.0-rename-systemd-service-files.patch
new file mode 100644
index 000000000000..c90a298feb69
--- /dev/null
+++ b/net-print/cups/files/cups-2.0.0-rename-systemd-service-files.patch
@@ -0,0 +1,177 @@
+From a0b8fba42dc5ef7663f48a584e63b07a6d6597d6 Mon Sep 17 00:00:00 2001
+From: Matthias Maier <tamiko@kyomu.43-1.org>
+Date: Wed, 15 Oct 2014 17:32:40 +0200
+Subject: [PATCH] rename systemd unit files to gentoo default
+
+---
+ configure.ac | 6 +++---
+ scheduler/Makefile | 14 +++++++-------
+ scheduler/cups.path.in | 8 ++++++++
+ scheduler/cups.service.in | 10 ++++++++++
+ scheduler/cups.socket.in | 12 ++++++++++++
+ scheduler/org.cups.cupsd.path.in | 8 --------
+ scheduler/org.cups.cupsd.service.in | 10 ----------
+ scheduler/org.cups.cupsd.socket.in | 12 ------------
+ 8 files changed, 40 insertions(+), 40 deletions(-)
+ create mode 100644 scheduler/cups.path.in
+ create mode 100644 scheduler/cups.service.in
+ create mode 100644 scheduler/cups.socket.in
+ delete mode 100644 scheduler/org.cups.cupsd.path.in
+ delete mode 100644 scheduler/org.cups.cupsd.service.in
+ delete mode 100644 scheduler/org.cups.cupsd.socket.in
+
+diff --git a/configure.ac b/configure.ac
+index 944a105..2299492 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -81,9 +81,9 @@ AC_OUTPUT(Makedefs
+ scheduler/cups.sh
+ scheduler/cups.xml
+ scheduler/org.cups.cups-lpd.plist
+- scheduler/org.cups.cupsd.path
+- scheduler/org.cups.cupsd.service
+- scheduler/org.cups.cupsd.socket
++ scheduler/cups.path
++ scheduler/cups.service
++ scheduler/cups.socket
+ templates/header.tmpl
+ packaging/cups.list
+ $LANGFILES)
+diff --git a/scheduler/Makefile b/scheduler/Makefile
+index ce1606b..0cce938 100644
+--- a/scheduler/Makefile
++++ b/scheduler/Makefile
+@@ -192,7 +192,7 @@ install-data:
+ if test "x$(LAUNCHD_DIR)" != x; then \
+ echo Installing launchd configuration files...; \
+ $(INSTALL_DIR) $(BUILDROOT)$(LAUNCHD_DIR); \
+- $(INSTALL_DATA) org.cups.cupsd.plist $(BUILDROOT)$(LAUNCHD_DIR); \
++ $(INSTALL_DATA) cups.plist $(BUILDROOT)$(LAUNCHD_DIR); \
+ $(INSTALL_DATA) org.cups.cups-lpd.plist $(BUILDROOT)$(LAUNCHD_DIR); \
+ fi
+ if test "x$(SMFMANIFESTDIR)" != x; then \
+@@ -203,9 +203,9 @@ install-data:
+ if test "x$(SYSTEMD_DIR)" != x; then \
+ echo Installing systemd configuration files...; \
+ $(INSTALL_DIR) $(BUILDROOT)$(SYSTEMD_DIR); \
+- $(INSTALL_DATA) org.cups.cupsd.path $(BUILDROOT)$(SYSTEMD_DIR); \
+- $(INSTALL_DATA) org.cups.cupsd.service $(BUILDROOT)$(SYSTEMD_DIR); \
+- $(INSTALL_DATA) org.cups.cupsd.socket $(BUILDROOT)$(SYSTEMD_DIR); \
++ $(INSTALL_DATA) cups.path $(BUILDROOT)$(SYSTEMD_DIR); \
++ $(INSTALL_DATA) cups.service $(BUILDROOT)$(SYSTEMD_DIR); \
++ $(INSTALL_DATA) cups.socket $(BUILDROOT)$(SYSTEMD_DIR); \
+ fi
+ if test "x$(XINETD)" != x; then \
+ echo Installing xinetd configuration file for cups-lpd...; \
+@@ -335,9 +335,9 @@ uninstall:
+ fi
+ if test "x$SYSTEMD_DIR" != x; then \
+ echo Uninstalling systemd files...; \
+- $(RM) $(BUILDROOT)$(SYSTEMD_DIR)/org.cups.cupsd.path; \
+- $(RM) $(BUILDROOT)$(SYSTEMD_DIR)/org.cups.cupsd.service; \
+- $(RM) $(BUILDROOT)$(SYSTEMD_DIR)/org.cups.cupsd.socket; \
++ $(RM) $(BUILDROOT)$(SYSTEMD_DIR)/cups.path; \
++ $(RM) $(BUILDROOT)$(SYSTEMD_DIR)/cups.service; \
++ $(RM) $(BUILDROOT)$(SYSTEMD_DIR)/cups.socket; \
+ fi
+ if test "x$(SMFMANIFESTDIR)" != x; then \
+ echo Uninstalling SMF manifest file...;\
+diff --git a/scheduler/cups.path.in b/scheduler/cups.path.in
+new file mode 100644
+index 0000000..1bccc6f
+--- /dev/null
++++ b/scheduler/cups.path.in
+@@ -0,0 +1,8 @@
++[Unit]
++Description=CUPS Scheduler
++
++[Path]
++PathExists=@CUPS_CACHEDIR@/org.cups.cupsd
++
++[Install]
++WantedBy=multi-user.target
+diff --git a/scheduler/cups.service.in b/scheduler/cups.service.in
+new file mode 100644
+index 0000000..4390016
+--- /dev/null
++++ b/scheduler/cups.service.in
+@@ -0,0 +1,10 @@
++[Unit]
++Description=CUPS Scheduler
++
++[Service]
++ExecStart=@sbindir@/cupsd -l
++Type=simple
++
++[Install]
++Also=org.cups.cupsd.socket org.cups.cupsd.path
++WantedBy=printer.target
+diff --git a/scheduler/cups.socket.in b/scheduler/cups.socket.in
+new file mode 100644
+index 0000000..cd98aa5
+--- /dev/null
++++ b/scheduler/cups.socket.in
+@@ -0,0 +1,12 @@
++[Unit]
++Description=CUPS Scheduler
++
++[Socket]
++ListenStream=@CUPS_DEFAULT_DOMAINSOCKET@
++ListenStream=[::1]:631
++ListenStream=127.0.0.1:631
++BindIPv6Only=ipv6-only
++ReusePort=true
++
++[Install]
++WantedBy=sockets.target
+diff --git a/scheduler/org.cups.cupsd.path.in b/scheduler/org.cups.cupsd.path.in
+deleted file mode 100644
+index 1bccc6f..0000000
+--- a/scheduler/org.cups.cupsd.path.in
++++ /dev/null
+@@ -1,8 +0,0 @@
+-[Unit]
+-Description=CUPS Scheduler
+-
+-[Path]
+-PathExists=@CUPS_CACHEDIR@/org.cups.cupsd
+-
+-[Install]
+-WantedBy=multi-user.target
+diff --git a/scheduler/org.cups.cupsd.service.in b/scheduler/org.cups.cupsd.service.in
+deleted file mode 100644
+index 4390016..0000000
+--- a/scheduler/org.cups.cupsd.service.in
++++ /dev/null
+@@ -1,10 +0,0 @@
+-[Unit]
+-Description=CUPS Scheduler
+-
+-[Service]
+-ExecStart=@sbindir@/cupsd -l
+-Type=simple
+-
+-[Install]
+-Also=org.cups.cupsd.socket org.cups.cupsd.path
+-WantedBy=printer.target
+diff --git a/scheduler/org.cups.cupsd.socket.in b/scheduler/org.cups.cupsd.socket.in
+deleted file mode 100644
+index cd98aa5..0000000
+--- a/scheduler/org.cups.cupsd.socket.in
++++ /dev/null
+@@ -1,12 +0,0 @@
+-[Unit]
+-Description=CUPS Scheduler
+-
+-[Socket]
+-ListenStream=@CUPS_DEFAULT_DOMAINSOCKET@
+-ListenStream=[::1]:631
+-ListenStream=127.0.0.1:631
+-BindIPv6Only=ipv6-only
+-ReusePort=true
+-
+-[Install]
+-WantedBy=sockets.target
+--
+2.0.4
+