pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/sysutils/hal Add a HAL_DEVELOPER knob where if enabled...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b682c55de6f9
branches:  trunk
changeset: 550667:b682c55de6f9
user:      jmcneill <jmcneill%pkgsrc.org@localhost>
date:      Tue Nov 25 23:40:59 2008 +0000

description:
Add a HAL_DEVELOPER knob where if enabled, creates a symlink to the NetBSD
hal backend sources instead of copying from FILESDIR (HAL_DEVELOPER=yes).
Defaults to no.

diffstat:

 sysutils/hal/Makefile |  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (30 lines):

diff -r cf01dc3ca253 -r b682c55de6f9 sysutils/hal/Makefile
--- a/sysutils/hal/Makefile     Tue Nov 25 23:11:17 2008 +0000
+++ b/sysutils/hal/Makefile     Tue Nov 25 23:40:59 2008 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.5 2008/11/25 23:10:23 jmcneill Exp $
+# $NetBSD: Makefile,v 1.6 2008/11/25 23:40:59 jmcneill Exp $
 #
 
 DISTNAME=              hal-0.5.11
@@ -13,6 +13,8 @@
 
 BUILD_DEFS+=           VARBASE
 
+HAL_DEVELOPER?=                no
+
 HAL_USER?=             haldaemon
 HAL_GROUP?=            haldaemon
 
@@ -72,7 +74,11 @@
 FILES_SUBST+=          HAL_GROUP=${HAL_GROUP}
 
 post-extract:
+.if !empty(HAL_DEVELOPER:Myes)
+       ${LN} -sf ${FILESDIR}/hald-netbsd ${WRKSRC}/hald/netbsd
+.else
        ${CP} -r ${FILESDIR}/hald-netbsd ${WRKSRC}/hald/netbsd
+.endif
 
 pre-configure:
        cd ${WRKSRC} && autoreconf -vi



Home | Main Index | Thread Index | Old Index