1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-26 00:55:14 +00:00

Use GNU versions of tar, md5sum, sha1sum, sha256sum during runtime

PR:		ports/180677
Reported by:	Holger Freyther <holger@freyther.de>
This commit is contained in:
Pawel Pekala 2013-07-22 21:23:02 +00:00
parent 870a17e8f9
commit ea084d38b0
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=323499

View File

@ -3,6 +3,7 @@
PORTNAME= dpkg
PORTVERSION= 1.16.10
PORTREVISION= 1
CATEGORIES= archivers sysutils
MASTER_SITES= ${MASTER_SITE_DEBIAN_POOL}
DISTNAME= dpkg_${PORTVERSION}
@ -13,14 +14,14 @@ COMMENT= Debian package maintenance system
LICENSE= GPLv2
BUILD_DEPENDS= po4a:${PORTSDIR}/textproc/po4a
RUN_DEPENDS= gmd5sum:${PORTSDIR}/sysutils/coreutils \
gpatch:${PORTSDIR}/devel/patch
RUN_DEPENDS= gtar:${PORTSDIR}/archivers/gtar \
gpatch:${PORTSDIR}/devel/patch \
gmd5sum:${PORTSDIR}/sysutils/coreutils
USES= gmake iconv
USE_XZ= yes
GNU_CONFIGURE= yes
USE_PERL5= yes
MAKE_JOBS_SAFE= yes
WRKSRC= ${WRKDIR}/dpkg-${PORTVERSION}
DPKGDIR?= /var/db/dpkg
@ -51,6 +52,10 @@ MANLANG= "" de fr hu ja pl sv
post-patch:
@${REINPLACE_CMD} 's|-t$$host|-t${ARCH}-freebsd|g' \
${WRKSRC}/configure
@${REINPLACE_CMD} '/^#define TAR/ s|tar|g&|' \
${WRKSRC}/lib/dpkg/dpkg.h
@${REINPLACE_CMD} -E 's/(md5|sha1|sha256)sum/g&/g' \
${WRKSRC}/scripts/Dpkg/Checksums.pm
post-install:
${MV} ${PREFIX}/sbin/install-info ${PREFIX}/sbin/dpkg-install-info