summaryrefslogtreecommitdiff
path: root/package/openntpd/Makefile
blob: 1e34ae099a73897592c084d9cdd0c1138fe93d38 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.

include ${ADK_TOPDIR}/rules.mk

PKG_NAME:=		openntpd
PKG_VERSION:=		3.9p1
PKG_RELEASE:=		19
PKG_HASH:=		83dd7c1e8ec8b4567afe49af539271b5a73562fb7a3ca51df73eccba89ec8c49
PKG_DESCR:=		ntp server daemon
PKG_SECTION:=		net/ntp
PKG_URL:=		http://www.openntpd.org/
PKG_SITES:=		ftp://ftp.openbsd.org/pub/OpenBSD/OpenNTPD/
PKG_BB:=		1

DISTFILES:=		${PKG_NAME}-${PKG_VERSION}.tar.gz

include ${ADK_TOPDIR}/mk/package.mk

$(eval $(call PKG_template,OPENNTPD,openntpd,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))

INSTALL_STYLE:=		manual

CONFIGURE_ARGS+=	--with-privsep-user=ntp \
			--with-adjtimex

do-install:
	${INSTALL_DIR} ${IDIR_OPENNTPD}/etc
	${INSTALL_DATA} ./files/ntpd.conf ${IDIR_OPENNTPD}/etc/
	${INSTALL_DIR} ${IDIR_OPENNTPD}/usr/sbin/
	${INSTALL_BIN} ${WRKBUILD}/ntpd ${IDIR_OPENNTPD}/usr/sbin/

include ${ADK_TOPDIR}/mk/pkg-bottom.mk