summaryrefslogtreecommitdiff
path: root/net/netsaint-base/Makefile
blob: 0c0fb7ac16f44b1140495c2fd4630b1798f107ee (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
# $NetBSD: Makefile,v 1.12 2002/04/14 10:57:11 rh Exp $
#

DISTNAME=		netsaint-0.0.7
PKGNAME=		${DISTNAME:S/-/-base-/}
PKGREVISION=		1
MASTER_SITES=		http://www.netsaint.org/download/

MAINTAINER=		murray@river-styx.org
HOMEPAGE=		http://www.netsaint.org/
COMMENT=		network monitor

USE_BUILDLINK_ONLY=	# defined

.include "../../net/netsaint-base/Makefile.common"

CONFIGURE_ARGS+=	--with-ping-command='/sbin/ping -n -c %d %s'

INSTALL_TARGET=		install install-config

post-configure:
	${SED} < ${FILESDIR}/netsaint-setup.sh > ${WRKDIR}/netsaint-setup.sh	\
		-e 's:@@USER@@:${NETSAINT_USER}:g'	\
		-e 's:@@GROUP@@:${NETSAINT_GROUP}:g'

post-build:
	cd ${WRKDIR}; uudecode ${FILESDIR}/logofullsize.gif.uu
	cd ${WRKDIR}; uudecode ${FILESDIR}/sblogo.gif.uu

post-install:
	${INSTALL_DATA_DIR} ${PREFIX}/etc/netsaint
	${INSTALL_SCRIPT} ${WRKDIR}/netsaint-setup.sh ${PREFIX}/etc/netsaint
	${INSTALL_DATA} ${WRKDIR}/logofullsize.gif ${PREFIX}/share/netsaint/images
	${INSTALL_DATA} ${WRKDIR}/sblogo.gif ${PREFIX}/share/netsaint/images

.include "../../graphics/gd/buildlink.mk"
.include "../../mk/bsd.pkg.install.mk"
.include "../../mk/bsd.pkg.mk"