From 2597ec7d52f441d756377f9adc6059b0f347e29d Mon Sep 17 00:00:00 2001
From: Patrick McDermott <patrick.mcdermott@libiquity.com>
Date: Sat, 01 Jun 2019 19:54:26 -0400
Subject: dropbear, dropbearconvert: Use oh-shlibdeps

---
diff --git a/build b/build
index 078c5f7..bbf75f2 100755
--- a/build
+++ b/build
@@ -30,3 +30,4 @@ install: build
 	oh-fixperms
 	oh-strip
 	oh-installfiles
+	oh-shlibdeps
diff --git a/changelog b/changelog
index 5beab60..3ddb279 100644
--- a/changelog
+++ b/changelog
@@ -12,6 +12,7 @@ dropbear (2019.78-1) trunk
     - 1024-bit SHA-1 key exchange
   * Server password authentication is now disabled.  Public keys are required.
   * The contents of "/etc/motd" are now sent to clients.
+  * dropbear, dropbearconvert: Use automatic shared library dependencies.
 
  -- Patrick McDermott <patrick.mcdermott@libiquity.com>  Sat, 01 Jun 2019 10:36:58 -0400
 
diff --git a/control b/control
index 86d2fc3..58b057c 100644
--- a/control
+++ b/control
@@ -1,7 +1,8 @@
 Maintainer: Patrick McDermott <patrick.mcdermott@libiquity.com>
 Build-Depends:
  gpg, dirmngr,
- opkhelper-3.0,
+ opkbuild (>= 4.0.1),
+ opkhelper-3.0 (>= 3.1.2),
  libz.1-dev,
  libtommath.1-dev,
  libtomcrypt-dev,
diff --git a/dropbear.pkg/control b/dropbear.pkg/control
index be4ea76..4c1a29c 100644
--- a/dropbear.pkg/control
+++ b/dropbear.pkg/control
@@ -1,6 +1,6 @@
 Architecture: any
 Platform: all
-Depends: libtommath.0, libtomcrypt.0, libz.1
+Depends: ${Shlib-Depends}
 Description: Small SSH server, client, key generator, and file copy program
  ${Common-Description}
  .
diff --git a/dropbearconvert.pkg/control b/dropbearconvert.pkg/control
index 73d538c..3a297fe 100644
--- a/dropbearconvert.pkg/control
+++ b/dropbearconvert.pkg/control
@@ -1,6 +1,6 @@
 Architecture: any
 Platform: all
-Depends: dropbear (= ${Binary-Version}), libtommath.0, libtomcrypt.0
+Depends: dropbear (= ${Binary-Version}), ${Shlib-Depends}
 Description: Dropbear and OpenSSH private key converter
  ${Common-Description}
  .
--
cgit v0.9.1