+* [Bug 2524] Add ntpsweep to sntp/loc/* files.
+* [Bug 2526] Add "noinst" support to the sntp/loc/ framework.
(4.2.7p404) 2013/12/24 Released by Harlan Stenn <stenn@ntp.org>
* [Bug 135] AIX5: "Address already in use" for IPv6 wildcard.
(4.2.7p403) 2013/12/23 Released by Harlan Stenn <stenn@ntp.org>
autogen -L ../../sntp/include -L ../../sntp/ag-tpl \
--writable
-noinst_SCRIPTS = ntpsweep
+bin_SCRIPTS= $(NTPSWEEP_DB)
+sbin_SCRIPTS= $(NTPSWEEP_DS)
+libexec_SCRIPTS= $(NTPSWEEP_DL)
+noinst_SCRIPTS= $(NTPSWEEP_NI)
+EXTRA_SCRIPTS= ntpsweep
+
+if INSTALL_NTPSWEEP
+man_MANS= ntpsweep.$(NTPSWEEP_MS)
+else
+noinst_MANS= ntpsweep.$(NTPSWEEP_MS)
+endif
EXTRA_DIST = \
ntpsweep.in \
html_DATA = ntpsweep.html
CLEANFILES = ntpsweep.1
-DISTCLEANFILES = config.log
+DISTCLEANFILES = config.log $(man_MANS) $(noinst_MANS)
noinst_DATA = \
ntpsweep.1 \
-If you look at the files here you should understand what is being done.
+If you look at the files here you should be able to figure out what is
+being done.
../scripts/genLocInfo handles the parsing of these files.
ntpdsim,sbin,8
ntpq,bin,8
ntpsnmpd,sbin,8
+ntpsweep,noinst,8
ntptime,sbin,8
ntptrace,sbin,8
sntp,bin,8
ntpdsim,sbin,8
ntpq,bin,1
ntpsnmpd,sbin,8
+ntpsweep,bin,1
ntptime,sbin,8
ntptrace,bin,1
sntp,bin,1
ntpq,sbin,8
ntpsnmpd,sbin,8
ntptime,sbin,8
+ntpsweep,noinst,8
ntptrace,sbin,8
sntp,sbin,8
ntpdsim,bin,1
ntpq,bin,1
ntpsnmpd,bin,1
+ntpsweep,noinst,1
ntptime,bin,1
ntptrace,bin,1
sntp,bin,1
ntpdsim,sbin,8
ntpq,sbin,8
ntpsnmpd,sbin,8
+ntpsweep,noinst,8
ntptime,sbin,8
ntptrace,sbin,8
sntp,bin,1
ntpdsim,sbin,8
ntpq,sbin,8
ntpsnmpd,sbin,8
+ntpsweep,noinst,8
ntptime,sbin,8
ntptrace,sbin,8
sntp,sbin,8
ntpdsim,sbin,1m
ntpq,sbin,1m
ntpsnmpd,libexec,1m
+ntpsweep,noinst,1m
ntptime,sbin,1m
ntptrace,sbin,1m
sntp,libexec,1m
dnl @synopsis NTP_LOCINFO([SCRIPTSDIRPATH])
dnl Location information:
dnl - installation directory (*_DB for bin/, *_DL for libexec/, *_DS for sbin/)
+dnl ... or *_NI for noinst_*
dnl - man tag format (man or mdoc)
dnl - man section (1, 1m, 1M, 8)
AC_SUBST([CALC_TICKADJ_DL])
AC_SUBST([CALC_TICKADJ_DS])
AC_SUBST([CALC_TICKADJ_MS])
+AC_SUBST([CALC_TICKADJ_NI])
AC_SUBST([MANTAGFMT])
AC_SUBST([NTPDATE_DB])
AC_SUBST([NTPDATE_DL])
AC_SUBST([NTPDATE_DS])
AC_SUBST([NTPDATE_MS])
+AC_SUBST([NTPDATE_NI])
AC_SUBST([NTPDC_DB])
AC_SUBST([NTPDC_DL])
AC_SUBST([NTPDC_DS])
AC_SUBST([NTPDC_MS])
+AC_SUBST([NTPDC_NI])
AC_SUBST([NTPDSIM_DB])
AC_SUBST([NTPDSIM_DL])
AC_SUBST([NTPDSIM_DS])
AC_SUBST([NTPDSIM_MS])
+AC_SUBST([NTPDSIM_NI])
AC_SUBST([NTPD_DB])
AC_SUBST([NTPD_DL])
AC_SUBST([NTPD_DS])
AC_SUBST([NTPD_MS])
+AC_SUBST([NTPD_NI])
AC_SUBST([NTPQ_DB])
AC_SUBST([NTPQ_DL])
AC_SUBST([NTPQ_DS])
AC_SUBST([NTPQ_MS])
+AC_SUBST([NTPQ_NI])
AC_SUBST([NTPSNMPD_DB])
AC_SUBST([NTPSNMPD_DL])
AC_SUBST([NTPSNMPD_DS])
AC_SUBST([NTPSNMPD_MS])
+AC_SUBST([NTPSNMPD_NI])
+AC_SUBST([NTPSWEEP_DB])
+AC_SUBST([NTPSWEEP_DL])
+AC_SUBST([NTPSWEEP_DS])
+AC_SUBST([NTPSWEEP_MS])
+AC_SUBST([NTPSWEEP_NI])
+AM_CONDITIONAL([INSTALL_NTPSWEEP], [test -z "$NTPSWEEP_NI" ])
AC_SUBST([NTPTIME_DB])
AC_SUBST([NTPTIME_DL])
AC_SUBST([NTPTIME_DS])
AC_SUBST([NTPTIME_MS])
+AC_SUBST([NTPTIME_NI])
AC_SUBST([NTPTRACE_DB])
AC_SUBST([NTPTRACE_DL])
AC_SUBST([NTPTRACE_DS])
AC_SUBST([NTPTRACE_MS])
+AC_SUBST([NTPTRACE_NI])
AC_SUBST([NTP_KEYGEN_DB])
AC_SUBST([NTP_KEYGEN_DL])
AC_SUBST([NTP_KEYGEN_DS])
AC_SUBST([NTP_KEYGEN_MS])
+AC_SUBST([NTP_KEYGEN_NI])
AC_SUBST([NTP_WAIT_DB])
AC_SUBST([NTP_WAIT_DL])
AC_SUBST([NTP_WAIT_DS])
AC_SUBST([NTP_WAIT_MS])
+AC_SUBST([NTP_WAIT_NI])
AC_SUBST([SNTP_DB])
AC_SUBST([SNTP_DL])
AC_SUBST([SNTP_DS])
AC_SUBST([SNTP_MS])
+AC_SUBST([SNTP_NI])
AC_SUBST([TICKADJ_DB])
AC_SUBST([TICKADJ_DL])
AC_SUBST([TICKADJ_DS])
AC_SUBST([TICKADJ_MS])
+AC_SUBST([TICKADJ_NI])
AC_SUBST([TIMETRIM_DB])
AC_SUBST([TIMETRIM_DL])
AC_SUBST([TIMETRIM_DS])
AC_SUBST([TIMETRIM_MS])
+AC_SUBST([TIMETRIM_NI])
])dnl
dnl ======================================================================
esac
case "$c,$d,$s" in
- *,bin,*) DB=bin ; DL= ; DS= ;;
- *,libexec,*) DB= ; DL=libexec ; DS= ;;
- *,sbin,*) DB= ; DL= ; DS=sbin ;;
+ *,bin,*) DB=bin ; DL= ; DS= ; NI= ;;
+ *,libexec,*) DB= ; DL=libexec ; DS= ; NI= ;;
+ *,noinst,*) DB= ; DL= ; DS= ; NI=noinst ;;
+ *,sbin,*) DB= ; DL= ; DS=sbin ; NI= ;;
*) echo "Unrecognized input: <$c,$d,$s>" >&2
touch $sdir/genLocInfo.rc1
continue
eval ${C}_DB=$c
eval ${C}_DL=
eval ${C}_DS=
+ eval ${C}_NI=
;;
libexec)
eval ${C}_DB=
eval ${C}_DL=$c
eval ${C}_DS=
+ eval ${C}_NI=
+ ;;
+ noinst)
+ eval ${C}_DB=
+ eval ${C}_DL=
+ eval ${C}_DS=
+ eval ${C}_NI=$c
;;
sbin)
eval ${C}_DB=
eval ${C}_DL=
eval ${C}_DS=$c
+ eval ${C}_NI=
;;
- *) echo "$0: installdir <$d> must be bin, sbin, or libexec" >&2
+ *) echo "$0: installdir <$d> must be bin, sbin, libexec, or noinst" >&2
exit 1
;;
esac
# echo "${C}_DB is <`eval echo '$'${C}_DB`>" >&2
# echo "${C}_DL is <`eval echo '$'${C}_DL`>" >&2
# echo "${C}_DS is <`eval echo '$'${C}_DS`>" >&2
+ # echo "${C}_NI is <`eval echo '$'${C}_NI`>" >&2
# echo "${C}_MS is <`eval echo '$'${C}_MS`>" >&2
echo "${C}_DB=`eval echo '$'${C}_DB`"
echo "${C}_DL=`eval echo '$'${C}_DL`"
echo "${C}_DS=`eval echo '$'${C}_DS`"
+ echo "${C}_NI=`eval echo '$'${C}_NI`"
echo "${C}_MS=`eval echo '$'${C}_MS`"
touch $sdir/genLocInfo.rc0