aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/rdate/Makefile
blob: 20b098d3181b685d77ebd23dbdf75851ad603334 (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
# Created by: cracauer@cons.org "Martin Cracauer"
# $FreeBSD$

PORTNAME=   rdate
PORTVERSION=    20140220
CATEGORIES= sysutils
MASTER_SITES=   ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= johans

MAINTAINER= johans@FreeBSD.org
COMMENT=    Sets the clock of the local host to the time of another host

CFLAGS+=    -DNO_UTIL -D__dead= -D'SA_LEN(x)=(x)->sa_len'
WRKSRC=     ${WRKDIR}/${PORTNAME}
PLIST_FILES=    sbin/rdate man/man8/${PORTNAME}.8.gz

post-patch:
    ${REINPLACE_CMD} -e 's,/right,,' ${WRKSRC}/rdate.8

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/rdate ${STAGEDIR}${PREFIX}/sbin
    ${INSTALL_MAN} ${WRKSRC}/rdate.8 ${STAGEDIR}${PREFIX}/man/man8

.include <bsd.port.mk>