Skip site navigation (1)Skip section navigation (2)
Date:      18 Oct 1999 14:05:54 -0000
From:      patrick@mindstep.com
To:        FreeBSD-gnats-submit@freebsd.org
Cc:        patrick@mindstep.com
Subject:   ports/14398: NEW PORT: mod_dav module for Apache
Message-ID:  <19991018140554.755.qmail@jacuzzi.local.mindstep.com>

next in thread | raw e-mail | index | archive | help

>Number:         14398
>Category:       ports
>Synopsis:       NEW PORT: mod_dav module for Apache
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Oct 18 07:10:01 PDT 1999
>Closed-Date:
>Last-Modified:
>Originator:     Patrick Bihan-Faou
>Release:        FreeBSD 3.2-STABLE i386
>Organization:
MindStep Corporation
>Environment:

FreeBSD 3.2-Stable
Ports updated on October 14, 1999

>Description:

This port installs the mod_dav module for Apache. It requires that Apache
version 1.3.6 or later be installed before. This port will not install
Apache by itself.

Mod_dav implements DAV support for Apache.


>How-To-Repeat:

n/a

>Fix:
	

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	mod_dav/
#	mod_dav/files
#	mod_dav/files/md5
#	mod_dav/files/apache.conf.mod_dav
#	mod_dav/pkg
#	mod_dav/pkg/COMMENT
#	mod_dav/pkg/DESCR
#	mod_dav/pkg/PLIST
#	mod_dav/Makefile
#
echo c - mod_dav/
mkdir -p mod_dav/ > /dev/null 2>&1
echo c - mod_dav/files
mkdir -p mod_dav/files > /dev/null 2>&1
echo x - mod_dav/files/md5
sed 's/^X//' >mod_dav/files/md5 << 'END-of-mod_dav/files/md5'
XMD5 (mod_dav-0.9.12-1.3.6.tar.gz) = bcad3b1b621de180acee9a6501696b4d
END-of-mod_dav/files/md5
echo x - mod_dav/files/apache.conf.mod_dav
sed 's/^X//' >mod_dav/files/apache.conf.mod_dav << 'END-of-mod_dav/files/apache.conf.mod_dav'
X###
X### This file provides quick and dirty indications on how
X### to set up the mod_dav module with apache.
X###
X### Please refer to the main web site for more information
X### http://www.webdav.org/mod_dav/
X###
X
X
X###
X### This goes in the Global Environment section (Section 1)
X###
X### This should have been added automatically during the install process
X###
X
XLoadModule dav_module         libexec/apache/libdav.so
X
XAddModule mod_dav.c
X
X
X
X
X###
X### This goes in the main server configuration section (section 2)
X###
X### The lock database will have to be created in the /var/db directory
X### to do so, just do (as root):
X### # touch /var/db/DAVLock.dir
X### # touch /var/db/DAVLock.pag
X### # chown nobody.nobody /var/db/DAVLock.*
X### # chmod 640 /var/db/DAVLock.*
X###
X
XDAVLockDB /var/db/DAVLock
XDAVMinTimeout 600
X
X
X
X###
X### This is an example of per location/directory configuration
X###
X
X<Location />
X  DAV On
X  AuthType Basic
X  AuthName DAV
X  AuthUserFile dav.passwd
X  <LimitExcept GET HEAD OPTIONS>
X    require user webadmin
X  </LimitExcept>
X</Location>
X
END-of-mod_dav/files/apache.conf.mod_dav
echo c - mod_dav/pkg
mkdir -p mod_dav/pkg > /dev/null 2>&1
echo x - mod_dav/pkg/COMMENT
sed 's/^X//' >mod_dav/pkg/COMMENT << 'END-of-mod_dav/pkg/COMMENT'
Xmod_dav: an Apache module that provides DAV capabilities
END-of-mod_dav/pkg/COMMENT
echo x - mod_dav/pkg/DESCR
sed 's/^X//' >mod_dav/pkg/DESCR << 'END-of-mod_dav/pkg/DESCR'
Xmod_dav: a DAV module for Apache
X
Xmod_dav is an Apache module that provides DAV capabilities 
Xfor your Apache web server. 
X
Xmod_dav is made by Greg Stein.
X
XIt is an Open Source module, provided under an Apache-style license.
X
X
Xmod_dav requires that Apache 1.3.6 or later be already installed
Xon your system. If this is not the case please select your
Xpreferred Apache configuration from the ports distribution.
X
X
XMore information about mod_dav can be found on the web site.
X
XWEB: http://www.webdav.org/mod_dav/
X
X--
XPatrick Bihan-Faou
Xwww.mindstep.com
END-of-mod_dav/pkg/DESCR
echo x - mod_dav/pkg/PLIST
sed 's/^X//' >mod_dav/pkg/PLIST << 'END-of-mod_dav/pkg/PLIST'
Xlibexec/apache/libdav.so
Xetc/apache/apache.conf.mod_dav
END-of-mod_dav/pkg/PLIST
echo x - mod_dav/Makefile
sed 's/^X//' >mod_dav/Makefile << 'END-of-mod_dav/Makefile'
X# New ports collection makefile for:	mod_dav (apache)
X# Version required:	0.9.12
X# Date created:		Sun Oct 17, 1999
X# Whom:			patrick@mindstep.com
X#
X# $FreeBSD$
X#
X
XDISTNAME=	mod_dav-${DAV_VERSION}-${APACHE_VERSION}
XPKGNAME=	mod_dav-${DAV_VERSION}
XCATEGORIES=	www
XMASTER_SITES=	http://www.webdav.org/mod_dav/
X
XMAINTAINER=	patrick@mindstep.com
X
X#BUILD_DEPENDS=	${PREFIX}/sbin/apxs:${PORTSDIR}/www/apache13
X
XAPACHE_VERSION=	1.3.6
XDAV_VERSION=	0.9.12
X
XHAS_CONFIGURE=	yes
XCONFIGURE_ARGS=	--prefix=${PREFIX} \
X		--bindir=${PREFIX}/bin \
X		--sbindir=${PREFIX}/sbin \
X		--libexecdir=${PREFIX}/libexec/apache \
X		--mandir=${PREFIX}/man \
X		--sysconfdir=${PREFIX}/etc/apache \
X		--datadir=${PREFIX}/share/apache \
X		--includedir=${PREFIX}/include/apache \
X		--with-apxs=${PREFIX}/sbin/apxs
X
XCONFIGURE_ENV=	CFLAGS='${CFLAGS}' \
X		PATH="${PREFIX}/bin:${PREFIX}/sbin:${PATH}"
X
Xpre-configure:
X	@ [ -x ${PREFIX}/sbin/apxs ] \
X	|| (${ECHO_MSG} "********************************************************" \
X	&& ${ECHO_MSG} "* MOD_DAV requires apache version ${APACHE_VERSION}" \
X	&& ${ECHO_MSG} "* or better. Please install your preferred Apache" \
X	&& ${ECHO_MSG} "* configuration from the ports directory."\
X	&& ${ECHO_MSG} "* "\
X	&& ${ECHO_MSG} "* ${PORTSDIR}/www/apache13    basic Apache" \
X	&& ${ECHO_MSG} "* or"\
X	&& ${ECHO_MSG} "* ${PORTSDIR}/www/apache13-*  Apache with some modules" \
X	&& ${ECHO_MSG} "* "\
X	&& ${ECHO_MSG} "********************************************************" \
X	&& false)
X
Xpost-install:
X	${INSTALL_DATA} ${FILESDIR}/apache.conf.mod_dav ${PREFIX}/etc/apache
X	@${ECHO_MSG} "*******************************************************"
X	@${ECHO_MSG} "* Please review the mod_dav configuration in the main"
X	@${ECHO_MSG} "* Apache configuration file."
X	@${ECHO_MSG} "* ${PREFIX}/etc/apache/apache.conf"
X	@${ECHO_MSG} "*"
X	@${ECHO_MSG} "* Look at the file ${PREFIX}/etc/apache/apache.conf.mod_dav"
X	@${ECHO_MSG} "* for indications on what to do."
X	@${ECHO_MSG} "*"
X	@${ECHO_MSG} "*******************************************************"
X
X.include <bsd.port.mk>
END-of-mod_dav/Makefile
exit


>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19991018140554.755.qmail>