summaryrefslogtreecommitdiff
path: root/print/psutils
diff options
context:
space:
mode:
authorjmmv <jmmv>2002-11-26 10:13:20 +0000
committerjmmv <jmmv>2002-11-26 10:13:20 +0000
commit767fd08ac5d3ef6b1d8c9e0315cdcbc862b338b5 (patch)
treef5e990c2db163d900766ab5124b0a4d8bb6d3456 /print/psutils
parente2d9fbdf92d3e3c2c5008d314313d3800d1c8e88 (diff)
downloadpkgsrc-767fd08ac5d3ef6b1d8c9e0315cdcbc862b338b5.tar.gz
Make this package install its configuration file in the examples directory
and use PKG_SYSCONFDIR to copy it to the right place. (Bump PKGREVISION to 1 for this). Also add a HOMEPAGE, as the program has one. Approved by wiz. This closes my own PR 18991.
Diffstat (limited to 'print/psutils')
-rw-r--r--print/psutils/Makefile13
-rw-r--r--print/psutils/PLIST4
2 files changed, 12 insertions, 5 deletions
diff --git a/print/psutils/Makefile b/print/psutils/Makefile
index bc747b81a03..af3ec3fd17f 100644
--- a/print/psutils/Makefile
+++ b/print/psutils/Makefile
@@ -1,13 +1,15 @@
-# $NetBSD: Makefile,v 1.20 2001/09/27 23:18:36 jlam Exp $
+# $NetBSD: Makefile,v 1.21 2002/11/26 10:13:20 jmmv Exp $
# FreeBSD Id: Makefile,v 1.15 1998/01/08 18:52:13 fenner Exp
#
DISTNAME= psutils-p17
PKGNAME= psutils-1.17
+PKGREVISION= 1
CATEGORIES= print
MASTER_SITES= ftp://ftp.dcs.ed.ac.uk/pub/ajcd/
MAINTAINER= packages@netbsd.org
+HOMEPAGE= http://www.go.dlr.de:8081/pdinfo_dv/psutils.html
COMMENT= Utilities for manipulating PostScript documents
DEPENDS+= papersize-[0-9]*:../../print/papersize
@@ -23,6 +25,9 @@ MAKE_ENV+= CC="${CC}" PERL5="${PERL5}"
MAKE_FLAGS+= PAPER=`${ECHO} ${PAPERSIZE} | ${TR} '[A-Z]' '[a-z]'`
MAKEFILE= Makefile.unix
+EGDIR= ${PREFIX}/share/examples/psutils
+CONF_FILES= ${EGDIR}/psutils.cfg ${PKG_SYSCONFDIR}/psutils.cfg
+
pre-configure:
@case "X${PAPERSIZE}" in \
XA4|XLetter) \
@@ -48,9 +53,9 @@ post-install:
for f in epsffit psbook psnup psresize psselect pstops; do \
strip ${PREFIX}/bin/$$f; \
done
+ ${INSTALL_DATA_DIR} ${EGDIR}
low=`${ECHO} ${PAPERSIZE} | ${TR} '[A-Z]' '[a-z]'`; \
- if [ ! -f ${PREFIX}/etc/psutils.cfg ]; then \
- ${ECHO} "PAPERSIZE=$$low" > ${PREFIX}/etc/psutils.cfg; \
- fi
+ ${ECHO} "PAPERSIZE=$$low" > ${EGDIR}/psutils.cfg;
+.include "../../mk/bsd.pkg.install.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/print/psutils/PLIST b/print/psutils/PLIST
index dc5d68ee9c0..5b865766daa 100644
--- a/print/psutils/PLIST
+++ b/print/psutils/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.1 2001/10/31 23:28:00 zuntum Exp $
+@comment $NetBSD: PLIST,v 1.2 2002/11/26 10:13:20 jmmv Exp $
bin/epsffit
bin/extractres
bin/fixdlsrps
@@ -40,6 +40,8 @@ man/man1/psnup.1.gz
man/man1/psresize.1.gz
man/man1/psselect.1.gz
man/man1/pstops.1.gz
+share/examples/psutils/psutils.cfg
share/psutils/md68_0.ps
share/psutils/md71_0.ps
+@dirrm share/examples/psutils
@dirrm share/psutils