znc: allow running without modules
authorJonas Gorski <redacted>
Sat, 3 Dec 2016 16:48:08 +0000 (17:48 +0100)
committerJonas Gorski <redacted>
Sat, 3 Dec 2016 16:52:28 +0000 (17:52 +0100)
Now that we don't ship any modules by default, znc might be started
without any modules. Unfortunately znc refuses to start without any
modules, so patch out the appropriate check.

Signed-off-by: Jonas Gorski <redacted>
net/znc/Makefile
net/znc/patches/104-disable-empty-modules-check.patch [new file with mode: 0644]
net/znc/patches/110-add-playback-module.patch

index feabd65c4713e96e1c49823190164e71ad2a7037..2d0c34d197e74a8df58667c4ba0d9e39753d2553 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=znc
 PKG_VERSION:=1.6.3
-PKG_RELEASE:=4
+PKG_RELEASE:=5
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=http://znc.in/releases \
diff --git a/net/znc/patches/104-disable-empty-modules-check.patch b/net/znc/patches/104-disable-empty-modules-check.patch
new file mode 100644 (file)
index 0000000..22b5c38
--- /dev/null
@@ -0,0 +1,15 @@
+--- a/src/main.cpp
++++ b/src/main.cpp
+@@ -296,10 +296,12 @@ int main(int argc, char** argv) {
+                       CUtils::PrintStatus(false, "");
+                       CUtils::PrintError("No modules found. Perhaps you didn't install ZNC properly?");
+                       CUtils::PrintError("Read http://wiki.znc.in/Installation for instructions.");
++#if 0
+                       if (!CUtils::GetBoolInput("Do you really want to run ZNC without any modules?", false)) {
+                               CZNC::DestroyInstance();
+                               return 1;
+                       }
++#endif
+               }
+               CUtils::PrintStatus(true, "");
+       }
index 4da94cbf1f3ebd3d178db269c26fae6ca0c5c848..41a4f36c7572575d02d10dd82b550a08205407b9 100644 (file)
@@ -1,7 +1,5 @@
-Index: znc-1.6.3/modules/playback.cpp
-===================================================================
 --- /dev/null
-+++ znc-1.6.3/modules/playback.cpp
++++ b/modules/playback.cpp
 @@ -0,0 +1,288 @@
 +/*
 + * Copyright (C) 2015 J-P Nurmi
git clone https://git.99rst.org/PROJECT