Blame
Date:
Sat Aug 1 09:01:52 2020 UTC
Message:
move extended RCODE's out of the RCODE section those are only 0x00 through 0x0F make a section that shows extended RCODE's that are added to a EDNS0 tag.
001
2014-11-14
pjp
#!/bin/sh
002
2014-11-14
pjp
003
2014-11-14
pjp
004
2019-12-11
pjp
VERSION="1.4"
005
2017-01-03
pjp
DD_VERSION="delphinusdnsd-$VERSION"
006
2017-01-03
pjp
DD_VERSION_LEN=`echo -n $DD_VERSION | wc -c`
007
2017-07-11
pjp
NP=0
008
2017-01-03
pjp
009
2016-07-06
pjp
echo "/* ddd-config.h - autogenerated by configure */" > ddd-config.h
010
2016-07-06
pjp
011
2014-11-14
pjp
until [ -z $1 ]
012
2014-11-14
pjp
do
013
2014-11-14
pjp
case $1 in
014
2019-12-11
pjp
--location=*)
015
2019-12-11
pjp
location=`echo $1 | sed -e 's/--location=//g'`
016
2019-12-11
pjp
echo "#define DEFAULT_LOCATION \"$location\"" >> ddd-config.h
017
2019-12-11
pjp
echo "#define DEFAULT_CONFFILE \"${location}/etc/delphinusdns.conf\"" >> ddd-config.h
018
2019-12-11
pjp
echo "#define DEFAULT_RZONE_DIR \"${location}/replicant\"" >> ddd-config.h
019
2019-12-11
pjp
020
2019-12-11
pjp
;;
021
2019-12-19
pjp
--user=*)
022
2019-12-19
pjp
user=`echo $1 | sed -e 's/--user=//g'`
023
2019-12-19
pjp
echo "#define DEFAULT_PRIVILEGE \"$user\"" >> ddd-config.h
024
2019-12-19
pjp
;;
025
2019-12-19
pjp
--without-setproctitle)
026
2019-12-19
pjp
echo "#define NO_SETPROCTITLE 1" >> ddd-config.h
027
2019-12-19
pjp
;;
028
2014-11-14
pjp
*)
029
2019-12-19
pjp
echo "usage: configure [--user=USERNAME] [--without-setproctitle] [--location=LOCATION]"
030
2014-11-14
pjp
exit
031
2014-11-14
pjp
;;
032
2014-11-14
pjp
esac
033
2014-11-14
pjp
shift
034
2014-11-14
pjp
done
035
2014-11-14
pjp
036
2017-01-03
pjp
echo "#define DD_CONVERT_VERSION \"dd-convert $VERSION\"" >> ddd-config.h
037
2017-01-03
pjp
echo "#define DD_VERSION \"$DD_VERSION\"" >> ddd-config.h
038
2017-01-03
pjp
echo "#define DD_VERSION_LEN $DD_VERSION_LEN" >> ddd-config.h
039
2017-01-03
pjp
040
2014-11-14
pjp
openbsd() {
041
2014-11-14
pjp
echo configuring for OpenBSD
042
2014-11-14
pjp
cp Makefile.openbsd Makefile
043
2016-07-06
pjp
cp delphinusdnsd/Makefile.openbsd delphinusdnsd/Makefile
044
2018-02-25
pjp
cp dddctl/Makefile.openbsd dddctl/Makefile
045
2014-11-14
pjp
}
046
2014-11-14
pjp
047
2014-11-14
pjp
netbsd() {
048
2014-11-14
pjp
echo configuring for NetBSD
049
2019-06-12
pjp
if [ ! -d /usr/pkg/libressl ]; then
050
2019-06-12
pjp
echo must install libressl in pkgsrc. 1>&2
051
2019-06-12
pjp
exit 1
052
2019-06-12
pjp
fi
053
2014-11-14
pjp
cp Makefile.netbsd Makefile
054
2017-01-06
pjp
cp delphinusdnsd/Makefile.netbsd delphinusdnsd/Makefile
055
2018-06-23
pjp
cp dddctl/Makefile.netbsd dddctl/Makefile
056
2019-12-19
pjp
057
2019-12-19
pjp
if [ ! -d /usr/local/bin ] ; then
058
2019-12-19
pjp
echo WARN: before installing make sure /usr/local/bin exists!
059
2019-12-19
pjp
fi
060
2019-12-19
pjp
if [ ! -d /usr/local/sbin ] ; then
061
2019-12-19
pjp
echo WARN: before installing make sure /usr/local/sbin exists!
062
2019-12-19
pjp
fi
063
2019-12-19
pjp
if [ ! -d /usr/local/man/man/man8 ] ; then
064
2019-12-19
pjp
echo WARN: before installing make sure /usr/local/man/man/man8 exists!
065
2019-12-19
pjp
fi
066
2019-12-19
pjp
if [ ! -d /usr/local/man/man/man5 ] ; then
067
2019-12-19
pjp
echo WARN: before installing make sure /usr/local/man/man/man5 exists!
068
2019-12-19
pjp
fi
069
2014-11-14
pjp
}
070
2014-11-14
pjp
071
2014-11-14
pjp
freebsd() {
072
2014-11-14
pjp
echo configuring for FreeBSD
073
2014-11-14
pjp
cp Makefile.freebsd Makefile
074
2017-01-05
pjp
cp delphinusdnsd/Makefile.freebsd delphinusdnsd/Makefile
075
2018-06-23
pjp
cp dddctl/Makefile.freebsd dddctl/Makefile
076
2014-11-14
pjp
}
077
2014-11-14
pjp
078
2014-11-14
pjp
linux() {
079
2014-11-14
pjp
echo configuring for Linux
080
2014-11-14
pjp
cp Makefile.linux Makefile
081
2014-11-14
pjp
}
082
2014-11-14
pjp
083
2014-11-14
pjp
darwin() {
084
2017-01-06
pjp
echo unfortunately mac os x has been disabled
085
2014-11-14
pjp
}
086
2014-11-14
pjp
087
2014-11-14
pjp
088
2014-11-14
pjp
case "`uname -s`" in
089
2014-11-14
pjp
Darwin)
090
2014-11-14
pjp
darwin;
091
2014-11-14
pjp
;;
092
2014-11-14
pjp
OpenBSD)
093
2014-11-14
pjp
openbsd;
094
2014-11-14
pjp
;;
095
2014-11-14
pjp
FreeBSD)
096
2014-11-14
pjp
freebsd
097
2014-11-14
pjp
;;
098
2014-11-14
pjp
NetBSD)
099
2014-11-14
pjp
netbsd;
100
2014-11-14
pjp
;;
101
2014-11-14
pjp
Linux)
102
2014-11-14
pjp
linux
103
2014-11-14
pjp
;;
104
2014-11-14
pjp
esac
105
2014-11-14
pjp
106
2014-11-14
pjp
echo done. Type make to make programs.
repomaster@centroid.eu