2006-06-09 10:17:35 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
MAKE_CONF=/etc/make.conf
|
2007-06-22 12:41:01 +02:00
|
|
|
PORTS_DIR=`/bin/realpath /usr/ports`
|
2006-06-09 10:17:35 +02:00
|
|
|
|
|
|
|
if [ "$2" = "POST-INSTALL" ]; then
|
|
|
|
echo -n "Spamming ${MAKE_CONF}..."
|
|
|
|
cat >> ${MAKE_CONF} << EOF
|
|
|
|
# Begin portconf settings
|
|
|
|
# Do not touch these lines
|
2007-06-22 12:41:01 +02:00
|
|
|
.if !empty(.CURDIR:M${PORTS_DIR}*) && exists(${PKG_PREFIX}/libexec/portconf)
|
2006-06-09 10:17:35 +02:00
|
|
|
_PORTCONF!=${PKG_PREFIX}/libexec/portconf
|
|
|
|
.for i in \${_PORTCONF:S/|/ /g}
|
|
|
|
\${i:S/%/ /g}
|
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
# End portconf settings
|
|
|
|
EOF
|
|
|
|
echo " Done."
|
|
|
|
fi
|