pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/sysutils/webmin If the WEBMIN_OSVERSION_cmd output is ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c29067e892e5
branches:  trunk
changeset: 603777:c29067e892e5
user:      sbd <sbd%pkgsrc.org@localhost>
date:      Sun May 13 08:10:12 2012 +0000

description:
If the WEBMIN_OSVERSION_cmd output is empty then a pair of quotes must be
used so that copyconfig.pl has the correct number of arguments.

diffstat:

 sysutils/webmin/wbm.mk |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r bbf6020a8cd1 -r c29067e892e5 sysutils/webmin/wbm.mk
--- a/sysutils/webmin/wbm.mk    Sun May 13 07:54:43 2012 +0000
+++ b/sysutils/webmin/wbm.mk    Sun May 13 08:10:12 2012 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: wbm.mk,v 1.9 2010/07/11 17:41:01 joerg Exp $
+# $NetBSD: wbm.mk,v 1.10 2012/05/13 08:10:12 sbd Exp $
 #
 # Makefile fragment for Webmin modules
 #
@@ -90,7 +90,7 @@
 wbm-install:
        ${CP} -R ${WBMSRC} ${DESTDIR}${WBM_DIR}/.
        ${PERL5} ${WEBMIN_DIR}/copyconfig.pl                            \
-               ${WEBMIN_OSTYPE_cmd:sh:Q} ${WEBMIN_OSVERSION_cmd:sh:Q}  \
+               ${WEBMIN_OSTYPE_cmd:sh:Q} ${WEBMIN_OSVERSION_cmd:sh:Q:S/^$/''/}\
                ${DESTDIR}${WBM_DIR} ${DESTDIR}${WBM_EGDIR} ${WBM_NAME}
 
 do-configure: wbm-configure



Home | Main Index | Thread Index | Old Index