summaryrefslogtreecommitdiff
path: root/net/ja-samba
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2006-01-19 01:36:25 +0000
committerjoerg <joerg@pkgsrc.org>2006-01-19 01:36:25 +0000
commit3f2082dd6f7582f33e69425d4414a73264f8e590 (patch)
treeb01366af5651a07ee25ae1e67d080119ec644836 /net/ja-samba
parentd902b2bf642c6a036620be3f315b23eed6dc1673 (diff)
downloadpkgsrc-3f2082dd6f7582f33e69425d4414a73264f8e590.tar.gz
Replace FILES_SUBST_SED usage with SUBST framework.
Diffstat (limited to 'net/ja-samba')
-rw-r--r--net/ja-samba/Makefile15
1 files changed, 10 insertions, 5 deletions
diff --git a/net/ja-samba/Makefile b/net/ja-samba/Makefile
index cb9af1c12b8..c2163f62e01 100644
--- a/net/ja-samba/Makefile
+++ b/net/ja-samba/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.42 2005/12/29 06:21:59 jlam Exp $
+# $NetBSD: Makefile,v 1.43 2006/01/19 01:36:25 joerg Exp $
DISTNAME= samba-${SAMBA_VERSION}-ja-${JA_VERSION}
PKGNAME= ja-samba-${SAMBA_VERSION}.${JA_PKG_VERSION}
@@ -150,6 +150,13 @@ FILES_SUBST+= PWD_MKDB=${PWD_MKDB:Q}
REPLACE_PERL= script/findsmb.in
+SUBST_CLASSES+= paths
+SUBST_FILES.paths= ${WRKDIR}/adduser.sh ${WRKDIR}/deluser.sh
+SUBST_SED.paths+= -e 's,@AWK@,${AWK},g' -e 's,@CAT@,${CAT},g'
+SUBST_SED.paths+= -e 's,@MKTEMP@,${MKTEMP},g' -e 's,@RM@,${RM},g'
+SUBST_SED.paths+= -e 's,@PWD_MKDB@,${PWD_MKDB},g' -e 's,@SH@,${SH},g'
+SUBST_STAGE.paths= post-patch
+
# Remove irrelevant files for this package.
post-extract:
${FIND} ${WRKDIR}/${DISTNAME} -name ".cvsignore" -print | \
@@ -162,10 +169,8 @@ post-extract:
${RM} -r ${WRKDIR}/${DISTNAME}/examples/libsmbclient
${RM} -r ${WRKDIR}/${DISTNAME}/examples/smbchartool
${RM} -r ${WRKDIR}/${DISTNAME}/examples/svr4-startup
-
-post-build:
- @${SED} ${FILES_SUBST_SED} ${FILESDIR}/adduser.sh > ${WRKDIR}/adduser.sh
- @${SED} ${FILES_SUBST_SED} ${FILESDIR}/deluser.sh > ${WRKDIR}/deluser.sh
+ ${CP} ${FILESDIR}/adduser.sh ${WRKDIR}/adduser.sh
+ ${CP} ${FILESDIR}/deluser.sh ${WRKDIR}/deluser.sh
post-install:
-cd ${PREFIX}/lib && ${LN} -s libsmbclient.so libsmbclient.so.0