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
)))
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
)))
24 $(PKG_BUILD_DIR
)/.configured
:
25 $(CP
) .
/files
/matrixssl_helper.
{c
,h
} $(PKG_BUILD_DIR
)/
28 $(PKG_BUILD_DIR
)/.built
:
30 ifneq ($(BR2_PACKAGE_MINI_HTTPD_MATRIXSSL
),)
31 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
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" \
39 (cd
$(PKG_BUILD_DIR
); mv mini_httpd mini_httpd-matrixssl
; )
40 $(MAKE
) -C
$(PKG_BUILD_DIR
) clean
43 ifneq ($(BR2_PACKAGE_MINI_HTTPD_OPENSSL
),)
44 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
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" \
51 (cd
$(PKG_BUILD_DIR
); mv mini_httpd mini_httpd-openssl
; )
52 $(MAKE
) -C
$(PKG_BUILD_DIR
) clean
55 ifneq ($(BR2_PACKAGE_MINI_HTTPD
),)
56 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
58 OFLAGS
="$(TARGET_CFLAGS)" \
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
)
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
)
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
)
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
)