Changeset 3775

Show
Ignore:
Timestamp:
07/18/08 15:06:36 (1 month ago)
Author:
markus
Message:

- added separate example configurations for client and server mode
- added feature to enable management interface by menuconfig

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/freewrt_1_0/package/openvpn/Config.in

    r1119 r3775  
    1717        default y 
    1818        depends FWRT_PACKAGE_OPENVPN 
     19 
     20config FWRT_COMPILE_OPENVPN_WITH_MANAGEMENT 
     21        prompt "enable management............... Enable management interface" 
     22        bool 
     23        default n 
     24        depends FWRT_COMPILE_OPENVPN_WITH_SERVER 
    1925 
    2026config FWRT_COMPILE_OPENVPN_WITH_HTTP 
  • branches/freewrt_1_0/package/openvpn/Makefile

    r3774 r3775  
    4545ENABLE_PASSWORD_SAVE:=--enable-password-save 
    4646endif 
     47DISABLE_MANAGEMENT:=--disable-management 
     48ifeq ($(FWRT_COMPILE_OPENVPN_WITH_MANAGEMENT),y) 
     49DISABLE_MANAGEMENT:= 
     50endif 
    4751ifeq ($(FWRT_COMPILE_OPENVPN_WITH_SMALL),y) 
    4852ENABLE_SMALL:=--enable-small 
     
    7983                  --disable-debug \ 
    8084                  --disable-plugins \ 
    81                   --disable-management \ 
    8285                  --disable-socks \ 
    8386                  --enable-iproute2 \ 
     
    8992                  $(DISABLE_SERVER) \ 
    9093                  $(DISABLE_HTTP) \ 
     94                  $(DISABLE_MANAGEMENT) \ 
    9195                  $(ENABLE_PASSWORD_SAVE) \ 
    9296                  $(ENABLE_SMALL) \ 
     
    108112        $(CP) ./files/openvpn.init $(IDIR_OPENVPN)/etc/init.d/S$(PKG_INIT)openvpn 
    109113        install -d -m0755 $(IDIR_OPENVPN)/etc/openvpn 
    110         $(CP) ./files/openvpn.conf $(IDIR_OPENVPN)/etc/openvpn/ 
     114        $(CP) ./files/client.conf.example $(IDIR_OPENVPN)/etc/openvpn/ 
     115        if [ -z "$(DISABLE_SERVER)" ] ; then \ 
     116          $(CP) ./files/server.conf.example $(IDIR_OPENVPN)/etc/openvpn/ ; \ 
     117        fi 
    111118        echo "Depends: $(PKG_DEPEND)" >> $(IDIR_OPENVPN)/CONTROL/control 
    112119        $(RSTRIP) $(IDIR_OPENVPN)