add some info that it should always be used
[openwrt.git] / package / mini_httpd / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=mini-httpd
6 PKG_VERSION:=1.19
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=792a529dfe974355aad8ba6c80e54e7a
9
10 PKG_SOURCE_URL:=http://www.acme.com/software/mini_httpd/
11 PKG_SOURCE:=mini_httpd-$(PKG_VERSION).tar.gz
12 PKG_CAT:=zcat
13
14 PKG_BUILD_DIR:=$(BUILD_DIR)/mini_httpd-$(PKG_VERSION)
15
16 include $(TOPDIR)/package/rules.mk
17
18 $(eval $(call PKG_template,MINI_HTTPD,mini-httpd,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
19
20
21 $(PKG_BUILD_DIR)/.configured:
22 cp -f ./files/matrixssl_helper.{c,h} $(PKG_BUILD_DIR)/
23 touch $@
24
25 $(PKG_BUILD_DIR)/.built:
26 $(MAKE) -C $(PKG_BUILD_DIR) \
27 CC=$(TARGET_CC) \
28 OFLAGS="$(TARGET_CFLAGS)" \
29 SSL_INC="-I$(STAGING_DIR)/usr/include" \
30 SSL_LIBS="-L$(STAGING_DIR)/usr/lib -lmatrixssl" \
31 all
32 touch $@
33
34 $(IPKG_MINI_HTTPD):
35 install -d -m0755 $(IDIR_MINI_HTTPD)/etc
36 install -m0644 ./files/mini_httpd.conf $(IDIR_MINI_HTTPD)/etc/
37 install -m0600 ./files/mini_httpd.pem $(IDIR_MINI_HTTPD)/etc/
38 install -d -m0755 $(IDIR_MINI_HTTPD)/etc/default
39 install -m0644 ./files/mini_httpd.default $(IDIR_MINI_HTTPD)/etc/default/mini_httpd
40 install -d -m0755 $(IDIR_MINI_HTTPD)/etc/init.d
41 install -m0755 ./files/mini_httpd.init $(IDIR_MINI_HTTPD)/etc/init.d/mini_httpd
42 install -d -m0755 $(IDIR_MINI_HTTPD)/usr/sbin
43 install -m0755 $(PKG_BUILD_DIR)/mini_httpd $(IDIR_MINI_HTTPD)/usr/sbin/
44 $(RSTRIP) $(IDIR_MINI_HTTPD)
45 $(IPKG_BUILD) $(IDIR_MINI_HTTPD) $(PACKAGE_DIR)
This page took 0.04052 seconds and 5 git commands to generate.