kamailio4: enhance build procedure, fix prefix for install-cfg
Signed-off-by: Jiri Slachta <slachta@cesnet.cz>
This commit is contained in:
parent
39500cc8a6
commit
4ac8b7b5f0
1 changed files with 15 additions and 17 deletions
|
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=kamailio4
|
PKG_NAME:=kamailio4
|
||||||
PKG_VERSION:=4.0.2
|
PKG_VERSION:=4.0.2
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
|
|
||||||
PKG_SOURCE_URL:=http://www.kamailio.org/pub/kamailio/$(PKG_VERSION)/src/
|
PKG_SOURCE_URL:=http://www.kamailio.org/pub/kamailio/$(PKG_VERSION)/src/
|
||||||
PKG_SOURCE:=kamailio-$(PKG_VERSION)$(PKG_VARIANT)_src.tar.gz
|
PKG_SOURCE:=kamailio-$(PKG_VERSION)$(PKG_VARIANT)_src.tar.gz
|
||||||
|
@ -45,7 +45,6 @@ define Package/kamailio4/conffiles
|
||||||
/etc/kamailio/kamailio.cfg
|
/etc/kamailio/kamailio.cfg
|
||||||
/etc/kamailio/kamailio-advanced.cfg
|
/etc/kamailio/kamailio-advanced.cfg
|
||||||
/etc/kamailio/dictionary.kamailio
|
/etc/kamailio/dictionary.kamailio
|
||||||
/etc/kamailio/tls.cfg
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/kamailio4-tools
|
define Package/kamailio4-tools
|
||||||
|
@ -69,7 +68,11 @@ define Package/kamailio4/install
|
||||||
$(1)/usr/lib/kamailio/
|
$(1)/usr/lib/kamailio/
|
||||||
$(INSTALL_DIR) $(1)/etc/kamailio
|
$(INSTALL_DIR) $(1)/etc/kamailio
|
||||||
$(CP) \
|
$(CP) \
|
||||||
$(PKG_INSTALL_DIR)/usr/etc/kamailio/*{kamailio,tls}* \
|
$(PKG_INSTALL_DIR)/etc/kamailio/{kamailio-advanced.cfg,kamailio.cfg} \
|
||||||
|
$(1)/etc/kamailio/
|
||||||
|
$(INSTALL_DIR) $(1)/etc/kamailio
|
||||||
|
$(CP) \
|
||||||
|
$(PKG_INSTALL_DIR)/etc/kamailio/dictionary.kamailio \
|
||||||
$(1)/etc/kamailio/
|
$(1)/etc/kamailio/
|
||||||
$(INSTALL_DIR) $(1)/etc/default
|
$(INSTALL_DIR) $(1)/etc/default
|
||||||
$(CP) \
|
$(CP) \
|
||||||
|
@ -87,7 +90,7 @@ define Package/kamailio4-tools/install
|
||||||
$(PKG_BUILD_DIR)/utils/kamctl/kamctlrc \
|
$(PKG_BUILD_DIR)/utils/kamctl/kamctlrc \
|
||||||
$(1)/etc/kamailio/
|
$(1)/etc/kamailio/
|
||||||
$(INSTALL_DIR) $(1)/usr/sbin
|
$(INSTALL_DIR) $(1)/usr/sbin
|
||||||
$(CP) \
|
$(INSTALL_BIN) \
|
||||||
$(PKG_INSTALL_DIR)/usr/sbin/kam{ctl,dbctl} \
|
$(PKG_INSTALL_DIR)/usr/sbin/kam{ctl,dbctl} \
|
||||||
$(1)/usr/sbin/
|
$(1)/usr/sbin/
|
||||||
$(INSTALL_DIR) $(1)/usr/lib/kamailio
|
$(INSTALL_DIR) $(1)/usr/lib/kamailio
|
||||||
|
@ -105,8 +108,7 @@ define BuildPlugin
|
||||||
|
|
||||||
define Package/kamailio4-mod-$(1)/install
|
define Package/kamailio4-mod-$(1)/install
|
||||||
$(INSTALL_DIR) $$(1)/usr/lib/kamailio/modules
|
$(INSTALL_DIR) $$(1)/usr/lib/kamailio/modules
|
||||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/kamailio/modules/$(2).so \
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/kamailio/modules/$(2).so $$(1)/usr/lib/kamailio/modules/
|
||||||
$$(1)/usr/lib/kamailio/modules/ ;
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
INCL_MODULES+=$(2)
|
INCL_MODULES+=$(2)
|
||||||
|
@ -229,22 +231,18 @@ PKG_MAKE_ARGS:= \
|
||||||
CC="$(TARGET_CC)" \
|
CC="$(TARGET_CC)" \
|
||||||
ARCH="$(ARCH)" \
|
ARCH="$(ARCH)" \
|
||||||
DESTDIR=$(PKG_INSTALL_DIR) \
|
DESTDIR=$(PKG_INSTALL_DIR) \
|
||||||
quiet=verbose \
|
quiet=verbose
|
||||||
prefix=/usr
|
|
||||||
|
|
||||||
define Build/Configure
|
|
||||||
$(MAKE) -C $(PKG_BUILD_DIR) $(PKG_MAKE_ARGS) \
|
|
||||||
cfg
|
|
||||||
endef
|
|
||||||
|
|
||||||
define Build/Compile
|
define Build/Compile
|
||||||
if ! [ -f $(PREBUILT_STAMP) ]; then \
|
if ! [ -f $(PREBUILT_STAMP) ]; then \
|
||||||
echo $(MAKE) -C $(PKG_BUILD_DIR) $(PKG_MAKE_ARGS) \
|
echo $(MAKE) -C $(PKG_BUILD_DIR) $(PKG_MAKE_ARGS) \
|
||||||
EXTRA_LIBS=-L$(STAGING_DIR)/usr/lib/ \
|
EXTRA_LIBS=-L$(STAGING_DIR)/usr/lib/ prefix:=/usr \
|
||||||
all && touch $(PREBUILT_STAMP); \
|
all && touch $(PREBUILT_STAMP); \
|
||||||
fi
|
fi
|
||||||
$(MAKE) -C $(PKG_BUILD_DIR) $(PKG_MAKE_ARGS) \
|
$(MAKE) -C $(PKG_BUILD_DIR) $(PKG_MAKE_ARGS) prefix=/ \
|
||||||
install
|
install-cfg
|
||||||
|
$(MAKE) -C $(PKG_BUILD_DIR) $(PKG_MAKE_ARGS) prefix=/usr \
|
||||||
|
install-bin install-modules-all install-utils
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(call BuildPackage,kamailio4))
|
$(eval $(call BuildPackage,kamailio4))
|
||||||
|
|
Loading…
Reference in a new issue