include $(TOPDIR)/rules.mk
PKG_NAME:=znc
-PKG_VERSION:=0.094
-PKG_RELEASE:=2
+PKG_VERSION:=0.096
+PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=@SF/znc
-PKG_MD5SUM:=db101f7a7756285d824b59e3b33e3ad5
+PKG_MD5SUM:=38eec4f1911a68b4d2fc704170e7cbf6
PKG_BUILD_PARALLEL:=1
CONFIGURE_VARS += \
- CXX="$(STAGING_DIR)/host/bin/g++-uc"
+ CXX="$(STAGING_DIR)/host/bin/g++-uc" \
CXXFLAGS="$(TARGET_CFLAGS) -fno-builtin -fno-rtti -nostdinc++" \
CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
LDFLAGS="-nodefaultlibs -L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
- LIBS="-luClibc++ -lm -lssl $(LIBGCC_S) -lc"
+ LIBS="-luClibc++ -lm -lssl -lcrypto $(LIBGCC_S) -lc"
CONFIGURE_ARGS += \
--disable-c-ares \
$(eval $(call module,block-motd,This module blocks the server's Message of the \
Day.,extra/))
+$(eval $(call module,clearbufferonmsg,This module keeps the buffer until the \
+ next message from the client.,extra/))
+
$(eval $(call module,ctcpflood,This module tries to block ctcp floods.,extra/))
$(eval $(call module,fakeonline,This module fakes the online status of \
config znc
# where to listen for connections
list listener '192.168.1.1 1234'
+ # load global modules (You need to install them first):
+ # list module 'fail2ban'
config user 'sampleUser'
+ # Use either a plain text password or use the full sha256#... line.
+ # You can generate one with 'znc -s'.
option password 'changeme'
option nick 'sampleUser'
option altnick 'userSample'
option ident 'openwrt'
option realname 'John Doe'
+
# This adds support for channels in znc configuration:
# list channel '#chan optional_password'
- # list of allowed servers
+ # list of allowed servers:
list server 'chat.freenode.net 6667'
+
+ # load user modules ('<module> [params...]'):
+ # list module 'simple_away -timer 10 disconnected'
config_get vhost "$user" vhost
echo "<User $user>" >> $ZNC_CONFIG
- echo " Pass = plain#$password" >> $ZNC_CONFIG
+
+ case "$password" in
+ "md5#"* | "sha256#"* | "plain#"*)
+ echo " Pass = $password" >> $ZNC_CONFIG
+ ;;
+ *)
+ echo " Pass = plain#$password" >> $ZNC_CONFIG
+ ;;
+ esac
+
echo " Nick = $nick" >> $ZNC_CONFIG
echo " AltNick = ${altnick:-$nick"_"}" >> $ZNC_CONFIG
echo " Ident = ${ident:-$nick}" >> $ZNC_CONFIG