summaryrefslogtreecommitdiff
path: root/net/openntpd/Makefile
blob: 1266524c6147cadfda5b67ca0e92c60664e4cda6 (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
34
35
36
37
38
# $NetBSD: Makefile,v 1.2 2004/07/23 19:58:42 xtraeme Exp $

DISTNAME=		openntpd-20040719p
PKGREVISION=		1
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

PKG_INSTALLATYON_TYPES=	overwrite pkgviews

CONFLICTS+=		ntp-[0-9]*

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"