8652f4bb7e92a4be82c3e829ea360fd13ff95653
[openwrt/svn-archive/archive.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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=hiawatha
11 PKG_VERSION:=6.19
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:=1e9d4790ab4566f3ad4f8b1ea4997dca
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/hiawatha
21 CATEGORY:=Network
22 SECTION:=net
23 SUBMENU:=Web
24 TITLE:=A very lightweight web server
25 URL:=http://www.hiawatha-webserver.org/
26 DEPENDS:=+libpthread
27 endef
28
29 define Package/hiawatha/description
30 Hiawatha is a webserver for Unix.
31 endef
32
33 CONFIGURE_ARGS+= \
34 --disable-cache \
35 --disable-ssl
36
37 CONFIGURE_VARS+= \
38 ac_cv_file__dev_urandom=yes \
39 webrootdir=/www
40
41 define Package/hiawatha/conffiles
42 /etc/hiawatha/hiawatha.conf
43 /etc/hiawatha/mimetype.conf
44 endef
45
46 define Package/hiawatha/install
47 $(INSTALL_DIR) $(1)/usr/sbin
48 $(INSTALL_BIN) $(PKG_BUILD_DIR)/hiawatha $(1)/usr/sbin/
49 $(INSTALL_DIR) $(1)/etc/hiawatha
50 $(INSTALL_CONF) $(PKG_BUILD_DIR)/etc/hiawatha/{hiawatha,mimetype}.conf $(1)/etc/hiawatha/
51 endef
52
53 $(eval $(call BuildPackage,hiawatha))