diff options
author | joerg <joerg@pkgsrc.org> | 2006-01-22 00:57:02 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2006-01-22 00:57:02 +0000 |
commit | 6a585133a682b3f68d262b714667be78fd632c45 (patch) | |
tree | fc99c1f9e06e20c3749bde9eefe516d4eb6a20d8 /print/LPRng-core | |
parent | 5dc881fc0377b58a850a2dfacf9f812eff4039a8 (diff) | |
download | pkgsrc-6a585133a682b3f68d262b714667be78fd632c45.tar.gz |
Use INSTALL_EXTRA_TMPL and DEINSTALL_EXTRA_TMPL. Fix the output of
DEINSTALL to only print the delimiting line if the opening line was
written as well. Makes the output a bit nicer when no file was
modified.
Diffstat (limited to 'print/LPRng-core')
-rw-r--r-- | print/LPRng-core/DEINSTALL | 4 | ||||
-rw-r--r-- | print/LPRng-core/Makefile | 9 |
2 files changed, 5 insertions, 8 deletions
diff --git a/print/LPRng-core/DEINSTALL b/print/LPRng-core/DEINSTALL index 5030363f46c..93b6a1c2532 100644 --- a/print/LPRng-core/DEINSTALL +++ b/print/LPRng-core/DEINSTALL @@ -1,6 +1,6 @@ #!/bin/sh # -# $NetBSD: DEINSTALL,v 1.3 2004/09/06 10:44:44 martti Exp $ +# $NetBSD: DEINSTALL,v 1.4 2006/01/22 00:57:02 joerg Exp $ PKGNAME=$1 STAGE=$2 @@ -70,10 +70,10 @@ EOF do echo " ${file}" done - fi ${CAT} << EOF =========================================================================== EOF + fi ;; esac exit 0 diff --git a/print/LPRng-core/Makefile b/print/LPRng-core/Makefile index dc7d4d16c3f..84cb5851736 100644 --- a/print/LPRng-core/Makefile +++ b/print/LPRng-core/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.22 2005/12/29 06:22:06 jlam Exp $ +# $NetBSD: Makefile,v 1.23 2006/01/22 00:57:02 joerg Exp $ DISTNAME= LPRng-3.8.28 PKGNAME= LPRng-core-3.8.28 @@ -43,8 +43,8 @@ FILTER_PATH= ${FILTER_DIR}:/sbin:/usr/sbin:/bin:/usr/bin:${PREFIX}/sbin:${PREFI MAKE_ENV+= POSTINSTALL="NO" EXAMPLESDIR= ${PREFIX}/share/examples/LPRng -DEINSTALL_FILE= ${WRKDIR}/DEINSTALL -INSTALL_FILE= ${WRKDIR}/INSTALL +DEINSTALL_EXTRA_TMPL+= ${.CURDIR}/DEINSTALL +INSTALL_EXTRA_TMPL+= ${.CURDIR}/INSTALL RCD_SCRIPTS= LPRng FILES_SUBST+= CAT=${CAT:Q} @@ -72,8 +72,6 @@ post-configure: pre-install: ${SED} -e "s,@PREFIX@,${PREFIX},g" \ < ${FILESDIR}/LPRng.sh > ${WRKDIR}/LPRng.sh - ${SED} ${FILES_SUBST_SED} ${PKGDIR}/DEINSTALL > ${DEINSTALL_FILE} - ${SED} ${FILES_SUBST_SED} ${PKGDIR}/INSTALL > ${INSTALL_FILE} post-install: ${INSTALL_DATA_DIR} ${EXAMPLESDIR} @@ -81,6 +79,5 @@ post-install: ${INSTALL_DATA} ${WRKSRC}/$${file} \ ${EXAMPLESDIR}/$${file}.example; \ done - PKG_PREFIX=${PREFIX} ${SH} ${INSTALL_FILE} ${PKGNAME} POST-INSTALL .include "../../mk/bsd.pkg.mk" |