pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/security/sslwrap Changed explicit sed(1) code to the S...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/6feb7d23dca2
branches:  trunk
changeset: 500529:6feb7d23dca2
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Mon Oct 10 09:16:48 2005 +0000

description:
Changed explicit sed(1) code to the SUBST framework. Added BINOWN and
BINGRP to the MAKE_ENV to make unpriviledged builds work.

diffstat:

 security/sslwrap/Makefile |  16 +++++++++-------
 1 files changed, 9 insertions(+), 7 deletions(-)

diffs (36 lines):

diff -r 0802bb314b8e -r 6feb7d23dca2 security/sslwrap/Makefile
--- a/security/sslwrap/Makefile Mon Oct 10 09:07:22 2005 +0000
+++ b/security/sslwrap/Makefile Mon Oct 10 09:16:48 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.17 2005/04/11 21:47:20 tv Exp $
+# $NetBSD: Makefile,v 1.18 2005/10/10 09:16:48 rillig Exp $
 #
 
 DISTNAME=      ${PKGNAME_NOREV:S/-//}
@@ -14,7 +14,9 @@
 
 OPSYSVARS+=    LDADD
 LDADD.SunOS=   -lnsl -lsocket
-MAKE_ENV+=     LDADD="${LDADD}"
+MAKE_ENV+=     LDADD=${LDADD:Q}
+MAKE_ENV+=     BINOWN=${BINOWN}
+MAKE_ENV+=     BINGRP=${BINGRP}
 
 .include "../../security/openssl/buildlink3.mk"
 
@@ -22,10 +24,10 @@
 CFLAGS+=       -DFLAT_INC
 .endif
 
-do-configure:
-.for f in apps.h s_cb.c s_server.c s_socket.c
-       sed -e 's|OPENSSL"|"openssl/|' ${WRKSRC}/$f > ${WRKSRC}/$f.not && \
-               mv ${WRKSRC}/$f.not ${WRKSRC}/$f
-.endfor
+SUBST_CLASSES+=                sslwrap
+SUBST_MESSAGE.sslwrap= Adjusting the path for include files
+SUBST_STAGE.sslwrap=   do-configure
+SUBST_FILES.sslwrap=   apps.h s_cb.c s_server.c s_socket.c
+SUBST_SED.sslwrap=     -e 's|OPENSSL"|"openssl/|'
 
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index