dahdi-tools: package dahdi_cfg executable
authorDaniel Golle <daniel@makrotopia.org>
Thu, 31 Aug 2017 23:11:17 +0000 (01:11 +0200)
committerDaniel Golle <daniel@makrotopia.org>
Sat, 2 Sep 2017 21:20:30 +0000 (23:20 +0200)
Grab the binary instead of the libtool-shell-wrapper...
As a result, dahdi_cfg now depends on dahdi-tools-libtonezone.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
dahdi-tools: fix previous commit

The dependencies in the default section were modified instead of just
the ones for dahdi-cfg. Fix that.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
libs/dahdi-tools/Makefile

index a7dd0ed4dccb2489a4a3744cb1782a2af9989677..e9d991c42fea95952d466c1a0a7791d2bb988c81 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=dahdi-tools
 PKG_VERSION:=2.11.1
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=http://downloads.asterisk.org/pub/telephony/dahdi-tools/releases/
@@ -30,7 +30,7 @@ endef
 
 define Package/dahdi-cfg
   $(call Package/dahdi-cfg/Default)
-  DEPENDS+=+libpthread
+  DEPENDS+=+libpthread +dahdi-tools-libtonezone
   TITLE:=DAHDI tools dahdi_cfg, dahdi_scan and fxotune
 endef
 
@@ -74,7 +74,7 @@ endef
 
 define Package/dahdi-cfg/install
        $(INSTALL_DIR) $(1)/usr/sbin
-       $(CP) $(PKG_BUILD_DIR)/dahdi_cfg $(1)/usr/sbin/
+       $(CP) $(PKG_BUILD_DIR)/.libs/dahdi_cfg $(1)/usr/sbin/
        $(CP) $(PKG_BUILD_DIR)/dahdi_scan $(1)/usr/sbin/
        $(CP) $(PKG_BUILD_DIR)/fxotune $(1)/usr/sbin/
 endef