summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott V. Kamp2010-10-26 19:27:44 +0000
committerScott V. Kamp2010-10-26 19:27:44 +0000
commit50ad52ef67aeeb20b22ab75194d8aaf332e1b90a (patch)
tree33cea9f51594b99ae374b87fbc9961b1354f7d48
parent4d838bbf437a0d453164b1f59633616e51455b14 (diff)
downloadarchive-50ad52ef67aeeb20b22ab75194d8aaf332e1b90a.tar.gz
[patch-team] Also build and package the extra modules and package the droproot module
with ZNC. This allows dropping the dependency to coreutils-su. Signed-off-by: Jonas Gorski <jonas.gorski+openwrt@gmail.com> SVN-Revision: 23645
-rw-r--r--net/znc/Makefile41
-rw-r--r--net/znc/files/znc.init4
2 files changed, 41 insertions, 4 deletions
diff --git a/net/znc/Makefile b/net/znc/Makefile
index 0e15010fed..8ee59f77f0 100644
--- a/net/znc/Makefile
+++ b/net/znc/Makefile
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=znc
PKG_VERSION:=0.094
-PKG_RELEASE:=1
+PKG_RELEASE:=2
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=@SF/znc
@@ -29,7 +29,7 @@ endef
define Package/znc
$(Package/znc/default)
- DEPENDS:=+libopenssl +uclibcxx +coreutils-su
+ DEPENDS:=+libopenssl +uclibcxx
MENU:=1
endef
@@ -53,6 +53,7 @@ CONFIGURE_VARS += \
CONFIGURE_ARGS += \
--disable-c-ares \
+ --enable-extra \
--disable-perl
MAKE_FLAGS += \
@@ -72,6 +73,8 @@ define Package/znc/install
$(INSTALL_BIN) ./files/znc.init $(1)/etc/init.d/znc
$(INSTALL_DIR) $(1)/etc/config
$(INSTALL_DATA) ./files/znc.conf $(1)/etc/config/znc
+ $(INSTALL_DIR) $(1)/usr/lib/znc/
+ $(INSTALL_BIN) $(PKG_BUILD_DIR)/modules/extra/droproot.so $(1)/usr/lib/znc/
endef
@@ -90,7 +93,7 @@ define module
define Package/znc-mod-$(1)/install
$(INSTALL_DIR) $$(1)/usr/lib/znc/
- $(INSTALL_BIN) $(PKG_BUILD_DIR)/modules/$(subst -,_,$(1)).so $$(1)/usr/lib/znc/
+ $(INSTALL_BIN) $(PKG_BUILD_DIR)/modules/$(3)$(subst -,_,$(1)).so $$(1)/usr/lib/znc/
endef
ZNC_MODULES += znc-mod-$(1)
@@ -181,6 +184,38 @@ $(eval $(call module,stickychan,Keeps you sticked to specific channels.))
$(eval $(call module,watch,Monitor activity for specific text patterns from \
specific users and have the text sent to a special query window.))
+$(eval $(call module,antiidle,Hides your idle time.,extra/))
+
+$(eval $(call module,autovoice,Autovoices everyone who joins some channel., \
+ extra/))
+
+$(eval $(call module,block-motd,This module blocks the server's Message of the \
+ Day.,extra/))
+
+$(eval $(call module,ctcpflood,This module tries to block ctcp floods.,extra/))
+
+$(eval $(call module,fakeonline,This module fakes the online status of \
+ ZNC-*users.,extra/))
+
+$(eval $(call module,flooddetach,This module detaches you from channels which \
+ are flooded.,extra/))
+
+$(eval $(call module,listsockets,This module displays a list of all open \
+ sockets in ZNC.,extra/))
+
+$(eval $(call module,log,Log conversations to file.,extra/))
+
+$(eval $(call module,motdfile,Reads a MOTD from a file and displays it to \
+ users when they login.,extra/))
+
+$(eval $(call module,notify-connect,Sends a notice to all admins when a user \
+ logs in or out.,extra/))
+
+$(eval $(call module,send-raw,Allows you to send raw traffic to IRC from \
+ other users.,extra/))
+
+$(eval $(call module,shell,Have your unix shell in a query window right inside \
+ of your IRC client.,extra/))
$(eval $(call BuildPackage,znc))
diff --git a/net/znc/files/znc.init b/net/znc/files/znc.init
index 6e56efd826..9231f9aaca 100644
--- a/net/znc/files/znc.init
+++ b/net/znc/files/znc.init
@@ -32,6 +32,8 @@ znc_global() {
config_list_foreach "$znc" listener "add_param Listener"
config_list_foreach "$znc" module "add_param LoadModule"
+
+ add_param LoadModule "droproot nobody nogroup"
}
add_user() {
@@ -83,7 +85,7 @@ start() {
config_foreach add_user user
chown -R nobody:nogroup /tmp/etc/znc
- su -s /bin/ash -c "/usr/bin/znc -d/tmp/etc/znc" nobody
+ /usr/bin/znc -d/tmp/etc/znc -r >/dev/null &
}
stop() {