summaryrefslogtreecommitdiff
path: root/security/sslwrap
diff options
context:
space:
mode:
authorrillig <rillig>2005-10-10 09:16:48 +0000
committerrillig <rillig>2005-10-10 09:16:48 +0000
commite622e408805d709b7d7656c7c1bb13a49dcc323b (patch)
tree742bdc17e7d8e0324f864186241f488352a1895b /security/sslwrap
parent016cc6d83342a0dbd529fe4db44e268c370019a9 (diff)
downloadpkgsrc-e622e408805d709b7d7656c7c1bb13a49dcc323b.tar.gz
Changed explicit sed(1) code to the SUBST framework. Added BINOWN and
BINGRP to the MAKE_ENV to make unpriviledged builds work.
Diffstat (limited to 'security/sslwrap')
-rw-r--r--security/sslwrap/Makefile16
1 files changed, 9 insertions, 7 deletions
diff --git a/security/sslwrap/Makefile b/security/sslwrap/Makefile
index d457ae863ce..b66d3271615 100644
--- a/security/sslwrap/Makefile
+++ b/security/sslwrap/Makefile
@@ -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 @@ COMMENT= Simple SSL wrapper
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 @@ MAKE_ENV+= LDADD="${LDADD}"
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"