fix syslog-ng, remove libol dependency in ipkg/control since statically
[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 $(eval $(call PKG_template,MINI_HTTPD_HTPASSWD,mini-httpd-htpasswd,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
20 $(eval $(call PKG_template,MINI_HTTPD_MATRIXSSL,mini-httpd-matrixssl,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
21 $(eval $(call PKG_template,MINI_HTTPD_OPENSSL,mini-httpd-openssl,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
22
23
24 $(PKG_BUILD_DIR)/.configured:
25 $(CP) ./files/matrixssl_helper.{c,h} $(PKG_BUILD_DIR)/
26 touch $@
27
28 $(PKG_BUILD_DIR)/.built:
29 # with MatrixSSL
30 ifneq ($(BR2_PACKAGE_MINI_HTTPD_MATRIXSSL),)
31 $(MAKE) -C $(PKG_BUILD_DIR) \
32 CC=$(TARGET_CC) \
33 OFLAGS="$(TARGET_CFLAGS)" \
34 SSL_DEFS="-DUSE_SSL -DHAVE_MATRIXSSL" \
35 SSL_INC="-I$(STAGING_DIR)/usr/include" \
36 SSL_LIBS="-L$(STAGING_DIR)/usr/lib -lmatrixssl" \
37 SSL_OBJS="matrixssl_helper.o" \
38 all
39 (cd $(PKG_BUILD_DIR); mv mini_httpd mini_httpd-matrixssl; )
40 $(MAKE) -C $(PKG_BUILD_DIR) clean
41 endif
42 # with OpenSSL
43 ifneq ($(BR2_PACKAGE_MINI_HTTPD_OPENSSL),)
44 $(MAKE) -C $(PKG_BUILD_DIR) \
45 CC=$(TARGET_CC) \
46 OFLAGS="$(TARGET_CFLAGS)" \
47 SSL_DEFS="-DUSE_SSL -DHAVE_OPENSSL" \
48 SSL_INC="-I$(STAGING_DIR)/usr/include" \
49 SSL_LIBS="-L$(STAGING_DIR)/usr/lib -lssl -lcrypto" \
50 all
51 (cd $(PKG_BUILD_DIR); mv mini_httpd mini_httpd-openssl; )
52 $(MAKE) -C $(PKG_BUILD_DIR) clean
53 endif
54 # without SSL
55 ifneq ($(BR2_PACKAGE_MINI_HTTPD),)
56 $(MAKE) -C $(PKG_BUILD_DIR) \
57 CC=$(TARGET_CC) \
58 OFLAGS="$(TARGET_CFLAGS)" \
59 all
60 endif
61 touch $@
62
63 $(IPKG_MINI_HTTPD):
64 install -d -m0755 $(IDIR_MINI_HTTPD)/etc
65 install -m0644 ./files/mini_httpd.conf $(IDIR_MINI_HTTPD)/etc/mini_httpd.conf
66 install -d -m0755 $(IDIR_MINI_HTTPD)/etc/default
67 install -m0644 ./files/mini_httpd.default $(IDIR_MINI_HTTPD)/etc/default/mini_httpd
68 install -d -m0755 $(IDIR_MINI_HTTPD)/etc/init.d
69 install -m0755 ./files/mini_httpd.init $(IDIR_MINI_HTTPD)/etc/init.d/mini_httpd
70 install -d -m0755 $(IDIR_MINI_HTTPD)/usr/sbin
71 install -m0755 $(PKG_BUILD_DIR)/mini_httpd $(IDIR_MINI_HTTPD)/usr/sbin/
72 $(RSTRIP) $(IDIR_MINI_HTTPD)
73 $(IPKG_BUILD) $(IDIR_MINI_HTTPD) $(PACKAGE_DIR)
74
75 $(IPKG_MINI_HTTPD_HTPASSWD):
76 install -d -m0755 $(IDIR_MINI_HTTPD_HTPASSWD)/usr/sbin
77 install -m0755 $(PKG_BUILD_DIR)/htpasswd $(IDIR_MINI_HTTPD_HTPASSWD)/usr/sbin/
78 $(RSTRIP) $(IDIR_MINI_HTTPD_HTPASSWD)
79 $(IPKG_BUILD) $(IDIR_MINI_HTTPD_HTPASSWD) $(PACKAGE_DIR)
80
81 $(IPKG_MINI_HTTPD_MATRIXSSL):
82 install -d -m0755 $(IDIR_MINI_HTTPD_MATRIXSSL)/etc
83 install -m0644 ./files/mini_httpd-ssl.conf $(IDIR_MINI_HTTPD_MATRIXSSL)/etc/mini_httpd.conf
84 install -m0600 ./files/mini_httpd.pem $(IDIR_MINI_HTTPD_MATRIXSSL)/etc/
85 install -d -m0755 $(IDIR_MINI_HTTPD_MATRIXSSL)/etc/default
86 install -m0644 ./files/mini_httpd.default $(IDIR_MINI_HTTPD_MATRIXSSL)/etc/default/mini_httpd
87 install -d -m0755 $(IDIR_MINI_HTTPD_MATRIXSSL)/etc/init.d
88 install -m0755 ./files/mini_httpd.init $(IDIR_MINI_HTTPD_MATRIXSSL)/etc/init.d/mini_httpd
89 install -d -m0755 $(IDIR_MINI_HTTPD_MATRIXSSL)/usr/sbin
90 install -m0755 $(PKG_BUILD_DIR)/mini_httpd-matrixssl $(IDIR_MINI_HTTPD_MATRIXSSL)/usr/sbin/mini_httpd
91 $(RSTRIP) $(IDIR_MINI_HTTPD_MATRIXSSL)
92 $(IPKG_BUILD) $(IDIR_MINI_HTTPD_MATRIXSSL) $(PACKAGE_DIR)
93
94 $(IPKG_MINI_HTTPD_OPENSSL):
95 install -d -m0755 $(IDIR_MINI_HTTPD_OPENSSL)/etc
96 install -m0644 ./files/mini_httpd-ssl.conf $(IDIR_MINI_HTTPD_OPENSSL)/etc/mini_httpd.conf
97 install -m0600 ./files/mini_httpd.pem $(IDIR_MINI_HTTPD_OPENSSL)/etc/
98 install -d -m0755 $(IDIR_MINI_HTTPD_OPENSSL)/etc/default
99 install -m0644 ./files/mini_httpd.default $(IDIR_MINI_HTTPD_OPENSSL)/etc/default/mini_httpd
100 install -d -m0755 $(IDIR_MINI_HTTPD_OPENSSL)/etc/init.d
101 install -m0755 ./files/mini_httpd.init $(IDIR_MINI_HTTPD_OPENSSL)/etc/init.d/mini_httpd
102 install -d -m0755 $(IDIR_MINI_HTTPD_OPENSSL)/usr/sbin
103 install -m0755 $(PKG_BUILD_DIR)/mini_httpd-openssl $(IDIR_MINI_HTTPD_OPENSSL)/usr/sbin/mini_httpd
104 $(RSTRIP) $(IDIR_MINI_HTTPD_OPENSSL)
105 $(IPKG_BUILD) $(IDIR_MINI_HTTPD_OPENSSL) $(PACKAGE_DIR)
This page took 0.054404 seconds and 5 git commands to generate.