88 lines
2.1 KiB
Makefile
88 lines
2.1 KiB
Makefile
# Created by: Kelly Yancey <kbyanc@posi.net>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= upclient
|
|
PORTVERSION= 5.0.b8
|
|
PORTREVISION= 6
|
|
CATEGORIES= misc
|
|
MASTER_SITES= http://uptimes.hostingwired.com/files/ \
|
|
SF/${PORTNAME}/UpClient%205%20beta/5.0b8%20Security%20Update
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION:R}${PORTVERSION:E}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Uptimes project client
|
|
|
|
USES= gettext
|
|
USE_RC_SUBR= upclient
|
|
ALL_TARGET= bsd
|
|
BUILD_WRKSRC= ${WRKSRC}/src
|
|
|
|
SUB_FILES= pkg-message
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
|
|
|
MAN8= upclient.8
|
|
|
|
REINPLACE_SUB= PREFIX=${PREFIX} LOCALBASE=${LOCALBASE}
|
|
|
|
DOC_FILES= AUTHORS COPYING FAQ HISTORY INSTALL README TODO
|
|
DOC_FILES+= doc/UptimesProtocol5
|
|
DOC_FILES+= HISTORY-BETA
|
|
|
|
NO_STAGE= yes
|
|
.include <bsd.port.pre.mk>
|
|
|
|
post-extract: rename-doc
|
|
|
|
rename-doc:
|
|
@${MV} ${WRKSRC}/doc/"Uptimes Protocol 5" ${WRKSRC}/doc/UptimesProtocol5
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} ${REINPLACE_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
|
|
${WRKSRC}/scripts/upchk ${WRKSRC}/scripts/clientchk \
|
|
${WRKSRC}/src/Makefile
|
|
${REINPLACE_CMD} -e 's/CC=gcc/CC=${CC}/' ${WRKSRC}/src/Makefile
|
|
|
|
do-install: install-program install-man install-sample install-script \
|
|
install-locale
|
|
|
|
install-program:
|
|
@${INSTALL_PROGRAM} -g kmem -m 2555 ${WRKSRC}/src/products/upclient \
|
|
${PREFIX}/sbin
|
|
|
|
install-man:
|
|
@${INSTALL_MAN} ${WRKSRC}/src/products/upclient.8 \
|
|
${MAN8PREFIX}/man/man8
|
|
|
|
install-sample:
|
|
@${INSTALL_DATA} -g kmem -m 640 ${WRKSRC}/src/products/upclient.conf \
|
|
${PREFIX}/etc/upclient.conf.sample
|
|
|
|
install-script:
|
|
@${INSTALL_SCRIPT} ${WRKSRC}/scripts/upchk ${WRKSRC}/scripts/clientchk \
|
|
${PREFIX}/sbin
|
|
|
|
install-locale:
|
|
@cd ${WRKSRC}/src; ${MAKE} install-locales
|
|
|
|
post-install: install-conf install-doc display-message
|
|
|
|
install-conf:
|
|
.if !exists(${PREFIX}/etc/upclient.conf)
|
|
@${CP} -p ${PREFIX}/etc/upclient.conf.sample \
|
|
${PREFIX}/etc/upclient.conf
|
|
.endif
|
|
|
|
install-doc:
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
@${MKDIR} ${DOCSDIR}
|
|
.for file in ${DOC_FILES}
|
|
@${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
|
|
.endfor
|
|
.endif
|
|
|
|
display-message:
|
|
@${ECHO_MSG}
|
|
@${CAT} ${PKGMESSAGE}
|
|
@${ECHO_MSG}
|
|
|
|
.include <bsd.port.post.mk>
|