mirror of
https://github.com/vel21ripn/nDPI.git
synced 2026-04-30 07:59:49 +00:00
* Fix OpenWrt build. Signed-off-by: Toni Uhlig <matzeton@googlemail.com> * Fixed Debian/Ubuntu packaging. Signed-off-by: Toni Uhlig <matzeton@googlemail.com> * Added DPKG package build to a CI job. Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
35 lines
1.1 KiB
Makefile
Executable file
35 lines
1.1 KiB
Makefile
Executable file
#!/usr/bin/make -f
|
|
|
|
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
|
|
export DH_VERBOSE=1
|
|
|
|
DPKG_EXPORT_BUILDFLAGS = 1
|
|
|
|
include /usr/share/dpkg/buildflags.mk
|
|
include /usr/share/dpkg/pkg-info.mk
|
|
|
|
|
|
%:
|
|
dh $@
|
|
|
|
override_dh_auto_test:
|
|
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
|
|
cd ../../tests && LD_LIBRARY_PATH=$(CURDIR)/src/lib ./do.sh
|
|
cd ../../tests && LD_LIBRARY_PATH=$(CURDIR)/src/lib ./do-unit.sh
|
|
endif
|
|
|
|
override_dh_installdocs:
|
|
# FIXME: nDPI does currently not have any up2date doc
|
|
|
|
override_dh_auto_install:
|
|
make -j1 install DESTDIR="$(CURDIR)/debian/tmp" AM_UPDATE_INFO_DIR=no
|
|
# ndpi package
|
|
mkdir -p "$(CURDIR)/debian/ndpi/usr/"
|
|
mv -v "$(CURDIR)/debian/tmp/usr/bin" "$(CURDIR)/debian/ndpi/usr/"
|
|
mv -v "$(CURDIR)/debian/tmp/usr/lib" "$(CURDIR)/debian/ndpi/usr/"
|
|
mv -v "$(CURDIR)/debian/tmp/usr/share" "$(CURDIR)/debian/ndpi/usr/"
|
|
# ndpi-dev package
|
|
mkdir -p "$(CURDIR)/debian/ndpi-dev/usr/include"
|
|
mv -v "$(CURDIR)/debian/tmp/usr/include/ndpi" "$(CURDIR)/debian/ndpi-dev/usr/include/"
|
|
|
|
.PHONY: override_dh_auto_configure override_dh_installdocs override_dh_auto_install
|