summaryrefslogtreecommitdiff
path: root/net/openntpd
diff options
context:
space:
mode:
authorxtraeme <xtraeme@pkgsrc.org>2004-07-19 19:17:25 +0000
committerxtraeme <xtraeme@pkgsrc.org>2004-07-19 19:17:25 +0000
commit31fc36be34f3ba321a3b70d9d8e3eb34c67793c8 (patch)
tree00218654997d0c7eeb7a4aac82d2153d84216bc5 /net/openntpd
parentbaaf207d2b3625ea4dfd1227fd42136e3c56b6dd (diff)
downloadpkgsrc-31fc36be34f3ba321a3b70d9d8e3eb34c67793c8.tar.gz
Initial import of openntpd-20040719p from pkgsrc-wip, contributed by
Peter Postma. OpenNTPd is a free implementation of the Network Time Protocol. It provides the ability to sync the local clock to remote NTP servers and can act as NTP server itself, redistributing the local clock. OpenNTPd is primarily developed by Henning Brauer and Alexander Guy as part of the OpenBSD Project. The portable version is made by Darren Tucker. The software and is freely useable and re-useable by everyone under a BSD license.
Diffstat (limited to 'net/openntpd')
-rw-r--r--net/openntpd/DESCR8
-rw-r--r--net/openntpd/Makefile33
-rw-r--r--net/openntpd/PLIST6
-rw-r--r--net/openntpd/distinfo4
-rw-r--r--net/openntpd/files/openntpd.sh18
5 files changed, 69 insertions, 0 deletions
diff --git a/net/openntpd/DESCR b/net/openntpd/DESCR
new file mode 100644
index 00000000000..3988ae168b7
--- /dev/null
+++ b/net/openntpd/DESCR
@@ -0,0 +1,8 @@
+OpenNTPd is a free implementation of the Network Time Protocol.
+It provides the ability to sync the local clock to remote NTP servers and
+can act as NTP server itself, redistributing the local clock.
+
+OpenNTPd is primarily developed by Henning Brauer and Alexander Guy as part
+of the OpenBSD Project. The portable version is made by Darren Tucker.
+The software and is freely useable and re-useable by everyone under a BSD
+license.
diff --git a/net/openntpd/Makefile b/net/openntpd/Makefile
new file mode 100644
index 00000000000..38abceb25b2
--- /dev/null
+++ b/net/openntpd/Makefile
@@ -0,0 +1,33 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/07/19 19:17:25 xtraeme Exp $
+
+DISTNAME= openntpd-20040719p
+CATEGORIES= net
+MASTER_SITES= http://www.openntpd.org/dist/portable/
+
+MAINTAINER= peter@pointless.nl
+HOMEPAGE= http://www.openntpd.org/
+COMMENT= Free implementation of the Network Time Protocol
+
+USE_BUILDLINK3= yes
+USE_PKGINSTALL= yes
+GNU_CONFIGURE= yes
+
+EGDIR= ${PREFIX}/share/examples/openntpd
+CONF_FILES= ${EGDIR}/ntpd.conf ${PKG_SYSCONFDIR}/ntpd.conf
+
+RCD_SCRIPTS= openntpd
+PKG_USERS= _ntp:nogroup::ntpd\\ pseudo-user:${VARBASE}/chroot/ntpd:/sbin/nologin
+
+OWN_DIRS= ${VARBASE}/chroot/ntpd
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/ntpd ${PREFIX}/sbin/ntpd
+ ${INSTALL_MAN} ${WRKSRC}/ntpd.8 ${PREFIX}/man/man8/ntpd.8
+ ${INSTALL_MAN} ${WRKSRC}/ntpd.conf.5 ${PREFIX}/man/man5/ntpd.conf.5
+
+post-install:
+ @${INSTALL_DATA_DIR} ${EGDIR}
+ ${INSTALL_DATA} ${WRKSRC}/ntpd.conf ${EGDIR}/ntpd.conf
+
+.include "../../security/openssl/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/net/openntpd/PLIST b/net/openntpd/PLIST
new file mode 100644
index 00000000000..5727155ecb7
--- /dev/null
+++ b/net/openntpd/PLIST
@@ -0,0 +1,6 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2004/07/19 19:17:25 xtraeme Exp $
+man/man5/ntpd.conf.5
+man/man8/ntpd.8
+sbin/ntpd
+share/examples/openntpd/ntpd.conf
+@dirrm share/examples/openntpd
diff --git a/net/openntpd/distinfo b/net/openntpd/distinfo
new file mode 100644
index 00000000000..611598182c7
--- /dev/null
+++ b/net/openntpd/distinfo
@@ -0,0 +1,4 @@
+$NetBSD: distinfo,v 1.1.1.1 2004/07/19 19:17:25 xtraeme Exp $
+
+SHA1 (openntpd-20040719p.tar.gz) = 818bb0da6de374c69ec1e909079427f12b332dba
+Size (openntpd-20040719p.tar.gz) = 105460 bytes
diff --git a/net/openntpd/files/openntpd.sh b/net/openntpd/files/openntpd.sh
new file mode 100644
index 00000000000..b847329b260
--- /dev/null
+++ b/net/openntpd/files/openntpd.sh
@@ -0,0 +1,18 @@
+#!@RCD_SCRIPTS_SHELL@
+#
+# $NetBSD: openntpd.sh,v 1.1.1.1 2004/07/19 19:17:25 xtraeme Exp $
+#
+
+# PROVIDE: openntpd
+# REQUIRE: DAEMON
+# BEFORE: LOGIN
+
+. /etc/rc.subr
+
+name="ntpd"
+rcvar="openntpd"
+command="@PREFIX@/sbin/${name}"
+required_files="@PKG_SYSCONFDIR@/ntpd.conf"
+
+load_rc_config $name
+run_rc_command "$1"