blob: e467435628f91c1accd8859b0c33fc3aa265a455 (
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
|
# New ports collection makefile for: upclient
# Date created: 20 Aug 1999
# Whom: Kelly Yancey <kbyanc@posi.net>
#
# $FreeBSD$
#
PORTNAME= upclient
PORTVERSION= 5.0.b8
CATEGORIES= misc
MASTER_SITES= http://uptimes.wonko.com/files/
DISTNAME= ${PORTNAME}-${PORTVERSION:R}${PORTVERSION:E}
MAINTAINER= cyrille.lefevre@laposte.net
COMMENT= The Uptimes project client
# Global variables
#
LIB_DEPENDS= intl.4:${PORTSDIR}/devel/gettext
USE_REINPLACE= yes
ALL_TARGET= bsd
BUILD_WRKSRC= ${WRKSRC}/src
MSG_FILE= ${PKGDIR}/pkg-message
PKGMESSAGE= ${WRKDIR}/pkg-message
MAN8= upclient.8
# Local variables
#
DOC_FILES= AUTHORS COPYING FAQ HISTORY INSTALL README TODO
DOC_FILES+= doc/UptimesProtocol5
DOC_FILES+= HISTORY-BETA
.include <bsd.port.pre.mk>
# Post-patch
#
post-patch: patch-prefix patch-pkgmessage
patch-prefix:
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' \
-e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
${WRKSRC}/scripts/upchk ${WRKSRC}/scripts/clientchk \
${WRKSRC}/src/Makefile
patch-pkgmessage:
@${SED} 's|%%PREFIX%%|${PREFIX}|g' ${MSG_FILE} > ${PKGMESSAGE}
# Install
#
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
#
post-install: install-conf install-startup 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-startup:
@${INSTALL_SCRIPT} ${FILESDIR}/upclient.sh \
${PREFIX}/etc/rc.d/upclient.sh
install-doc:
.if !defined(NOPORTDOCS)
@${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>
|