2013-05-04 22:12:35 +00:00
|
|
|
# Created by: Diane Bruce <db@db.net>
|
2006-09-19 20:09:27 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= chu
|
|
|
|
PORTVERSION= 0.1.29
|
|
|
|
CATEGORIES= comms hamradio
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SUNSITE} \
|
|
|
|
http://www.rossi.com/chu/
|
|
|
|
MASTER_SITE_SUBDIR= system/admin/time
|
|
|
|
|
2007-01-19 18:14:20 +00:00
|
|
|
MAINTAINER= db@FreeBSD.org
|
2006-09-19 20:09:27 +00:00
|
|
|
COMMENT= Synchronise computer clock to CHU radio station
|
|
|
|
|
2013-12-28 01:10:54 +00:00
|
|
|
LICENSE= GPLv1
|
2006-09-19 20:09:27 +00:00
|
|
|
|
2014-05-31 21:31:52 +00:00
|
|
|
NO_WRKSUBDIR= yes
|
|
|
|
|
2014-05-31 21:43:21 +00:00
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
|
2014-05-31 21:31:52 +00:00
|
|
|
post-extract:
|
2013-12-28 01:10:54 +00:00
|
|
|
@${GZIP_CMD} -d ${WRKSRC}/testsignal.gz
|
2006-09-19 20:09:27 +00:00
|
|
|
|
|
|
|
post-patch:
|
2013-12-28 01:10:54 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|/etc/chu|${PREFIX}/etc/chu|g' ${WRKSRC}/chu.c ${WRKSRC}/chu.8
|
|
|
|
@${REINPLACE_CMD} -e 's|/sbin/chu|${PREFIX}/sbin/chu|g' ${WRKSRC}/chu.8
|
2006-09-19 20:09:27 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|gcc -O2|${CC} ${CFLAGS}|g' ${WRKSRC}/Makefile
|
|
|
|
|
|
|
|
do-install:
|
2013-12-28 01:10:54 +00:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/chu ${STAGEDIR}${PREFIX}/sbin
|
|
|
|
${MKDIR} ${STAGEDIR}${DATADIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/testsignal ${STAGEDIR}${DATADIR}
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/chu.8 ${STAGEDIR}${PREFIX}/man/man8
|
|
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
2014-05-31 21:43:21 +00:00
|
|
|
.for d in COPYING TESTING chu.html chuman.html ntp.html
|
2013-12-28 01:10:54 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${d} ${STAGEDIR}${DOCSDIR}
|
2006-09-19 20:09:27 +00:00
|
|
|
.endfor
|
|
|
|
|
2013-12-28 17:13:30 +00:00
|
|
|
.include <bsd.port.mk>
|