View | Details | Raw Unified | Return to bug 116772
Collapse All | Expand All

(-)Makefile (-6 / +2 lines)
Lines 7-13 Link Here
7
7
8
PORTNAME=	openntpd
8
PORTNAME=	openntpd
9
PORTVERSION=	3.9p1
9
PORTVERSION=	3.9p1
10
PORTREVISION=	1
10
PORTREVISION=	2
11
PORTEPOCH=	2
11
PORTEPOCH=	2
12
CATEGORIES=	net
12
CATEGORIES=	net
13
MASTER_SITES=	ftp://ftp.openbsd.org/pub/OpenBSD/OpenNTPD/ \
13
MASTER_SITES=	ftp://ftp.openbsd.org/pub/OpenBSD/OpenNTPD/ \
Lines 17-23 Link Here
17
MAINTAINER=	naddy@FreeBSD.org
17
MAINTAINER=	naddy@FreeBSD.org
18
COMMENT=	OpenBSD's Network Time Protocol daemon
18
COMMENT=	OpenBSD's Network Time Protocol daemon
19
19
20
USE_RC_SUBR=	yes
20
USE_RC_SUBR=	openntpd
21
GNU_CONFIGURE=	yes
21
GNU_CONFIGURE=	yes
22
22
23
MAN5=		ntpd.conf.5
23
MAN5=		ntpd.conf.5
Lines 26-34 Link Here
26
pre-build:
26
pre-build:
27
	${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},g' \
27
	${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},g' \
28
		${WRKSRC}/ntpd.conf.5 ${WRKSRC}/ntpd.8
28
		${WRKSRC}/ntpd.conf.5 ${WRKSRC}/ntpd.8
29
	@${SED} -e 's:%%PREFIX%%:${PREFIX}:g' \
30
		-e 's:%%RC_SUBR%%:${RC_SUBR}:g' \
31
		${FILESDIR}/openntpd.sh >${WRKDIR}/openntpd.sh
32
29
33
do-install:
30
do-install:
34
	@PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
31
	@PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
Lines 37-43 Link Here
37
	${INSTALL_MAN} ${WRKSRC}/ntpd.8 ${PREFIX}/man/man8
34
	${INSTALL_MAN} ${WRKSRC}/ntpd.8 ${PREFIX}/man/man8
38
	@${MKDIR} ${EXAMPLESDIR}
35
	@${MKDIR} ${EXAMPLESDIR}
39
	${INSTALL_DATA} ${WRKSRC}/ntpd.conf ${EXAMPLESDIR}
36
	${INSTALL_DATA} ${WRKSRC}/ntpd.conf ${EXAMPLESDIR}
40
	${INSTALL_SCRIPT} ${WRKDIR}/openntpd.sh ${PREFIX}/etc/rc.d
41
	@if [ ! -f ${PREFIX}/etc/ntpd.conf ]; then \
37
	@if [ ! -f ${PREFIX}/etc/ntpd.conf ]; then \
42
		${CP} -p ${EXAMPLESDIR}/ntpd.conf ${PREFIX}/etc; \
38
		${CP} -p ${EXAMPLESDIR}/ntpd.conf ${PREFIX}/etc; \
43
	fi
39
	fi
(-)pkg-plist (-1 lines)
Lines 1-5 Link Here
1
@comment $FreeBSD: ports/net/openntpd/pkg-plist,v 1.2 2004/08/14 17:06:01 krion Exp $
1
@comment $FreeBSD: ports/net/openntpd/pkg-plist,v 1.2 2004/08/14 17:06:01 krion Exp $
2
etc/rc.d/openntpd.sh
3
sbin/ntpd
2
sbin/ntpd
4
@unexec if cmp -s %D/etc/ntpd.conf %D/%%EXAMPLESDIR%%/ntpd.conf; then rm -f %D/etc/ntpd.conf; fi
3
@unexec if cmp -s %D/etc/ntpd.conf %D/%%EXAMPLESDIR%%/ntpd.conf; then rm -f %D/etc/ntpd.conf; fi
5
%%EXAMPLESDIR%%/ntpd.conf
4
%%EXAMPLESDIR%%/ntpd.conf
(-)files/openntpd.in (+23 lines)
Added Link Here
1
#!/bin/sh
2
#
3
# $FreeBSD: ports/net/openntpd/files/openntpd.sh,v 1.2 2006/02/20 20:47:28 dougb Exp $
4
#
5
6
# PROVIDE: openntpd
7
# REQUIRE: DAEMON
8
# BEFORE:  LOGIN
9
# KEYWORD: nojail
10
11
. %%RC_SUBR%%
12
13
name=openntpd
14
rcvar=`set_rcvar`
15
16
command=%%PREFIX%%/sbin/ntpd
17
required_files=%%PREFIX%%/etc/ntpd.conf
18
19
# set default
20
openntpd_enable=${openntpd_enable:-"NO"}
21
22
load_rc_config $name
23
run_rc_command "$1"
(-)files/openntpd.sh (-23 lines)
Removed Link Here
1
#!/bin/sh
2
#
3
# $FreeBSD: ports/net/openntpd/files/openntpd.sh,v 1.2 2006/02/20 20:47:28 dougb Exp $
4
#
5
6
# PROVIDE: openntpd
7
# REQUIRE: DAEMON
8
# BEFORE:  LOGIN
9
# KEYWORD: nojail
10
11
. %%RC_SUBR%%
12
13
name=openntpd
14
rcvar=`set_rcvar`
15
16
command=%%PREFIX%%/sbin/ntpd
17
required_files=%%PREFIX%%/etc/ntpd.conf
18
19
# set default
20
openntpd_enable=${openntpd_enable:-"NO"}
21
22
load_rc_config $name
23
run_rc_command "$1"

Return to bug 116772