d64b1a0b83
ntp 4.2.8p8. Security: CVE-2016-4957, CVE-2016-4953, CVE-2016-4954 Security: CVE-2016-4955, CVE-2016-4956 Security: FreeBSD-SA-16:24.ntp With hat: so
45 lines
594 B
Bash
Executable File
45 lines
594 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
PROG=${1-UNKNOWN}
|
|
|
|
ConfStr="$PROG"
|
|
|
|
ConfStr="$ConfStr 4.2.8p8"
|
|
|
|
case "$CSET" in
|
|
'') ;;
|
|
*) ConfStr="$ConfStr@$CSET" ;;
|
|
esac
|
|
|
|
case "" in
|
|
'')
|
|
case "1" in
|
|
'') ;;
|
|
*) ConfStr="${ConfStr}-a" ;;
|
|
esac
|
|
;;
|
|
*) ConfStr="${ConfStr}-r" ;;
|
|
esac
|
|
|
|
if [ ! -f .version ]; then
|
|
echo 0 > .version
|
|
fi
|
|
RUN="`cat .version`"
|
|
RUN="`expr $RUN + 1`"
|
|
echo $RUN > .version
|
|
|
|
ConfStr="$ConfStr (${RUN})"
|
|
|
|
echo "Version <${ConfStr}>";
|
|
|
|
rm -f version.c
|
|
cat > version.c << -EoF-
|
|
/*
|
|
* version file for $PROG
|
|
*/
|
|
#include <config.h>
|
|
const char * Version = "${ConfStr}";
|
|
-EoF-
|