1
0
forked from ports/opt

openntpd: updated to be consistent with the openssh port

This commit is contained in:
Matt Housh 2005-11-18 19:07:38 +00:00
parent 91632524da
commit e04039d548
3 changed files with 9 additions and 5 deletions

View File

@ -1,2 +1,2 @@
8e083e4914b691860a65619bfeda97e9 ntpd ec25b21c39d0c4e94f1d48229acd9283 ntpd
10ed8eefd760e5819efcf3277b118f47 openntpd-3.7p1.tar.gz 10ed8eefd760e5819efcf3277b118f47 openntpd-3.7p1.tar.gz

View File

@ -1,16 +1,17 @@
# $Id: Pkgfile,v 1.5 2005/11/18 18:54:49 jaeger Exp $
# Description: portable version of openbsd's ntpd implementation # Description: portable version of openbsd's ntpd implementation
# URL: http://www.openntpd.org/ # URL: http://www.openntpd.org/
# Maintainer: Matt Housh, jaeger at morpheus dot net # Maintainer: Matt Housh, jaeger at morpheus dot net
name=openntpd name=openntpd
version=3.7 version=3.7p1
release=1 release=1
source=(ftp://ftp.openbsd.org/pub/OpenBSD/OpenNTPD/$name-${version}p$release.tar.gz \ source=(ftp://ftp.openbsd.org/pub/OpenBSD/OpenNTPD/$name-$version.tar.gz \
ntpd) ntpd)
build() { build() {
install -D -m 0755 ntpd $PKG/etc/rc.d/ntpd install -D -m 0755 ntpd $PKG/etc/rc.d/ntpd
cd $name-${version}p$release cd $name-$version
./configure \ ./configure \
--prefix=/usr \ --prefix=/usr \
--sysconfdir=/etc --sysconfdir=/etc

View File

@ -3,9 +3,12 @@
# /etc/rc.d/ntpd: start/stop ntp daemon # /etc/rc.d/ntpd: start/stop ntp daemon
# #
# comment or clear $NTPD_OPTS to disable initial clock set on startup
NTPD_OPTS="-s"
case $1 in case $1 in
start) start)
/usr/sbin/ntpd -s /usr/sbin/ntpd $NTPD_OPTS
;; ;;
stop) stop)
killall -q /usr/sbin/ntpd killall -q /usr/sbin/ntpd