Skip to content

Commit

Permalink
Deb fix (shared lib links)
Browse files Browse the repository at this point in the history
  • Loading branch information
cardigliano committed Dec 10, 2018
1 parent 6033733 commit 181ec49
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/ubuntu/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down
3 changes: 3 additions & 0 deletions packages/ubuntu/configure
Original file line number Diff line number Diff line change
Expand Up @@ -583,6 +583,7 @@ PACKAGE_URL=''

ac_subst_vars='LTLIBOBJS
LIBOBJS
MAJOR_RELEASE
GIT_REVISION
KERNEL
DATE
Expand Down Expand Up @@ -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"
Expand All @@ -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
Expand Down
2 changes: 2 additions & 0 deletions packages/ubuntu/configure.in
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand All @@ -35,5 +36,6 @@ AC_SUBST(EXTN)
AC_SUBST(DATE)
AC_SUBST(KERNEL)
AC_SUBST(GIT_REVISION)
AC_SUBST(MAJOR_RELEASE)

AC_OUTPUT

0 comments on commit 181ec49

Please sign in to comment.