[Midnightbsd-cvs] mports [21412] trunk/print: add cups-bjnp
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Sun May 22 17:23:38 EDT 2016
Revision: 21412
http://svnweb.midnightbsd.org/mports/?rev=21412
Author: laffer1
Date: 2016-05-22 17:23:38 -0400 (Sun, 22 May 2016)
Log Message:
-----------
add cups-bjnp
Modified Paths:
--------------
trunk/print/Makefile
Added Paths:
-----------
trunk/print/cups-bjnp/
trunk/print/cups-bjnp/Makefile
trunk/print/cups-bjnp/distinfo
trunk/print/cups-bjnp/files/
trunk/print/cups-bjnp/files/patch-bjnp-debug.c
trunk/print/cups-bjnp/files/patch-configure
trunk/print/cups-bjnp/pkg-descr
trunk/print/cups-bjnp/pkg-plist
Modified: trunk/print/Makefile
===================================================================
--- trunk/print/Makefile 2016-05-22 21:22:51 UTC (rev 21411)
+++ trunk/print/Makefile 2016-05-22 21:23:38 UTC (rev 21412)
@@ -5,6 +5,7 @@
SUBDIR += a2ps
SUBDIR += adobe-cmaps
SUBDIR += cups
+SUBDIR += cups-bjnp
SUBDIR += cups-connector
SUBDIR += cups-cloud-print
SUBDIR += cups-filters
Added: trunk/print/cups-bjnp/Makefile
===================================================================
--- trunk/print/cups-bjnp/Makefile (rev 0)
+++ trunk/print/cups-bjnp/Makefile 2016-05-22 21:23:38 UTC (rev 21412)
@@ -0,0 +1,23 @@
+# $MidnightBSD$
+# $FreeBSD: head/print/cups-bjnp/Makefile 410825 2016-03-11 11:53:42Z tijl $
+
+PORTNAME= cups-bjnp
+PORTVERSION= 2.0
+PORTREVISION= 1
+CATEGORIES= print
+MASTER_SITES= SF
+
+MAINTAINER= ports at MidnightBSD.org
+COMMENT= CUPS backend for Canon USB over IP protocol
+
+LICENSE= unknown
+
+LIB_DEPENDS= libcups.so:${PORTSDIR}/print/cups
+
+GNU_CONFIGURE= yes
+# Just to avoid a tautological pointer compare in bjnp-commands.c:187
+CONFIGURE_ARGS+= --disable-Werror
+CPPFLAGS+= -I${LOCALBASE}/include
+LDFLAGS+= -L${LOCALBASE}/lib
+
+.include <bsd.port.mk>
Property changes on: trunk/print/cups-bjnp/Makefile
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/print/cups-bjnp/distinfo
===================================================================
--- trunk/print/cups-bjnp/distinfo (rev 0)
+++ trunk/print/cups-bjnp/distinfo 2016-05-22 21:23:38 UTC (rev 21412)
@@ -0,0 +1,2 @@
+SHA256 (cups-bjnp-2.0.tar.gz) = 2acb716680d66f1378cf8dcd45fedf7f72ccc9b66fa80214d6dcb042b5e3c9ab
+SIZE (cups-bjnp-2.0.tar.gz) = 140617
Property changes on: trunk/print/cups-bjnp/distinfo
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/print/cups-bjnp/files/patch-bjnp-debug.c
===================================================================
--- trunk/print/cups-bjnp/files/patch-bjnp-debug.c (rev 0)
+++ trunk/print/cups-bjnp/files/patch-bjnp-debug.c 2016-05-22 21:23:38 UTC (rev 21412)
@@ -0,0 +1,72 @@
+--- bjnp-debug.c.orig 2014-09-06 12:38:15 UTC
++++ bjnp-debug.c
+@@ -20,7 +20,7 @@
+
+ #include <stdio.h>
+ #include <stdarg.h>
+-#include <sys/timeb.h>
++#include <sys/time.h>
+ #include <errno.h>
+ #include "bjnp.h"
+
+@@ -58,7 +58,7 @@
+ static bjnp_loglevel_t debug_level = LOG_ERROR;
+ static FILE *debug_file = NULL;
+ static time_t start_sec = 0;
+-static int start_msec;
++static suseconds_t start_usec;
+
+ /*
+ * local functions
+@@ -192,9 +192,9 @@
+ {
+ va_list ap;
+ char printbuf[1024];
+- struct timeb timebuf;
++ struct timeval timebuf;
+ int sec;
+- int msec;
++ suseconds_t usec;
+
+ if (level <= debug_level) {
+ /* print received data into a string */
+@@ -211,16 +211,16 @@
+ /* all log messages may go to the own logfile */
+
+ if (debug_file != NULL) {
+- ftime(&timebuf);
++ gettimeofday (&timebuf, NULL);
+
+- if ((msec = timebuf.millitm - start_msec) < 0) {
+- msec += 1000;
+- timebuf.time -= 1;
++ if ((usec = timebuf.tv_usec - start_usec) < 0) {
++ usec += 1000000;
++ timebuf.tv_sec -= 1;
+ }
+
+- sec = timebuf.time - start_sec;
++ sec = timebuf.tv_sec - start_sec;
+
+- fprintf(debug_file, "%8s: %03d.%03d %s", level2str(level), sec, msec,
++ fprintf(debug_file, "%8s: %03d.%06ld %s", level2str(level), sec, usec,
+ printbuf);
+ fflush(debug_file);
+ }
+@@ -234,12 +234,12 @@
+ * set debug level to level (string)
+ */
+
+- struct timeb timebuf;
++ struct timeval timebuf;
+ char loglevel[16];
+
+- ftime(&timebuf);
+- start_sec = timebuf.time;
+- start_msec = timebuf.millitm;
++ gettimeofday (&timebuf, NULL);
++ start_sec = timebuf.tv_sec;
++ start_usec = timebuf.tv_usec;
+
+ /*
+ * Set log level
Property changes on: trunk/print/cups-bjnp/files/patch-bjnp-debug.c
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/print/cups-bjnp/files/patch-configure
===================================================================
--- trunk/print/cups-bjnp/files/patch-configure (rev 0)
+++ trunk/print/cups-bjnp/files/patch-configure 2016-05-22 21:23:38 UTC (rev 21412)
@@ -0,0 +1,11 @@
+--- configure.orig 2013-08-14 02:30:58.000000000 -0700
++++ configure 2013-08-14 02:30:31.000000000 -0700
+@@ -3946,7 +3946,7 @@
+ IFS=$ac_save_IFS
+
+
+-for ac_func in ftime \
++for ac_func in gettimeofday \
+ getaddrinfo \
+ getnameinfo \
+ gethostname \
Property changes on: trunk/print/cups-bjnp/files/patch-configure
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/print/cups-bjnp/pkg-descr
===================================================================
--- trunk/print/cups-bjnp/pkg-descr (rev 0)
+++ trunk/print/cups-bjnp/pkg-descr 2016-05-22 21:23:38 UTC (rev 21412)
@@ -0,0 +1,6 @@
+CUPS backend for the canon proprietary USB over IP network printing
+protocol, BJNP. This backend is based on reverse engineering using
+TCP/IP. It can be used with CUPS 1.2 - 1.7 (verified). This backend allows Cups
+to connect over the network to a Canon printers
+
+WWW: http://cups-bjnp.sourceforge.net/
Property changes on: trunk/print/cups-bjnp/pkg-descr
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/print/cups-bjnp/pkg-plist
===================================================================
--- trunk/print/cups-bjnp/pkg-plist (rev 0)
+++ trunk/print/cups-bjnp/pkg-plist 2016-05-22 21:23:38 UTC (rev 21412)
@@ -0,0 +1 @@
+libexec/cups/backend/bjnp
Property changes on: trunk/print/cups-bjnp/pkg-plist
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
More information about the Midnightbsd-cvs
mailing list