Changeset 24548


Ignore:
Timestamp:
2010-12-13T19:36:41+01:00 (7 years ago)
Author:
jow
Message:

[PATCH] ZNC: Update to 0.096, fix build and minor changes.
Several small fixes for ZNC:

  • Update to current 0.096, include new module
  • Fix build to not link modules against libstdc++
  • Move root check to after module load, to remove the 30 second pause on start.
  • Add the possibility to directly use hashed passwords.
  • Make the sample config more verbose for easier adaption.

Signed-off-by: Jonas Gorski <jonas.gorski+openwrt@…>

Location:
packages/net/znc
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • packages/net/znc/Makefile

    r23696 r24548  
    99 
    1010PKG_NAME:=znc 
    11 PKG_VERSION:=0.094 
    12 PKG_RELEASE:=2 
     11PKG_VERSION:=0.096 
     12PKG_RELEASE:=1 
    1313 
    1414PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 
    1515PKG_SOURCE_URL:=@SF/znc 
    16 PKG_MD5SUM:=db101f7a7756285d824b59e3b33e3ad5 
     16PKG_MD5SUM:=38eec4f1911a68b4d2fc704170e7cbf6 
    1717 
    1818PKG_BUILD_PARALLEL:=1 
     
    4646 
    4747CONFIGURE_VARS += \ 
    48         CXX="$(STAGING_DIR)/host/bin/g++-uc" 
     48        CXX="$(STAGING_DIR)/host/bin/g++-uc" \ 
    4949        CXXFLAGS="$(TARGET_CFLAGS) -fno-builtin -fno-rtti -nostdinc++" \ 
    5050        CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \ 
    5151        LDFLAGS="-nodefaultlibs -L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \ 
    52         LIBS="-luClibc++ -lm -lssl $(LIBGCC_S) -lc" 
     52        LIBS="-luClibc++ -lm -lssl -lcrypto $(LIBGCC_S) -lc" 
    5353 
    5454CONFIGURE_ARGS += \ 
     
    193193        Day.,extra/)) 
    194194 
     195$(eval $(call module,clearbufferonmsg,This module keeps the buffer until the \ 
     196        next message from the client.,extra/)) 
     197 
    195198$(eval $(call module,ctcpflood,This module tries to block ctcp floods.,extra/)) 
    196199 
  • packages/net/znc/files/znc.conf

    r24218 r24548  
    22        # where to listen for connections 
    33        list listener   '192.168.1.1 1234' 
     4        # load global modules (You need to install them first): 
     5        # list module 'fail2ban' 
    46 
    57config user 'sampleUser' 
     8        # Use either a plain text password or use the full sha256#... line. 
     9        # You can generate one with 'znc -s'. 
    610        option password 'changeme' 
    711        option nick     'sampleUser' 
     
    913        option ident    'openwrt' 
    1014        option realname 'John Doe' 
     15 
    1116        # This adds support for channels in znc configuration: 
    1217        # list channel    '#chan optional_password' 
    1318 
    14         # list of allowed servers 
     19        # list of allowed servers: 
    1520        list server     'chat.freenode.net 6667' 
     21 
     22        # load user modules ('<module> [params...]'): 
     23        # list module 'simple_away -timer 10 disconnected' 
  • packages/net/znc/files/znc.init

    r24525 r24548  
    6868 
    6969        echo "<User $user>" >> $ZNC_CONFIG 
    70         echo "  Pass = plain#$password" >> $ZNC_CONFIG 
     70 
     71        case "$password" in 
     72        "md5#"* | "sha256#"* | "plain#"*) 
     73                echo "  Pass = $password" >> $ZNC_CONFIG 
     74                ;; 
     75        *) 
     76                echo "  Pass = plain#$password" >> $ZNC_CONFIG 
     77                ;; 
     78        esac 
     79 
    7180        echo "  Nick = $nick" >> $ZNC_CONFIG 
    7281        echo "  AltNick = ${altnick:-$nick"_"}" >> $ZNC_CONFIG 
Note: See TracChangeset for help on using the changeset viewer.