From ad2eaec1c84283f1bd273ead975cccaaeaf9509f Mon Sep 17 00:00:00 2001 From: Jan Pavlinec Date: Fri, 18 Jan 2019 17:16:59 +0100 Subject: [PATCH] ssdeep: add new package Signed-off-by: Jan Pavlinec --- utils/ssdeep/Makefile | 45 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 utils/ssdeep/Makefile diff --git a/utils/ssdeep/Makefile b/utils/ssdeep/Makefile new file mode 100644 index 000000000..f089756c2 --- /dev/null +++ b/utils/ssdeep/Makefile @@ -0,0 +1,45 @@ +# +# Copyright (C) 2019 CZ.NIC, z. s. p. o. (https://www.nic.cz/) +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=ssdeep +PKG_VERSION:=2.14.1 +PKG_RELEASE=1 + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=https://github.com/ssdeep-project/ssdeep/releases/download/release-$(PKG_VERSION)/ +PKG_HASH:=ff2eabc78106f009b4fb2def2d76fb0ca9e12acf624cbbfad9b3eb390d931313 + +PKG_FIXUP:=autoreconf +PKG_BUILD_PARALLEL:=1 + +PKG_LICENSE:=GPL-2.0 +PKG_LICENSE_FILES:=COPYING +PKG_MAINTAINER:=Jan Pavlinec + +include $(INCLUDE_DIR)/uclibc++.mk +include $(INCLUDE_DIR)/package.mk + +define Package/ssdeep + SECTION:=utils + CATEGORY:=Utilities + TITLE:=A program to compute and match fuzzy hashes + URL:=https://ssdeep-project.github.io/ssdeep + DEPENDS:=$(CXX_DEPENDS) +endef + +define Package/ssdeep/description + ssdeep is a program for computing context triggered piecewise hashes (CTPH). Also called fuzzy hashes, CTPH can match inputs that have homologies. +endef + +define Package/ssdeep/install + $(INSTALL_DIR) $(1)/usr/bin + $(INSTALL_BIN) $(PKG_BUILD_DIR)/ssdeep $(1)/usr/bin/ +endef + +$(eval $(call BuildPackage,ssdeep))