aboutsummaryrefslogtreecommitdiff
path: root/comms/chu
diff options
context:
space:
mode:
authorDiane Bruce <db@FreeBSD.org>2013-12-28 01:10:54 +0000
committerDiane Bruce <db@FreeBSD.org>2013-12-28 01:10:54 +0000
commit900a70dd929a270c25a9d238d4aa9afc06be40e1 (patch)
treee73e493f6c0a74a8c96e2f403a8cc480082f3eb1 /comms/chu
parent69552fec7e2d11ef549d79eda6bf08c517b9edf3 (diff)
downloadports-900a70dd929a270c25a9d238d4aa9afc06be40e1.tar.gz
ports-900a70dd929a270c25a9d238d4aa9afc06be40e1.zip
Notes
Diffstat (limited to 'comms/chu')
-rw-r--r--comms/chu/Makefile30
-rw-r--r--comms/chu/pkg-plist1
2 files changed, 13 insertions, 18 deletions
diff --git a/comms/chu/Makefile b/comms/chu/Makefile
index 529d07accca1..3e511e8c97ed 100644
--- a/comms/chu/Makefile
+++ b/comms/chu/Makefile
@@ -11,10 +11,9 @@ MASTER_SITE_SUBDIR= system/admin/time
MAINTAINER= db@FreeBSD.org
COMMENT= Synchronise computer clock to CHU radio station
-MAN8= chu.8
+LICENSE= GPLv1
-NO_STAGE= yes
-.include <bsd.port.options.mk>
+.include <bsd.port.pre.mk>
do-extract:
@${RM} -rf ${WRKDIR}
@@ -26,30 +25,25 @@ do-extract:
exit 1; \
fi \
done
- ${GZIP_CMD} -d ${WRKSRC}/testsignal.gz
+ @${GZIP_CMD} -d ${WRKSRC}/testsignal.gz
post-patch:
- ${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
+ @${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
@${REINPLACE_CMD} -e 's|gcc -O2|${CC} ${CFLAGS}|g' ${WRKSRC}/Makefile
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/chu ${PREFIX}/sbin
- ${MKDIR} ${DATADIR}
- ${INSTALL_DATA} ${WRKSRC}/testsignal ${DATADIR}
- ${INSTALL_MAN} ${WRKSRC}/chu.8 ${PREFIX}/man/man8
-.if ${PORT_OPTIONS:MDOCS}
- ${MKDIR} ${DOCSDIR}
+ ${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}
.for d in ${WRKSRC}/COPYING \
${WRKSRC}/TESTING \
${WRKSRC}/chu.html \
${WRKSRC}/chuman.html \
${WRKSRC}/ntp.html
- ${INSTALL_DATA} ${WRKSRC}/${d} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/${d} ${STAGEDIR}${DOCSDIR}
.endfor
- @${ECHO} ""
- @${ECHO} "chu docs installed in ${DOCSDIR}"
- @${ECHO} ""
-.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/comms/chu/pkg-plist b/comms/chu/pkg-plist
index a1a5a34257b6..338245245bdd 100644
--- a/comms/chu/pkg-plist
+++ b/comms/chu/pkg-plist
@@ -5,5 +5,6 @@ sbin/chu
%%PORTDOCS%%%%DOCSDIR%%/chuman.html
%%PORTDOCS%%%%DOCSDIR%%/ntp.html
%%PORTDOCS%%%%DOCSDIR%%/TESTING
+man/man8/chu.8.gz
@dirrm %%DATADIR%%
%%PORTDOCS%%@dirrm %%DOCSDIR%%