diff options
author | jmmv <jmmv@pkgsrc.org> | 2002-11-26 11:26:31 +0000 |
---|---|---|
committer | jmmv <jmmv@pkgsrc.org> | 2002-11-26 11:26:31 +0000 |
commit | 1eee29d53448ec97c42efc6cf610c3fee7907294 (patch) | |
tree | c548d9349ad1ca02a34bdbeb52305218dff90a1c /print/apsfilter/Makefile | |
parent | 4ecb3ad0aa1fbf6c173c8930b4129b1b442fca7d (diff) | |
download | pkgsrc-1eee29d53448ec97c42efc6cf610c3fee7907294.tar.gz |
Make this package behave properly when installing configuration files, that
is, using the PKG_SYSCONFDIR stuff. apsfilter needs a symlink in the
configuration directory, so add an INSTALL script to create it (which
handles all DEINSTALL stuff too). Bump PKGREVISION to 2.
Approved by wiz.
This closes PR 18994.
Diffstat (limited to 'print/apsfilter/Makefile')
-rw-r--r-- | print/apsfilter/Makefile | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/print/apsfilter/Makefile b/print/apsfilter/Makefile index d548fc5e89d..393ceeea46e 100644 --- a/print/apsfilter/Makefile +++ b/print/apsfilter/Makefile @@ -1,8 +1,8 @@ -# $NetBSD: Makefile,v 1.7 2002/09/13 06:53:35 jlam Exp $ +# $NetBSD: Makefile,v 1.8 2002/11/26 11:26:32 jmmv Exp $ # DISTNAME= apsfilter-7.2.2 -PKGREVISION= 1 +PKGREVISION= 2 CATEGORIES= print MASTER_SITES= http://www.apsfilter.org/download/ @@ -18,8 +18,6 @@ DEPENDS+= netpbm>=9.7nb1:../../graphics/netpbm DEPENDS+= a2ps-[0-9]*:../../print/a2ps DEPENDS+= psutils-[0-9]*:../../print/psutils -DEINSTALL_FILE= ${WRKDIR}/.DEINSTALL - WRKSRC= ${WRKDIR}/apsfilter HAS_CONFIGURE= YES @@ -27,6 +25,16 @@ USE_BZIP2= YES CONFIGURE_ARGS+=--prefix=${LOCALBASE} CONFIGURE_ARGS+=--with-shell=${SH} +CONFIGURE_ARGS+=--sysconfdir=${PKG_SYSCONFDIR} + +PKG_SYSCONFSUBDIR?= apsfilter +CONF_FILES= ${PREFIX}/share/apsfilter/template/apsfilterrc \ + ${PKG_SYSCONFDIR}/apsfilterrc + +DEINSTALL_EXTRA_TMPL= ${.CURDIR}/INSTALL +INSTALL_EXTRA_TMPL= ${.CURDIR}/INSTALL + +FILES_SUBST+= PREFIX="${PREFIX}" post-patch: for i in bin/apsfilter.in SETUP.in tools/prtmgmt; do \ @@ -35,8 +43,9 @@ post-patch: ${MV} ${WRKSRC}/$$i.done ${WRKSRC}/$$i; \ done - ${SED} "s,@LOCALBASE@,${LOCALBASE},g" ${PKGDIR}/DEINSTALL \ - > ${DEINSTALL_FILE} +# ${SED} "s,@LOCALBASE@,${LOCALBASE},g" ${PKGDIR}/DEINSTALL \ +# > ${DEINSTALL_FILE} .include "../../mk/ghostscript.mk" +.include "../../mk/bsd.pkg.install.mk" .include "../../mk/bsd.pkg.mk" |