python-texttable: update to 1.3.1
[void-packages.git] / srcpkgs / ndpi / template
blobedd3beb71c705f0a2896d0d58e13e2d206fef2c2
1 # Template file for 'ndpi'
2 pkgname=ndpi
3 version=2.2
4 revision=3
5 wrksrc=nDPI-${version}
6 build_style=gnu-configure
7 hostmakedepends="libtool automake pkg-config"
8 makedepends="libpcap-devel json-c-devel"
9 short_desc="Open Source Deep Packet Inspection Software Toolkit"
10 maintainer="Toyam Cox <Vaelatern@voidlinux.eu>"
11 license="LGPL-3"
12 homepage="http://www.ntop.org/products/ndpi/"
13 distfiles="https://github.com/ntop/nDPI/archive/${version}.tar.gz"
14 checksum=25607db12f466ba88a1454ef8b378e0e9eb59adffad6baa4b5610859a102a5dd
16 pre_configure() {
17         # Copied from autogen.sh
18         local NDPI_MAJOR=${version%.*}
19         local NDPI_MINOR=${version#*.}
20         local NDPI_PATCH=0
21         local NDPI_VERSION_SHORT=${version}.0
22         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
23         autoreconf -fi
26 post_install() {
27         vdoc doc/nDPI_QuickStartGuide.pdf
30 ndpi-devel_package() {
31         short_desc+=" - development files"
32         depends="${sourcepkg}>=${version}_${revision}"
33         pkg_install() {
34                 vmove usr/include
35                 vmove usr/lib/*.a
36                 vmove usr/lib/*.so
37                 vmove usr/lib/pkgconfig
38         }