ports/190431: new port to install mod_dav_svn from subversion

Vivek Khera vivek at khera.org
Fri May 30 20:20:00 UTC 2014


>Number:         190431
>Category:       ports
>Synopsis:       new port to install mod_dav_svn from subversion
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri May 30 20:20:00 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator:     Vivek Khera
>Release:        FreeBSD 9.2-RELEASE-p6 amd64
>Organization:
>Environment:
System: FreeBSD lorax.kcilink.com 9.2-RELEASE-p6 FreeBSD 9.2-RELEASE-p6 #7 r266012M: Thu May 15 09:39:51 EDT 2014 vivek at lorax.kcilink.com:/usr/obj/u/lorax1/usr9/src/sys/KCI64 amd64


	
>Description:
	

The devel/subversion port default configuraiton does not install the
mod_dav_svn module needed to run subversion as a server via apache. In an
effort to use only pre-built binary packages, I submit this port which will
install the mod_dav_svn and mod_authz_svn modules.

This makes it possible to use the base subversion package on all machines as
it provides the client part, and this new port, www/mod_dav_svn, only on the
server machine as an add-on to subversion.

It is my belief that devel/subversion should lose the option to install
mod_dav_svn itself, or if such an option is selected, to conflict with
www/mod_dav_svn. I did not implement these.

Having this "server" variant split out also allows other ports that depend on
mod_dav_svn to have packages built, such as www/mod_authnz_crowd, which needs
it. Currently this port cannot be built into a package. Once mod_dav_svn is
accepted into ports, I will submit the patch I have for the crowd module to
depend on it.

>How-To-Repeat:
	
>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:
#
#	Makefile
#	distinfo
#	pkg-descr
#	pkg-plist
#
echo x - Makefile
sed 's/^X//' >Makefile << 'b67911656ef5d18c4ae36cb6741b7965'
X# Created by: vivek at khera.org
X# $FreeBSD: $
X
XPORTNAME=	mod_dav_svn
XPORTVERSION=	1.8.9
XDISTNAME=	subversion-${DISTVERSION}
X
XMAINTAINER=     vivek at khera.org
XCOMMENT=        Install mod_dav_svn for use with subversion and apache
X
XCATEGORIES+=	www
XMASTER_SITES=	${MASTER_SITE_APACHE}
XDIST_SUBDIR=	subversion18
XMASTER_SITE_SUBDIR=	subversion
X
XUSE_APACHE=	22+
XGNU_CONFIGURE=	yes
XUSES+=		tar:bzip2 pkgconfig libtool
X
XLICENSE=	APACHE20
X
XLIB_DEPENDS+=	libsvn_client-1.so:${PORTSDIR}/devel/subversion
X
X# these match subversion
XCONFIGURE_ARGS+=	--without-swig \
X			--with-sqlite=${LOCALBASE} \
X			--with-expat=${LOCALBASE}/include:${LOCALBASE}/lib:expat \
X			--with-apxs=${APXS} --with-apache-libexecdir
X
XALL_TARGET=	apache-mod
XINSTALL_TARGET= install-mods-shared
X
X.include <bsd.port.mk>
b67911656ef5d18c4ae36cb6741b7965
echo x - distinfo
sed 's/^X//' >distinfo << '57677d168a5ec21bdf22c9501f075a8f'
XSHA256 (subversion18/subversion-1.8.9.tar.bz2) = 45d708a5c3ffbef4b2a1044c4716a053e680763743d1f7ba99d0369f6da49e33
XSIZE (subversion18/subversion-1.8.9.tar.bz2) = 6828921
57677d168a5ec21bdf22c9501f075a8f
echo x - pkg-descr
sed 's/^X//' >pkg-descr << '7f9555c3c1089940396b503dd37f3979'
XInstalls the mod_dav_svn and mod_authz_svn apache modules for use with
Xsubversion when serving the repository from Apache.
X
XWWW: http://subversion.apache.org/
7f9555c3c1089940396b503dd37f3979
echo x - pkg-plist
sed 's/^X//' >pkg-plist << '842cde48cf18b70a11b15515ca566742'
X at unexec %%SED%% -i '' -E '/LoadModule[[:blank:]]+dav_svn_module/d' %D/%%APACHEETCDIR%%/httpd.conf
X%%APACHEMODDIR%%/mod_dav_svn.so
X at exec %D/sbin/apxs -e -a -n dav_svn %D/%F
X at unexec %%SED%% -i '' -E '/LoadModule[[:blank:]]+authz_svn_module/d' %D/%%APACHEETCDIR%%/httpd.conf
X%%APACHEMODDIR%%/mod_authz_svn.so
X at exec %D/sbin/apxs -e -a -n authz_svn %D/%F
842cde48cf18b70a11b15515ca566742
exit

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


More information about the freebsd-ports-bugs mailing list