summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/cups/cups14.inc
diff options
context:
space:
mode:
authorSaul Wold <sgw@linux.intel.com>2012-12-13 19:03:52 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-12-19 17:55:05 +0000
commit02491b4eded7be406a64d8e55bd23f11643283fc (patch)
tree801921fbd2599bc11910921fd703ba2f4efe9c53 /meta/recipes-extended/cups/cups14.inc
parentabbb4e178a450ceaa66597e491ab65bcb4bafa0a (diff)
downloadpoky-02491b4eded7be406a64d8e55bd23f11643283fc.tar.gz
cups: Update to 1.6.1
License change was due to update of Date. Remove CVE patches as they where backports from this release (From OE-Core rev: 9524c0ed85592c87ff30b54ca705b5d1b447eb6f) Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/cups/cups14.inc')
-rw-r--r--meta/recipes-extended/cups/cups14.inc101
1 files changed, 0 insertions, 101 deletions
diff --git a/meta/recipes-extended/cups/cups14.inc b/meta/recipes-extended/cups/cups14.inc
deleted file mode 100644
index 9fae880d22..0000000000
--- a/meta/recipes-extended/cups/cups14.inc
+++ /dev/null
@@ -1,101 +0,0 @@
1SUMMARY = "An Internet printing system for Unix"
2DESCRIPTION = "An Internet printing system for Unix."
3SECTION = "console/utils"
4LICENSE = "GPLv2 LGPLv2"
5DEPENDS = "gnutls libpng jpeg dbus dbus-glib zlib"
6PROVIDES = "cups14"
7
8SRC_URI = "ftp://ftp.easysw.com/pub/cups/${PV}/cups-${PV}-source.tar.bz2"
9
10LEAD_SONAME = "libcupsdriver.so"
11
12inherit autotools binconfig
13
14EXTRA_OECONF = " \
15 --enable-gnutls \
16 --enable-dbus \
17 --enable-browsing \
18 --disable-openssl \
19 --disable-tiff \
20 --without-php \
21 --without-perl \
22 --without-python \
23 --without-java \
24 --with-pdftops=none \
25 "
26
27
28do_configure() {
29 gnu-configize
30 libtoolize --force
31 DSOFLAGS="${LDFLAGS}" SERVERBIN="${libdir}/cups" oe_runconf
32}
33
34do_compile () {
35 sed -i s:STRIP:NOSTRIP: Makedefs
36 sed -i s:serial:: backend/Makefile
37
38 echo "all:" > man/Makefile
39 echo "libs:" >> man/Makefile
40 echo "install:" >> man/Makefile
41 echo "install-data:" >> man/Makefile
42 echo "install-exec:" >> man/Makefile
43 echo "install-headers:" >> man/Makefile
44 echo "install-libs:" >> man/Makefile
45
46 oe_runmake "SSLLIBS=-lgnutls -L${STAGING_LIBDIR}" \
47 "LIBPNG=-lpng -lm -L${STAGING_LIBDIR}" \
48 "LIBJPEG=-ljpeg -L${STAGING_LIBDIR}" \
49 "LIBZ=-lz -L${STAGING_LIBDIR}" \
50 "-I."
51}
52
53fakeroot do_install () {
54 oe_runmake "DSTROOT=${D}" install
55
56 # This directory gets installed with perms 511, which makes packaging fail
57 chmod 0711 "${D}/${localstatedir}/run/cups/certs"
58 rmdir ${D}/${libdir}/${BPN}/driver
59}
60
61python do_package_append() {
62 import subprocess
63 # Change permissions back the way they were, they probably had a reason...
64 workdir = d.getVar('WORKDIR', True)
65 subprocess.call('chmod 0511 %s/install/cups/var/run/cups/certs' % workdir, shell=True)
66}
67
68PACKAGES =+ "${PN}-lib ${PN}-libimage"
69
70FILES_${PN} += "${libdir}/cups/backend \
71 ${libdir}/cups/cgi-bin \
72 ${libdir}/cups/filter \
73 ${libdir}/cups/monitor \
74 ${libdir}/cups/notifier \
75 ${libdir}/cups/daemon \
76 "
77
78FILES_${PN}-lib = "${libdir}/libcups.so.*"
79
80FILES_${PN}-libimage = "${libdir}/libcupsimage.so.*"
81
82FILES_${PN}-dbg += "${libdir}/cups/backend/.debug \
83 ${libdir}/cups/cgi-bin/.debug \
84 ${libdir}/cups/filter/.debug \
85 ${libdir}/cups/monitor/.debug \
86 ${libdir}/cups/notifier/.debug \
87 ${libdir}/cups/daemon/.debug \
88 "
89
90#package the html for the webgui inside the main packages (~1MB uncompressed)
91
92FILES_${PN} += "${datadir}/doc/cups/images \
93 ${datadir}/doc/cups/*html \
94 ${datadir}/doc/cups/*.css \
95 ${datadir}/icons/ \
96 "
97
98SYSROOT_PREPROCESS_FUNCS += "cups_sysroot_preprocess"
99cups_sysroot_preprocess () {
100 sed -i ${SYSROOT_DESTDIR}${bindir_crossscripts}/cups-config -e 's:cups_datadir=.*:cups_datadir=${datadir}/cups:' -e 's:cups_serverbin=.*:cups_serverbin=${libdir}/cups:'
101}