blob: 2c673fdd38008ddac9f4afb197c519da6c68e3e7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#!/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${PORTS_DIR}*) && exists(${PKG_PREFIX}/libexec/portconf)
_PORTCONF!=${PKG_PREFIX}/libexec/portconf
.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."
fi
|