Changeset 26184


Ignore:
Timestamp:
2011-03-16T01:16:19+01:00 (7 years ago)
Author:
cshore
Message:

[net] Telephony: Yate: Added conffiles. Fixes overwriting of configuration on reinstall/update.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • packages/net/yate/Makefile

    r26179 r26184  
    1212PKG_NAME:=yate 
    1313PKG_VERSION:=$(RELEASEVER)-1 
    14 PKG_RELEASE:=1 
     14PKG_RELEASE:=2 
    1515 
    1616PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 
     
    3636  TITLE:=Yet Another Telphony Engine 
    3737  MENU:=1 
     38endef 
     39 
     40define Package/$(PKG_NAME)/conffiles 
     41/etc/yate/yate.conf 
    3842endef 
    3943 
     
    8690    TITLE:=$(3) 
    8791  endef 
     92 
     93  $(if $(PKG_BUILD_DIR)/conf.d/$(1).conf.sample, 
     94  define Package/$(PKG_NAME)-mod-$(1)/conffiles 
     95    /etc/yate/$(1).conf 
     96  endef 
     97  ,) 
    8898   
    8999  define Package/$(PKG_NAME)-mod-$(1)/description 
     
    92102   
    93103  define Package/$(PKG_NAME)-mod-$(1)/install 
    94         $$(INSTALL_DIR) $$(1)/usr/lib/$(PKG_NAME)/$(2) 
     104        $$(INSTALL_DIR) $$(1)/usr/lib/yate/$(2) 
    95105        $$(INSTALL_BIN) $$(PKG_BUILD_DIR)/modules/$(2)/$(1).yate $$(1)/usr/lib/yate/$(2)/$(1).yate 
    96106        if [ -f $$(PKG_BUILD_DIR)/conf.d/$(1).conf.sample ]; then \ 
    97                 $$(INSTALL_DIR) $$(1)/etc/$(PKG_NAME) ;\ 
    98                 $$(INSTALL_DATA) $$(PKG_BUILD_DIR)/conf.d/$(1).conf.sample $$(1)/etc/$(PKG_NAME)/$(1).conf ;\ 
     107                $$(INSTALL_DIR) $$(1)/etc/yate ;\ 
     108                $$(INSTALL_DATA) $$(PKG_BUILD_DIR)/conf.d/$(1).conf.sample $$(1)/etc/yate/$(1).conf ;\ 
    99109        fi 
    100110  endef 
Note: See TracChangeset for help on using the changeset viewer.