Use dh_shlibdeps to calculate depends

This may impact builds on Debian 8, but that version has been out of
support for over three years.  I didnt test it, but since using this
helper is the preferred method it may actually help builds on older
versions.
This commit is contained in:
Hamish Coleman 2023-08-28 12:48:56 +01:00
parent ecb869517e
commit 3cb57e2a6e
3 changed files with 2 additions and 9 deletions

View File

@ -5,13 +5,6 @@ AC_ARG_WITH(edgex, [ --with-edgex Build for Ubiquity-X])
# NOTE: this file is not actually used. You need to edit configure as well!
N2N_VERSION=$(../../scripts/version.sh)
DEBIAN_VERSION=`cat /etc/debian_version | grep "^8" | wc -l`
EXTRA_DEP=""
if test $DEBIAN_VERSION = "0"; then
EXTRA_DEP=", libzstd1"
fi
if test "${EXTN+set}" != set; then
MACHINE=`uname -m`
SHORT_MACHINE=`echo $MACHINE | cut -b1-3`
@ -44,7 +37,6 @@ DATE=`date -R`
AC_SUBST(N2N_VERSION)
AC_SUBST(EXTN)
AC_SUBST(DATE)
AC_SUBST(EXTRA_DEP)
AC_CONFIG_FILES(debian/changelog)
AC_CONFIG_FILES(debian/files)

View File

@ -8,7 +8,7 @@ Build-Depends:
Package: n2n
Architecture: @EXTN@
Suggests: uml-utilities
Depends: ${shlibs:Depends}, ${misc:Depends} @EXTRA_DEP@
Depends: ${shlibs:Depends}, ${misc:Depends}
Conflicts: n2n (<< 2.1.0-1)
Replaces: n2n (<< 2.1.0-1)
Description: a layer-two peer-to-peer virtual private network (VPN)

View File

@ -50,6 +50,7 @@ binary-arch: build install
cp -r ../etc debian/n2n
find debian/n2n -name "*.in" -exec /bin/rm {} ';'
find debian/n2n -name "*~" -exec /bin/rm {} ';'
dh_shlibdeps
dh_link
dh_gencontrol
dh_md5sums