Changeset 21371


Ignore:
Timestamp:
2010-05-05T10:52:10+02:00 (7 years ago)
Author:
cshore
Message:

packages: libs/savedynamic: rename package to firewall-mod-save and script to 20_save.sh (from savedynamic.sh). Thanks jow

Location:
packages/libs
Files:
2 deleted
2 copied
1 moved

Legend:

Unmodified
Added
Removed
  • packages/libs/firewall-mod-save/Makefile

    r21370 r21371  
    99include $(INCLUDE_DIR)/kernel.mk 
    1010 
    11 PKG_NAME:=savedynamic 
     11PKG_NAME:=firewall-mod-save 
    1212PKG_VERSION:=1.0 
    13 PKG_RELEASE:=1 
     13PKG_RELEASE:=2 
    1414MAINTAINER:=Daniel Dickinson <cshore@csolve.net> 
    1515 
     
    1818include $(INCLUDE_DIR)/package.mk 
    1919 
    20 define Package/savedynamic/Default 
     20define Package/firewall-mod-save/Default 
    2121  SECTION:=libs 
    2222  CATEGORY:=Libraries 
     
    2424endef 
    2525 
    26 define Package/savedynamic 
    27   $(call Package/savedynamic/Default) 
    28   MENU:=1 
     26define Package/firewall-mod-save 
     27  $(call Package/firewall-mod-save/Default) 
    2928  DEPENDS:=+iptables-utils 
    3029endef 
    3130 
    32 define Package/savedynamic/description 
     31define Package/firewall-mod-save/description 
    3332    Uses iptables-save to save the option chain in option table (default filter) 
    3433    as defined by the config section save in /etc/config/firewall. 
     
    4443endef 
    4544 
    46 define Package/block-extroot/install 
     45define Package/firewall-mod-save/install 
    4746        $(INSTALL_DIR) $(1)/lib/firewall 
    48         $(INSTALL_DATA) ./files/savedynamic.sh $(1)/lib/firewall/ 
     47        $(INSTALL_DATA) ./files/20_save.sh $(1)/lib/firewall/ 
    4948endef 
    5049 
    51 $(eval $(call BuildPackage,savedynamic)) 
     50$(eval $(call BuildPackage,firewall-mod-save)) 
    5251 
  • packages/libs/firewall-mod-save/files/20_save.sh

    r21368 r21371  
    33. /etc/functions.sh 
    44 
    5 savedynamic_print_table_chain() { 
     5save_print_table_chain() { 
    66        local table="$1" 
    77        local chain="$2" 
     
    2929} 
    3030 
    31 savedynamic_save_fw_chain() { 
     31save_save_fw_chain() { 
    3232        local chain 
    3333        local table 
     
    3939        mkdir -p /tmp/.firewall 
    4040        iptables-save >"$fsave" 
    41         savedynamic_print_table_chain $table $chain "$fsave" > /tmp/.firewall/save-$table-$chain 
     41        save_print_table_chain $table $chain "$fsave" > /tmp/.firewall/save-$table-$chain 
    4242 
    4343} 
    4444 
    45 savedynamic_load_fw_chain() { 
     45save_load_fw_chain() { 
    4646        local chain 
    4747        local table 
     
    5858} 
    5959 
    60 savedynamic_pre_stop_cb() { 
     60save_pre_stop_cb() { 
    6161        echo "Saving dynamic firewall chains" 
    6262        config_load firewall 
    6363 
    64         config_foreach savedynamic_save_fw_chain save 
     64        config_foreach save_save_fw_chain save 
    6565} 
    6666 
    67 savedynamic_post_core_cb() { 
     67save_post_core_cb() { 
    6868        echo "Loading dynamic firewall chains" 
    6969 
    7070        config_load firewall 
    71         config_foreach savedynamic_load_fw_chain save 
     71        config_foreach save_load_fw_chain save 
    7272} 
     73 
Note: See TracChangeset for help on using the changeset viewer.