pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/samba Use SUBST framework. Be pedantic and also re...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d5632c5474f3
branches:  trunk
changeset: 505671:d5632c5474f3
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Fri Jan 06 00:15:21 2006 +0000

description:
Use SUBST framework. Be pedantic and also replace /bin/sh with ${SH}.

diffstat:

 net/samba/Makefile         |  14 ++++++++++----
 net/samba/files/adduser.sh |   4 ++--
 net/samba/files/deluser.sh |   4 ++--
 3 files changed, 14 insertions(+), 8 deletions(-)

diffs (59 lines):

diff -r 08d93f453068 -r d5632c5474f3 net/samba/Makefile
--- a/net/samba/Makefile        Thu Jan 05 23:58:23 2006 +0000
+++ b/net/samba/Makefile        Fri Jan 06 00:15:21 2006 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.156 2006/01/02 22:33:36 jlam Exp $
+# $NetBSD: Makefile,v 1.157 2006/01/06 00:15:21 joerg Exp $
 
 .include "Makefile.mirrors"
 
@@ -98,6 +98,13 @@
 OWN_DIRS_PERMS=                ${SAMBA_PRIVATE} ${ROOT_USER} ${ROOT_GROUP} 0700
 RCD_SCRIPTS+=          samba nmbd smbd ${WINBINDD_RCD_SCRIPT}
 
+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
+
 # Get the shared library major and minors for the installed shared
 # libraries.  We'll need these to create the versioned symlinks for
 # the shared libraries because samba Makefile doesn't do it on its
@@ -122,9 +129,8 @@
        cd ${SAMBA_LIBDIR} && ${LN} -s libsmbclient.so                  \
                libsmbclient.so.${LIBSMBCLIENT_MAJOR}.${LIBSMBCLIENT_MINOR}
 
-post-build:
-       @${SED} ${FILES_SUBST_SED} ${FILESDIR}/adduser.sh > ${WRKDIR}/adduser.sh
-       @${SED} ${FILES_SUBST_SED} ${FILESDIR}/deluser.sh > ${WRKDIR}/deluser.sh
+post-extract:
+       ${CP} ${FILESDIR}/adduser.sh ${FILESDIR}/deluser.sh ${WRKDIR}
 
 post-install: install-samba-lib-symlinks
        ${RMDIR} ${PREFIX}/share/samba/swat/lang/ja/include
diff -r 08d93f453068 -r d5632c5474f3 net/samba/files/adduser.sh
--- a/net/samba/files/adduser.sh        Thu Jan 05 23:58:23 2006 +0000
+++ b/net/samba/files/adduser.sh        Fri Jan 06 00:15:21 2006 +0000
@@ -1,6 +1,6 @@
-#!/bin/sh
+#!@SH@
 #
-# $NetBSD: adduser.sh,v 1.2 2004/01/11 02:26:31 jlam Exp $
+# $NetBSD: adduser.sh,v 1.3 2006/01/06 00:15:21 joerg Exp $
 #
 # This is an adduser script for NetBSD systems whose useradd(8) doesn't
 # accept "$" in the username.  This script may be used for the
diff -r 08d93f453068 -r d5632c5474f3 net/samba/files/deluser.sh
--- a/net/samba/files/deluser.sh        Thu Jan 05 23:58:23 2006 +0000
+++ b/net/samba/files/deluser.sh        Fri Jan 06 00:15:21 2006 +0000
@@ -1,6 +1,6 @@
-#!/bin/sh
+#!@SH@
 #
-# $NetBSD: deluser.sh,v 1.2 2004/01/11 02:26:31 jlam Exp $
+# $NetBSD: deluser.sh,v 1.3 2006/01/06 00:15:21 joerg Exp $
 #
 # This is a deluser script for NetBSD systems whose userdel(8) doesn't
 # accept "$" in the username.



Home | Main Index | Thread Index | Old Index