summaryrefslogtreecommitdiff
path: root/misc/bsdstats/Makefile
blob: 4dc79153b1705783e5f6743e481e80248b8326e0 (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
# $NetBSD: Makefile,v 1.2 2012/10/08 09:57:17 asau Exp $
#

DISTNAME=		bsdstats-5.3
CATEGORIES=		sysutils misc
MASTER_SITES=		# http://www.bsdstats.org/downloads/
DISTFILES=		# empty

MAINTAINER=		pkgsrc-users@NetBSD.org
HOMEPAGE=		http://www.bsdstats.org/
COMMENT=		BSD-Stats collector script

DEPENDS+=		netcat-[0-9]*:../../net/netcat

# XXX: Others might work
ONLY_FOR_PLATFORM=	NetBSD-*-* DragonFly-*-* FreeBSD-*-* OpenBSD-*-*

BUILD_DEFS+=		VARBASE

WRKSRC=			${WRKDIR}/bsdstats
NO_BUILD=		yes
INSTALLATION_DIRS=	bin

post-extract:
	${MKDIR} ${WRKDIR}/bsdstats
	${SED} -e "s!@PREFIX@!${PREFIX}!g" ${FILESDIR}/300.statistics \
		> ${WRKSRC}/300.statistics

do-install:
	${INSTALL} ${WRKSRC}/300.statistics ${DESTDIR}${PREFIX}/bin/300.statistics

.include "../../mk/bsd.pkg.mk"