Files
ports/sysutils/debootstrap/Makefile
Edward Tomasz Napierala 19753ff1c0 sysutils/deboostrap: make it use bash, mount fdescfs,
ignore --configure errors

For some reason, when run with stock sh(1) the script aborts just
after 'Unpacking the base system'.

The fdescfs mount fixes 'dpkg --configure' for rsyslog. Note that
there are also some kernel patches required to make it work completely.

The fdescfs is not enough to fix everything, though, so just ignore
'dpkg --configure' errors for Bionic; they don't break anything important.

PR:		ports/247698
Reviewed by:	0mp (earlier version)
Approved by:	maintainer timeout (2 weeks)
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D25594
2020-07-19 12:54:59 +00:00

45 lines
1.0 KiB
Makefile

# Created by: Martin Matuska <mm@FreeBSD.org>
# $FreeBSD$
PORTNAME= debootstrap
PORTVERSION= 1.0.115
PORTREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= DEBIAN/pool/main/d/${PORTNAME}
DISTNAME= ${PORTNAME}_${PORTVERSION}
MAINTAINER= lifanov@FreeBSD.org
COMMENT= Install Debian base system into a directory
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/debian/copyright
RUN_DEPENDS= wget:ftp/wget \
bash:shells/bash
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
NO_BUILD= yes
NO_ARCH= yes
USES= gmake perl5
USE_PERL5= run
ONLY_FOR_ARCHS= i386 amd64
ONLY_FOR_ARCHS_REASON= Debian GNU/kFreeBSD available only for i386 and amd64
post-patch:
@${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},g' \
${WRKSRC}/Makefile \
${WRKSRC}/debootstrap
@${REINPLACE_CMD} -e 's,%%DATADIR%%,${DATADIR},g' \
${WRKSRC}/Makefile \
${WRKSRC}/debootstrap
@${REINPLACE_CMD} -e 's,%%LOCALBASE%%,${LOCALBASE},g' \
${WRKSRC}/Makefile \
${WRKSRC}/debootstrap
post-install:
${INSTALL_MAN} ${WRKSRC}/debootstrap.8 \
${STAGEDIR}${MAN8PREFIX}/man/man8/debootstrap.8
.include <bsd.port.mk>