Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions

6
print/pnm2ppa/DESCR Normal file
View File

@@ -0,0 +1,6 @@
pnm2ppa, a PPM to PPA converter, creates output using the PPA (printer
performance architecture) protocol. This protocol is used by some HP
"Windows-only" printers, including the HP Deskjet 720C series, the HP
DeskJet 820 series, and the HP DeskJet 1000 series. It has been
tested on all three series, but your personal experience (positive or
negative) is very much appreciated!

7
print/pnm2ppa/MESSAGE Normal file
View File

@@ -0,0 +1,7 @@
===========================================================================
$NetBSD: MESSAGE,v 1.1 2003/09/17 18:40:45 jmmv Exp $
You *must* edit the default ${PKG_SYSCONFDIR}/pnm2ppa.conf configuration
file to get this package working.
===========================================================================

34
print/pnm2ppa/Makefile Normal file
View File

@@ -0,0 +1,34 @@
# $NetBSD: Makefile,v 1.15 2012/10/08 13:45:44 asau Exp $
#
DISTNAME= pnm2ppa-1.12
CATEGORIES= print converters graphics
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=pnm2ppa/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://pnm2ppa.sourceforge.net/
COMMENT= Filter to convert PNM file to PPA used by some HP DJ printer
CONF_FILES= ${PREFIX}/share/examples/pnm2ppa/pnm2ppa.conf \
${PKG_SYSCONFDIR}/pnm2ppa.conf
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 share/doc/pnm2ppa
post-build:
for f in \
${WRKSRC}/docs/en/CALIBRATION.txt \
${WRKSRC}/docs/en/COLOR.txt \
${WRKSRC}/docs/en/pnm2ppa.1 ; \
do \
${CP} $$f $$f.orig ; \
${SED} 's|/etc/pnm2ppa|${PKG_SYSCONFDIR}/pnm2ppa|g' \
$$f.orig > $$f ; \
done
post-install:
cd ${WRKSRC} && \
${INSTALL_DATA} docs/en/CALIBRATION.txt docs/en/COLOR.txt \
${DESTDIR}${PREFIX}/share/doc/pnm2ppa
.include "../../devel/libgetopt/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

7
print/pnm2ppa/PLIST Normal file
View File

@@ -0,0 +1,7 @@
@comment $NetBSD: PLIST,v 1.4 2009/06/14 18:11:58 joerg Exp $
bin/calibrate_ppa
bin/pnm2ppa
man/man1/pnm2ppa.1
share/doc/pnm2ppa/CALIBRATION.txt
share/doc/pnm2ppa/COLOR.txt
share/examples/pnm2ppa/pnm2ppa.conf

9
print/pnm2ppa/distinfo Normal file
View File

@@ -0,0 +1,9 @@
$NetBSD: distinfo,v 1.6 2008/06/12 02:14:43 joerg Exp $
SHA1 (pnm2ppa-1.12.tar.gz) = a4a8915cb9e3d01dd55bd5958b00a9d19b1d747d
RMD160 (pnm2ppa-1.12.tar.gz) = 915aff8a84fd0740e6af62c1ca488a2faa511f2b
Size (pnm2ppa-1.12.tar.gz) = 191113 bytes
SHA1 (patch-aa) = 3360ab4a23ca564097be604f3e2ddbb255c62c48
SHA1 (patch-ab) = 2e343bcaaca3e37dd0d393688bbc8cc37b70b4dc
SHA1 (patch-ac) = 24d15229f9d81839c4b9e145ff554b12748c2153
SHA1 (patch-ad) = e6bfdcedd053a683c2c91f6a23c1270bc6f6aecb

View File

@@ -0,0 +1,49 @@
$NetBSD: patch-aa,v 1.4 2008/06/12 02:14:43 joerg Exp $
--- Makefile.orig 2002-11-16 00:29:29.000000000 +0100
+++ Makefile
@@ -5,14 +5,13 @@
# paths to locations where the pnm2ppa binary, the configuration file,
# and the man page should be installed. On some systems (like Solaris)
# the install command requires the syntax BINDIR="-f /usr/local/bin".
-BINDIR="/usr/local/bin"
-CONFDIR="/etc"
-MANDIR="/usr/local/man/man1"
+BINDIR="${PREFIX}/bin"
+CONFDIR="${PKG_SYSCONFDIR}"
+MANDIR="${PREFIX}/man/man1"
#compiler and linker options:
-CC=gcc
-CFLAGS=-Wall -pedantic -O2
-LDFLAGS=-lm
+CFLAGS+= $(CPPFLAGS) -DPKG_SYSCONFDIR=\"${PKG_SYSCONFDIR}\"
+LDFLAGS+=-lm
INSTALL=install
# Install under Linux and other versions with the -b (backup) option
@@ -104,19 +103,15 @@ clean:
install: pnm2ppa calibrate_ppa
- $(INSTALLD) $(BINDIR)
- $(INSTALLD) $(CONFDIR)
- $(INSTALLD) $(MANDIR)
- $(INSTALL) -m 755 pnm2ppa $(BINDIR)
- $(INSTALL) -m 644 docs/en/pnm2ppa.1 $(MANDIR)
+ $(BSD_INSTALL_PROGRAM) -m 755 pnm2ppa ${DESTDIR}$(BINDIR)
+ $(BSD_INSTALL_MAN) -m 644 docs/en/pnm2ppa.1 ${DESTDIR}$(MANDIR)
# development only - allows root to edit
- $(INSTALL) -m 644 pnm2ppa.conf $(CONFDIR)
+ $(BSD_INSTALL_DATA_DIR) ${DESTDIR}$(PREFIX)/share/examples/pnm2ppa
+ $(BSD_INSTALL_DATA) -m 644 pnm2ppa.conf ${DESTDIR}$(PREFIX)/share/examples/pnm2ppa
# calibration tool
- $(INSTALL) -m 755 calibrate_ppa $(BINDIR)
+ $(BSD_INSTALL_PROGRAM) -m 755 calibrate_ppa ${DESTDIR}$(BINDIR)
# final production - much tighter
# $(INSTALL) -m 444 pnm2ppa.conf $(CONFDIR)
- @@echo
- @@echo Now, edit /etc/pnm2ppa.conf to choose your printer
uninstall:
rm -f $(BINDIR)/pnm2ppa

View File

@@ -0,0 +1,15 @@
$NetBSD: patch-ab,v 1.1 2003/09/17 18:40:49 jmmv Exp $
--- pnm2ppa.h.orig Sat Jun 22 22:17:57 2002
+++ pnm2ppa.h Sun May 11 09:39:33 2003
@@ -20,8 +20,8 @@
#ifdef __PNM2PPA_C__
-static char *defaultcfgfile = "/etc/pnm2ppa.conf";
-static char *defaultgammafile = "/etc/pnm2ppa.gamma";
+static char *defaultcfgfile = PKG_SYSCONFDIR"/pnm2ppa.conf";
+static char *defaultgammafile = PKG_SYSCONFDIR"/pnm2ppa.gamma";
static ppaPrinter_t printer;

View File

@@ -0,0 +1,13 @@
$NetBSD: patch-ac,v 1.1 2003/09/17 18:40:49 jmmv Exp $
--- pnm2ppa.c.orig Sun May 11 09:40:56 2003
+++ pnm2ppa.c Sun May 11 09:41:26 2003
@@ -286,7 +286,7 @@
printf
(" The order in which parameters are specified is important:\n");
printf
- (" the file /etc/pnm2ppa.conf, if it exists, is processed as a configuration\n");
+ (" the file "PKG_SYSCONFDIR"/pnm2ppa.conf, if it exists, is processed as a configuration\n");
printf
(" file before any command-line parameters are processed.\n");
printf

View File

@@ -0,0 +1,12 @@
$NetBSD: patch-ad,v 1.1 2003/09/17 18:40:50 jmmv Exp $
--- text-en.h.orig Sun May 11 09:41:59 2003
+++ text-en.h Sun May 11 09:42:14 2003
@@ -73,7 +73,7 @@
/* 24 */ "Verbose logging to console\n",
- /* 25 */ "Please configure your printer in /etc/pnm2ppa.conf\n",
+ /* 25 */ "Please configure your printer in"PKG_SYSCONFDIR"/pnm2ppa.conf\n",
/* 26 */ "couldn't open config file \n",