blob: 331caf5869d603f4676df3089a264356fb37e6c0 (
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
37
38
39
40
41
42
43
44
45
46
47
|
PORTNAME= debootstrap
PORTVERSION= ${DEB_VERSION}n${DEB_NMU}
PORTREVISION= 4
CATEGORIES= sysutils
MASTER_SITES= DEBIAN
DISTNAME= ${PORTNAME}_${DEB_VERSION}+nmu${DEB_NMU}
MAINTAINER= nc@FreeBSD.org
COMMENT= Install Debian or Ubuntu base system into a directory
WWW= https://wiki.debian.org/Debootstrap
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/debian/copyright
RUN_DEPENDS= wget:ftp/wget \
bash:shells/bash \
pcregrep:devel/pcre \
gpgv2:security/gnupg \
gtar:archivers/gtar \
${LOCALBASE}/share/keyrings/ubuntu-archive-keyring.gpg:security/ubuntu-keyring
USES= gmake perl5
USE_PERL5= run
MAKE_ENV= DATADIR="${DATADIR}"
NO_ARCH= yes
NO_BUILD= yes
WRKSRC= ${WRKDIR}/${PORTNAME}
# The +nmu suffix used by debian for "non maintainer uploads" of a Debian
# native package doesn't play well with our versioning
DEB_VERSION= 1.0.128
DEB_NMU= 2
post-patch:
@${REINPLACE_CMD} \
-e 's,%%DATADIR%%,${DATADIR},g' \
-e 's,%%LOCALBASE%%,${LOCALBASE},g' \
${WRKSRC}/debootstrap
@${FIND} ${WRKSRC}/scripts -type f | \
${XARGS} ${REINPLACE_CMD} -e 's,/usr/share/keyrings,${LOCALBASE}/share/keyrings,g'
post-install:
${INSTALL_MAN} ${WRKSRC}/debootstrap.8 \
${STAGEDIR}${PREFIX}/share/man/man8/debootstrap.8
.include <bsd.port.mk>
|