From 624bba95de47393ddbc7506665611f45db8a03a2 Mon Sep 17 00:00:00 2001 From: Florian Fainelli Date: Sun, 16 Apr 2006 22:26:21 +0000 Subject: [PATCH] Create iptraf directories Build mod_webdav for lighttpd Fix libtool patch SVN-Revision: 3661 --- openwrt/package/depend.mk | 2 +- openwrt/package/iptraf/Makefile | 4 +++- .../libtool/patches/01-force_dlopen_deplibs.patch | 15 +++++++++++++++ openwrt/package/lighttpd/Makefile | 5 ++++- .../lighttpd/ipkg/lighttpd-mod-webdav.control | 5 +++++ .../lighttpd/patches/501-libxml2_includes.patch | 12 ++++++++++++ 6 files changed, 40 insertions(+), 3 deletions(-) create mode 100644 openwrt/package/libtool/patches/01-force_dlopen_deplibs.patch create mode 100644 openwrt/package/lighttpd/ipkg/lighttpd-mod-webdav.control create mode 100644 openwrt/package/lighttpd/patches/501-libxml2_includes.patch diff --git a/openwrt/package/depend.mk b/openwrt/package/depend.mk index c9f7157cbc..043e637d60 100644 --- a/openwrt/package/depend.mk +++ b/openwrt/package/depend.mk @@ -42,7 +42,7 @@ libnids-compile: libnet-compile libvorbis-compile: libogg-compile libxml2-compile: zlib-compile libxslt-compile: libxml2-compile -lighttpd-compile: openssl-compile pcre-compile +lighttpd-compile: openssl-compile pcre-compile libxml2-compile sqlite-compile logrotate-compile: popt-compile madplay-compile: libid3tag-compile libmad-compile miax-compile: bluez-libs-compile diff --git a/openwrt/package/iptraf/Makefile b/openwrt/package/iptraf/Makefile index 7c46ed092d..45377c604d 100644 --- a/openwrt/package/iptraf/Makefile +++ b/openwrt/package/iptraf/Makefile @@ -36,7 +36,9 @@ $(PKG_BUILD_DIR)/.built: $(PKG_BUILD_DIR)/.configured touch $@ $(IPKG_IPTRAF): - install -d -m0755 $(IDIR_IPTRAF)/usr/bin + install -d -m0755 $(IDIR_IPTRAF)/usr/bin \ + $(IDIR_IPTRAF)/var/run/iptraf \ + $(IDIR_IPTRAF)/var/lib/iptraf install -m0755 $(PKG_BUILD_DIR)/src/iptraf $(IDIR_IPTRAF)/usr/bin/ $(RSTRIP) $(IDIR_IPTRAF) $(IPKG_BUILD) $(IDIR_IPTRAF) $(PACKAGE_DIR) diff --git a/openwrt/package/libtool/patches/01-force_dlopen_deplibs.patch b/openwrt/package/libtool/patches/01-force_dlopen_deplibs.patch new file mode 100644 index 0000000000..b75972efe4 --- /dev/null +++ b/openwrt/package/libtool/patches/01-force_dlopen_deplibs.patch @@ -0,0 +1,15 @@ +diff -urN libtool-1.5.14/libltdl/acinclude.m4 libtool-1.5.14.new/libltdl/acinclude.m4 +--- libtool-1.5.14/libltdl/acinclude.m4 2005-02-12 13:20:02.000000000 +0100 ++++ libtool-1.5.14.new/libltdl/acinclude.m4 2006-04-16 11:22:03.000000000 +0200 +@@ -6228,10 +6228,9 @@ + ;; + esac + ]) +-if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then ++AC_DEFUN([AC_LTDL_SYS_DLOPEN_DEPLIBS], + AC_DEFINE([LTDL_DLOPEN_DEPLIBS], [1], + [Define if the OS needs help to load dependent libraries for dlopen().]) +-fi + ])# AC_LTDL_SYS_DLOPEN_DEPLIBS + + diff --git a/openwrt/package/lighttpd/Makefile b/openwrt/package/lighttpd/Makefile index d15efe4560..5b53d33a12 100644 --- a/openwrt/package/lighttpd/Makefile +++ b/openwrt/package/lighttpd/Makefile @@ -42,6 +42,7 @@ $(eval $(call PKG_template,LIGHTTPD_MOD_SIMPLE_VHOST,lighttpd-mod-simple-vhost,$ $(eval $(call PKG_template,LIGHTTPD_MOD_SSI,lighttpd-mod-ssi,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) $(eval $(call PKG_template,LIGHTTPD_MOD_STATUS,lighttpd-mod-status,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) $(eval $(call PKG_template,LIGHTTPD_MOD_USERTRACK,lighttpd-mod-usertrack,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) +$(eval $(call PKG_template,LIGHTTPD_MOD_WEBDAV,lighttpd-mod-webdav,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) $(eval $(call PKG_mod_template,LIGHTTPD_MOD_ACCESSLOG,accesslog)) $(eval $(call PKG_mod_template,LIGHTTPD_MOD_ALIAS,alias)) @@ -58,6 +59,7 @@ $(eval $(call PKG_mod_template,LIGHTTPD_MOD_SIMPLE_VHOST,simple_vhost)) $(eval $(call PKG_mod_template,LIGHTTPD_MOD_SSI,ssi)) $(eval $(call PKG_mod_template,LIGHTTPD_MOD_STATUS,status)) $(eval $(call PKG_mod_template,LIGHTTPD_MOD_USERTRACK,usertrack)) +$(eval $(call PKG_mod_template,LIGHTTPD_MOD_WEBDAV,webdav)) $(PKG_BUILD_DIR)/.configured: (cd $(PKG_BUILD_DIR); rm -rf config.{cache,status} ; \ @@ -101,7 +103,7 @@ $(PKG_BUILD_DIR)/.configured: --with-openssl="$(STAGING_DIR)/usr" \ --with-pcre \ --without-valgrind \ - --without-webdav-props \ + --with-webdav-props \ ) touch $@ @@ -109,6 +111,7 @@ $(PKG_BUILD_DIR)/.built: rm -rf $(PKG_INSTALL_DIR) mkdir -p $(PKG_INSTALL_DIR) $(MAKE) -C $(PKG_BUILD_DIR) \ + STAGING_DIR=$(STAGING_DIR) \ DESTDIR="$(PKG_INSTALL_DIR)" \ all install touch $@ diff --git a/openwrt/package/lighttpd/ipkg/lighttpd-mod-webdav.control b/openwrt/package/lighttpd/ipkg/lighttpd-mod-webdav.control new file mode 100644 index 0000000000..0d5110ce6f --- /dev/null +++ b/openwrt/package/lighttpd/ipkg/lighttpd-mod-webdav.control @@ -0,0 +1,5 @@ +Package: lighttpd-mod-webdav +Priority: optional +Section: net +Description: a webdav module for lighttpd +Depends: lighttpd, libxml2, sqlite diff --git a/openwrt/package/lighttpd/patches/501-libxml2_includes.patch b/openwrt/package/lighttpd/patches/501-libxml2_includes.patch new file mode 100644 index 0000000000..4b7943d9d1 --- /dev/null +++ b/openwrt/package/lighttpd/patches/501-libxml2_includes.patch @@ -0,0 +1,12 @@ +diff -urN lighttpd-1.4.11/src/Makefile.in lighttpd-1.4.11.new/src/Makefile.in +--- lighttpd-1.4.11/src/Makefile.in 2006-03-07 13:21:02.000000000 +0100 ++++ lighttpd-1.4.11.new/src/Makefile.in 2006-04-17 00:16:12.000000000 +0200 +@@ -409,7 +409,7 @@ + STRIP = @STRIP@ + U = @U@ + VERSION = @VERSION@ +-XML_CFLAGS = @XML_CFLAGS@ ++XML_CFLAGS = -I$(STAGING_DIR)/usr/include/libxml2 + XML_LIBS = @XML_LIBS@ + Z_LIB = @Z_LIB@ + ac_ct_AR = @ac_ct_AR@ -- 2.25.1