- sync pkg-descr with reality.

- preparation for adding the drivers which version is 2.6.2.
This commit is contained in:
Hajimu UMEMOTO 2004-08-26 19:04:33 +00:00
parent 92de51a7a1
commit b4421c65e1
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=117338
27 changed files with 560 additions and 547 deletions

View File

@ -5,10 +5,3 @@ print out as high quality as you use the Windows driver. See the below
URL:
WWW: http://www.epkowa.co.jp/
This port has a modified filter "filter2200.rev" which is useful to
print out more than one page. Then you execute the next command:
/usr/local/libexec/pips2200/setup
to setup /etc/printcap, make a spool in /var/spool/lpd/ and so on.

View File

@ -5,10 +5,3 @@ print out as high quality as you use the Windows driver. See the below
URL:
WWW: http://www.epkowa.co.jp/
This port has a modified filter "filter3000.rev" which is useful to
print out more than one page. Then you execute the next command:
/usr/local/libexec/pips3000/setup
to setup /etc/printcap, make a spool in /var/spool/lpd/ and so on.

View File

@ -5,10 +5,3 @@ print out as high quality as you use the Windows driver. See the below
URL:
WWW: http://www.epkowa.co.jp/
This port has a modified filter "filter3300.rev" which is useful to
print out more than one page. Then you execute the next command:
/usr/local/libexec/pips3300/setup
to setup /etc/printcap, make a spool in /var/spool/lpd/ and so on.

View File

@ -5,10 +5,3 @@ print out as high quality as you use the Windows driver. See the below
URL:
WWW: http://www.epkowa.co.jp/
This port has a modified filter "filter3500.rev" which is useful to
print out more than one page. Then you execute the next command:
/usr/local/libexec/pips3500/setup
to setup /etc/printcap, make a spool in /var/spool/lpd/ and so on.

View File

@ -5,10 +5,3 @@ print out as high quality as you use the Windows driver. See the below
URL:
WWW: http://www.epkowa.co.jp/
This port has a modified filter "filter670.rev" which is useful to
print out more than one page. Then you execute the next command:
/usr/local/libexec/pips670/setup
to setup /etc/printcap, make a spool in /var/spool/lpd/ and so on.

View File

@ -5,21 +5,3 @@ print out as high quality as you use the Windows driver. See the below
URL:
WWW: http://www.epkowa.co.jp/
This port has a modified filter "filter750_2000.rev" which is useful to
print out more than one page. Then you execute the next command:
/usr/local/libexec/pips750_2000/setup
to setup /etc/printcap, make a spool in /var/spool/lpd/ and so on.
To run with Japanese/French/Germany/Spanish/Italian/Dutch/
Portugue/Korean messages, you should execute as follows:
env LANG=ja_JP pips750_2000 env LANG=fr pips750_2000
env LANG=de pips750_2000 env LANG=es pips750_2000
env LANG=it pips750_2000 env LANG=nl pips750_2000
env LANG=pt pips750_2000 env LANG=ko pips750_2000 (*)
env LANG=zh_CN pips750_2000 (*)(**) env LANG=zh_TW.Big5 pips750_2000 (**)
(*) These do not work well.
(**) See more informations in /usr/local/share/doc/pips750_2000/readme_for_zh

View File

@ -5,10 +5,3 @@ print out as high quality as you use the Windows driver. See the below
URL:
WWW: http://www.epkowa.co.jp/
This port has a modified filter "filter760.rev" which is useful to
print out more than one page. Then you execute the next command:
/usr/local/libexec/pips760/setup
to setup /etc/printcap, make a spool in /var/spool/lpd/ and so on.

View File

@ -5,10 +5,3 @@ print out as high quality as you use the Windows driver. See the below
URL:
WWW: http://www.epkowa.co.jp/
This port has a modified filter "filter770.rev" which is useful to
print out more than one page. Then you execute the next command:
/usr/local/libexec/pips770/setup
to setup /etc/printcap, make a spool in /var/spool/lpd/ and so on.

View File

@ -5,10 +5,3 @@ print out as high quality as you use the Windows driver. See the below
URL:
WWW: http://www.epkowa.co.jp/
This port has a modified filter "filter780.rev" which is useful to
print out more than one page. Then you execute the next command:
/usr/local/libexec/pips780/setup
to setup /etc/printcap, make a spool in /var/spool/lpd/ and so on.

View File

@ -10,18 +10,32 @@ PORTVERSION?= 1.3.2
#PORTREVISION= 1
CATEGORIES?= print
MASTER_SITES= http://www.epkowa3.on.arena.ne.jp/pips/data/%SUBDIR%/
.if ${PORTVERSION} == 2.1.2
DIST_TYPE= lpr
.else
DIST_TYPE?= lpr_and_caps
.endif
.if ${PRTYPE} == "750_2000"
MASTER_SITE_SUBDIR= pm750c_2000clpr
.elif ${PRTYPE} == 780 || ${PRTYPE} == 880
MASTER_SITE_SUBDIR= ${PRTYPE}_20
.elif ${PRTYPE} == 870
MASTER_SITE_SUBDIR= ${PRTYPE}Clpr
.elif ${PRTYPE} == 970
MASTER_SITE_SUBDIR= PM${PRTYPE}C
.elif ${PRTYPE} == 3500
MASTER_SITE_SUBDIR= pm${PRTYPE}c
.elif ${PRTYPE} == 4000
MASTER_SITE_SUBDIR= pm${PRTYPE}pxlpr
.elif ${PRTYPE} == v500 || ${PRTYPE} == v600
MASTER_SITE_SUBDIR= px${PRTYPE}lpr
.elif ${PORTVERSION} == 2.1.2
MASTER_SITE_SUBDIR= ${PRTYPE}_21
#.elif ${PRTYPE} == 740 || ${PRTYPE} == 870
.elif ${DIST_TYPE} == cups
MASTER_SITE_SUBDIR= ${PRTYPE}Ccups
.elif ${DIST_TYPE} == lpr
MASTER_SITE_SUBDIR= ${PRTYPE}Clpr
.else
MASTER_SITE_SUBDIR= pm${PRTYPE}clpr
.endif
@ -39,6 +53,10 @@ USE_GNOME= glib12 gtk12
USE_GETTEXT= yes
ONLY_FOR_ARCHS= i386
.if ${DIST_TYPE} == cups
PKGNAMESUFFIX= -cups
.endif
DISTNAME= ${PORTNAME}${PKGNAMESUFFIX}-${PORTVERSION}
MD5_FILE= ${.CURDIR}/distinfo
DESCR= ${.CURDIR}/pkg-descr
@ -49,31 +67,41 @@ PLIST_SUB= PRTYPE=${PRTYPE} \
PRT_MODEL=${PRT_MODEL} \
LIB_README=${LIB_README} \
MODEL_FILE=${MODEL_FILE} \
CUPSOPT_FILE=${CUPSOPT_FILE} \
PIPS=${PIPS} \
CUPS=${CUPS} \
LPR=${LPR} \
EKPNAVI=${EKPNAVI} \
EKPNAVI_MO=${EKPNAVI_MO} \
EKPSTM_MO=${EKPSTM_MO} \
DTRFILTER=${DTRFILTER} \
GSCONFIG=${GSCONFIG}
GSCONFIG=${GSCONFIG} \
PAPER_LIST=${PAPER_LIST}
.include <bsd.port.pre.mk>
.if ${PORTVERSION} == 2.1.2 || ${PRTYPE} == 870
PIPS_LPR_ONLY= yes
.endif
CPPFLAGS= -I${LOCALBASE}/include
LDFLAGS= -L${LOCALBASE}/lib
.if ${PORTVERSION} == 2.1.2 || ${PORTVERSION} == 2.6.2
CONFLICTS= pips*-2.*
USE_RC_SUBR= yes
EXTRA_PATCHES= ${FILESDIR}/extra-patch-2.6.2
.if ${PORTVERSION} != 2.1.2
.if ${PORTVERSION} != 2.1.2 && ${DIST_TYPE} != cups
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-2.6.2-dtrfilter
.endif
.if defined(PIPS_LPR_ONLY)
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-2.6.2-lpr
.if ${DIST_TYPE} == lpr
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-2.6.2-ekpstm \
${FILESDIR}/extra-patch-2.6.2-ekpnavi \
${FILESDIR}/extra-patch-2.6.2-src \
${FILESDIR}/extra-patch-2.6.2-src-lpr
.elif ${DIST_TYPE} == cups
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-2.6.2-ekpstm \
${FILESDIR}/extra-patch-2.6.2-src-cups
LIB_DEPENDS+= cups.2:${PORTSDIR}/print/cups-base \
iconv.3:${PORTSDIR}/converters/libiconv
.else
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-2.6.2-common
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-2.6.2-common \
${FILESDIR}/extra-patch-2.6.2-src \
${FILESDIR}/extra-patch-2.6.2-src-cups
BUILD_DEPEND+= ${LOCALBASE}/bin/autoconf253:${PORTSDIR}/devel/autoconf253
LIB_DEPENDS+= cups.2:${PORTSDIR}/print/cups-base \
iconv.3:${PORTSDIR}/converters/libiconv
@ -89,6 +117,7 @@ LDFLAGS+= ${PTHREAD_LIBS}
CPPFLAGS+= ${PTHREAD_CFLAGS}
.endif
CONFIGURE_ENV+= CFLAGS="${CFLAGS}" CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
MAKE_ENV+= SED="${SED}"
.if defined(INTERNATIONAL_PRODUCTS)
LIB_FILE= lib${PRTYPE:S/^-//}.so
@ -111,40 +140,67 @@ PRT_MODEL= PM820CUG
LIB_FILE= libpm${PRTYPE}px.so
MODEL_FILE= ekpm${PRTYPE}px.ppd
PRT_MODEL= PM${PRTYPE}PX
.elif ${PRTYPE} == v500 || ${PRTYPE} == v600
LIB_FILE= libpx${PRTYPE}.so
MODEL_FILE= ekpx${PRTYPE}.ppd
PRT_MODEL= PX${PRTYPE:U}
.else
LIB_FILE= libpm${PRTYPE}c.so
MODEL_FILE= ekpm${PRTYPE}c.ppd
PRT_MODEL= PM${PRTYPE}C
.endif
.endif
EKPNAVI_VER= 1.1.2
.if ${PRTYPE} == 970
EKPSTM_VER= 1.1.2
.else
EKPSTM_VER= 1.0.2
.endif
.if ${DIST_TYPE} == cups
CUPSOPT_FILE= cupsopt_pm${PRTYPE}c.csv
.else
CUPSOPT_FILE= cupsopt.csv
.endif
LIB_README= ${LIB_FILE:S/.so$//}.readme
PAPERSIZE?= a4
.if ${PORTVERSION} == 2.1.2 || ${PORTVERSION} == 2.6.2
FILTER_SRC= filter.tmp
.if ${PORTVERSION} == 2.1.2
PIPS= ""
CUPS= "@comment "
LPR= ""
EKPNAVI= ""
EKPNAVI_MO= ""
EKPSTM_MO= ""
DTRFILTER= "@comment "
GSCONFIG= ""
.elif defined(PIPS_LPR_ONLY)
CUPS= "@comment "
LPR= ""
EKPNAVI= ""
DTRFILTER= ""
GSCONFIG= "@comment "
.elif defined(PIPS_CUPS_ONLY)
CUPS= ""
LPR= "@comment "
EKPNAVI= "@comment "
DTRFILTER= ""
GSCONFIG= "@comment "
PAPER_LIST= "@comment "
.else
CUPS= ""
LPR= "@comment "
.if ${DIST_TYPE} == lpr
PIPS= ""
CUPS= "@comment "
EKPNAVI= ""
EKPNAVI_MO= ""
EKPSTM_MO= ""
DTRFILTER= ""
.elif ${DIST_TYPE} == cups
PIPS= "@comment "
CUPS= ""
EKPNAVI= "@comment "
EKPNAVI_MO= "@comment "
EKPSTM_MO= ""
DTRFILTER= "@comment "
.else
PIPS= ""
CUPS= ""
EKPNAVI= ""
EKPNAVI_MO= "@comment "
EKPSTM_MO= "@comment "
DTRFILTER= ""
.endif
GSCONFIG= "@comment "
PAPER_LIST= ""
.endif
RC_SCRIPTS_SUB= PREFIX=${PREFIX} \
RC_SUBR=${RC_SUBR} \
@ -158,28 +214,46 @@ PKGMESSAGE= ${WRKDIR}/pkg-message
DOCS= COPYING COPYING.KOWA COPYING.KOWA.ja COPYING.LIB
.if ${PORTVERSION} == 2.1.2 || \
(${PORTVERSION} == 2.6.2 && defined(PIPS_LPR_ONLY))
post-extract:
cd ${WRKSRC}/ekpnavi && ${TAR} xf ekpnavi-1.1.2.tar.gz
cd ${WRKSRC}/ekpstm && ${TAR} xf ekpstm-1.0.2.tar.gz
.if ${PORTVERSION} == 2.1.2 || \
(${PORTVERSION} == 2.6.2 && ${DIST_TYPE} == lpr)
cd ${WRKSRC}/ekpnavi && ${TAR} xf ekpnavi-${EKPNAVI_VER}.tar.gz
.endif
.if ${PORTVERSION} == 2.1.2 || \
(${PORTVERSION} == 2.6.2 && ${DIST_TYPE} == lpr) || \
${DIST_TYPE} == cups
cd ${WRKSRC}/ekpstm && ${TAR} xf ekpstm-${EKPSTM_VER}.tar.gz
.endif
post-patch:
${REINPLACE_CMD} -e '/^SUBDIRS =/s/setup//' \
.if ${PORTVERSION} == 2.1.2 || \
(${PORTVERSION} == 2.6.2 && ${DIST_TYPE} == lpr)
cd ${WRKSRC}/ekpnavi/ekpnavi-${EKPNAVI_VER} && \
patch -p < ${FILESDIR}/ekpnavi-${EKPNAVI_VER}.diff
.endif
.if ${PORTVERSION} == 2.1.2 || \
(${PORTVERSION} == 2.6.2 && ${DIST_TYPE} == lpr) || \
${DIST_TYPE} == cups
cd ${WRKSRC}/ekpstm/ekpstm-${EKPSTM_VER} && \
patch -p < ${FILESDIR}/ekpstm-${EKPSTM_VER}.diff
.endif
${REINPLACE_CMD} -e 's,setup redhat,redhat,' \
-e '/inst-post.sh/s/^/#/' \
${WRKSRC}/Makefile.in
${REINPLACE_CMD} -e 's,^prefix=/usr$$,,' -e 's,^sysconfdir=/etc$$,,' \
-e 's,/usr/local/EPKowa,${PREFIX}/libexec/pips,' \
-e 's,_nl_domain_bindings,libintl_nl_domain_bindings,' \
${WRKSRC}/configure
${REINPLACE_CMD} -e 's,^pkgdatadir.*$$,pkgdatadir = ${DOCSDIR},' \
${WRKSRC}/doc/Makefile.in
.if ${DIST_TYPE} != cups
${REINPLACE_CMD} -e 's,^EKPSTM.*$$,EKPSTM=${PREFIX}/bin/ekpstm,' \
-e 's,/usr/local/EPKowa,${PREFIX}/libexec/pips,' \
-e 's,/usr/bin/pips,${PREFIX}/bin/pips,' \
-e 's,:/usr/local/bin$$,:${PREFIX}/bin,' \
-e 's,^GSCONF=%gsconfig_name%$$,GSCONF=${PREFIX}/bin/%gsconfig_name%,' \
${WRKSRC}/src/${FILTER_SRC}
.endif
.if ${PORTVERSION} == 1.3.2
${REINPLACE_CMD} -e 's,^PREFIX.*$$,PREFIX=${PREFIX},' \
-e 's,^ETCDIR.*$$,ETCDIR=${PREFIX}/etc,' \
@ -189,7 +263,7 @@ post-patch:
-e 's,:/usr/local/bin$$,:${PREFIX}/bin,' \
${WRKSRC}/setup/inst-post.sh
.endif
.if ${PORTVERSION} == 2.6.2
.if ${PORTVERSION} == 2.6.2 && ${DIST_TYPE} != cups
${REINPLACE_CMD} -e 's,dtrfilter_LDADD = -ldl,dtrfilter_LDADD =,' \
${WRKSRC}/dtrfilter/Makefile.in
${REINPLACE_CMD} -e 's,/etc/pipsrc,${PREFIX}/etc/pipsrc,' \
@ -202,11 +276,18 @@ post-patch:
${REINPLACE_CMD} -e 's,/dev/lp0,/dev/ulpt0,' \
-e 's,^SUBDIRS = rc$$,#SUBDIRS = rc,' \
${WRKSRC}/ekpd/Makefile.in
.if ${DIST_TYPE} != cups
${REINPLACE_CMD} -e 's,/etc/ekpdrc,${PREFIX}/etc/ekpdrc,' \
${WRKSRC}/src/setup.c
.endif
.if ${PORTVERSION} == 2.6.2 || ${DIST_TYPE} == lpr
${REINPLACE_CMD} -e 's,@CUPS_LIBS@,@CUPS_LIBS@ -lintl,' \
-e 's,^INCLUDES = @GTK_CFLAGS@ $$,INCLUDES = @GTK_CFLAGS@ $(INCLTDL),' \
${WRKSRC}/src/Makefile.in
.endif
.endif
.if ${PORTVERSION} == 2.6.2 && !defined(PIPS_LPR_ONLY)
.if ${PORTVERSION} == 2.6.2 && ${DIST_TYPE} != lpr && ${DIST_TYPE} != cups
pre-configure:
cd ${WRKSRC}/libltdl && ${LOCALBASE}/bin/autoconf253
.endif
@ -237,12 +318,15 @@ $${GSCONF} < $$TMP | $${PIPS} -ui C,' \
${FILESDIR}/pips.sh > ${WRKDIR}/pips.sh
.endif
${SED} -e 's,%%LIB_FILE%%,${LIB_FILE},g' \
-e 's,%%PRT_MODEL%%,${PRT_MODEL},g' \
${MASTERDIR}/pkg-message > ${PKGMESSAGE}
post-install:
.if ${DIST_TYPE} != cups
${RM} -f ${PREFIX}/etc/pipsrc
${TOUCH} ${PREFIX}/etc/pipsrc
${CHMOD} 666 ${PREFIX}/etc/pipsrc
.endif
${INSTALL_SCRIPT} ${WRKDIR}/setup.freebsd \
${PREFIX}/libexec/pips/${PRT_MODEL}/setup
${MKDIR} ${PREFIX}/libexec/pips/${PRT_MODEL}/scripts
@ -260,7 +344,7 @@ post-install:
.endfor
.endif
@${ECHO_CMD} "lib/pips/${LIB_FILE}" >>${TMPPLIST}
.if ${PORTVERSION} == 2.6.2 && !defined(PIPS_LPR_ONLY)
.if ${PRTYPE} == 970 || ${PRTYPE} == 980 || ${PRTYPE} == 4000
@${ECHO_CMD} "lib/pips/${LIB_FILE:S/.so/R1.so/}" >>${TMPPLIST}
@${ECHO_CMD} "lib/pips/${LIB_FILE:S/.so/R2.so/}" >>${TMPPLIST}
${INSTALL_SCRIPT} ${WRKDIR}/pips.sh ${PREFIX}/etc/rc.d

View File

@ -0,0 +1,57 @@
Index: src/ekpcom.c
diff -u -p src/ekpcom.c.orig src/ekpcom.c
--- src/ekpcom.c.orig Wed Jul 30 23:06:39 2003
+++ src/ekpcom.c Tue Aug 24 23:37:45 2004
@@ -42,15 +42,25 @@ sock_open (void)
{
int sockfd, len;
struct sockaddr_in address;
+#ifndef MSG_NOSIGNAL
+ const int on = 1;
+#endif
if (server_sock_fd >= 0)
return 0;
/* ¥½¥±¥Ã¥È¥ª¡¼¥×¥ó */
sockfd = socket (AF_INET, SOCK_STREAM, 0);
+#if !defined(MSG_NOSIGNAL) && defined(SO_NOSIGPIPE)
+ setsockopt(sockfd, SOL_SOCKET, SO_NOSIGPIPE, &on, sizeof(on));
+#endif
+ memset(&address, 0, sizeof(address));
address.sin_family = AF_INET;
address.sin_addr.s_addr = htonl (INADDR_ANY);
address.sin_port = htons (35586);
+#ifdef __FreeBSD__
+ address.sin_len = sizeof(address);
+#endif
len = sizeof (address);
if (connect (sockfd, (struct sockaddr *)&address, len))
{
@@ -92,7 +102,11 @@ sock_write (char* buf, int* lp_wsize)
packet[4] = size % 0xFF;
memcpy (packet + Header_Size, buf, size);
+#ifndef MSG_NOSIGNAL
+ size = send (server_sock_fd, packet, size + Header_Size, 0);
+#else
size = send (server_sock_fd, packet, size + Header_Size, MSG_NOSIGNAL);
+#endif
if (size < 0)
return -1;
@@ -116,7 +130,11 @@ sock_read (char* buf, int* lp_rsize)
if (size <= 0)
return 0;
+#ifndef MSG_NOSIGNAL
+ dsize = recv (server_sock_fd, packet, size, 0);
+#else
dsize = recv (server_sock_fd, packet, size, MSG_NOSIGNAL);
+#endif
if (dsize < 0)
return -1;
+ #ifdef __FreeBSD__
+ address.sin_len = sizeof(address);
+ #endif

View File

@ -0,0 +1,65 @@
Index: src/ekpcom.c
diff -u -p src/ekpcom.c.orig src/ekpcom.c
--- src/ekpcom.c.orig Sat Oct 19 13:01:51 2002
+++ src/ekpcom.c Wed Aug 25 18:34:15 2004
@@ -52,14 +52,24 @@ sock_open (void)
{
int sockfd, len;
struct sockaddr_in address;
+#ifndef MSG_NOSIGNAL
+ const int on = 1;
+#endif
if (server_sock_fd >= 0)
return 0;
sockfd = socket (AF_INET, SOCK_STREAM, 0);
+#if !defined(MSG_NOSIGNAL) && defined(SO_NOSIGPIPE)
+ setsockopt(sockfd, SOL_SOCKET, SO_NOSIGPIPE, &on, sizeof(on));
+#endif
+ memset(&address, 0, sizeof(address));
address.sin_family = AF_INET;
address.sin_addr.s_addr = htonl (INADDR_ANY);
address.sin_port = htons (35586); /* did hard coding in port number (35586) */
+#ifdef __FreeBSD__
+ address.sin_len = sizeof(address);
+#endif
len = sizeof (address);
if (connect (sockfd, (struct sockaddr *)&address, len))
{
@@ -114,7 +124,11 @@ sock_write (char* buf, int* lp_wsize)
packet[4] = size % 0xFF; /* date size (lower) */
memcpy (packet + Header_Size, buf, size); /* date */
+#ifndef MSG_NOSIGNAL
+ size = send (server_sock_fd, packet, size + Header_Size, 0);
+#else
size = send (server_sock_fd, packet, size + Header_Size, MSG_NOSIGNAL);
+#endif
if (size < 0)
return -1;
@@ -144,7 +158,11 @@ sock_read (char* buf, int* lp_rsize)
if (size <= 0)
return 0;
+#ifndef MSG_NOSIGNAL
+ dsize = recv (server_sock_fd, packet, size, 0);
+#else
dsize = recv (server_sock_fd, packet, size, MSG_NOSIGNAL);
+#endif
if (dsize < 0)
return -1;
Index: src/main.c
diff -u -p src/main.c.orig src/main.c
--- src/main.c.orig Thu Jul 31 15:01:39 2003
+++ src/main.c Tue Aug 24 19:41:40 2004
@@ -69,6 +69,7 @@ main (int argc, char *argv[])
break;
default:
+ break;
}
}

View File

@ -0,0 +1,66 @@
Index: src/ekpcom.c
diff -u -p src/ekpcom.c.orig src/ekpcom.c
--- src/ekpcom.c.orig Sat Oct 19 13:01:51 2002
+++ src/ekpcom.c Wed Aug 25 18:34:15 2004
@@ -42,15 +42,25 @@ sock_open (void)
{
int sockfd, len;
struct sockaddr_in address;
+#ifndef MSG_NOSIGNAL
+ const int on = 1;
+#endif
if (server_sock_fd >= 0)
return 0;
/* ¥½¥±¥Ã¥È¥ª¡¼¥×¥ó */
sockfd = socket (AF_INET, SOCK_STREAM, 0);
+#if !defined(MSG_NOSIGNAL) && defined(SO_NOSIGPIPE)
+ setsockopt(sockfd, SOL_SOCKET, SO_NOSIGPIPE, &on, sizeof(on));
+#endif
+ memset(&address, 0, sizeof(address));
address.sin_family = AF_INET;
address.sin_addr.s_addr = htonl (INADDR_ANY);
address.sin_port = htons (35586);
+#ifdef __FreeBSD__
+ address.sin_len = sizeof(address);
+#endif
len = sizeof (address);
if (connect (sockfd, (struct sockaddr *)&address, len))
{
@@ -92,7 +102,11 @@ sock_write (char* buf, int* lp_wsize)
packet[4] = size % 0xFF;
memcpy (packet + Header_Size, buf, size);
+#ifndef MSG_NOSIGNAL
+ size = send (server_sock_fd, packet, size + Header_Size, 0);
+#else
size = send (server_sock_fd, packet, size + Header_Size, MSG_NOSIGNAL);
+#endif
if (size < 0)
return -1;
@@ -116,7 +130,11 @@ sock_read (char* buf, int* lp_rsize)
if (size <= 0)
return 0;
+#ifndef MSG_NOSIGNAL
+ dsize = recv (server_sock_fd, packet, size, 0);
+#else
dsize = recv (server_sock_fd, packet, size, MSG_NOSIGNAL);
+#endif
if (dsize < 0)
return -1;
Index: src/main.c
diff -u -p src/main.c.orig src/main.c
--- src/main.c.orig Thu Jul 31 15:01:39 2003
+++ src/main.c Tue Aug 24 19:41:40 2004
@@ -69,6 +69,7 @@ main (int argc, char *argv[])
break;
default:
+ break;
}
}

View File

@ -63,47 +63,3 @@ diff -u -p ekpd/cbtd_comserv.c.orig ekpd/cbtd_comserv.c
{
fsync (fd);
Index: src/pfpng.c
diff -u -p src/pfpng.c.orig src/pfpng.c
--- src/pfpng.c.orig Tue Jun 24 15:41:46 2003
+++ src/pfpng.c Tue Aug 24 19:41:41 2004
@@ -57,6 +57,8 @@ lib_png_sig_cmp *dl_png_s
void *
open_png_library (void)
{
+ if (dl_handle_libpng)
+ return (void *)dl_handle_libpng;
dl_handle_libpng = dlopen ("libpng.so", RTLD_LAZY);
if (dl_handle_libpng)
{
@@ -116,8 +118,12 @@ open_png_library (void)
void
close_png_library (void)
{
- if (dl_handle_libpng)
+#if 0
+ if (dl_handle_libpng) {
dlclose (dl_handle_libpng);
+ dl_handle_libpng = NULL;
+ }
+#endif
return;
}
Index: src/pipsCom.c
diff -u -p src/pipsCom.c.orig src/pipsCom.c
--- src/pipsCom.c.orig Tue Jun 24 15:41:46 2003
+++ src/pipsCom.c Tue Aug 24 23:38:06 2004
@@ -56,9 +56,13 @@ connect_server (char *host)
if (!servinfo) return -1;
sockfd = socket (AF_INET, SOCK_STREAM, 0);
+ memset(&address, 0, sizeof(address));
address.sin_family = AF_INET;
address.sin_addr = *(struct in_addr *)*hostinfo->h_addr_list;
address.sin_port = servinfo->s_port;
+#ifdef __FreeBSD__
+ address.sin_len = sizeof(address);
+#endif
len = sizeof (address);
if (connect (sockfd, (struct sockaddr *)&address, len) == -1)

View File

@ -118,98 +118,3 @@ diff -u -p ekpstm/main.c.orig ekpstm/main.c
}
}
Index: src/Makefile.in
diff -u src/Makefile.in.orig src/Makefile.in
--- src/Makefile.in.orig Fri Oct 24 16:12:54 2003
+++ src/Makefile.in Tue Aug 24 19:41:40 2004
@@ -131,7 +131,7 @@
# CUPS
AM_CFLAGS = -DGS_PATH=\"gs\" -DLOCALEDIR=\"$(datadir)/locale\" -DPRINTER_MODEL="\"$(MODEL_FULL)\"" -D$(MODEL_L) -DLIBPATH=\"$(libdir)/lib$(MODEL).so\" -DRSC_PATH=\"$(sysconfdir)/pipsrc\" -DSPOOL_NAME=\"$(MODEL)\" -DLOCALE_PATH=\"$(datadir)/locale\" -DNAVI_PATH=\"$(bindir)/ekpnavi\" -DDATA_PATH=\"$(pkgdatadir)\" -DRULED_PATH=\"$(pkgdatadir)/BID.PRN\" -DPATCH_PATH=\"$(pkgdatadir)/PATCH.PRN\" -DBAND_PATH=\"$(pkgdatadir)/BAND.PRN\" -DCUT_PATH=\"$(pkgdatadir)/CUT.PRN\" -D_LPR_DIRECT -fsigned-char -DCUPS_FILTER_PATH=\"$(cupsfilterdir)\"
-INCLUDES = @GTK_CFLAGS@
+INCLUDES = @GTK_CFLAGS@ $(INCLTDL)
libcutils_la_SOURCES = str.c str.h err.c err.h csv.c csv.h mem.c mem.h def.h
@@ -146,12 +146,12 @@
rastertopips_SOURCES = rastertopips.c
-pipstoprinter_LDFLAGS = @LIBLTDL@ @CUPS_LIBS@ libcutils.la
+pipstoprinter_LDFLAGS = @LIBLTDL@ @CUPS_LIBS@ -lintl libcutils.la
pipstoprinter_SOURCES = pipstoprinter.c libprtX.h debug.c debug.h ekpcom.c ekpcom.h getstat.c getstat.h
-ekplp_LDFLAGS = @CUPS_LIBS@ libcutils.la
+ekplp_LDFLAGS = @CUPS_LIBS@ -lintl libcutils.la
ekplp_SOURCES = ekplp.c
Index: src/ekpcom.c
diff -u -p src/ekpcom.c.orig src/ekpcom.c
--- src/ekpcom.c.orig Wed Jul 30 22:11:04 2003
+++ src/ekpcom.c Tue Aug 24 23:37:59 2004
@@ -52,15 +52,25 @@ sock_open (void)
{
int sockfd, len;
struct sockaddr_in address;
+#ifndef MSG_NOSIGNAL
+ const int on = 1;
+#endif
if (server_sock_fd >= 0)
return 0;
/* Socket open */
sockfd = socket (AF_INET, SOCK_STREAM, 0);
+#if !defined(MSG_NOSIGNAL) && defined(SO_NOSIGPIPE)
+ setsockopt(sockfd, SOL_SOCKET, SO_NOSIGPIPE, &on, sizeof(on));
+#endif
+ memset(&address, 0, sizeof(address));
address.sin_family = AF_INET;
address.sin_addr.s_addr = htonl (INADDR_ANY);
address.sin_port = htons (PORT_NUMBER);
+#ifdef __FreeBSD__
+ address.sin_len = sizeof(address);
+#endif
len = sizeof (address);
if (connect (sockfd, (struct sockaddr *)&address, len))
{
@@ -102,7 +112,11 @@ sock_write (char* buf, int* lp_wsize)
packet[4] = size % 0xFF;
memcpy (packet + Header_Size, buf, size);
+#ifndef MSG_NOSIGNAL
+ size = send (server_sock_fd, packet, size + Header_Size, 0);
+#else
size = send (server_sock_fd, packet, size + Header_Size, MSG_NOSIGNAL);
+#endif
if (size < 0)
return -1;
@@ -126,7 +140,11 @@ sock_read (char* buf, int* lp_rsize)
if (size <= 0)
return 0;
+#ifndef MSG_NOSIGNAL
+ dsize = recv (server_sock_fd, packet, size, 0);
+#else
dsize = recv (server_sock_fd, packet, size, MSG_NOSIGNAL);
+#endif
if (dsize < 0)
return -1;
Index: src/rastertopips.c
diff -u -p src/rastertopips.c.orig src/rastertopips.c
--- src/rastertopips.c.orig Thu Sep 4 13:34:25 2003
+++ src/rastertopips.c Tue Aug 24 19:41:41 2004
@@ -32,6 +32,8 @@
#include <string.h>
#include <ctype.h>
+#define NAME_MAX 41
+
#define WIDTH_BYTES(bits) (((bits) + 31) / 32 * 4)
typedef struct rtp_filter_option {

View File

@ -0,0 +1,22 @@
Index: ekpnavi/Makefile.in
diff -u ekpnavi/Makefile.in.orig ekpnavi/Makefile.in
--- ekpnavi/Makefile.in.orig Fri Dec 20 00:09:56 2002
+++ ekpnavi/Makefile.in Wed Aug 25 18:57:41 2004
@@ -232,7 +232,7 @@
if test ! -s Makefile; then \
./configure --prefix=$(prefix) ;\
fi ;\
- make
+ $(MAKE)
clean-local:
if test -d $(srcdir)/$(EKPNAVI_PKGNAME); then \
@@ -243,7 +243,7 @@
install-exec-local:
if test -d $(srcdir)/$(EKPNAVI_PKGNAME); then \
cd $(srcdir)/$(EKPNAVI_PKGNAME) ;\
- make install ;\
+ $(MAKE) install ;\
fi
$(EKPNAVI_PKGNAME).tar.gz:

View File

@ -0,0 +1,22 @@
Index: ekpstm/Makefile.in
diff -u ekpstm/Makefile.in.orig ekpstm/Makefile.in
--- ekpstm/Makefile.in.orig Fri Dec 20 00:09:56 2002
+++ ekpstm/Makefile.in Wed Aug 25 18:55:20 2004
@@ -213,7 +213,7 @@
./configure --prefix=$(prefix) ;\
fi ;\
fi ;\
- make
+ $(MAKE)
clean-local:
if test -d $(srcdir)/$(EKPSTM_PKGNAME); then \
@@ -224,7 +224,7 @@
install-exec-local:
if test -d $(srcdir)/$(EKPSTM_PKGNAME); then \
cd $(srcdir)/$(EKPSTM_PKGNAME) ;\
- make install ;\
+ $(MAKE) install ;\
fi
#dist-hook:

View File

@ -1,233 +0,0 @@
Index: ekpnavi/Makefile.in
diff -u ekpnavi/Makefile.in.orig ekpnavi/Makefile.in
--- ekpnavi/Makefile.in.orig Fri Dec 20 00:09:56 2002
+++ ekpnavi/Makefile.in Wed Aug 25 18:57:41 2004
@@ -232,7 +232,7 @@
if test ! -s Makefile; then \
./configure --prefix=$(prefix) ;\
fi ;\
- make
+ $(MAKE)
clean-local:
if test -d $(srcdir)/$(EKPNAVI_PKGNAME); then \
@@ -243,7 +243,7 @@
install-exec-local:
if test -d $(srcdir)/$(EKPNAVI_PKGNAME); then \
cd $(srcdir)/$(EKPNAVI_PKGNAME) ;\
- make install ;\
+ $(MAKE) install ;\
fi
$(EKPNAVI_PKGNAME).tar.gz:
Index: ekpnavi/ekpnavi-1.1.2/src/ekpcom.c
diff -u -p ekpnavi/ekpnavi-1.1.2/src/ekpcom.c.orig ekpnavi/ekpnavi-1.1.2/src/ekpcom.c
--- ekpnavi/ekpnavi-1.1.2/src/ekpcom.c.orig Wed Jul 30 23:06:39 2003
+++ ekpnavi/ekpnavi-1.1.2/src/ekpcom.c Tue Aug 24 23:37:45 2004
@@ -42,15 +42,25 @@ sock_open (void)
{
int sockfd, len;
struct sockaddr_in address;
+#ifndef MSG_NOSIGNAL
+ const int on = 1;
+#endif
if (server_sock_fd >= 0)
return 0;
/* ソケットオープン */
sockfd = socket (AF_INET, SOCK_STREAM, 0);
+#if !defined(MSG_NOSIGNAL) && defined(SO_NOSIGPIPE)
+ setsockopt(sockfd, SOL_SOCKET, SO_NOSIGPIPE, &on, sizeof(on));
+#endif
+ memset(&address, 0, sizeof(address));
address.sin_family = AF_INET;
address.sin_addr.s_addr = htonl (INADDR_ANY);
address.sin_port = htons (35586);
+#ifdef __FreeBSD__
+ address.sin_len = sizeof(address);
+#endif
len = sizeof (address);
if (connect (sockfd, (struct sockaddr *)&address, len))
{
@@ -92,7 +102,11 @@ sock_write (char* buf, int* lp_wsize)
packet[4] = size % 0xFF;
memcpy (packet + Header_Size, buf, size);
+#ifndef MSG_NOSIGNAL
+ size = send (server_sock_fd, packet, size + Header_Size, 0);
+#else
size = send (server_sock_fd, packet, size + Header_Size, MSG_NOSIGNAL);
+#endif
if (size < 0)
return -1;
@@ -116,7 +130,11 @@ sock_read (char* buf, int* lp_rsize)
if (size <= 0)
return 0;
+#ifndef MSG_NOSIGNAL
+ dsize = recv (server_sock_fd, packet, size, 0);
+#else
dsize = recv (server_sock_fd, packet, size, MSG_NOSIGNAL);
+#endif
if (dsize < 0)
return -1;
+ #ifdef __FreeBSD__
+ address.sin_len = sizeof(address);
+ #endif
Index: ekpstm/Makefile.in
diff -u ekpstm/Makefile.in.orig ekpstm/Makefile.in
--- ekpstm/Makefile.in.orig Fri Dec 20 00:09:56 2002
+++ ekpstm/Makefile.in Wed Aug 25 18:55:20 2004
@@ -213,7 +213,7 @@
./configure --prefix=$(prefix) ;\
fi ;\
fi ;\
- make
+ $(MAKE)
clean-local:
if test -d $(srcdir)/$(EKPSTM_PKGNAME); then \
@@ -224,7 +224,7 @@
install-exec-local:
if test -d $(srcdir)/$(EKPSTM_PKGNAME); then \
cd $(srcdir)/$(EKPSTM_PKGNAME) ;\
- make install ;\
+ $(MAKE) install ;\
fi
#dist-hook:
Index: ekpstm/ekpstm-1.0.2/src/ekpcom.c
diff -u -p ekpstm/ekpstm-1.0.2/src/ekpcom.c.orig ekpstm/ekpstm-1.0.2/src/ekpcom.c
--- ekpstm/ekpstm-1.0.2/src/ekpcom.c.orig Sat Oct 19 13:01:51 2002
+++ ekpstm/ekpstm-1.0.2/src/ekpcom.c Wed Aug 25 18:34:15 2004
@@ -52,14 +52,24 @@ sock_open (void)
{
int sockfd, len;
struct sockaddr_in address;
+#ifndef MSG_NOSIGNAL
+ const int on = 1;
+#endif
if (server_sock_fd >= 0)
return 0;
sockfd = socket (AF_INET, SOCK_STREAM, 0);
+#if !defined(MSG_NOSIGNAL) && defined(SO_NOSIGPIPE)
+ setsockopt(sockfd, SOL_SOCKET, SO_NOSIGPIPE, &on, sizeof(on));
+#endif
+ memset(&address, 0, sizeof(address));
address.sin_family = AF_INET;
address.sin_addr.s_addr = htonl (INADDR_ANY);
address.sin_port = htons (35586); /* did hard coding in port number (35586) */
+#ifdef __FreeBSD__
+ address.sin_len = sizeof(address);
+#endif
len = sizeof (address);
if (connect (sockfd, (struct sockaddr *)&address, len))
{
@@ -114,7 +124,11 @@ sock_write (char* buf, int* lp_wsize)
packet[4] = size % 0xFF; /* date size (lower) */
memcpy (packet + Header_Size, buf, size); /* date */
+#ifndef MSG_NOSIGNAL
+ size = send (server_sock_fd, packet, size + Header_Size, 0);
+#else
size = send (server_sock_fd, packet, size + Header_Size, MSG_NOSIGNAL);
+#endif
if (size < 0)
return -1;
@@ -144,7 +158,11 @@ sock_read (char* buf, int* lp_rsize)
if (size <= 0)
return 0;
+#ifndef MSG_NOSIGNAL
+ dsize = recv (server_sock_fd, packet, size, 0);
+#else
dsize = recv (server_sock_fd, packet, size, MSG_NOSIGNAL);
+#endif
if (dsize < 0)
return -1;
Index: ekpstm/ekpstm-1.0.2/src/main.c
diff -u -p ekpstm/ekpstm-1.0.2/src/main.c.orig ekpstm/ekpstm-1.0.2/src/main.c
--- ekpstm/ekpstm-1.0.2/src/main.c.orig Thu Jul 31 15:01:39 2003
+++ ekpstm/ekpstm-1.0.2/src/main.c Tue Aug 24 19:41:40 2004
@@ -69,6 +69,7 @@ main (int argc, char *argv[])
break;
default:
+ break;
}
}
Index: src/Makefile.in
diff -u src/Makefile.in.orig src/Makefile.in
--- src/Makefile.in.orig Fri Dec 20 00:09:54 2002
+++ src/Makefile.in Wed Aug 25 18:31:51 2004
@@ -104,7 +104,7 @@
MODEL_L = $(shell echo $(MODEL) | tr [:lower:] [:upper:])
CFLAGS = -DGS_PATH=\"gs\" -DLOCALEDIR=\"$(datadir)/locale\" -DPRINTER_MODEL="\"$(MODEL_FULL)\"" -D$(MODEL_L) -DLIBPATH=\"$(libdir)/lib$(MODEL).so\" -DRSC_PATH=\"$(sysconfdir)/pipsrc\" -DSPOOL_NAME=\"$(MODEL)\" -DLOCALE_PATH=\"$(datadir)/locale\" -DNAVI_PATH=\"$(bindir)/ekpnavi\" -DDATA_PATH=\"$(pkgdatadir)\" -DRULED_PATH=\"$(pkgdatadir)/BID.PRN\" -DPATCH_PATH=\"$(pkgdatadir)/PATCH.PRN\" -DBAND_PATH=\"$(pkgdatadir)/BAND.PRN\" -DCUT_PATH=\"$(pkgdatadir)/CUT.PRN\" -D_LPR_DIRECT @CFLAGS@ -fsigned-char
-INCLUDES = @GTK_CFLAGS@
+INCLUDES = @GTK_CFLAGS@ $(INCLTDL)
FILTER_RESOURCE = opt$(MODEL_L).rsc
Index: src/ekpcom.c
diff -u -p src/ekpcom.c.orig src/ekpcom.c
--- src/ekpcom.c.orig Sat Oct 19 16:56:12 2002
+++ src/ekpcom.c Wed Aug 25 18:40:11 2004
@@ -51,15 +51,25 @@ sock_open (void)
{
int sockfd, len;
struct sockaddr_in address;
+#ifndef MSG_NOSIGNAL
+ const int on = 1;
+#endif
if (server_sock_fd >= 0)
return 0;
/* ソケットオープン */
sockfd = socket (AF_INET, SOCK_STREAM, 0);
+#if !defined(MSG_NOSIGNAL) && defined(SO_NOSIGPIPE)
+ setsockopt(sockfd, SOL_SOCKET, SO_NOSIGPIPE, &on, sizeof(on));
+#endif
+ memset(&address, 0, sizeof(address));
address.sin_family = AF_INET;
address.sin_addr.s_addr = htonl (INADDR_ANY);
address.sin_port = htons (35586);
+#ifdef __FreeBSD__
+ address.sin_len = sizeof(address);
+#endif
len = sizeof (address);
if (connect (sockfd, (struct sockaddr *)&address, len))
{
@@ -101,7 +111,11 @@ sock_write (char* buf, int* lp_wsize)
packet[4] = size % 0xFF;
memcpy (packet + Header_Size, buf, size);
+#ifndef MSG_NOSIGNAL
+ size = send (server_sock_fd, packet, size + Header_Size, 0);
+#else
size = send (server_sock_fd, packet, size + Header_Size, MSG_NOSIGNAL);
+#endif
if (size < 0)
return -1;
@@ -125,7 +139,11 @@ sock_read (char* buf, int* lp_rsize)
if (size <= 0)
return 0;
+#ifndef MSG_NOSIGNAL
+ dsize = recv (server_sock_fd, packet, size, 0);
+#else
dsize = recv (server_sock_fd, packet, size, MSG_NOSIGNAL);
+#endif
if (dsize < 0)
return -1;

View File

@ -0,0 +1,44 @@
diff -u -p src/pfpng.c.orig src/pfpng.c
--- src/pfpng.c.orig Tue Jun 24 15:41:46 2003
+++ src/pfpng.c Tue Aug 24 19:41:41 2004
@@ -57,6 +57,8 @@ lib_png_sig_cmp *dl_png_s
void *
open_png_library (void)
{
+ if (dl_handle_libpng)
+ return (void *)dl_handle_libpng;
dl_handle_libpng = dlopen ("libpng.so", RTLD_LAZY);
if (dl_handle_libpng)
{
@@ -116,8 +118,12 @@ open_png_library (void)
void
close_png_library (void)
{
- if (dl_handle_libpng)
+#if 0
+ if (dl_handle_libpng) {
dlclose (dl_handle_libpng);
+ dl_handle_libpng = NULL;
+ }
+#endif
return;
}
Index: src/pipsCom.c
diff -u -p src/pipsCom.c.orig src/pipsCom.c
--- src/pipsCom.c.orig Tue Jun 24 15:41:46 2003
+++ src/pipsCom.c Tue Aug 24 23:38:06 2004
@@ -56,9 +56,13 @@ connect_server (char *host)
if (!servinfo) return -1;
sockfd = socket (AF_INET, SOCK_STREAM, 0);
+ memset(&address, 0, sizeof(address));
address.sin_family = AF_INET;
address.sin_addr = *(struct in_addr *)*hostinfo->h_addr_list;
address.sin_port = servinfo->s_port;
+#ifdef __FreeBSD__
+ address.sin_len = sizeof(address);
+#endif
len = sizeof (address);
if (connect (sockfd, (struct sockaddr *)&address, len) == -1)

View File

@ -0,0 +1,67 @@
Index: src/ekpcom.c
diff -u -p src/ekpcom.c.orig src/ekpcom.c
--- src/ekpcom.c.orig Wed Jul 30 22:11:04 2003
+++ src/ekpcom.c Tue Aug 24 23:37:59 2004
@@ -52,15 +52,25 @@ sock_open (void)
{
int sockfd, len;
struct sockaddr_in address;
+#ifndef MSG_NOSIGNAL
+ const int on = 1;
+#endif
if (server_sock_fd >= 0)
return 0;
/* Socket open */
sockfd = socket (AF_INET, SOCK_STREAM, 0);
+#if !defined(MSG_NOSIGNAL) && defined(SO_NOSIGPIPE)
+ setsockopt(sockfd, SOL_SOCKET, SO_NOSIGPIPE, &on, sizeof(on));
+#endif
+ memset(&address, 0, sizeof(address));
address.sin_family = AF_INET;
address.sin_addr.s_addr = htonl (INADDR_ANY);
address.sin_port = htons (PORT_NUMBER);
+#ifdef __FreeBSD__
+ address.sin_len = sizeof(address);
+#endif
len = sizeof (address);
if (connect (sockfd, (struct sockaddr *)&address, len))
{
@@ -102,7 +112,11 @@ sock_write (char* buf, int* lp_wsize)
packet[4] = size % 0xFF;
memcpy (packet + Header_Size, buf, size);
+#ifndef MSG_NOSIGNAL
+ size = send (server_sock_fd, packet, size + Header_Size, 0);
+#else
size = send (server_sock_fd, packet, size + Header_Size, MSG_NOSIGNAL);
+#endif
if (size < 0)
return -1;
@@ -126,7 +140,11 @@ sock_read (char* buf, int* lp_rsize)
if (size <= 0)
return 0;
+#ifndef MSG_NOSIGNAL
+ dsize = recv (server_sock_fd, packet, size, 0);
+#else
dsize = recv (server_sock_fd, packet, size, MSG_NOSIGNAL);
+#endif
if (dsize < 0)
return -1;
Index: src/rastertopips.c
diff -u -p src/rastertopips.c.orig src/rastertopips.c
--- src/rastertopips.c.orig Thu Sep 4 13:34:25 2003
+++ src/rastertopips.c Tue Aug 24 19:41:41 2004
@@ -32,6 +32,8 @@
#include <string.h>
#include <ctype.h>
+#define NAME_MAX 41
+
#define WIDTH_BYTES(bits) (((bits) + 31) / 32 * 4)
typedef struct rtp_filter_option {

View File

@ -0,0 +1,54 @@
Index: src/ekpcom.c
diff -u -p src/ekpcom.c.orig src/ekpcom.c
--- src/ekpcom.c.orig Sat Oct 19 16:56:12 2002
+++ src/ekpcom.c Wed Aug 25 18:40:11 2004
@@ -51,15 +51,25 @@ sock_open (void)
{
int sockfd, len;
struct sockaddr_in address;
+#ifndef MSG_NOSIGNAL
+ const int on = 1;
+#endif
if (server_sock_fd >= 0)
return 0;
/* ¥½¥±¥Ã¥È¥ª¡¼¥×¥ó */
sockfd = socket (AF_INET, SOCK_STREAM, 0);
+#if !defined(MSG_NOSIGNAL) && defined(SO_NOSIGPIPE)
+ setsockopt(sockfd, SOL_SOCKET, SO_NOSIGPIPE, &on, sizeof(on));
+#endif
+ memset(&address, 0, sizeof(address));
address.sin_family = AF_INET;
address.sin_addr.s_addr = htonl (INADDR_ANY);
address.sin_port = htons (35586);
+#ifdef __FreeBSD__
+ address.sin_len = sizeof(address);
+#endif
len = sizeof (address);
if (connect (sockfd, (struct sockaddr *)&address, len))
{
@@ -101,7 +111,11 @@ sock_write (char* buf, int* lp_wsize)
packet[4] = size % 0xFF;
memcpy (packet + Header_Size, buf, size);
+#ifndef MSG_NOSIGNAL
+ size = send (server_sock_fd, packet, size + Header_Size, 0);
+#else
size = send (server_sock_fd, packet, size + Header_Size, MSG_NOSIGNAL);
+#endif
if (size < 0)
return -1;
@@ -125,7 +139,11 @@ sock_read (char* buf, int* lp_rsize)
if (size <= 0)
return 0;
+#ifndef MSG_NOSIGNAL
+ dsize = recv (server_sock_fd, packet, size, 0);
+#else
dsize = recv (server_sock_fd, packet, size, MSG_NOSIGNAL);
+#endif
if (dsize < 0)
return -1;

View File

@ -5,10 +5,3 @@ print out as high quality as you use the Windows driver. See the below
URL:
WWW: http://www.epkowa.co.jp/
This port has a modified filter "filter800.rev" which is useful to
print out more than one page. Then you execute the next command:
/usr/local/libexec/pips800/setup
to setup /etc/printcap, make a spool in /var/spool/lpd/ and so on.

View File

@ -6,3 +6,9 @@ You need to add following lines into /etc/libmap.conf:
libc.so.6 pluginwrapper/pips.so
libdl.so.2 pluginwrapper/pips.so
Please execute the following command:
/usr/local/libexec/pips/%%PRT_MODEL%%/setup
to setup /etc/printcap, make a spool in /var/spool/lpd/ and so on.

View File

@ -1,13 +1,13 @@
%%EKPNAVI%%bin/ekpnavi
bin/ekpstm
%%GSCONFIG%%bin/gsconfig%%PRTYPE%%
bin/pips%%PRTYPE%%
%%PIPS%%bin/pips%%PRTYPE%%
%%CUPS%%libexec/cups/backend/ekplp
%%CUPS%%libexec/cups/filter/pipstoprinter
%%CUPS%%libexec/cups/filter/rastertopips
%%CUPS%%libexec/pips/%%PRT_MODEL%%/cupsopt.csv
libexec/pips/%%PRT_MODEL%%/filter%%PRTYPE%%
libexec/pips/%%PRT_MODEL%%/lang
%%CUPS%%libexec/pips/%%PRT_MODEL%%/%%CUPSOPT_FILE%%
%%PIPS%%libexec/pips/%%PRT_MODEL%%/filter%%PRTYPE%%
%%PIPS%%libexec/pips/%%PRT_MODEL%%/lang
libexec/pips/%%PRT_MODEL%%/setup
libexec/pips/%%PRT_MODEL%%/scripts/en.lc
libexec/pips/%%PRT_MODEL%%/scripts/ja.lc
@ -16,48 +16,48 @@ libexec/pips/%%PRT_MODEL%%/scripts/ja.lc
libexec/pips/printer/ekpd
%%DTRFILTER%%libexec/pips/printer/freset
%%DTRFILTER%%libexec/pips/printer/gsconfig
%%DTRFILTER%%libexec/pips/printer/paper_list.csv
%%PAPER_LIST%%libexec/pips/printer/paper_list.csv
@dirrm libexec/pips/printer
%%CUPS%%share/cups/model/%%MODEL_FILE%%
%%PORTDOCS%%share/doc/pips%%PRTYPE%%/COPYING
%%PORTDOCS%%share/doc/pips%%PRTYPE%%/COPYING.KOWA
%%PORTDOCS%%share/doc/pips%%PRTYPE%%/COPYING.KOWA.ja
%%PORTDOCS%%share/doc/pips%%PRTYPE%%/COPYING.LIB
share/doc/pips%%PRTYPE%%/readme%%PRTYPE%%
%%PIPS%%share/doc/pips%%PRTYPE%%/readme%%PRTYPE%%
%%CUPS%%share/doc/pips%%PRTYPE%%/readme%%PRTYPE%%-cups
share/doc/pips%%PRTYPE%%/%%LIB_README%%
@dirrm share/doc/pips%%PRTYPE%%
etc/rc.d/ekpd.sh
etc/ekpdrc
etc/pipsrc
@exec chmod 666 %D/etc/pipsrc
share/locale/de/LC_MESSAGES/pips%%PRTYPE%%.mo
share/locale/es/LC_MESSAGES/pips%%PRTYPE%%.mo
share/locale/fr/LC_MESSAGES/pips%%PRTYPE%%.mo
share/locale/it/LC_MESSAGES/pips%%PRTYPE%%.mo
share/locale/ja/LC_MESSAGES/pips%%PRTYPE%%.mo
share/locale/ko/LC_MESSAGES/pips%%PRTYPE%%.mo
share/locale/nl/LC_MESSAGES/pips%%PRTYPE%%.mo
share/locale/pt/LC_MESSAGES/pips%%PRTYPE%%.mo
share/locale/zh/LC_MESSAGES/pips%%PRTYPE%%.mo
share/locale/zh_TW/LC_MESSAGES/pips%%PRTYPE%%.mo
%%LPR%%share/locale/de/LC_MESSAGES/ekpnavi.mo
%%LPR%%share/locale/es/LC_MESSAGES/ekpnavi.mo
%%LPR%%share/locale/fr/LC_MESSAGES/ekpnavi.mo
%%LPR%%share/locale/it/LC_MESSAGES/ekpnavi.mo
%%LPR%%share/locale/ja/LC_MESSAGES/ekpnavi.mo
%%LPR%%share/locale/ko/LC_MESSAGES/ekpnavi.mo
%%LPR%%share/locale/nl/LC_MESSAGES/ekpnavi.mo
%%LPR%%share/locale/pt/LC_MESSAGES/ekpnavi.mo
%%LPR%%share/locale/zh/LC_MESSAGES/ekpnavi.mo
%%LPR%%share/locale/zh_TW/LC_MESSAGES/ekpnavi.mo
%%LPR%%share/locale/de/LC_MESSAGES/ekpstm.mo
%%LPR%%share/locale/es/LC_MESSAGES/ekpstm.mo
%%LPR%%share/locale/fr/LC_MESSAGES/ekpstm.mo
%%LPR%%share/locale/it/LC_MESSAGES/ekpstm.mo
%%LPR%%share/locale/ja/LC_MESSAGES/ekpstm.mo
%%LPR%%share/locale/ko/LC_MESSAGES/ekpstm.mo
%%LPR%%share/locale/nl/LC_MESSAGES/ekpstm.mo
%%LPR%%share/locale/pt/LC_MESSAGES/ekpstm.mo
%%LPR%%share/locale/zh/LC_MESSAGES/ekpstm.mo
%%LPR%%share/locale/zh_TW/LC_MESSAGES/ekpstm.mo
%%PIPS%%etc/pipsrc
%%PIPS%%@exec chmod 666 %D/etc/pipsrc
%%PIPS%%share/locale/de/LC_MESSAGES/pips%%PRTYPE%%.mo
%%PIPS%%share/locale/es/LC_MESSAGES/pips%%PRTYPE%%.mo
%%PIPS%%share/locale/fr/LC_MESSAGES/pips%%PRTYPE%%.mo
%%PIPS%%share/locale/it/LC_MESSAGES/pips%%PRTYPE%%.mo
%%PIPS%%share/locale/ja/LC_MESSAGES/pips%%PRTYPE%%.mo
%%PIPS%%share/locale/ko/LC_MESSAGES/pips%%PRTYPE%%.mo
%%PIPS%%share/locale/nl/LC_MESSAGES/pips%%PRTYPE%%.mo
%%PIPS%%share/locale/pt/LC_MESSAGES/pips%%PRTYPE%%.mo
%%PIPS%%share/locale/zh/LC_MESSAGES/pips%%PRTYPE%%.mo
%%PIPS%%share/locale/zh_TW/LC_MESSAGES/pips%%PRTYPE%%.mo
%%EKPNAVI_MO%%share/locale/de/LC_MESSAGES/ekpnavi.mo
%%EKPNAVI_MO%%share/locale/es/LC_MESSAGES/ekpnavi.mo
%%EKPNAVI_MO%%share/locale/fr/LC_MESSAGES/ekpnavi.mo
%%EKPNAVI_MO%%share/locale/it/LC_MESSAGES/ekpnavi.mo
%%EKPNAVI_MO%%share/locale/ja/LC_MESSAGES/ekpnavi.mo
%%EKPNAVI_MO%%share/locale/ko/LC_MESSAGES/ekpnavi.mo
%%EKPNAVI_MO%%share/locale/nl/LC_MESSAGES/ekpnavi.mo
%%EKPNAVI_MO%%share/locale/pt/LC_MESSAGES/ekpnavi.mo
%%EKPNAVI_MO%%share/locale/zh/LC_MESSAGES/ekpnavi.mo
%%EKPNAVI_MO%%share/locale/zh_TW/LC_MESSAGES/ekpnavi.mo
%%EKPSTM_MO%%share/locale/de/LC_MESSAGES/ekpstm.mo
%%EKPSTM_MO%%share/locale/es/LC_MESSAGES/ekpstm.mo
%%EKPSTM_MO%%share/locale/fr/LC_MESSAGES/ekpstm.mo
%%EKPSTM_MO%%share/locale/it/LC_MESSAGES/ekpstm.mo
%%EKPSTM_MO%%share/locale/ja/LC_MESSAGES/ekpstm.mo
%%EKPSTM_MO%%share/locale/ko/LC_MESSAGES/ekpstm.mo
%%EKPSTM_MO%%share/locale/nl/LC_MESSAGES/ekpstm.mo
%%EKPSTM_MO%%share/locale/pt/LC_MESSAGES/ekpstm.mo
%%EKPSTM_MO%%share/locale/zh/LC_MESSAGES/ekpstm.mo
%%EKPSTM_MO%%share/locale/zh_TW/LC_MESSAGES/ekpstm.mo

View File

@ -5,10 +5,3 @@ print out as high quality as you use the Windows driver. See the below
URL:
WWW: http://www.epkowa.co.jp/
This port has a modified filter "filter820.rev" which is useful to
print out more than one page. Then you execute the next command:
/usr/local/libexec/pips820/setup
to setup /etc/printcap, make a spool in /var/spool/lpd/ and so on.

View File

@ -5,10 +5,3 @@ print out as high quality as you use the Windows driver. See the below
URL:
WWW: http://www.epkowa.co.jp/
This port has a modified filter "filter880.rev" which is useful to
print out more than one page. Then you execute the next command:
/usr/local/libexec/pips880/setup
to setup /etc/printcap, make a spool in /var/spool/lpd/ and so on.

View File

@ -5,10 +5,3 @@ print out as high quality as you use the Windows driver. See the below
URL:
WWW: http://www.epkowa.co.jp/
This port has a modified filter "filter900.rev" which is useful to
print out more than one page. Then you execute the next command:
/usr/local/libexec/pips900/setup
to setup /etc/printcap, make a spool in /var/spool/lpd/ and so on.