a66e6767e5f0e0343fdbf57cebc0a7285741a6ad
[packages.git] / net / hiawatha / 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 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=hiawatha
12 PKG_VERSION:=6.12
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://www.hiawatha-webserver.org/files/
17 PKG_MD5SUM:=cf03ec29484297af9d0d313fad23e061
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/hiawatha
22   CATEGORY:=Network
23   SECTION:=net
24   SUBMENU:=Web
25   TITLE:=A very lightweight web server
26   URL:=http://www.hiawatha-webserver.org/
27   DEPENDS:=+libpthread
28 endef
29
30 define Package/hiawatha/description
31   Hiawatha is a webserver for Unix.
32 endef
33
34 CONFIGURE_ARGS+= \
35         --disable-cache \
36         --disable-ssl \
37         --disable-ipv6
38
39 CONFIGURE_VARS+= \
40         ac_cv_file__dev_urandom=yes
41
42 define Package/hiawatha/conffiles
43 /etc/hiawatha/httpd.conf
44 /etc/hiawatha/mimetype.conf
45 endef
46
47 define Package/hiawatha/install
48         $(INSTALL_DIR) $(1)/usr/sbin
49         $(INSTALL_BIN) $(PKG_BUILD_DIR)/hiawatha $(1)/usr/sbin/
50         $(INSTALL_DIR) $(1)/etc/hiawatha
51         $(INSTALL_DATA) ./files/httpd.conf $(1)/etc/hiawatha/
52         $(INSTALL_DATA) ./files/mimetype.conf $(1)/etc/hiawatha/
53 endef
54
55 $(eval $(call BuildPackage,hiawatha))