From b27cffac2cfcb0926e42a5aec96bbbf526cf5773 Mon Sep 17 00:00:00 2001 From: jakob Date: Fri, 13 Sep 2002 16:39:25 +0000 Subject: [PATCH] A class 1 and 2 DAV server for the Apache webserver --- www/mod_dav/Makefile | 45 ++++++++++++++++++++++++++++++++ www/mod_dav/distinfo | 3 +++ www/mod_dav/files/mod_dav-enable | 18 +++++++++++++ www/mod_dav/pkg/DEINSTALL | 28 ++++++++++++++++++++ www/mod_dav/pkg/DESCR | 17 ++++++++++++ www/mod_dav/pkg/MESSAGE | 10 +++++++ www/mod_dav/pkg/PLIST | 7 +++++ 7 files changed, 128 insertions(+) create mode 100644 www/mod_dav/Makefile create mode 100644 www/mod_dav/distinfo create mode 100644 www/mod_dav/files/mod_dav-enable create mode 100644 www/mod_dav/pkg/DEINSTALL create mode 100644 www/mod_dav/pkg/DESCR create mode 100644 www/mod_dav/pkg/MESSAGE create mode 100644 www/mod_dav/pkg/PLIST diff --git a/www/mod_dav/Makefile b/www/mod_dav/Makefile new file mode 100644 index 00000000000..2c9355abbc6 --- /dev/null +++ b/www/mod_dav/Makefile @@ -0,0 +1,45 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2002/09/13 16:39:25 jakob Exp $ + +COMMENT= "a class 1 and 2 DAV server for the Apache webserver" + +# This port currently only works with archs supporting dynamic loading +# and has Apache that supports DSO's. +ONLY_FOR_ARCHS= alpha i386 m68k powerpc sparc sparc64 + +PKGNAME= mod_dav-1.0.3 +DISTNAME= mod_dav-1.0.3-1.3.6 +CATEGORIES= www + +MASTER_SITES= http://www.webdav.org/mod_dav/ + +HOMEPAGE= http://www.webdav.org/mod_dav/ + +MAINTAINER= Jakob Schlyter + +PERMIT_PACKAGE_CDROM= Yes +PERMIT_PACKAGE_FTP= Yes +PERMIT_DISTFILES_CDROM= Yes +PERMIT_DISTFILES_FTP= Yes + +LIB_DEPENDS= expat.2::textproc/expat + +CONFIGURE_STYLE= gnu +CONFIGURE_ARGS+= --with-apxs=/usr/sbin/apxs \ + --with-expat=${LOCALBASE} + +DOCDIR= share/doc/mod_dav +DOCFILES= README INSTALL LICENSE.html + +post-build: + @sed 's,!!PREFIX!!,${PREFIX},' \ + < ${FILESDIR}/mod_dav-enable > ${WRKBUILD}/mod_dav-enable + +do-install: + ${INSTALL_SCRIPT} ${WRKSRC}/mod_dav-enable ${PREFIX}/sbin + ${INSTALL_DATA} ${WRKSRC}/libdav.so ${PREFIX}/lib + ${INSTALL_DATA_DIR} ${PREFIX}/${DOCDIR} +.for f in ${DOCFILES} + ${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/${DOCDIR} +.endfor + +.include diff --git a/www/mod_dav/distinfo b/www/mod_dav/distinfo new file mode 100644 index 00000000000..308665f13dd --- /dev/null +++ b/www/mod_dav/distinfo @@ -0,0 +1,3 @@ +MD5 (mod_dav-1.0.3-1.3.6.tar.gz) = ba83f2aa6e13b216a11d465b82aab484 +RMD160 (mod_dav-1.0.3-1.3.6.tar.gz) = e674c56b66b5ef9fa3edb29f581eb3e2c705d20d +SHA1 (mod_dav-1.0.3-1.3.6.tar.gz) = cf1baa75c14131f96299be3fdf26d1fa91e6c7e3 diff --git a/www/mod_dav/files/mod_dav-enable b/www/mod_dav/files/mod_dav-enable new file mode 100644 index 00000000000..2c1cd71218f --- /dev/null +++ b/www/mod_dav/files/mod_dav-enable @@ -0,0 +1,18 @@ +#!/bin/sh +# +# $OpenBSD: mod_dav-enable,v 1.1.1.1 2002/09/13 16:39:25 jakob Exp $ + +MODULE=!!PREFIX!!/lib/libdav.so + +if [ `id -u` -ne 0 ]; then + echo "You must be root to run this script." + exit +fi + +if [ ! -f ${MODULE} ]; then + echo "Cannot find mod_dav module (${MODULE})" + exit 1 +else + echo "Enabling DAV module..." + /usr/sbin/apxs -i -a -n dav ${MODULE} +fi diff --git a/www/mod_dav/pkg/DEINSTALL b/www/mod_dav/pkg/DEINSTALL new file mode 100644 index 00000000000..d5b06dc70a0 --- /dev/null +++ b/www/mod_dav/pkg/DEINSTALL @@ -0,0 +1,28 @@ +#!/bin/sh +# +# $OpenBSD: DEINSTALL,v 1.1.1.1 2002/09/13 16:39:25 jakob Exp $ +# +# mod_dav de-installation + +set -e +PATH=/bin:/usr/bin:/sbin:/usr/sbin +PREFIX=${PKG_PREFIX:-/usr/local} +CONF=`apxs -q SYSCONFDIR`/httpd.conf +MODULE=/usr/lib/apache/modules/mod_dav.so + +rm -f ${MODULE} + +echo +echo "+---------------" +echo "| To completely deinstall the $1 package you" +echo "| need to perform these steps as root:" +echo "|" +echo "| edit ${CONF}" +echo "| remove the line LoadModule dav_module" +echo "|" +echo "| Do not do this if you plan on re-installing $1" +echo "| package at some future time." +echo "+---------------" +echo + +exit 0 diff --git a/www/mod_dav/pkg/DESCR b/www/mod_dav/pkg/DESCR new file mode 100644 index 00000000000..39ae008f7d8 --- /dev/null +++ b/www/mod_dav/pkg/DESCR @@ -0,0 +1,17 @@ +A class 1 and 2 DAV server for the Apache webserver + +From http://www.webdav.org: + + "WebDAV stands for 'Web-based Distributed Authoring and Versioning'. + It is a set of extensions to the HTTP protocol which allows users to + collaboratively edit and manage files on remote web servers." + +DAV functionality includes creating, moving, copying, and deleting files +and directories on a remote web server. Utilizing DAV requires both a +DAV-aware client and server. mod_dav provides complete class 1 and 2 DAV +services to DAV clients via the Apache webserver (1.3.4 or later). The +number of DAV-aware clients is growing and includes the 'Web Folders' used +in Microsoft Internet Explorer 5.0 and Office 2000. + + +WWW: ${HOMEPAGE} diff --git a/www/mod_dav/pkg/MESSAGE b/www/mod_dav/pkg/MESSAGE new file mode 100644 index 00000000000..6a4ca0f5758 --- /dev/null +++ b/www/mod_dav/pkg/MESSAGE @@ -0,0 +1,10 @@ ++--------------- +| To finish the install of ${PKGNAME}, you need +| to enable the module using the following command +| +| ${PREFIX}/sbin/mod_dav-enable +| +| If you already have Apache running on your machine, +| you should not use "apachectl restart" - instead, +| you should fully stop and then restart the server. ++--------------- diff --git a/www/mod_dav/pkg/PLIST b/www/mod_dav/pkg/PLIST new file mode 100644 index 00000000000..f18e7c4d40d --- /dev/null +++ b/www/mod_dav/pkg/PLIST @@ -0,0 +1,7 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2002/09/13 16:39:25 jakob Exp $ +lib/libdav.so +sbin/mod_dav-enable +share/doc/mod_dav/INSTALL +share/doc/mod_dav/LICENSE.html +share/doc/mod_dav/README +@dirrm share/doc/mod_dav