mirror of
https://git.FreeBSD.org/ports.git
synced 2025-02-06 11:41:52 +00:00
98e56d8a63
Approved by: portmgr (blanket)
31 lines
896 B
Makefile
31 lines
896 B
Makefile
PORTNAME= rdate
|
|
PORTVERSION= 20150501
|
|
PORTREVISION= 1
|
|
CATEGORIES= sysutils
|
|
MASTER_SITES= ftp://ftp.stack.nl/pub/users/johans/rdate/ \
|
|
LOCAL/johans
|
|
|
|
MAINTAINER= ports@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 share/man/man8/${PORTNAME}.8.gz
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
post-patch:
|
|
${REINPLACE_CMD} -e 's,/right,,' ${WRKSRC}/rdate.8
|
|
.if ${OPSYS} == DragonFly
|
|
${REINPLACE_CMD} -e '/^SRCS/s/$$/ reallocarray.c/' ${WRKSRC}/Makefile
|
|
${ECHO} 'void *reallocarray(void *optr, size_t nmemb, size_t size);' \
|
|
>> ${WRKSRC}/ntpleaps.h
|
|
${CP} ${FILESDIR}/*.c ${WRKSRC}/
|
|
.endif
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/rdate ${STAGEDIR}${PREFIX}/sbin
|
|
${INSTALL_MAN} ${WRKSRC}/rdate.8 ${STAGEDIR}${PREFIX}/share/man/man8
|
|
|
|
.include <bsd.port.post.mk>
|