Changeset View
Changeset View
Standalone View
Standalone View
head/sysutils/debootstrap/Makefile
# Created by: Martin Matuska <mm@FreeBSD.org> | # Created by: Martin Matuska <mm@FreeBSD.org> | ||||
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= debootstrap | PORTNAME= debootstrap | ||||
PORTVERSION= 1.0.123 | PORTVERSION= 1.0.123 | ||||
PORTREVISION= 3 | PORTREVISION= 4 | ||||
CATEGORIES= sysutils | CATEGORIES= sysutils | ||||
MASTER_SITES= DEBIAN/pool/main/d/${PORTNAME} | MASTER_SITES= DEBIAN | ||||
DISTNAME= ${PORTNAME}_${PORTVERSION} | DISTNAME= ${PORTNAME}_${PORTVERSION} | ||||
MAINTAINER= trasz@FreeBSD.org | MAINTAINER= trasz@FreeBSD.org | ||||
COMMENT= Install Debian or Ubuntu base system into a directory | COMMENT= Install Debian or Ubuntu base system into a directory | ||||
LICENSE= MIT | LICENSE= MIT | ||||
LICENSE_FILE= ${WRKSRC}/debian/copyright | LICENSE_FILE= ${WRKSRC}/debian/copyright | ||||
RUN_DEPENDS= wget:ftp/wget \ | RUN_DEPENDS= wget:ftp/wget \ | ||||
bash:shells/bash | bash:shells/bash \ | ||||
gpgv2:security/gnupg \ | |||||
${LOCALBASE}/share/keyrings/ubuntu-archive-keyring.gpg:security/ubuntu-keyring | |||||
WRKSRC= ${WRKDIR}/${PORTNAME} | WRKSRC= ${WRKDIR}/${PORTNAME} | ||||
NO_BUILD= yes | NO_BUILD= yes | ||||
NO_ARCH= yes | NO_ARCH= yes | ||||
USES= gmake perl5 | USES= gmake perl5 | ||||
USE_PERL5= run | USE_PERL5= run | ||||
post-patch: | post-patch: | ||||
@${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},g' \ | @${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},g' \ | ||||
${WRKSRC}/Makefile \ | ${WRKSRC}/Makefile \ | ||||
${WRKSRC}/debootstrap | ${WRKSRC}/debootstrap | ||||
@${REINPLACE_CMD} -e 's,%%DATADIR%%,${DATADIR},g' \ | @${REINPLACE_CMD} -e 's,%%DATADIR%%,${DATADIR},g' \ | ||||
${WRKSRC}/Makefile \ | ${WRKSRC}/Makefile \ | ||||
${WRKSRC}/debootstrap | ${WRKSRC}/debootstrap | ||||
@${REINPLACE_CMD} -e 's,%%LOCALBASE%%,${LOCALBASE},g' \ | @${REINPLACE_CMD} -e 's,%%LOCALBASE%%,${LOCALBASE},g' \ | ||||
${WRKSRC}/Makefile \ | ${WRKSRC}/Makefile \ | ||||
${WRKSRC}/debootstrap | ${WRKSRC}/debootstrap | ||||
@${REINPLACE_CMD} -e 's,gpgv,gpgv2,g' \ | |||||
${WRKSRC}/Makefile \ | |||||
${WRKSRC}/debootstrap \ | |||||
${WRKSRC}/functions | |||||
@${FIND} ${WRKSRC}/scripts -type f | \ | |||||
${XARGS} ${REINPLACE_CMD} -e 's,/usr/share/keyrings,${LOCALBASE}/share/keyrings,g' | |||||
post-install: | post-install: | ||||
${INSTALL_MAN} ${WRKSRC}/debootstrap.8 \ | ${INSTALL_MAN} ${WRKSRC}/debootstrap.8 \ | ||||
${STAGEDIR}${MAN8PREFIX}/man/man8/debootstrap.8 | ${STAGEDIR}${MAN8PREFIX}/man/man8/debootstrap.8 | ||||
.include <bsd.port.mk> | .include <bsd.port.mk> |