diff options
-rw-r--r-- | packages/ubuntu/Makefile.in | 4 | ||||
-rwxr-xr-x | packages/ubuntu/configure | 3 | ||||
-rw-r--r-- | packages/ubuntu/configure.in | 2 |
3 files changed, 8 insertions, 1 deletions
diff --git a/packages/ubuntu/Makefile.in b/packages/ubuntu/Makefile.in index c55b379e0..a728cd13b 100644 --- a/packages/ubuntu/Makefile.in +++ b/packages/ubuntu/Makefile.in @@ -12,7 +12,9 @@ ndpi: mkdir -p ./debian/ndpi-tmp/usr/local/lib ./debian/ndpi-tmp/usr/local/bin mkdir -p ./debian/ndpi-dev-tmp/usr/local/lib ./debian/ndpi-dev-tmp/usr/local/include/ndpi cd ${NDPI_HOME}; ./autogen.sh; ./configure; make - cp $(NDPI_HOME)/src/lib/libndpi.so* ./debian/ndpi-tmp/usr/local/lib/ + cp $(NDPI_HOME)/src/lib/libndpi.so.@NDPI_VERS@ ./debian/ndpi-tmp/usr/local/lib/ + cd ./debian/ndpi-tmp/usr/local/lib/; ln -s libndpi.so.@NDPI_VERS@ libndpi.so; cd - + cd ./debian/ndpi-tmp/usr/local/lib/; ln -s libndpi.so.@NDPI_VERS@ libndpi.so.@MAJOR_RELEASE@; cd - cp $(NDPI_HOME)/src/lib/libndpi.a ./debian/ndpi-dev-tmp/usr/local/lib/ cp $(NDPI_HOME)/example/ndpiReader ./debian/ndpi-tmp/usr/local/bin/ cp $(NDPI_HOME)/src/include/*.h ./debian/ndpi-dev-tmp/usr/local/include/ndpi/ diff --git a/packages/ubuntu/configure b/packages/ubuntu/configure index 64900aa8d..c67f37e88 100755 --- a/packages/ubuntu/configure +++ b/packages/ubuntu/configure @@ -583,6 +583,7 @@ PACKAGE_URL='' ac_subst_vars='LTLIBOBJS LIBOBJS +MAJOR_RELEASE GIT_REVISION KERNEL DATE @@ -1705,6 +1706,7 @@ else fi NDPI_VERS=`../version.sh --release` +MAJOR_RELEASE=`../version.sh --major-release` GIT_REVISION=`../version.sh --revision` ac_config_files="$ac_config_files Makefile debian/changelog debian/files debian/control" @@ -1717,6 +1719,7 @@ ac_config_files="$ac_config_files Makefile debian/changelog debian/files debian/ + cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure diff --git a/packages/ubuntu/configure.in b/packages/ubuntu/configure.in index 8883bdf04..a6f490308 100644 --- a/packages/ubuntu/configure.in +++ b/packages/ubuntu/configure.in @@ -25,6 +25,7 @@ else fi NDPI_VERS=`../version.sh --release` +MAJOR_RELEASE=`../version.sh --major-release` GIT_REVISION=`../version.sh --revision` AC_CONFIG_FILES([Makefile debian/changelog debian/files debian/control]) @@ -35,5 +36,6 @@ AC_SUBST(EXTN) AC_SUBST(DATE) AC_SUBST(KERNEL) AC_SUBST(GIT_REVISION) +AC_SUBST(MAJOR_RELEASE) AC_OUTPUT |