summaryrefslogtreecommitdiff
path: root/print/cups
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2006-01-06 00:19:44 +0000
committerjoerg <joerg@pkgsrc.org>2006-01-06 00:19:44 +0000
commit2b829f436ff9139ef6db0f4fa0b344fc059ec06e (patch)
treecb75025c04ed6a73f6fa36b1e10146f2860ab431 /print/cups
parent3ec209e1609da82d7fd504eb3922dfead86a0d8c (diff)
downloadpkgsrc-2b829f436ff9139ef6db0f4fa0b344fc059ec06e.tar.gz
Use SUBST framework.
Diffstat (limited to 'print/cups')
-rw-r--r--print/cups/Makefile11
1 files changed, 8 insertions, 3 deletions
diff --git a/print/cups/Makefile b/print/cups/Makefile
index 92725f88be1..3d9e0662296 100644
--- a/print/cups/Makefile
+++ b/print/cups/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.104 2005/12/29 06:22:06 jlam Exp $
+# $NetBSD: Makefile,v 1.105 2006/01/06 00:19:44 joerg Exp $
#
# The CUPS author is very good about taking back changes into the main
# CUPS distribution. The correct place to send patches or bug-fixes is:
@@ -112,11 +112,16 @@ OWN_DIRS_PERMS+= ${CUPS_REQUESTS}/tmp ${CUPS_USER} ${CUPS_GROUP} 1770
.include "../../net/openslp/buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"
+SUBST_CLASSES+= paths
+SUBST_FILES.paths= ${WRKDIR}/cups.pam
+SUBST_SED.paths+= -e 's,@LOCALBASE@,${LOCALBASE},g'
+SUBST_STAGE.paths= post-patch
+
pre-configure:
cd ${WRKSRC} && autoconf
-post-build:
- @${SED} ${FILES_SUBST_SED} ${FILESDIR}/cups.pam > ${WRKDIR}/cups.pam
+post-extract:
+ ${CP} ${FILESDIR}/cups.pam ${WRKDIR}/cups.pam
post-install:
${INSTALL_DATA_DIR} ${DOCDIR}