summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--net-print/cnijfilter/files/cnijfilter-3.70-1-libexec-backend.patch21
-rw-r--r--net-print/cnijfilter/files/cnijfilter-3.70-1-libexec-cups.patch9
-rw-r--r--net-print/cnijfilter/files/cnijfilter-3.80-1-cups-1.6.patch90
-rw-r--r--net-print/cnijfilter/files/cnijfilter-4.00-1-libexec-backend.patch10
-rw-r--r--net-print/cnijfilter/files/cnijfilter-4.00-1-libexec-cups.patch9
-rw-r--r--net-print/cnijfilter/files/cnijfilter-4.00-4-ppd.patch10
-rw-r--r--net-print/cnijfilter/files/cnijfilter-4.00-5-abi_x86_32.patch45
7 files changed, 194 insertions, 0 deletions
diff --git a/net-print/cnijfilter/files/cnijfilter-3.70-1-libexec-backend.patch b/net-print/cnijfilter/files/cnijfilter-3.70-1-libexec-backend.patch
new file mode 100644
index 00000000..0d8c9b88
--- /dev/null
+++ b/net-print/cnijfilter/files/cnijfilter-3.70-1-libexec-backend.patch
@@ -0,0 +1,21 @@
+--- a/backend/src/Makefile.am 2012-12-22 11:09:21.674631729 +0100
++++ b/backend/src/Makefile.am 2012-12-22 14:20:50.879566578 +0100
+@@ -1,6 +1,6 @@
+ ## Process this file with automake to produce Makefile.in
+
+-backend_bindir = /usr/lib/cups/backend
++backend_bindir = /usr/libexec/cups/backend
+ backend_bin_PROGRAMS = cnijusb
+ transform =
+
+--- a/backendnet/backend/Makefile.am 2012-12-22 11:09:21.673631729 +0100
++++ b/backendnet/backend/Makefile.am 2012-12-22 14:20:20.176569425 +0100
+@@ -1,6 +1,6 @@
+ ## Process this file with automake to produce Makefile.in
+
+-backendnet_bindir = /usr/lib/cups/backend
++backendnet_bindir = /usr/libexec/cups/backend
+ backendnet_bin_PROGRAMS = cnijnet
+ transform =
+
+
diff --git a/net-print/cnijfilter/files/cnijfilter-3.70-1-libexec-cups.patch b/net-print/cnijfilter/files/cnijfilter-3.70-1-libexec-cups.patch
new file mode 100644
index 00000000..25f7b2ea
--- /dev/null
+++ b/net-print/cnijfilter/files/cnijfilter-3.70-1-libexec-cups.patch
@@ -0,0 +1,9 @@
+--- a/pstocanonij/filter/Makefile.am 2012-12-21 17:27:54.370964561 +0100
++++ b/pstocanonij/filter/Makefile.am 2012-12-21 18:22:48.804097963 +0100
+@@ -1,4 +1,4 @@
+-filterdir=$(libdir)/cups/filter
++filterdir=$(libexecdir)/cups/filter
+
+ filter_PROGRAMS= pstocanonij
+
+
diff --git a/net-print/cnijfilter/files/cnijfilter-3.80-1-cups-1.6.patch b/net-print/cnijfilter/files/cnijfilter-3.80-1-cups-1.6.patch
new file mode 100644
index 00000000..b97598f5
--- /dev/null
+++ b/net-print/cnijfilter/files/cnijfilter-3.80-1-cups-1.6.patch
@@ -0,0 +1,90 @@
+--- a/cngpij/cngpij/bjcups.c
++++ a/cngpij/cngpij/bjcups.c
+@@ -66,6 +66,27 @@
+
+ char* g_printer_name = NULL;
+
++#if (CUPS_VERSION_MAJOR > 1) || (CUPS_VERSION_MINOR > 5)
++#define HAVE_CUPS_1_6 1
++#endif
++
++#ifndef HAVE_CUPS_1_6
++
++#define ippSetOperation(ipp_request, ipp_op_id) ipp_request->request.op.operation_id = ipp_op_id
++#define ippSetRequestId(ipp_request, ipp_rq_id) ipp_request->request.op.request_id = ipp_rq_id
++#define ippGetStatusCode(ipp_request) ipp_request->request.status.status_code
++#define ippFirstAttribute(ipp) ipp->attrs /* simplistic */
++#define bjcups_ippNextAttribute(resp, attr) attr->next
++#define ippGetGroupTag(attr) attr->group_tag
++#define ippGetName(attr) attr->name
++#define ippGetString(attr, ind, lang) attr->values[ind].string.text
++#define ippGetValueTag(attr) attr->value_tag
++
++#else
++
++#define bjcups_ippNextAttribute(resp, attr) ippNextAttribute(resp)
++
++#endif
+
+ extern int GetIPCData(LPIPCU pipc, char *sname);
+ static short getDeviceURI( const char *pDestName, char *pDeviceURI, short bufSize);
+@@ -698,8 +719,8 @@
+ else {
+ pRequest = ippNew();
+
+- pRequest->request.op.operation_id = CUPS_GET_PRINTERS;
+- pRequest->request.op.request_id = 1;
++ ippSetOperation(pRequest, CUPS_GET_PRINTERS);
++ ippSetRequestId(pRequest, 1);
+
+ pLanguage = bjcupsLangDefault(); // cupsLangDefault() -> bjcupsLangDefault() for cups-1.1.19
+
+@@ -708,29 +729,29 @@
+ ippAddString(pRequest, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, NULL);
+
+ if ((pResponse = cupsDoRequest(pHTTP, pRequest, "/")) != NULL) {
+- if (pResponse->request.status.status_code > IPP_OK_CONFLICT) {
++ if (ippGetStatusCode(pResponse) > IPP_OK_CONFLICT) {
+ fputs("ERROR: IPP ERROR\n", stderr);
+ goto onErr;
+ }
+ else {
+- pAttribute = pResponse->attrs;
++ pAttribute = ippFirstAttribute(pResponse);
+
+ while (pAttribute != NULL) {
+- while (pAttribute != NULL && pAttribute->group_tag != IPP_TAG_PRINTER) {
+- pAttribute = pAttribute->next;
++ while (pAttribute != NULL && ippGetGroupTag(pAttribute) != IPP_TAG_PRINTER) {
++ pAttribute = bjcups_ippNextAttribute(pResponse, pAttribute);
+ }
+ if (pAttribute == NULL) {
+ break;
+ }
+
+- while (pAttribute != NULL && pAttribute->group_tag == IPP_TAG_PRINTER) {
+- if (strcmp(pAttribute->name, "printer-name") == 0 && pAttribute->value_tag == IPP_TAG_NAME) {
+- pPrinter = pAttribute->values[0].string.text;
++ while (pAttribute != NULL && ippGetGroupTag(pAttribute) == IPP_TAG_PRINTER) {
++ if (strcmp(ippGetName(pAttribute), "printer-name") == 0 && ippGetValueTag(pAttribute) == IPP_TAG_NAME) {
++ pPrinter = ippGetString(pAttribute, 0, NULL);
+ }
+- if (strcmp(pAttribute->name, "device-uri") == 0 && pAttribute->value_tag == IPP_TAG_URI) {
+- pDUri = pAttribute->values[0].string.text;
++ if (strcmp(ippGetName(pAttribute), "device-uri") == 0 && ippGetValueTag(pAttribute) == IPP_TAG_URI) {
++ pDUri = ippGetString(pAttribute, 0, NULL);
+ }
+- pAttribute = pAttribute->next;
++ pAttribute = bjcups_ippNextAttribute(pResponse, pAttribute);
+ }
+
+ if (strcasecmp(pDestName, pPrinter) == 0) {
+@@ -739,7 +760,7 @@
+ }
+
+ if (pAttribute != NULL)
+- pAttribute = pAttribute->next;
++ pAttribute = bjcups_ippNextAttribute(pResponse, pAttribute);
+ }
+ }
+
diff --git a/net-print/cnijfilter/files/cnijfilter-4.00-1-libexec-backend.patch b/net-print/cnijfilter/files/cnijfilter-4.00-1-libexec-backend.patch
new file mode 100644
index 00000000..f55e79a2
--- /dev/null
+++ b/net-print/cnijfilter/files/cnijfilter-4.00-1-libexec-backend.patch
@@ -0,0 +1,10 @@
+--- cnijbe/src/Makefile.am 2014-08-08 22:40:21.697967931 +0200
++++ cnijbe/src/Makefile.am 2014-08-08 22:41:44.972967317 +0200
+@@ -1,6 +1,6 @@
+ ## Process this file with automake to produce Makefile.in
+
+-cnijbe_bindir = /usr/lib/cups/backend
++cnijbe_bindir = /usr/libexec/cups/backend
+ cnijbe_bin_PROGRAMS = cnijbe
+ transform =
+
diff --git a/net-print/cnijfilter/files/cnijfilter-4.00-1-libexec-cups.patch b/net-print/cnijfilter/files/cnijfilter-4.00-1-libexec-cups.patch
new file mode 100644
index 00000000..1c04c49f
--- /dev/null
+++ b/net-print/cnijfilter/files/cnijfilter-4.00-1-libexec-cups.patch
@@ -0,0 +1,9 @@
+--- cmdtocanonij/filter/Makefile.am 2012-12-21 17:27:54.370964561 +0100
++++ cmdtocanonij/filter/Makefile.am 2012-12-21 18:22:48.804097963 +0100
+@@ -1,4 +1,4 @@
+-filterdir=$(libdir)/cups/filter
++filterdir=$(libexecdir)/cups/filter
+
+ filter_PROGRAMS= cmdtocanonij
+
+
diff --git a/net-print/cnijfilter/files/cnijfilter-4.00-4-ppd.patch b/net-print/cnijfilter/files/cnijfilter-4.00-4-ppd.patch
new file mode 100644
index 00000000..ca3fccff
--- /dev/null
+++ b/net-print/cnijfilter/files/cnijfilter-4.00-4-ppd.patch
@@ -0,0 +1,10 @@
+--- backend/src/cnij_backend_common.c 2012-06-01 14:45:19.251673478 +0200
++++ backend/src/cnij_backend_common.c 2012-06-01 14:46:13.486995445 +0200
+@@ -38,6 +38,7 @@
+ // CUPS Header
+ #include <cups/cups.h>
+ #include <cups/ipp.h>
++#include <cups/ppd.h>
+
+ // Header file for CANON
+ #include "cnij_backend_common.h"
diff --git a/net-print/cnijfilter/files/cnijfilter-4.00-5-abi_x86_32.patch b/net-print/cnijfilter/files/cnijfilter-4.00-5-abi_x86_32.patch
new file mode 100644
index 00000000..d3b00f52
--- /dev/null
+++ b/net-print/cnijfilter/files/cnijfilter-4.00-5-abi_x86_32.patch
@@ -0,0 +1,45 @@
+--- backendnet/configure.in 2014-08-11 08:38:46.034984462 +0200
++++ backendnet/configure.in 2014-08-11 08:35:42.902985813 +0200
+@@ -19,7 +19,11 @@
+ AC_DEFINE_UNQUOTED(BJLIB_PATH, "$enable_libpath")
+ AC_SUBST(BJLIB_PATH)
+
+-ARC=`getconf LONG_BIT`
++case "$ABI" in
++ x86) ARC=32;;
++ amd64) ARC=64;;
++ *) ARC=`getconf LONG_BIT`;;
++esac
+ AC_SUBST(ARC)
+
+ # Checks for programs.
+--- cnijfilter/configure.in 2014-08-11 08:39:44.426984031 +0200
++++ cnijfilter/configure.in 2014-08-11 08:35:19.788985984 +0200
+@@ -43,7 +43,11 @@
+ esac
+ AC_SUBST(CNCL_LIB_ID)
+
+-ARC=`getconf LONG_BIT`
++case "$ABI" in
++ x86) ARC=32;;
++ amd64) ARC=64;;
++ *) ARC=`getconf LONG_BIT`;;
++esac
+ AC_SUBST(ARC)
+
+ AC_PROG_CC
+--- cnijnpr/configure.in 2014-08-11 08:41:12.712983380 +0200
++++ cnijnpr/configure.in 2014-08-11 08:40:44.354983589 +0200
+@@ -37,7 +37,11 @@
+
+ CFLAGS="-O2"
+
+-ARC=`getconf LONG_BIT`
++case "$ABI" in
++ x86) ARC=32;;
++ amd64) ARC=64;;
++ *) ARC=`getconf LONG_BIT`;;
++esac
+ AC_SUBST(ARC)
+
+ AC_OUTPUT(Makefile