aboutsummaryrefslogtreecommitdiff
path: root/sysutils/clockspeed
diff options
context:
space:
mode:
authorRong-En Fan <rafan@FreeBSD.org>2007-03-22 17:02:34 +0000
committerRong-En Fan <rafan@FreeBSD.org>2007-03-22 17:02:34 +0000
commit4e0e6abc81d5e0d0c878ebc24517e20334011519 (patch)
treedd9b675a2760b720c79446ed0d5f525d83a47850 /sysutils/clockspeed
parent5168cdcc4700537e8cf9190abacc399e88d07c3b (diff)
downloadports-4e0e6abc81d5e0d0c878ebc24517e20334011519.tar.gz
ports-4e0e6abc81d5e0d0c878ebc24517e20334011519.zip
Notes
Diffstat (limited to 'sysutils/clockspeed')
-rw-r--r--sysutils/clockspeed/Makefile30
-rw-r--r--sysutils/clockspeed/pkg-plist6
2 files changed, 16 insertions, 20 deletions
diff --git a/sysutils/clockspeed/Makefile b/sysutils/clockspeed/Makefile
index 8ff365856119..36a48702ea07 100644
--- a/sysutils/clockspeed/Makefile
+++ b/sysutils/clockspeed/Makefile
@@ -23,7 +23,7 @@ INSTALL_TARGET= setup check
MAN1= clockadd.1 clockspeed.1 clockview.1 sntpclock.1 \
taiclock.1 taiclockd.1
-PREFIX_FIX_FILES= ${WRKSRC}/leapsecs_read.c ${WRKSRC}/INSTALL
+PREFIX_FIX_FILES= leapsecs_read.c INSTALL
CLOCKSPEED_RC_SCRIPT_SAMPLE= ${FILESDIR}/clockspeed.sh.sample
RC_SCRIPT_STARTUP_DIR= ${PREFIX}/etc/rc.d
@@ -37,7 +37,12 @@ post-extract:
@${ECHO} hasclock_gettime.h >> ${WRKSRC}/${file}
.endfor
-post-patch: real-post-patch
+post-patch:
+ @${SED} "s!/usr/local/!${PREFIX}!" ${CLOCKSPEED_RC_SCRIPT_SAMPLE} > \
+ ${WRKDIR}/${CLOCKSPEED_RC_SCRIPT_SAMPLE:T}
+.for file in ${PREFIX_FIX_FILES}
+ @${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/${file}
+.endfor
do-configure:
@${ECHO_CMD} ${CC} ${CFLAGS} > ${WRKSRC}/conf-cc
@@ -47,24 +52,13 @@ do-configure:
post-build:
@${CP} ${LOCALBASE}/etc/leapsecs.dat ${WRKSRC}/leapsecs.dat
-post-install: real-post-install
-
-.include <bsd.port.post.mk>
-
-real-post-patch:
- @${SED} "s!/usr/local/!${PREFIX}!" ${CLOCKSPEED_RC_SCRIPT_SAMPLE} > \
- ${WRKDIR}/${CLOCKSPEED_RC_SCRIPT_SAMPLE:T}
-.for file in ${PREFIX_FIX_FILES}
- @${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g" ${file}
-.endfor
-
-real-post-install:
+post-install:
.if !defined(NOPORTDOCS)
@${INSTALL} -d -o ${SHAREOWN} -g ${SHAREGRP} -m 755 \
- ${PREFIX}/share/doc/clockspeed
- @${INSTALL_DATA} ${WRKSRC}/INSTALL ${PREFIX}/share/doc/clockspeed
+ ${DOCSDIR}
+ @${INSTALL_DATA} ${WRKSRC}/INSTALL ${DOCSDIR}
@${INSTALL_DATA} ${PKGMESSAGE} \
- ${PREFIX}/share/doc/clockspeed/INSTALL-FreeBSD
+ ${DOCSDIR}/INSTALL-FreeBSD
.endif
@${INSTALL} -d -o ${SHAREOWN} -g ${SHAREGRP} -m 755 \
${PREFIX}/etc/clockspeed
@@ -72,3 +66,5 @@ real-post-install:
@${INSTALL_SCRIPT} ${WRKDIR}/${CLOCKSPEED_RC_SCRIPT_SAMPLE:T} \
${RC_SCRIPT_STARTUP_DIR}/${CLOCKSPEED_RC_SCRIPT_SAMPLE:T}
@${SED} s!/usr/local/!${PREFIX}/! ${PKGMESSAGE}
+
+.include <bsd.port.post.mk>
diff --git a/sysutils/clockspeed/pkg-plist b/sysutils/clockspeed/pkg-plist
index 75ff0637ee1f..0410d07b552c 100644
--- a/sysutils/clockspeed/pkg-plist
+++ b/sysutils/clockspeed/pkg-plist
@@ -4,9 +4,9 @@ bin/clockview
bin/sntpclock
bin/taiclock
bin/taiclockd
-%%PORTDOCS%%share/doc/clockspeed/INSTALL
-%%PORTDOCS%%share/doc/clockspeed/INSTALL-FreeBSD
-%%PORTDOCS%%@dirrm share/doc/clockspeed
+%%PORTDOCS%%%%DOCSDIR%%/INSTALL
+%%PORTDOCS%%%%DOCSDIR%%/INSTALL-FreeBSD
+%%PORTDOCS%%@dirrm %%DOCSDIR%%
@mode 0755
@exec mkdir %D/etc/clockspeed
etc/clockspeed/leapsecs.dat