summaryrefslogtreecommitdiff
path: root/net/dhid/Makefile
blob: 1a3ad1dac5f2644fc24980f94a4b4fae41fed3cc (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 1999/07/20 06:32:05 jlam Exp $
#

DISTNAME=	dhid-3.0
CATEGORIES=	net
MASTER_SITES=	ftp://ftp.dhis.org/pub/dhis/

MAINTAINER=	jlam@netbsd.org
HOMEPAGE=	http://www.dhis.org/sp/

ALL_TARGET=	dhid

pre-patch:
	${MV} -f ${WRKSRC}/dtool ${WRKSRC}/dtool.in

do-configure:
	${SED} -e "s,@PREFIX@,${PREFIX},g" ${WRKSRC}/dtool.in >${WRKSRC}/dtool
	${SED} -e "s,@PREFIX@,${PREFIX},g" -e "s,@ECHO@,${ECHO},g" \
		${FILESDIR}/dhid.sh.sample >${WRKDIR}/dhid.sh.sample

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/dhid ${PREFIX}/libexec
	${INSTALL_SCRIPT} ${WRKSRC}/dtool ${PREFIX}/sbin
	${INSTALL_DATA} ${WRKSRC}/dtool.1 ${PREFIX}/man/man1
	${INSTALL_DATA} ${WRKSRC}/dhid.8 ${PREFIX}/man/man8
	${INSTALL_SCRIPT} ${WRKDIR}/dhid.sh.sample ${PREFIX}/etc/rc.d
	${INSTALL_DATA} ${WRKSRC}/dhid.conf ${PREFIX}/share/examples
	${INSTALL_DATA_DIR} ${PREFIX}/share/doc/dhid
	${INSTALL_DATA} ${WRKSRC}/COPYRIGHT ${PREFIX}/share/doc/dhid
	${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/dhid

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