pkgsrc/devel/patch/Makefile
leot 4d96fe769a patch: Backport patches for several security fixes
pkgsrc changes:
 - Remove custom and no longer needed do-patch target, it was fixed upstream
 - Minor cosmetic improvements pointed out by pkglint

Changes:
 - Backport patches for CVE-2018-6951, CVE-2018-6952 and CVE-2018-1000156

Patch provided by Attila Fülöp via NetBSD/pkgsrc#33, thanks!

Bump PKGREVISION
2018-10-18 19:26:16 +00:00

31 lines
812 B
Makefile

# $NetBSD: Makefile,v 1.45 2018/10/18 19:26:16 leot Exp $
DISTNAME= patch-2.7.6
PKGREVISION= 1
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_GNU:=patch/}
EXTRACT_SUFX= .tar.xz
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.gnu.org/software/patch/patch.html
COMMENT= Patch files using diff output
LICENSE= gnu-gpl-v3
GNU_CONFIGURE= yes
USE_TOOLS+= awk
.include "../../mk/bsd.prefs.mk"
CONFIGURE_ARGS+= --program-prefix=g
CONFIGURE_ENV+= ac_cv_func_setmode_dos=no # Fix for Interix (and old bsd?)
INSTALLATION_DIRS= ${PKGGNUDIR}bin ${PKGGNUDIR}${PKGMANDIR}/man1
SYMLINKS= bin/gpatch ${PKGGNUDIR}bin/patch \
man/man1/gpatch.1 ${PKGGNUDIR}${PKGMANDIR}/man1/patch.1
post-install:
.for o n in ${SYMLINKS}
${LN} -sf ${PREFIX}/${o} ${DESTDIR}${PREFIX}/${n}
.endfor
.include "../../mk/bsd.pkg.mk"