aboutsummaryrefslogtreecommitdiff
path: root/ports-mgmt
diff options
context:
space:
mode:
authorSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2013-11-06 20:03:31 +0000
committerSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2013-11-06 20:03:31 +0000
commit38e2e32e060a4a62153e6f969281753a98ab2ffd (patch)
tree2ed780f5040f110ed1c6c31263d0aea2cb3a9db2 /ports-mgmt
parentea5e988ef0ff3d23579f05d24c5cbab23d6fae4c (diff)
downloadports-38e2e32e060a4a62153e6f969281753a98ab2ffd.tar.gz
ports-38e2e32e060a4a62153e6f969281753a98ab2ffd.zip
Notes
Diffstat (limited to 'ports-mgmt')
-rw-r--r--ports-mgmt/portconf/Makefile1
-rw-r--r--ports-mgmt/portconf/files/portconf.sh.in1
-rw-r--r--ports-mgmt/portconf/pkg-install6
3 files changed, 6 insertions, 2 deletions
diff --git a/ports-mgmt/portconf/Makefile b/ports-mgmt/portconf/Makefile
index e3b5ce2a593c..a93f8cb89d83 100644
--- a/ports-mgmt/portconf/Makefile
+++ b/ports-mgmt/portconf/Makefile
@@ -3,6 +3,7 @@
PORTNAME= portconf
PORTVERSION= 1.6
+PORTREVISION= 1
CATEGORIES= ports-mgmt
MASTER_SITES= # none
DISTFILES= # none
diff --git a/ports-mgmt/portconf/files/portconf.sh.in b/ports-mgmt/portconf/files/portconf.sh.in
index bce47ff5c650..17bb141dcc17 100644
--- a/ports-mgmt/portconf/files/portconf.sh.in
+++ b/ports-mgmt/portconf/files/portconf.sh.in
@@ -29,6 +29,7 @@
#
_conf=%%PREFIX%%/etc/ports.conf
+echo -n "|"
if [ ! -r "${_conf}" ]; then
exit
fi
diff --git a/ports-mgmt/portconf/pkg-install b/ports-mgmt/portconf/pkg-install
index 8ff3f06e37ef..2c673fdd3800 100644
--- a/ports-mgmt/portconf/pkg-install
+++ b/ports-mgmt/portconf/pkg-install
@@ -10,10 +10,12 @@ cat >> ${MAKE_CONF} << EOF
# Do not touch these lines
.if !empty(.CURDIR:M${PORTS_DIR}*) && exists(${PKG_PREFIX}/libexec/portconf)
_PORTCONF!=${PKG_PREFIX}/libexec/portconf
-.for i in \${_PORTCONF:S/|/ /g}
-\${i:S/%/ /g}
+.if \${_PORTCONF} != "|"
+.for i in \${_PORTCONF:S/^|//:S/|/ /g}
+\${i:C/^([^=]*)=.*/\1/}=\${i:C/^[^=]*=//:S/%/ /g}
.endfor
.endif
+.endif
# End portconf settings
EOF
echo " Done."