summaryrefslogtreecommitdiff
path: root/sysutils/debootstrap/Makefile
blob: 449f9baa1ee03640ea5cef695b7be44eebac0e41 (plain) (blame)
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
# Created by: Martin Matuska <mm@FreeBSD.org>
# $FreeBSD$

PORTNAME=	debootstrap
PORTVERSION=	1.0.53
CATEGORIES=	sysutils
MASTER_SITES=	${MASTER_SITE_DEBIAN}
MASTER_SITE_SUBDIR=	pool/main/d/${PORTNAME}
DISTNAME=	${PORTNAME}_${PORTVERSION}

MAINTAINER=	mm@FreeBSD.org
COMMENT=	Install Debian base system into a directory

RUN_DEPENDS=	wget:${PORTSDIR}/ftp/wget

WRKSRC=		${WRKDIR}/${DISTNAME:S/_/-/}
NO_BUILD=	yes
USE_GMAKE=	yes
MAKE_ARGS=	DESTDIR="${PREFIX}"

MAN8=		debootstrap.8

ONLY_FOR_ARCHS=	i386 amd64
ONLY_FOR_ARCHS_REASON=	Debian GNU/kFreeBSD available only for i386 and amd64

NO_STAGE=	yes
post-patch:
	@${REINPLACE_CMD} -e 's,/usr/share,${PREFIX}/share,g' \
		${WRKSRC}/debootstrap

post-install:
	@${INSTALL_MAN} ${WRKSRC}/debootstrap.8 \
		${MAN8PREFIX}/man/man8/debootstrap.8
	@${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>