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