summaryrefslogtreecommitdiff
path: root/pkgtools/distfetch/Makefile
blob: c4d61a4c3646a797841a511519e80cdc6ac8e0e0 (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.5 2004/01/20 12:23:57 agc Exp $

DISTNAME=	distfetch-20020930
CATEGORIES=	pkgtools
MASTER_SITES=	# empty
DISTFILES=	# empty

MAINTAINER=	martti@NetBSD.org
HOMEPAGE=	http://www.pkgsrc.org/
COMMENT=	Script to fetch only required distribution files

WRKSRC=		${WRKDIR}
EXTRACT_ONLY=	# defined
NO_CHECKSUM=	# defined
NO_CONFIGURE=	# defined

.include "../../mk/bsd.prefs.mk"

do-build:
.for i in distfetch distfetch.1 distfetch.conf
	${SED} "s+__PREFIX__+${PREFIX}+g" < ${FILESDIR}/${i} > ${WRKSRC}/${i}
.endfor

do-install:
	${INSTALL_SCRIPT} ${WRKSRC}/distfetch ${PREFIX}/bin/distfetch
	${INSTALL_MAN} ${WRKSRC}/distfetch.1 ${PREFIX}/man/man1
	${INSTALL_DATA_DIR} ${PREFIX}/share/examples/distfetch
	${INSTALL_DATA} ${WRKSRC}/distfetch.conf \
		${PREFIX}/share/examples/distfetch/distfetch.conf

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