summaryrefslogtreecommitdiff
path: root/sysutils/service-config
diff options
context:
space:
mode:
authorschmonz <schmonz@pkgsrc.org>2005-03-13 03:25:43 +0000
committerschmonz <schmonz@pkgsrc.org>2005-03-13 03:25:43 +0000
commit21af779684ab743761eeae55e7049899c55a63d8 (patch)
treee13c428ca94c0db7b6e70497630f99e207d41522 /sysutils/service-config
parent123caa2220b7dc3083a857ce8ee74447e7d76f93 (diff)
downloadpkgsrc-21af779684ab743761eeae55e7049899c55a63d8.tar.gz
In packages with djb-style compile scripts, properly enquote ${CC}
and ${CFLAGS}. This fixes the build of net/djbdns, as well as any other of these packages passing down PKG_SYSCONFDIR via CFLAGS, as well as being more generally correct for arbitrary user-defined CFLAGS. Suggested by jlam. For consistency across djbware in pkgsrc: * In math/djbfft's and sysutils/daemontools's do-configure targets, remove leading @ from ${ECHO} lines; from the former, also remove unneeded single quotes from one such line. * Rename net/publicfile's pre-build and sysutils/service-config's post-patch targets to do-configure. * In sysutils/checkpassword's do-configure target, reorder creation of conf-cc, conf-ld, and conf-home. All of the affected packages have been verified to compile. XXX These packages probably have enough build goo in common to XXX warrant an mk/djbware.mk. I'll investigate this post-freeze.
Diffstat (limited to 'sysutils/service-config')
-rw-r--r--sysutils/service-config/Makefile10
1 files changed, 5 insertions, 5 deletions
diff --git a/sysutils/service-config/Makefile b/sysutils/service-config/Makefile
index 5c84d9397be..143e126b70b 100644
--- a/sysutils/service-config/Makefile
+++ b/sysutils/service-config/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.5 2004/12/03 15:15:10 wiz Exp $
+# $NetBSD: Makefile,v 1.6 2005/03/13 03:25:44 schmonz Exp $
#
DISTNAME= service-config-0.51
@@ -19,9 +19,9 @@ RESTRICTED= "Possibly inherited DJB-style license would prohibit distributio
NO_BIN_ON_CDROM=${RESTRICTED}
NO_BIN_ON_FTP= ${RESTRICTED}
-post-patch:
- ${ECHO} "${CC} ${CFLAGS}" > ${WRKSRC}/conf-cc
- ${ECHO} "${CC} ${_STRIPFLAG_CC}" > ${WRKSRC}/conf-ld
- ${ECHO} "${PREFIX}" > ${WRKSRC}/conf-home
+do-configure:
+ ${ECHO} ${CC:Q} ${CFLAGS:Q} > ${WRKSRC}/conf-cc
+ ${ECHO} ${CC:Q} ${_STRIPFLAG_CC} > ${WRKSRC}/conf-ld
+ ${ECHO} ${PREFIX} > ${WRKSRC}/conf-home
.include "../../mk/bsd.pkg.mk"