diff options
author | nico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2005-10-19 00:16:27 +0000 |
---|---|---|
committer | nico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2005-10-19 00:16:27 +0000 |
commit | 442ac53465910abb935ed6f21c71f1de4d416132 (patch) | |
tree | 2000699f66e7dabc07862fc434e38550718a65b9 /openwrt/package/mini_httpd/Makefile | |
parent | e0098f1b20477cb9aa9d611c2b151f170e335291 (diff) |
add a patch to provide a descent PATH to cgi,
split in 3 packages (w/o ssl, w/ matrixssl & w/ openssl),
add a restart command to init-script.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@2174 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'openwrt/package/mini_httpd/Makefile')
-rw-r--r-- | openwrt/package/mini_httpd/Makefile | 57 |
1 files changed, 55 insertions, 2 deletions
diff --git a/openwrt/package/mini_httpd/Makefile b/openwrt/package/mini_httpd/Makefile index aa9d89b1b..2261b54cd 100644 --- a/openwrt/package/mini_httpd/Makefile +++ b/openwrt/package/mini_httpd/Makefile @@ -16,6 +16,8 @@ PKG_BUILD_DIR:=$(BUILD_DIR)/mini_httpd-$(PKG_VERSION) include $(TOPDIR)/package/rules.mk $(eval $(call PKG_template,MINI_HTTPD,mini-httpd,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) +$(eval $(call PKG_template,MINI_HTTPD_MATRIXSSL,mini-httpd-matrixssl,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) +$(eval $(call PKG_template,MINI_HTTPD_OPENSSL,mini-httpd-openssl,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) $(PKG_BUILD_DIR)/.configured: @@ -23,18 +25,43 @@ $(PKG_BUILD_DIR)/.configured: touch $@ $(PKG_BUILD_DIR)/.built: + # with MatrixSSL +ifneq ($(BR2_PACKAGE_MINI_HTTPD_MATRIXSSL),) $(MAKE) -C $(PKG_BUILD_DIR) \ CC=$(TARGET_CC) \ OFLAGS="$(TARGET_CFLAGS)" \ + SSL_DEFS="-DUSE_SSL -DHAVE_MATRIXSSL" \ SSL_INC="-I$(STAGING_DIR)/usr/include" \ SSL_LIBS="-L$(STAGING_DIR)/usr/lib -lmatrixssl" \ + SSL_OBJS="matrixssl_helper.o" \ all + (cd $(PKG_BUILD_DIR); mv mini_httpd mini_httpd-matrixssl; ) + $(MAKE) -C $(PKG_BUILD_DIR) clean +endif + # with OpenSSL +ifneq ($(BR2_PACKAGE_MINI_HTTPD_OPENSSL),) + $(MAKE) -C $(PKG_BUILD_DIR) \ + CC=$(TARGET_CC) \ + OFLAGS="$(TARGET_CFLAGS)" \ + SSL_DEFS="-DUSE_SSL -DHAVE_OPENSSL" \ + SSL_INC="-I$(STAGING_DIR)/usr/include" \ + SSL_LIBS="-L$(STAGING_DIR)/usr/lib -lssl -lcrypto" \ + all + (cd $(PKG_BUILD_DIR); mv mini_httpd mini_httpd-openssl; ) + $(MAKE) -C $(PKG_BUILD_DIR) clean +endif + # without SSL +ifneq ($(BR2_PACKAGE_MINI_HTTPD),) + $(MAKE) -C $(PKG_BUILD_DIR) \ + CC=$(TARGET_CC) \ + OFLAGS="$(TARGET_CFLAGS)" \ + all +endif touch $@ $(IPKG_MINI_HTTPD): install -d -m0755 $(IDIR_MINI_HTTPD)/etc - install -m0644 ./files/mini_httpd.conf $(IDIR_MINI_HTTPD)/etc/ - install -m0600 ./files/mini_httpd.pem $(IDIR_MINI_HTTPD)/etc/ + install -m0644 ./files/mini_httpd.conf $(IDIR_MINI_HTTPD)/etc/mini_httpd.conf install -d -m0755 $(IDIR_MINI_HTTPD)/etc/default install -m0644 ./files/mini_httpd.default $(IDIR_MINI_HTTPD)/etc/default/mini_httpd install -d -m0755 $(IDIR_MINI_HTTPD)/etc/init.d @@ -43,3 +70,29 @@ $(IPKG_MINI_HTTPD): install -m0755 $(PKG_BUILD_DIR)/mini_httpd $(IDIR_MINI_HTTPD)/usr/sbin/ $(RSTRIP) $(IDIR_MINI_HTTPD) $(IPKG_BUILD) $(IDIR_MINI_HTTPD) $(PACKAGE_DIR) + +$(IPKG_MINI_HTTPD_MATRIXSSL): + install -d -m0755 $(IDIR_MINI_HTTPD_MATRIXSSL)/etc + install -m0644 ./files/mini_httpd-ssl.conf $(IDIR_MINI_HTTPD_MATRIXSSL)/etc/mini_httpd.conf + install -m0600 ./files/mini_httpd.pem $(IDIR_MINI_HTTPD_MATRIXSSL)/etc/ + install -d -m0755 $(IDIR_MINI_HTTPD_MATRIXSSL)/etc/default + install -m0644 ./files/mini_httpd.default $(IDIR_MINI_HTTPD_MATRIXSSL)/etc/default/mini_httpd + install -d -m0755 $(IDIR_MINI_HTTPD_MATRIXSSL)/etc/init.d + install -m0755 ./files/mini_httpd.init $(IDIR_MINI_HTTPD_MATRIXSSL)/etc/init.d/mini_httpd + install -d -m0755 $(IDIR_MINI_HTTPD_MATRIXSSL)/usr/sbin + install -m0755 $(PKG_BUILD_DIR)/mini_httpd-matrixssl $(IDIR_MINI_HTTPD_MATRIXSSL)/usr/sbin/mini_httpd + $(RSTRIP) $(IDIR_MINI_HTTPD_MATRIXSSL) + $(IPKG_BUILD) $(IDIR_MINI_HTTPD_MATRIXSSL) $(PACKAGE_DIR) + +$(IPKG_MINI_HTTPD_OPENSSL): + install -d -m0755 $(IDIR_MINI_HTTPD_OPENSSL)/etc + install -m0644 ./files/mini_httpd-ssl.conf $(IDIR_MINI_HTTPD_OPENSSL)/etc/mini_httpd.conf + install -m0600 ./files/mini_httpd.pem $(IDIR_MINI_HTTPD_OPENSSL)/etc/ + install -d -m0755 $(IDIR_MINI_HTTPD_OPENSSL)/etc/default + install -m0644 ./files/mini_httpd.default $(IDIR_MINI_HTTPD_OPENSSL)/etc/default/mini_httpd + install -d -m0755 $(IDIR_MINI_HTTPD_OPENSSL)/etc/init.d + install -m0755 ./files/mini_httpd.init $(IDIR_MINI_HTTPD_OPENSSL)/etc/init.d/mini_httpd + install -d -m0755 $(IDIR_MINI_HTTPD_OPENSSL)/usr/sbin + install -m0755 $(PKG_BUILD_DIR)/mini_httpd-openssl $(IDIR_MINI_HTTPD_OPENSSL)/usr/sbin/mini_httpd + $(RSTRIP) $(IDIR_MINI_HTTPD_OPENSSL) + $(IPKG_BUILD) $(IDIR_MINI_HTTPD_OPENSSL) $(PACKAGE_DIR) |