freebsd-ports/sysutils/clockspeed/Makefile
Mario Sergio Fujikawa Ferreira 69feeee703 1) Install leapsecs.dat (leapseconds support)
2) Add PKGMESSAGE with additional FreeBSD specific installation
   information
3) Install sample startup script
4) Bump PORTREVISION due to (1)

PR:		27617
Submitted by:	Vivek Khera <khera@kciLink.com>
2001-05-25 14:58:06 +00:00

63 lines
1.8 KiB
Makefile

# New ports collection makefile for: clockspeed
# Date created: 16 June 2000
# Whom: Mario S F Ferreira <lioux@linf.unb.br> et al.
#
# $FreeBSD$
#
PORTNAME= clockspeed
PORTVERSION= 0.62
PORTREVISION= 2
CATEGORIES= sysutils
MASTER_SITES= http://cr.yp.to/clockspeed/ \
ftp://mirror.pipex.net/pub/qmail/ \
ftp://ftp.rifkin.technion.ac.il/pub/qmail/
MAINTAINER= lioux@FreeBSD.org
LIB_DEPENDS= tai.1:${PORTSDIR}/devel/libtai
ALL_TARGET= it
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
CLOCKSPEED_RC_SCRIPT_SAMPLE= ${FILESDIR}/clockspeed.sh.sample
RC_SCRIPT_STARTUP_DIR= ${PREFIX}/etc/rc.d
.include <bsd.port.pre.mk>
post-patch: real-post-patch
do-configure:
@${ECHO} ${CC} ${CFLAGS} > ${WRKSRC}/conf-cc
@${ECHO} ${CC} -s -L${LOCALBASE}/lib > ${WRKSRC}/conf-ld
@${ECHO} ${PREFIX} > ${WRKSRC}/conf-home
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}
@${PERL} -pi -ne "s|%%PREFIX%%|${PREFIX}|g" ${file}
.endfor
real-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
@${INSTALL_DATA} ${PKGMESSAGE} \
${PREFIX}/share/doc/clockspeed/INSTALL-FreeBSD
.endif
@${INSTALL} -d -o ${SHAREOWN} -g ${SHAREGRP} -m 755 \
${PREFIX}/etc/clockspeed
@${INSTALL_DATA} ${WRKSRC}/leapsecs.dat ${PREFIX}/etc/clockspeed
@${INSTALL_SCRIPT} ${WRKDIR}/${CLOCKSPEED_RC_SCRIPT_SAMPLE:T} \
${RC_SCRIPT_STARTUP_DIR}/${CLOCKSPEED_RC_SCRIPT_SAMPLE:T}
@${SED} s!/usr/local/!${PREFIX}/! ${PKGMESSAGE}