3 include $(TOPDIR)/rules.mk
8 PKG_MD5SUM:=792a529dfe974355aad8ba6c80e54e7a
10 PKG_SOURCE_URL:=http://www.acme.com/software/mini_httpd/
11 PKG_SOURCE:=mini_httpd-$(PKG_VERSION).tar.gz
14 PKG_BUILD_DIR:=$(BUILD_DIR)/mini_httpd-$(PKG_VERSION)
16 include $(TOPDIR)/package/rules.mk
18 $(eval $(call PKG_template,MINI_HTTPD,mini-httpd,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
21 $(PKG_BUILD_DIR)/.configured:
22 cp -f ./files/matrixssl_helper.{c,h} $(PKG_BUILD_DIR)/
25 $(PKG_BUILD_DIR)/.built:
26 $(MAKE) -C $(PKG_BUILD_DIR) \
28 OFLAGS="$(TARGET_CFLAGS)" \
29 SSL_INC="-I$(STAGING_DIR)/usr/include" \
30 SSL_LIBS="-L$(STAGING_DIR)/usr/lib -lmatrixssl" \
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)