blob: 5a7acd82d435f9b7f2132f4599b25ef232741ab5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
# 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
LICENSE= GPLv2 # or later
LICENSE_FILE= ${WRKSRC}/COPYING
USES= gettext
USE_RC_SUBR= upclient
ALL_TARGET= bsd
BUILD_WRKSRC= ${WRKSRC}/src
SUB_FILES= pkg-message
PKGMESSAGE= ${WRKDIR}/pkg-message
REINPLACE_SUB= PREFIX=${PREFIX} LOCALBASE=${LOCALBASE}
DOC_FILES= AUTHORS COPYING FAQ HISTORY INSTALL README TODO
DOC_FILES+= doc/UptimesProtocol5
DOC_FILES+= HISTORY-BETA
OPTIONS_DEFINE= DOCS
post-extract:
@${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}"|g' \
${WRKSRC}/src/Makefile
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/products/upclient \
${STAGEDIR}${PREFIX}/sbin
${INSTALL_MAN} ${WRKSRC}/src/products/upclient.8 \
${STAGEDIR}${MAN8PREFIX}/man/man8
${INSTALL_DATA} -m 640 ${WRKSRC}/src/products/upclient.conf \
${STAGEDIR}${PREFIX}/etc/upclient.conf.sample
${INSTALL_SCRIPT} ${WRKSRC}/scripts/upchk ${WRKSRC}/scripts/clientchk \
${STAGEDIR}${PREFIX}/sbin
@(cd ${WRKSRC}/src; ${MAKE_CMD} destdir=${STAGEDIR} install-locales)
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for file in ${DOC_FILES}
${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${DOCSDIR}
.endfor
.include <bsd.port.mk>
|