1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-13 03:03:15 +00:00
freebsd-ports/sysutils/portconf/pkg-install
Alex Dupre ac3065b8aa Update to 1.1 release:
- automatically modify make.conf on install/deinstall

Inspired by:	James O'Gorman <james@netinertia.co.uk>
2006-06-09 08:17:35 +00:00

20 lines
410 B
Bash

#!/bin/sh
MAKE_CONF=/etc/make.conf
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)
_PORTCONF!=${PKG_PREFIX}/libexec/portconf
.for i in \${_PORTCONF:S/|/ /g}
\${i:S/%/ /g}
.endfor
.endif
# End portconf settings
EOF
echo " Done."
fi