[net] Web Servers/Proxies: Move all web servers, proxies, and related programs into...
[openwrt/svn-archive/archive.git] / net / hiawatha / Makefile
1 #
2 # Copyright (C) 2006-2010 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:=hiawatha
11 PKG_VERSION:=7.3
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://www.hiawatha-webserver.org/files/
16 PKG_MD5SUM:=52fd6bf798c07298e12ff69b882f3d76
17
18 PKG_INSTALL:=1
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/hiawatha
23 CATEGORY:=Network
24 SECTION:=net
25 SUBMENU:=Web Servers/Proxies
26 TITLE:=A very lightweight web server
27 URL:=http://www.hiawatha-webserver.org/
28 MAINTAINER:=Raphaƫl HUCK <rhk@cksum.org>
29 DEPENDS:=+libpthread
30 endef
31
32 define Package/hiawatha/description
33 Hiawatha is an open source webserver with a focus on security.
34 endef
35
36 CONFIGURE_ARGS+= \
37 --disable-cache \
38 --disable-monitor \
39 --disable-ssl \
40 --disable-xslt
41
42 CONFIGURE_VARS+= \
43 ac_cv_file__dev_urandom=yes \
44 webrootdir=/www
45
46 define Package/hiawatha/conffiles
47 /etc/hiawatha/hiawatha.conf
48 /etc/hiawatha/mimetype.conf
49 endef
50
51 define Package/hiawatha/install
52 $(INSTALL_DIR) $(1)/usr/sbin
53 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/hiawatha $(1)/usr/sbin/
54
55 $(INSTALL_DIR) $(1)/etc/hiawatha
56 $(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/hiawatha/{hiawatha,mimetype}.conf $(1)/etc/hiawatha/
57 endef
58
59 $(eval $(call BuildPackage,hiawatha))