From 8dfc8c4de073a9e5ac3df45a51391844dbe8e6c0 Mon Sep 17 00:00:00 2001 From: Rod Whitby Date: Fri, 21 Sep 2007 11:27:30 +0000 Subject: [PATCH] apache-server: Defined conffiles so user changes are not overwritten. Enabled mod_proxy so you can proxy webif requests to busybox httpd. Ensured that all conf files are indeed under /etc/apache, and that httpd uses this as the default location. SVN-Revision: 8908 --- net/apache/Makefile | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/net/apache/Makefile b/net/apache/Makefile index f954d0144a..5045ba3247 100644 --- a/net/apache/Makefile +++ b/net/apache/Makefile @@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=apache PKG_VERSION:=2.2.6 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE_NAME:=httpd PKG_SOURCE:=$(PKG_SOURCE_NAME)-$(PKG_VERSION).tar.gz @@ -47,6 +47,23 @@ define Package/apache-server scripts and configure the rest in /etc/httpd.conf. endef +define Package/apache-server/conffiles +/etc/apache/httpd.conf +/etc/apache/extra/httpd-autoindex.conf +/etc/apache/extra/httpd-dav.conf +/etc/apache/extra/httpd-default.conf +/etc/apache/extra/httpd-info.conf +/etc/apache/extra/httpd-languages.conf +/etc/apache/extra/httpd-manual.conf +/etc/apache/extra/httpd-mpm.conf +/etc/apache/extra/httpd-multilang-errordoc.conf +/etc/apache/extra/httpd-ssl.conf +/etc/apache/extra/httpd-userdir.conf +/etc/apache/extra/httpd-vhosts.conf +/etc/apache/magic +/etc/apache/mime.types +endef + define Package/apache-icons $(call Package/apache/Default) TITLE:=Icons from Apache @@ -60,10 +77,12 @@ define Build/Configure --with-pcre="$(STAGING_DIR)/usr/bin/pcre-config" \ --enable-http \ --enable-ssl \ + --enable-proxy \ --disable-disk-cache \ --enable-maintainer-mode \ --enable-mime-magic \ --without-suexec-bin \ + --sysconfdir=/etc/apache \ ap_void_ptr_lt_long=no \ logfiledir="/var/log" \ ) @@ -119,7 +138,7 @@ define Package/apache-server/install $(INSTALL_DIR) $(1)/usr/share $(CP) $(PKG_INSTALL_DIR)/usr/share/{error,htdocs,cgi-bin,build} $(1)/usr/share/ $(INSTALL_DIR) $(1)/etc/apache - $(CP) $(PKG_INSTALL_DIR)/etc/{magic,mime.types,extra} $(1)/etc/apache/ + $(CP) $(PKG_INSTALL_DIR)/etc/apache/{magic,mime.types,extra} $(1)/etc/apache/ $(CP) ./files/etc/apache/httpd.conf $(1)/etc/apache/ endef -- 2.30.2