patch: Fix CVE-2018-6952 and CVE-2018-1000156

Patches taken from official git repository.

Added PKG_CPE_ID for proper CVE tracking.

Added PKG_BUILD_PARALLEL for faster compilation.

Also adjusted Makefile to be more similar to other projects.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
(cherry picked from commit 6f0ff25503)
This commit is contained in:
Rosen Penev
2018-10-10 13:06:03 -07:00
committed by Kevin Darbyshire-Bryant
parent 971efb45af
commit bfa879cdf2
3 changed files with 245 additions and 2 deletions
+6 -2
View File
@@ -9,13 +9,17 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=patch
PKG_VERSION:=2.7.6
PKG_RELEASE:=1
PKG_RELEASE:=2
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:=@GNU/patch
PKG_HASH:=ac610bda97abe0d9f6b7c963255a11dcb196c25e337c61f94e4778d632f1d8fd
PKG_LICENSE:=GPL-3.0+
PKG_LICENSE_FILES:=COPYING
PKG_CPE_ID:=cpe:/a:gnu:patch
PKG_BUILD_PARALLEL:=1
include $(INCLUDE_DIR)/package.mk
@@ -23,7 +27,7 @@ define Package/patch
SECTION:=devel
CATEGORY:=Development
TITLE:=patch
URL:=http://www.gnu.org/
URL:=https://savannah.gnu.org/projects/patch/
MAINTAINER:=Russell Senior <russell@personaltelco.net>
endef