7f9836cc014eed4ccecfc98f9b4aa8cfab0dc5b7
[openwrt/svn-archive/archive.git] / net / nzbgetweb / Makefile
1 #
2 # Copyright (C) 2009 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=nzbgetweb
11 PKG_VERSION:=1.3
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).zip
15 PKG_SOURCE_URL:=@SF/nzbget
16 PKG_MD5SUM:=ef342e75ff5796eab42fb3462ff4592d
17
18 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)/nzbgetweb
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/nzbgetweb
23 SECTION:=net
24 CATEGORY:=Network
25 DEPENDS:=+nzbget +php5-cgi +php5-mod-session +php5-mod-gd +php5-mod-xml
26 URL:=http://nzbget.sourceforge.net/
27 TITLE:=Web interface for nzbget
28 endef
29
30 define Package/nzbgetweb/description
31 Web interface for nzbget.
32 endef
33
34 define Build/Compile
35 endef
36
37 define Package/nzbgetweb/install
38 $(INSTALL_DIR) $(1)/www/nzbgetweb
39 $(CP) $(PKG_BUILD_DIR)/*.php $(1)/www/nzbgetweb/
40 $(CP) $(PKG_BUILD_DIR)/*.css $(1)/www/nzbgetweb/
41 $(CP) $(PKG_BUILD_DIR)/README $(1)/www/nzbgetweb/
42 $(CP) $(PKG_BUILD_DIR)/ChangeLog $(1)/www/nzbgetweb/
43 $(CP) $(PKG_BUILD_DIR)/images $(1)/www/nzbgetweb/
44 $(INSTALL_DIR) $(1)/etc
45 $(INSTALL_DATA) ./files/httpd.conf /etc/httpd,conf
46 endef
47
48 $(eval $(call BuildPackage,nzbgetweb))