mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-04 23:19:00 +00:00
6b6ac9438f
package does have BXA export approval, but the licensing strings on the dnssafe code are a bit unpleasant. The crypto is easy to restore and bind will run without it - just without full dnssec support. Obtained from: The Internet Software Consortium (www.isc.org)
40 lines
980 B
Bash
Executable File
40 lines
980 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# this process is necessary because make(1) puts its command line into
|
|
# the environment, and when we exec a sub-make we need these command
|
|
# line settings (like CDEBUG=-g for example) to override what we get out
|
|
# of port/$systype/Makefile.set. therefore feed Makefile.set to this
|
|
# and it will merge things appropriately. a cache file is maintained
|
|
# to avoid calling this script way too often.
|
|
|
|
cachefile=${1-//}
|
|
if [ -f "$cachefile" ]; then
|
|
echo "Using $cachefile" >&2
|
|
exec cat $cachefile
|
|
fi
|
|
|
|
case $cachefile in
|
|
//) ;;
|
|
*) echo "Making $cachefile" >&2 ;;
|
|
esac
|
|
|
|
# expr is sensitive to LC_COLLATE settings. We want 'C'.
|
|
LC_COLLATE=C
|
|
export LC_COLLATE
|
|
|
|
result=''
|
|
while read setting; do
|
|
var=`expr "$setting" : "'\([A-Z0-9_]*\)="`
|
|
val=`expr "$setting" : "'[A-Z0-9_]*=\([^']*\)'\$"`
|
|
eval "env=`echo \\${\$var-'$val'}`"
|
|
result="$result '$var=$env'"
|
|
done
|
|
|
|
case $cachefile in
|
|
//) echo $result ;;
|
|
*) echo $result > $cachefile
|
|
exec cat $cachefile ;;
|
|
esac
|
|
|
|
exit
|