BINOWN = root
BINGRP = wheel
BINMODE = 644

all:

depend:

clean:

sysfiles:
	(cd /; tar cf - usr/src/sys/conf/files usr/src/sys/conf/files.i386 \
	usr/src/sys/conf/majors usr/src/sys/conf/options.i386 \
	usr/src/sys/i386/conf/NTP usr/src/sys/i386/isa/clock.c \
	usr/src/sys/i386/isa/ppsclock.h usr/src/sys/i386/isa/ppsdev.c \
	usr/src/sys/i386/isa/isa_compat.h \
	usr/src/sys/net/checkntp.h usr/src/sys/net/if.c \
	usr/src/sys/netinet/checkntp.c usr/src/sys/netinet/udp_usrreq.c) \
	>sys.tar
	cp /usr/src/sys/compile/NTP/kernel .

install:
	install -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} etc/crontab /etc
	install -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} etc/newsyslog.conf /etc
	-mv /etc/rc.conf /etc/rc.conf.old
	install -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} etc/rc.conf /etc
	install -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} etc/rc.local /etc
	install -c -o ${BINOWN} -g ${BINGRP} -m 600 etc/master.passwd /etc
	install -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} etc/group /etc
	install -c -o ${BINOWN} -g ${BINGRP} -m 555 saveconfig /usr/local/sbin
	install -c -o ${BINOWN} -g ${BINGRP} -m 555 restoreconfig /usr/local/sbin
	pwd_mkdb -p /etc/master.passwd
	-mkdir /home/ntpadmin
	-mkdir /home/ntpadmin/.ssh
	chmod 755 /home/ntpadmin/.ssh
	chown -R ntpadmin.staff /home/ntpadmin
	cat sys.tar | (cd /;tar xf -)
	-mv /kernel /kernel.old
	cp kernel /
	rm -f /dev/ppsd0
	/sbin/mknod /dev/ppsd0 c 200 0
