OpenWrt Forum Archive

Topic: nzbget packages

The content of this topic has been archived on 29 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I do Makefile file for nzbget and libpar2. Patches in git format are below

From 0681ff63649cbdddb6b2be4226659eca68219c62 Mon Sep 17 00:00:00 2001
From: Artur Wronowski <arteqw@gmail.com>
Date: Sun, 6 Sep 2009 19:48:37 +0200
Subject: [PATCH 1/2] add nzbget-0.6.0 package

---
 net/nzbget/Makefile |   67 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 67 insertions(+), 0 deletions(-)
 create mode 100644 net/nzbget/Makefile

diff --git a/net/nzbget/Makefile b/net/nzbget/Makefile
new file mode 100644
index 0000000..169d2b4
--- /dev/null
+++ b/net/nzbget/Makefile
@@ -0,0 +1,67 @@
+#
+# Copyright (C) 2009 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=nzbget
+PKG_VERSION:=0.6.0
+PKG_RELEASE:=1
+
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_SOURCE_URL:=@SF/nzbget
+PKG_MD5SUM:=eb95b3930abffb570e37af8d284c1f9d
+
+PKG_FIXUP:=libtool
+
+include $(INCLUDE_DIR)/package.mk
+
+TARGET_LDFLAGS+=-Wl,-rpath-link="$(STAGING_DIR)/usr/lib"
+TARGET_CFLAGS += $(FPIC)
+
+define Package/nzbget
+  SECTION:=net
+  CATEGORY:=Network
+  DEPENDS:=+libxml2 +libstdcpp +libpar2 +openssl
+  URL:=http://nzbget.sourceforge.net/
+  TITLE:=Binary newsgrabber
+endef
+
+define Package/nzbget/description
+A command-line client/server based binary newsgrabber for nzb-files.
+endef
+
+CONFIGURE_ARGS += \
+    --disable-static \
+    --disable-nls \
+    --disable-curses \
+    --with-tlslib=OpenSSL \
+    --with-libpar2-includes=$(STAGING_DIR)/usr/include/libpar2 \
+    --with-libpar2-libraries=$(STAGING_DIR)/usr/lib \
+    --with-libsigc-includes=$(STAGING_DIR)/usr/include/sigc++-2.0 \
+    --with-libsigc-libraries=$(STAGING_DIR)/usr/lib \
+    --with-openssl-includes=$(STAGING_DIR)/usr/include \
+    --with-openssl-libraries=$(STAGING_DIR)/usr/lib \
+    , \
+    PKG_CONFIG_PATH="$(STAGING_DIR)/usr/lib/pkgconfig"
+
+CONFIGURE_VARS += \
+    ac_cv_header_regex_h=no \
+    CPPFLAGS="-I$(STAGING_DIR)/usr/include/libxml2 $$$$CPPFLAGS" 
+    
+define Build/Compile
+    $(MAKE) -C $(PKG_BUILD_DIR) \
+    $(TARGET_CONFIGURE_OPTS) \
+    DESTDIR="$(PKG_INSTALL_DIR)" \
+    install all
+endef
+
+define Package/nzbget/install
+    $(INSTALL_DIR) $(1)/usr/sbin
+    $(INSTALL_BIN) $(PKG_BUILD_DIR)/nzbget $(1)/usr/sbin/
+endef
+
+$(eval $(call BuildPackage,nzbget))
-- 
1.6.4.2
From 9f8d48793dec66cc1a73d05d4c609c0e0dbbad2f Mon Sep 17 00:00:00 2001
From: Artur Wronowski <arteqw@gmail.com>
Date: Sun, 6 Sep 2009 19:49:30 +0200
Subject: [PATCH 2/2] add libpar2 packages, nzbget need it

---
 libs/libpar2/Makefile |   65 +++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 65 insertions(+), 0 deletions(-)
 create mode 100644 libs/libpar2/Makefile

diff --git a/libs/libpar2/Makefile b/libs/libpar2/Makefile
new file mode 100644
index 0000000..c8f5ff6
--- /dev/null
+++ b/libs/libpar2/Makefile
@@ -0,0 +1,65 @@
+#
+# Copyright (C) 2009 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=libpar2
+PKG_VERSION:=0.2
+PKG_RELEASE:=2
+
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_SOURCE_URL:=@SF/parchive
+PKG_MD5SUM:=94c6df4e38efe08056ecde2a04e0be91
+
+PKG_FIXUP:=libtool
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/libpar2
+  SECTION:=net
+  CATEGORY:=Network
+  DEPENDS:=+libsigcxx
+  TITLE:=A library for performing common tasks related to PAR recovery sets
+endef
+
+define Package/libpar2/description
+A library for performing common tasks related to PAR recovery sets
+endef
+
+CONFIGURE_ARGS += \
+    --disable-static \
+    --disable-nls \
+
+define Build/Compile
+    $(MAKE) -C $(PKG_BUILD_DIR) \
+        $(TARGET_CONFIGURE_OPTS) \
+        CFLAGS="$(TARGET_CFLAGS)" \
+        DESTDIR="$(PKG_INSTALL_DIR)" \
+        all install
+endef
+
+define Build/InstallDev
+    $(INSTALL_DIR) $(1)/usr/include/libpar2
+    $(INSTALL_DATA) \
+        $(PKG_INSTALL_DIR)/usr/include/libpar2/*.h \
+        $(1)/usr/include/libpar2/
+
+    $(INSTALL_DIR) $(1)/usr/lib
+    $(CP) \
+        $(PKG_INSTALL_DIR)/usr/lib/libpar2.{la,so*} \
+        $(1)/usr/lib/
+endef
+
+define Package/libpar2/install
+    $(INSTALL_DIR) $(1)/usr/lib
+    $(CP) \
+        $(PKG_INSTALL_DIR)/usr/lib/libpar2.so* \
+        $(1)/usr/lib/
+endef
+
+$(eval $(call BuildPackage,libpar2))
-- 
1.6.4.2

Can you also make a Makefile for the nzbget webinterface? I think a lot of people would be happy with it.

ok, no problem. I send patches to trac.

There are no nzbget in backfire. I need to wait to next relesae of Backfire - 10.1

i have all the packages installed mentioned in wiki guide and fyi's blog but the most I can get is an error message saying 'timeout for writing PIN.wan(3g)'. Which means by now dongle is recognized as a modem, there is a tty device linked to it, ifup tries to kick in the proper hw but something is still missing.

Also I am a bit confused how and if to use usb_modeswitch at all as sometime I receive an other error message from ifup saying 'cannot write to /dev/ttyUSB'. So, does the usb-modeswitch-data install an usb hotplug/init script to automatically switch dongle to modem mode, or still have to do it manually (e.g. in rc.local)?
My understanding that comgt package  installs some chat/ppp scripts so would assume if in /etc/config/network I add the proper 3G network options I would only really need to run ifup, or need further manual tweaking?

Thanks.

How does this relate to the nzbget ?

The discussion might have continued from here.