[package] add nzbgetweb (#5946)
authorFlorian Fainelli <florian@openwrt.org>
Mon, 23 Nov 2009 20:09:07 +0000 (20:09 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Mon, 23 Nov 2009 20:09:07 +0000 (20:09 +0000)
SVN-Revision: 18501

net/nzbgetweb/Makefile [new file with mode: 0644]
net/nzbgetweb/files/httpd.conf [new file with mode: 0644]

diff --git a/net/nzbgetweb/Makefile b/net/nzbgetweb/Makefile
new file mode 100644 (file)
index 0000000..7f9836c
--- /dev/null
@@ -0,0 +1,48 @@
+#
+# 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:=nzbgetweb
+PKG_VERSION:=1.3
+PKG_RELEASE:=1
+
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).zip
+PKG_SOURCE_URL:=@SF/nzbget
+PKG_MD5SUM:=ef342e75ff5796eab42fb3462ff4592d
+
+PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)/nzbgetweb
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/nzbgetweb
+  SECTION:=net
+  CATEGORY:=Network
+  DEPENDS:=+nzbget +php5-cgi +php5-mod-session +php5-mod-gd +php5-mod-xml
+  URL:=http://nzbget.sourceforge.net/
+  TITLE:=Web interface for nzbget
+endef
+
+define Package/nzbgetweb/description
+Web interface for nzbget.
+endef
+
+define Build/Compile
+endef
+
+define Package/nzbgetweb/install
+       $(INSTALL_DIR) $(1)/www/nzbgetweb
+       $(CP) $(PKG_BUILD_DIR)/*.php $(1)/www/nzbgetweb/
+       $(CP) $(PKG_BUILD_DIR)/*.css $(1)/www/nzbgetweb/        
+       $(CP) $(PKG_BUILD_DIR)/README $(1)/www/nzbgetweb/
+       $(CP) $(PKG_BUILD_DIR)/ChangeLog $(1)/www/nzbgetweb/
+       $(CP) $(PKG_BUILD_DIR)/images $(1)/www/nzbgetweb/
+       $(INSTALL_DIR) $(1)/etc
+       $(INSTALL_DATA) ./files/httpd.conf /etc/httpd,conf
+endef
+
+$(eval $(call BuildPackage,nzbgetweb))
diff --git a/net/nzbgetweb/files/httpd.conf b/net/nzbgetweb/files/httpd.conf
new file mode 100644 (file)
index 0000000..90a3009
--- /dev/null
@@ -0,0 +1 @@
+*.php:/usr/bin/php-cgi
\ No newline at end of file