View | Details | Raw Unified | Return to bug 192458
Collapse All | Expand All

(-)Makefile (-10 / +7 lines)
Lines 2-14 Link Here
2
# $FreeBSD$
2
# $FreeBSD$
3
3
4
PORTNAME=	debootstrap
4
PORTNAME=	debootstrap
5
PORTVERSION=	1.0.53
5
PORTVERSION=	1.0.60
6
CATEGORIES=	sysutils
6
CATEGORIES=	sysutils
7
MASTER_SITES=	${MASTER_SITE_DEBIAN}
7
MASTER_SITES=	${MASTER_SITE_DEBIAN}
8
MASTER_SITE_SUBDIR=	pool/main/d/${PORTNAME}
8
MASTER_SITE_SUBDIR=	pool/main/d/${PORTNAME}
9
DISTNAME=	${PORTNAME}_${PORTVERSION}
9
DISTNAME=	${PORTNAME}_${PORTVERSION}
10
10
11
MAINTAINER=	ports@FreeBSD.org
11
MAINTAINER=	lifanov@mail.lifanov.com
12
COMMENT=	Install Debian base system into a directory
12
COMMENT=	Install Debian base system into a directory
13
13
14
RUN_DEPENDS=	wget:${PORTSDIR}/ftp/wget
14
RUN_DEPENDS=	wget:${PORTSDIR}/ftp/wget
Lines 15-36 Link Here
15
15
16
WRKSRC=		${WRKDIR}/${DISTNAME:S/_/-/}
16
WRKSRC=		${WRKDIR}/${DISTNAME:S/_/-/}
17
NO_BUILD=	yes
17
NO_BUILD=	yes
18
USES=		gmake
18
USES=		gmake tar:xz
19
MAKE_ARGS=	DESTDIR="${PREFIX}"
19
MAKE_ARGS=	DESTDIR="${STAGEDIR}"
20
20
21
MAN8=		debootstrap.8
22
23
ONLY_FOR_ARCHS=	i386 amd64
21
ONLY_FOR_ARCHS=	i386 amd64
24
ONLY_FOR_ARCHS_REASON=	Debian GNU/kFreeBSD available only for i386 and amd64
22
ONLY_FOR_ARCHS_REASON=	Debian GNU/kFreeBSD available only for i386 and amd64
25
23
26
NO_STAGE=	yes
27
post-patch:
24
post-patch:
28
	@${REINPLACE_CMD} -e 's,/usr/share,${PREFIX}/share,g' \
25
	@${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},g' \
26
		${WRKSRC}/Makefile \
29
		${WRKSRC}/debootstrap
27
		${WRKSRC}/debootstrap
30
28
31
post-install:
29
post-install:
32
	@${INSTALL_MAN} ${WRKSRC}/debootstrap.8 \
30
	@${INSTALL_MAN} ${WRKSRC}/debootstrap.8 \
33
		${MAN8PREFIX}/man/man8/debootstrap.8
31
		${STAGEDIR}${PREFIX}/man/man8/debootstrap.8
34
	@${CAT} ${PKGMESSAGE}
35
32
36
.include <bsd.port.mk>
33
.include <bsd.port.mk>
(-)distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (debootstrap_1.0.53.tar.gz) = 26b74baee6909e9ce363891cc355fced6d875ca8c3715e72ff9dfb580c9cc272
1
SHA256 (debootstrap_1.0.60.tar.xz) = 886b140a6801012aba3f502d1f50f5b8e94fc032965400a6c2da19437a75dd4b
2
SIZE (debootstrap_1.0.53.tar.gz) = 59064
2
SIZE (debootstrap_1.0.60.tar.xz) = 49612
(-)files/patch-Makefile (-9 / +7 lines)
Lines 1-26 Link Here
1
--- Makefile.orig	2011-08-15 20:29:37.000000000 +0200
1
--- ./Makefile.orig	2011-08-10 07:59:34.000000000 -0400
2
+++ Makefile	2011-08-25 19:19:09.951348991 +0200
2
+++ ./Makefile	2014-08-06 19:37:57.799160204 -0400
3
@@ -13,17 +13,17 @@
3
@@ -13,17 +13,15 @@
4
 	rm -f devices.tar.gz
4
 	rm -f devices.tar.gz
5
 	rm -rf dev
5
 	rm -rf dev
6
 
6
 
7
-DSDIR=$(DESTDIR)/usr/share/debootstrap
7
-DSDIR=$(DESTDIR)/usr/share/debootstrap
8
+DSDIR=$(PREFIX)/share/debootstrap
8
+DSDIR=$(DESTDIR)%%PREFIX%%/share/debootstrap
9
 install:
9
 install:
10
 	mkdir -p $(DSDIR)/scripts
10
 	mkdir -p $(DSDIR)/scripts
11
-	mkdir -p $(DESTDIR)/usr/sbin
11
-	mkdir -p $(DESTDIR)/usr/sbin
12
+	mkdir -p $(PREFIX)/sbin
12
+	mkdir -p $(DESTDIR)%%PREFIX%%/sbin
13
 
13
 
14
 	cp -a scripts/* $(DSDIR)/scripts/
14
 	cp -a scripts/* $(DSDIR)/scripts/
15
-	install -o root -g root -m 0644 functions $(DSDIR)/
15
-	install -o root -g root -m 0644 functions $(DSDIR)/
16
+	install -o root -g wheel -m 0644 functions $(DSDIR)/
16
+	cp -a functions $(DSDIR)/
17
 
17
 
18
-	sed 's/@VERSION@/$(VERSION)/g' debootstrap >$(DESTDIR)/usr/sbin/debootstrap
18
-	sed 's/@VERSION@/$(VERSION)/g' debootstrap >$(DESTDIR)/usr/sbin/debootstrap
19
-	chown root:root $(DESTDIR)/usr/sbin/debootstrap
19
-	chown root:root $(DESTDIR)/usr/sbin/debootstrap
20
-	chmod 0755 $(DESTDIR)/usr/sbin/debootstrap
20
-	chmod 0755 $(DESTDIR)/usr/sbin/debootstrap
21
+	sed 's/@VERSION@/$(VERSION)/g' debootstrap >$(PREFIX)/sbin/debootstrap
21
+	sed 's/@VERSION@/$(VERSION)/g' debootstrap >$(DESTDIR)%%PREFIX%%/sbin/debootstrap
22
+	chown root:wheel $(PREFIX)/sbin/debootstrap
23
+	chmod 0755 $(PREFIX)/sbin/debootstrap
24
 
22
 
25
 ifeq ($(shell uname),Linux)
23
 ifeq ($(shell uname),Linux)
26
 	install -o root -g root -m 0644 devices.tar.gz $(DSDIR)/
24
 	install -o root -g root -m 0644 devices.tar.gz $(DSDIR)/
(-)files/patch-debootstrap (-3 / +12 lines)
Lines 1-6 Link Here
1
--- debootstrap.orig	2011-08-25 20:19:23.294346076 +0200
1
--- ./debootstrap.orig	2014-02-07 10:25:58.000000000 -0500
2
+++ debootstrap	2011-08-25 20:22:42.850735086 +0200
2
+++ ./debootstrap	2014-08-06 19:34:46.435155899 -0400
3
@@ -419,6 +419,10 @@
3
@@ -13,7 +13,7 @@
4
 	if [ -x /debootstrap/debootstrap ]; then
5
 		DEBOOTSTRAP_DIR=/debootstrap
6
 	else
7
-		DEBOOTSTRAP_DIR=/usr/share/debootstrap
8
+		DEBOOTSTRAP_DIR=%%PREFIX%%/share/debootstrap
9
 	fi
10
 fi
11
 
12
@@ -425,6 +425,10 @@
4
 	esac
13
 	esac
5
 fi
14
 fi
6
 
15
 
(-)pkg-plist (+3 lines)
Lines 1-4 Link Here
1
@mode 0755
1
sbin/debootstrap
2
sbin/debootstrap
3
@mode
4
man/man8/debootstrap.8.gz
2
share/debootstrap/functions
5
share/debootstrap/functions
3
share/debootstrap/scripts/breezy
6
share/debootstrap/scripts/breezy
4
share/debootstrap/scripts/dapper
7
share/debootstrap/scripts/dapper

Return to bug 192458