0a768dc03d
Approved by: portmgr (fixit blanket)
45 lines
1.1 KiB
Makefile
45 lines
1.1 KiB
Makefile
PORTNAME= debootstrap
|
|
PORTVERSION= 1.0.143
|
|
PORTREVISION= 1
|
|
CATEGORIES= sysutils
|
|
MASTER_SITES= DEBIAN
|
|
DISTNAME= ${PORTNAME}_${PORTVERSION}
|
|
|
|
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= ${LOCALBASE}/share/keyrings/ubuntu-archive-keyring.gpg:security/ubuntu-keyring \
|
|
bash:shells/bash \
|
|
gpgv:security/gnupg \
|
|
gtar:archivers/gtar \
|
|
pcre2grep:devel/pcre2 \
|
|
wget:ftp/wget
|
|
|
|
USES= gmake perl5
|
|
USE_PERL5= run
|
|
|
|
MAKE_ENV= DATADIR="${DATADIR}"
|
|
NO_ARCH= yes
|
|
NO_BUILD= yes
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
|
|
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:
|
|
${FIND} ${STAGEDIR}${DATADIR} -name '*.bak' -delete
|
|
${FIND} ${STAGEDIR}${DATADIR} -name '*.orig' -delete
|
|
${INSTALL_MAN} ${WRKSRC}/debootstrap.8 \
|
|
${STAGEDIR}${PREFIX}/share/man/man8/debootstrap.8
|
|
|
|
.include <bsd.port.mk>
|