blob: 519cab341a74a0d51d8a11399a79dc7768084cd2 (
plain) (
blame)
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
39
|
PORTNAME= ntpd-rs
DISTVERSIONPREFIX= v
DISTVERSION= 1.1.2
CATEGORIES= net
MAINTAINER= mikael@FreeBSD.org
COMMENT= Full-featured implementation of the Network Time Protocol
WWW= https://tweedegolf.nl/en/pendulum
LICENSE= APACHE20 MIT
LICENSE_COMB= dual
LICENSE_FILE_APACHE20= ${WRKSRC}/LICENSE-APACHE
LICENSE_FILE_MIT= ${WRKSRC}/LICENSE-MIT
USES= cargo
USE_RC_SUBR= ntp_daemon
USERS= _ntp
GROUPS= _ntp
USE_GITHUB= yes
GH_ACCOUNT= pendulum-project
CARGO_CRATES=
BINFILES= ntp-ctl ntp-daemon ntp-metrics-exporter
post-patch:
@${REINPLACE_CMD} 's|%%ETCDIR%%|${ETCDIR}|' ${WRKSRC}/ntpd/src/daemon/config/mod.rs
do-install:
.for f in ${BINFILES}
${INSTALL_PROGRAM} ${CARGO_TARGET_DIR}/${CARGO_BUILD_TARGET}/*/${f} ${STAGEDIR}${LOCALBASE}/bin
.endfor
${MKDIR} ${STAGEDIR}${ETCDIR}
${INSTALL_DATA} ${WRKSRC}/ntp.server.toml ${STAGEDIR}${ETCDIR}/ntp.server.toml.sample
${INSTALL_DATA} ${WRKSRC}/docs/examples/conf/ntp.toml.default ${STAGEDIR}${ETCDIR}/ntp.toml.sample
.include <bsd.port.mk>
|