don't require gmake for /etc/raddb/certs/Makefile (admin-facing makefile)

ok pea@
This commit is contained in:
sthen 2015-11-03 22:54:23 +00:00
parent 576d07b1c8
commit 428380ecb2
2 changed files with 25 additions and 1 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.63 2015/10/14 11:19:56 sthen Exp $
# $OpenBSD: Makefile,v 1.64 2015/11/03 22:54:23 sthen Exp $
SHARED_ONLY= Yes
SHARED_LIBS += freeradius-radius 4.2 # .0.0
@ -11,6 +11,7 @@ COMMENT-pgsql= freeradius pgsql rlm addon
COMMENT-ldap= freeradius ldap rlm addon
V= 2.2.9
REVISION-main= 0
DISTNAME= freeradius-server-$V
EXTRACT_SUFX= .tar.bz2

View File

@ -0,0 +1,23 @@
$OpenBSD: patch-raddb_certs_Makefile,v 1.1 2015/11/03 22:54:23 sthen Exp $
don't rely on gmake
--- raddb/certs/Makefile.orig Mon Nov 2 23:15:54 2015
+++ raddb/certs/Makefile Mon Nov 2 23:16:14 2015
@@ -34,11 +34,11 @@ ca: ca.der
server: server.pem server.vrfy
passwords.mk: server.cnf ca.cnf client.cnf
- @echo "PASSWORD_SERVER = '$(shell grep output_password server.cnf | sed 's/.*=//;s/^ *//')'" > $@
- @echo "PASSWORD_CA = '$(shell grep output_password ca.cnf | sed 's/.*=//;s/^ *//')'" >> $@
- @echo "PASSWORD_CLIENT = '$(shell grep output_password client.cnf | sed 's/.*=//;s/^ *//')'" >> $@
- @echo "USER_NAME = '$(shell grep emailAddress client.cnf | grep '@' | sed 's/.*=//;s/^ *//')'" >> $@
- @echo "CA_DEFAULT_DAYS = '$(shell grep default_days ca.cnf | sed 's/.*=//;s/^ *//')'" >> $@
+ echo "PASSWORD_SERVER = '`grep output_password server.cnf | sed 's/.*=//;s/^ *//'`'" > $@
+ echo "PASSWORD_CA = '`grep output_password ca.cnf | sed 's/.*=//;s/^ *//'`'" >> $@
+ echo "PASSWORD_CLIENT = '`grep output_password client.cnf | sed 's/.*=//;s/^ *//'`'" >> $@
+ echo "USER_NAME = '`grep emailAddress client.cnf | grep '@' | sed 's/.*=//;s/^ *//'`'" >> $@
+ echo "CA_DEFAULT_DAYS = '`grep default_days ca.cnf | sed 's/.*=//;s/^ *//'`'" >> $@
######################################################################
#