aboutsummaryrefslogtreecommitdiff
path: root/ports-mgmt/portconf
diff options
context:
space:
mode:
authorRong-En Fan <rafan@FreeBSD.org>2007-06-22 10:41:01 +0000
committerRong-En Fan <rafan@FreeBSD.org>2007-06-22 10:41:01 +0000
commit5c12abaec6beafdf820a327a5bfa78a3da95f093 (patch)
treec8369c95ce2d7ea2e2e1286290ee2b1d83c32026 /ports-mgmt/portconf
parent6da740584283fa4ed0d976fedccea4c816b3e9a7 (diff)
downloadports-5c12abaec6beafdf820a327a5bfa78a3da95f093.tar.gz
ports-5c12abaec6beafdf820a327a5bfa78a3da95f093.zip
Notes
Diffstat (limited to 'ports-mgmt/portconf')
-rw-r--r--ports-mgmt/portconf/pkg-install3
1 files changed, 2 insertions, 1 deletions
diff --git a/ports-mgmt/portconf/pkg-install b/ports-mgmt/portconf/pkg-install
index 7c3938211b01..8ff3f06e37ef 100644
--- a/ports-mgmt/portconf/pkg-install
+++ b/ports-mgmt/portconf/pkg-install
@@ -1,13 +1,14 @@
#!/bin/sh
MAKE_CONF=/etc/make.conf
+PORTS_DIR=`/bin/realpath /usr/ports`
if [ "$2" = "POST-INSTALL" ]; then
echo -n "Spamming ${MAKE_CONF}..."
cat >> ${MAKE_CONF} << EOF
# Begin portconf settings
# Do not touch these lines
-.if !empty(.CURDIR:M/usr/ports*) && exists(${PKG_PREFIX}/libexec/portconf)
+.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}