summaryrefslogtreecommitdiff
path: root/www/drraw/Makefile
blob: c9d4f8e4e626b449f6cc5ceccfc7bf4873e2c04e (plain)
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
# $NetBSD: Makefile,v 1.1.1.1 2005/10/13 11:14:41 kleink Exp $
#

DISTNAME=		drraw-2.1.3
CATEGORIES=		databases graphics www
MASTER_SITES=		http://web.taranis.org/drraw/dist/
EXTRACT_SUFX=		.tgz

MAINTAINER=		kleink@NetBSD.org
HOMEPAGE=		http://web.taranis.org/drraw/
COMMENT=		Simple web based presentation front-end for RRDtool

NO_BUILD=		yes
USE_TOOLS+=		perl:run
USE_PKGINSTALL=		yes

REPLACE_PERL=		drraw.cgi

PKG_SYSCONFSUBDIR?=	drraw
EGDIR=			${PREFIX}/share/examples/${PKGBASE}
DOCDIR=			${PREFIX}/share/doc/${PKGBASE}

DRRAW_CONF_FILES=	drraw.conf

DRRAW_ICONS=		bomb.gif folder.gif folder.open.gif generic.gif \
			link.gif text.gif unknown.gif

DRRAW_DOCS=		CHANGES INSTALL README.EVENTS WISHLIST

CONF_FILES=		${EGDIR}/drraw.conf ${PKG_SYSCONFDIR}/drraw.conf

do-install:
	${INSTALL_SCRIPT_DIR} ${PREFIX}/libexec/cgi-bin
	${INSTALL_SCRIPT} ${WRKSRC}/drraw.cgi ${PREFIX}/libexec/cgi-bin
	${INSTALL_DATA_DIR} ${EGDIR}
.for f in ${DRRAW_CONF_FILES}
	${INSTALL_DATA} ${WRKSRC}/${f} ${EGDIR}/${f}
.endfor
	${INSTALL_DATA_DIR} ${EGDIR}/icons
.for f in ${DRRAW_ICONS}
	${INSTALL_DATA} ${WRKSRC}/icons/${f} ${EGDIR}/icons/${f}
.endfor
	${INSTALL_DATA_DIR} ${DOCDIR}
.for f in ${DRRAW_DOCS}
	${INSTALL_DATA} ${WRKSRC}/${f} ${DOCDIR}/${f}
.endfor

SUBST_CLASSES=		prefix
SUBST_STAGE.prefix=	post-patch
SUBST_FILES.prefix=	drraw.cgi
SUBST_SED.prefix=	-e "s,@PKG_SYSCONFDIR@,${PKG_SYSCONFDIR},g"
SUBST_MESSAGE.prefix=	"Fixing harcoded paths."

.include "../../databases/rrdtool/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"