2013-12-02 08:02:31 +00:00
|
|
|
# Created by: Muhammad Moinur Rahman <5u623l20@gmail.com>
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= ndpi
|
2019-12-07 18:52:39 +00:00
|
|
|
PORTVERSION= 3.0.d20191021
|
2018-06-04 17:01:36 +00:00
|
|
|
PORTEPOCH= 1
|
2013-12-02 08:02:31 +00:00
|
|
|
CATEGORIES= net
|
|
|
|
|
2016-05-28 22:07:23 +00:00
|
|
|
MAINTAINER= madpilot@FreeBSD.org
|
2014-08-20 20:14:54 +00:00
|
|
|
COMMENT= NTOP-maintained superset of the popular OpenDPI library
|
2013-12-02 08:02:31 +00:00
|
|
|
|
2016-12-01 10:42:53 +00:00
|
|
|
LICENSE= LGPL3+
|
|
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
2013-12-02 08:02:31 +00:00
|
|
|
|
2016-04-01 14:16:16 +00:00
|
|
|
LIB_DEPENDS= libjson-c.so:devel/json-c
|
2014-08-20 20:14:54 +00:00
|
|
|
|
2018-12-22 20:06:52 +00:00
|
|
|
USES= autoreconf compiler:c++11-lang libtool localbase:ldflags pathfix \
|
|
|
|
pkgconfig
|
|
|
|
USE_LDCONFIG= yes
|
|
|
|
|
2013-12-02 08:02:31 +00:00
|
|
|
CONFIGURE_ARGS= --with-pic
|
2014-08-20 20:14:54 +00:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include/json-c
|
|
|
|
LIBS+= -ljson-c
|
2019-12-07 18:52:39 +00:00
|
|
|
MAKE_ENV+= EXAMPLESDIR="${EXAMPLESDIR_REL}"
|
2013-12-02 08:02:31 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2014-09-07 13:34:39 +00:00
|
|
|
INSTALL_TARGET= install-strip
|
2014-08-20 20:14:54 +00:00
|
|
|
|
2016-07-01 16:49:09 +00:00
|
|
|
USE_GITHUB= yes
|
|
|
|
GH_ACCOUNT= ntop
|
|
|
|
GH_PROJECT= nDPI
|
2019-12-07 18:52:39 +00:00
|
|
|
GH_TAGNAME= 2ce4223
|
2016-07-01 16:49:09 +00:00
|
|
|
|
2018-12-22 20:06:52 +00:00
|
|
|
PLIST_SUB= MAJOR_VER=${PORTVERSION:R:R} VER=${PORTVERSION:R}
|
2015-06-07 13:29:17 +00:00
|
|
|
|
2017-12-09 17:11:09 +00:00
|
|
|
post-patch:
|
2018-08-30 10:49:04 +00:00
|
|
|
(cd ${WRKSRC} && ${SH} autogen.sh)
|
2017-12-09 17:11:09 +00:00
|
|
|
|
2018-06-04 17:01:36 +00:00
|
|
|
post-configure:
|
|
|
|
@${REINPLACE_CMD} -e 's/#define PACKAGE/#define NDPI_PACKAGE/g' \
|
|
|
|
-e 's/#define VERSION/#define NDPI_VERSION/g' \
|
|
|
|
${WRKSRC}/configure
|
|
|
|
|
2018-08-30 10:49:04 +00:00
|
|
|
post-install:
|
|
|
|
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libndpi.so.${PORTVERSION:R}.0
|
2018-12-22 20:06:52 +00:00
|
|
|
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/ndpiReader
|
|
|
|
${RM} ${STAGEDIR}${PREFIX}/lib/libndpi.so \
|
|
|
|
${STAGEDIR}${PREFIX}/lib/libndpi.so.${PORTVERSION:R:R}
|
2018-08-30 10:49:04 +00:00
|
|
|
${RLN} ${STAGEDIR}${PREFIX}/lib/libndpi.so.${PORTVERSION:R}.0 \
|
|
|
|
${STAGEDIR}${PREFIX}/lib/libndpi.so
|
2018-12-22 20:06:52 +00:00
|
|
|
${RLN} ${STAGEDIR}${PREFIX}/lib/libndpi.so.${PORTVERSION:R}.0 \
|
|
|
|
${STAGEDIR}${PREFIX}/lib/libndpi.so.${PORTVERSION:R:R}
|
2018-08-30 10:49:04 +00:00
|
|
|
|
2013-12-02 08:02:31 +00:00
|
|
|
.include <bsd.port.mk>
|