aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/uptimec/Makefile
blob: fe50275f3f7426b4dc10a0885e384fc3a1c6eed6 (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
# New ports collection makefile for:    uptimec
# Date created:     5 Apr 2004
# Whom:         Radim Kolar
#
# $FreeBSD$
#

PORTNAME=   uptimec
PORTVERSION=    0.2p2
CATEGORIES= sysutils
MASTER_SITES=   http://www.mrEriksson.net/downloads/ \
        ftp://ftp.mrEriksson.net/pub/uptimec/

MAINTAINER= hsn@netmag.cz
COMMENT=    Client for Uptime Project

GNU_CONFIGURE=  yes
CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
USE_GMAKE=  yes
USE_RC_SUBR=    yes

PLIST_FILES=    sbin/uptimec etc/uptimecrc.sample etc/rc.d/uptimec.sh
PORTDOCS=   README COPYING ChangeLog INSTALL protocol.txt

RC_SCRIPTS_SUB= PREFIX=${PREFIX} RC_SUBR=${RC_SUBR}

do-install:
        ${INSTALL_PROGRAM} ${WRKSRC}/uptimec ${PREFIX}/sbin
        ${INSTALL_DATA} ${MASTERDIR}/files/uptimecrc.sample ${PREFIX}/etc
        ${INSTALL_SCRIPT} ${WRKSRC}/uptimec.sh ${PREFIX}/etc/rc.d
.if !defined(NOPORTDOCS)
        ${MKDIR} ${DOCSDIR}
.for i in ${PORTDOCS}
        ${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
.endfor
.endif

post-extract:
    @${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
    ${FILESDIR}/uptimec.sh > ${WRKSRC}/uptimec.sh

post-install:
    @${SED} -e 's,%%LOCALBASE%%,${LOCALBASE},' ${PKGMESSAGE}

.include <bsd.port.mk>