diff --git a/srcpkgs/ndpi/template b/srcpkgs/ndpi/template index 48789f017bd..13e1e82c077 100644 --- a/srcpkgs/ndpi/template +++ b/srcpkgs/ndpi/template @@ -1,19 +1,25 @@ # Template file for 'ndpi' pkgname=ndpi -version=2.0 +version=2.2 revision=1 wrksrc=nDPI-${version} build_style=gnu-configure hostmakedepends="libtool automake pkg-config" makedepends="libpcap-devel json-c-devel" short_desc="Open Source Deep Packet Inspection Software Toolkit" -maintainer="Toyam Cox " -license="GPL-3" +maintainer="Toyam Cox " +license="LGPL-3" homepage="http://www.ntop.org/products/ndpi/" distfiles="https://github.com/ntop/nDPI/archive/${version}.tar.gz" -checksum=90ae6e4de83bda5bb7405207020c1e0be364841510fdf5f0a2d48974e1a3fbcb +checksum=25607db12f466ba88a1454ef8b378e0e9eb59adffad6baa4b5610859a102a5dd pre_configure() { + # Copied from autogen.sh + local NDPI_MAJOR=${version%.*} + local NDPI_MINOR=${version#*.} + local NDPI_PATCH=0 + local NDPI_VERSION_SHORT=${version}.0 + cat configure.seed | sed "s/@NDPI_MAJOR@/$NDPI_MAJOR/g" | sed "s/@NDPI_MINOR@/$NDPI_MINOR/g" | sed "s/@NDPI_PATCH@/$NDPI_PATCH/g" | sed "s/@NDPI_VERSION_SHORT@/$NDPI_VERSION_SHORT/g" > configure.ac autoreconf -fi }