2002-01-15 02:45:03 +01:00
|
|
|
# New ports collection makefile for: subversion
|
|
|
|
# Date created: 10 September 2001
|
|
|
|
# Whom: rooneg@electricjellyfish.net
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= subversion
|
2006-11-09 14:54:13 +01:00
|
|
|
PORTVERSION= 1.4.2
|
|
|
|
PORTREVISION?= 0
|
2002-01-15 02:45:03 +01:00
|
|
|
CATEGORIES= devel
|
2005-12-11 12:05:26 +01:00
|
|
|
MASTER_SITES= http://subversion.tigris.org/downloads/:main \
|
2006-09-12 14:46:30 +02:00
|
|
|
http://svnbook.red-bean.com/en/1.2/:bookhtml \
|
|
|
|
http://svnbook.red-bean.com/en/1.2/images/:bookhtmlimg \
|
|
|
|
http://svnbook.red-bean.com/en/1.2/:bookpdf
|
2005-11-30 16:30:30 +01:00
|
|
|
DISTFILES= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX}:main
|
2006-09-12 14:46:30 +02:00
|
|
|
DIST_SUBDIR= subversion
|
2005-11-30 16:30:30 +01:00
|
|
|
EXTRACT_ONLY= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX}
|
2002-01-15 02:45:03 +01:00
|
|
|
|
2003-09-02 19:22:59 +02:00
|
|
|
MAINTAINER= lev@freebsd.org
|
2003-02-21 12:23:04 +01:00
|
|
|
COMMENT= Version control system
|
2002-01-15 02:45:03 +01:00
|
|
|
|
2006-01-31 00:20:05 +01:00
|
|
|
LIB_DEPENDS= expat.6:${PORTSDIR}/textproc/expat2
|
2002-02-20 03:37:37 +01:00
|
|
|
|
2003-04-04 20:06:54 +02:00
|
|
|
INSTALLS_SHLIB= yes
|
|
|
|
|
2004-03-15 16:51:08 +01:00
|
|
|
USE_BZIP2= yes
|
2005-11-15 07:52:12 +01:00
|
|
|
USE_AUTOTOOLS= libtool:15
|
2005-04-12 05:26:56 +02:00
|
|
|
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
2004-08-21 20:33:26 +02:00
|
|
|
CONFIGURE_ARGS= --with-ssl
|
2002-02-20 03:37:37 +01:00
|
|
|
|
2006-09-12 14:46:30 +02:00
|
|
|
USE_RC_SUBR= svnserve.sh
|
2006-05-25 13:17:17 +02:00
|
|
|
|
2006-09-12 14:46:30 +02:00
|
|
|
MAN1= svn.1 svnadmin.1 svnlook.1 svndumpfilter.1 svnsync.1 svnversion.1
|
2004-01-09 17:59:36 +01:00
|
|
|
MAN5= svnserve.conf.5
|
|
|
|
MAN8= svnserve.8
|
2003-04-04 20:06:54 +02:00
|
|
|
MANCOMPRESSED= no
|
2003-01-24 08:08:11 +01:00
|
|
|
|
2004-08-19 22:40:29 +02:00
|
|
|
TXT_DOCS= BUGS CHANGES COMMITTERS COPYING HACKING INSTALL README
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
PORTDOCS= ${TXT_DOCS}
|
|
|
|
.endif
|
|
|
|
|
2006-09-12 14:46:30 +02:00
|
|
|
.if defined(WITH_ASVN)
|
|
|
|
RUN_DEPENDS= ${LOCALBASE}/bin/gfind:${PORTSDIR}/misc/findutils:install
|
|
|
|
.endif
|
|
|
|
|
2004-11-11 07:50:34 +01:00
|
|
|
.if !defined(WITHOUT_NLS)
|
2004-11-10 21:40:19 +01:00
|
|
|
USE_GETTEXT= yes
|
|
|
|
PLIST_SUB+= WITHOUT_GETTEXT=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-nls
|
|
|
|
PLIST_SUB+= WITHOUT_GETTEXT="@comment "
|
|
|
|
.endif
|
|
|
|
|
2003-10-24 16:35:55 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2005-11-02 11:17:51 +01:00
|
|
|
.if ${ARCH} == "amd64" || ${ARCH} == "ia64"
|
|
|
|
CFLAGS+= -fpic -DPIC
|
|
|
|
.endif
|
|
|
|
|
2003-10-09 14:50:16 +02:00
|
|
|
SVNREPOS?= /home/svn/repos
|
2005-05-25 22:08:44 +02:00
|
|
|
SVNFSTYPE?= fsfs
|
2005-04-10 16:56:45 +02:00
|
|
|
|
|
|
|
.if make(repository)
|
|
|
|
WITH_REPOSITORY_CREATION= yes
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_REPOSITORY_CREATION)
|
|
|
|
MKREPOS_TARGET= _mkrepos
|
|
|
|
.endif
|
2003-06-27 23:03:40 +02:00
|
|
|
|
2004-02-05 16:20:42 +01:00
|
|
|
.if defined(WITH_MAINTAINER_DEBUG)
|
|
|
|
CONFIGURE_ARGS+=--enable-maintainer-mode \
|
|
|
|
--enable-debug
|
|
|
|
CFLAGS+= -g
|
|
|
|
.endif
|
|
|
|
|
2004-08-19 22:40:29 +02:00
|
|
|
.if !defined(WITHOUT_NEON)
|
2006-01-05 09:40:10 +01:00
|
|
|
LIB_DEPENDS+= neon.25:${PORTSDIR}/www/neon
|
2004-08-19 22:40:29 +02:00
|
|
|
CONFIGURE_ARGS+= --with-neon=${LOCALBASE}
|
|
|
|
PLIST_SUB+= WITHOUT_NEON=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-neon
|
|
|
|
PLIST_SUB+= WITHOUT_NEON="@comment "
|
|
|
|
.endif
|
|
|
|
|
2005-02-03 21:21:54 +01:00
|
|
|
.if defined(WITHOUT_BDB)
|
|
|
|
CONFIGURE_ARGS+= --without-berkeley-db
|
|
|
|
PLIST_SUB+= WITHOUT_BDB="@comment "
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= WITHOUT_BDB=""
|
|
|
|
.endif
|
|
|
|
|
2004-02-05 16:20:42 +01:00
|
|
|
.if defined(WITH_PERL)
|
|
|
|
.if ${PERL_LEVEL} < 500800
|
2006-06-06 20:52:10 +02:00
|
|
|
IGNORE= subversion\'s Perl bindings need perl 5.8.0 or greater. Upgrade your perl and try again
|
2004-02-05 16:20:42 +01:00
|
|
|
.endif
|
2005-11-05 17:54:31 +01:00
|
|
|
SWIG_BINDINGS+= yes
|
2004-02-05 16:20:42 +01:00
|
|
|
USE_PERL5= yes
|
|
|
|
PLIST_SUB+= WITH_PERL=""
|
2006-08-04 14:34:50 +02:00
|
|
|
MAN3PREFIX= ${TARGETDIR}/lib/perl5/${PERL_VERSION}
|
2004-02-05 16:20:42 +01:00
|
|
|
MAN3= SVN::Base.3 \
|
|
|
|
SVN::Client.3 \
|
|
|
|
SVN::Core.3 \
|
|
|
|
SVN::Delta.3 \
|
2004-11-05 16:42:05 +01:00
|
|
|
SVN::Fs.3 \
|
2004-02-05 16:20:42 +01:00
|
|
|
SVN::Ra.3 \
|
|
|
|
SVN::Repos.3 \
|
|
|
|
SVN::Wc.3
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= WITH_PERL="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_PYTHON)
|
|
|
|
USE_PYTHON= yes
|
|
|
|
.include "${PORTSDIR}/Mk/bsd.python.mk"
|
2005-11-05 17:54:31 +01:00
|
|
|
SWIG_BINDINGS+= yes
|
2004-02-05 16:20:42 +01:00
|
|
|
PLIST_SUB+= WITH_PYTHON=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= WITH_PYTHON="@comment "
|
|
|
|
.endif
|
|
|
|
|
2005-07-29 13:15:27 +02:00
|
|
|
.if defined(WITH_RUBY)
|
|
|
|
USE_RUBY= yes
|
|
|
|
.include "${PORTSDIR}/Mk/bsd.ruby.mk"
|
2005-11-05 17:54:31 +01:00
|
|
|
SWIG_BINDINGS+= yes
|
2005-07-29 13:15:27 +02:00
|
|
|
PLIST_SUB+= WITH_RUBY=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= WITH_RUBY="@comment "
|
|
|
|
.endif
|
|
|
|
|
2005-09-16 14:01:00 +02:00
|
|
|
.if defined(WITH_JAVA)
|
2006-06-06 20:52:10 +02:00
|
|
|
CATEGORIES+= java
|
2005-09-16 14:01:00 +02:00
|
|
|
USE_JAVA= yes
|
|
|
|
JAVA_VERSION= 1.2+
|
|
|
|
JAVA_OS= native
|
|
|
|
JAVA_BUILD= yes
|
|
|
|
JAVA_RUN= yes
|
|
|
|
.include "${PORTSDIR}/Mk/bsd.java.mk"
|
2006-06-06 20:52:10 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-javahl --with-jdk=${JAVA_HOME}
|
2005-09-16 14:01:00 +02:00
|
|
|
PLIST_SUB+= WITH_JAVA=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= WITH_JAVA="@comment "
|
|
|
|
.endif
|
|
|
|
|
2006-06-06 20:52:10 +02:00
|
|
|
.if defined(WITH_JAVA) && ${OSVERSION} < 503000
|
2005-09-16 14:01:00 +02:00
|
|
|
BROKEN="Java bindings are supported only on FreeBSD 5.3 or newer"
|
|
|
|
.endif
|
2004-11-05 16:42:05 +01:00
|
|
|
|
2005-11-05 17:54:31 +01:00
|
|
|
.if !defined(SWIG_BINDINGS)
|
2005-02-03 21:21:54 +01:00
|
|
|
CONFIGURE_ARGS+= --without-swig --disable-swig-bindings
|
2004-02-05 16:20:42 +01:00
|
|
|
.endif
|
|
|
|
|
2003-06-27 23:03:40 +02:00
|
|
|
.if defined(WITH_MOD_DAV_SVN)
|
|
|
|
WITH_APACHE2_APR= yes
|
2004-01-12 11:59:32 +01:00
|
|
|
CONFIGURE_ARGS+= --with-apxs=${APXS}
|
2003-05-23 03:31:48 +02:00
|
|
|
PLIST_SUB+= MOD_DAV_SVN=""
|
2003-10-09 14:50:16 +02:00
|
|
|
SVNGROUP?= www
|
2003-05-23 03:31:48 +02:00
|
|
|
.else
|
|
|
|
PLIST_SUB+= MOD_DAV_SVN="@comment "
|
|
|
|
PKGDEINSTALL= NONEXISTENT
|
2003-10-09 14:50:16 +02:00
|
|
|
SVNGROUP?= svn
|
2003-05-23 03:31:48 +02:00
|
|
|
.endif
|
|
|
|
|
2003-06-27 23:03:40 +02:00
|
|
|
.if defined(WITH_APACHE2_APR)
|
2005-12-11 12:05:26 +01:00
|
|
|
USE_APACHE= 2.0+
|
|
|
|
.include "${PORTSDIR}/Mk/bsd.apache.mk"
|
2005-12-16 19:52:10 +01:00
|
|
|
.if ${APACHE_VERSION} >= 21
|
2005-09-16 14:07:29 +02:00
|
|
|
APR_APU_DIR= ${LOCALBASE}/bin
|
|
|
|
APR_CONFIG= apr-1-config
|
|
|
|
APU_CONFIG= apu-1-config
|
|
|
|
.else
|
2004-02-05 16:20:42 +01:00
|
|
|
APR_APU_DIR= ${LOCALBASE}/lib/apache2
|
2004-11-05 16:42:05 +01:00
|
|
|
APR_CONFIG= apr-config
|
|
|
|
APU_CONFIG= apu-config
|
2005-09-16 14:07:29 +02:00
|
|
|
.endif
|
2005-12-11 12:05:26 +01:00
|
|
|
APR_PORT= ${APACHE_PORT}
|
2005-02-03 21:21:54 +01:00
|
|
|
.if !defined(WITHOUT_BDB)
|
|
|
|
DEPENDS_ARGS+= WITH_BERKELEYDB=db4
|
2004-02-05 16:20:42 +01:00
|
|
|
OPT_NAME= WITH_BERKELEYDB=(db4|db41|db42)
|
2005-02-03 21:21:54 +01:00
|
|
|
.endif
|
2003-06-27 23:03:40 +02:00
|
|
|
.else
|
2004-02-05 16:20:42 +01:00
|
|
|
APR_APU_DIR= ${LOCALBASE}/bin
|
2004-11-05 16:42:05 +01:00
|
|
|
APR_CONFIG= apr-1-config
|
|
|
|
APU_CONFIG= apu-1-config
|
2005-02-03 21:21:54 +01:00
|
|
|
.if !defined(WITHOUT_BDB)
|
2005-11-01 14:27:39 +01:00
|
|
|
LIB_DEPENDS+= apr-1.2:${PORTSDIR}/devel/apr-svn
|
2005-02-03 21:21:54 +01:00
|
|
|
APR_PORT= devel/apr-svn
|
2004-01-12 11:59:32 +01:00
|
|
|
OPT_NAME= APR_UTIL_WITH_BERKELEY_DB=yes
|
2005-02-03 21:21:54 +01:00
|
|
|
.else
|
2005-11-01 14:27:39 +01:00
|
|
|
LIB_DEPENDS+= apr-1.2:${PORTSDIR}/devel/apr
|
2005-02-03 21:21:54 +01:00
|
|
|
APR_PORT= devel/apr
|
|
|
|
.endif
|
2003-06-27 23:03:40 +02:00
|
|
|
.endif
|
2004-11-05 16:42:05 +01:00
|
|
|
CONFIGURE_ARGS+=--with-apr=${APR_APU_DIR}/${APR_CONFIG} \
|
|
|
|
--with-apr-util=${APR_APU_DIR}/${APU_CONFIG}
|
2003-06-27 23:03:40 +02:00
|
|
|
|
2003-10-09 14:50:16 +02:00
|
|
|
.if defined(WITH_SVNSERVE_WRAPPER)
|
|
|
|
PLIST_SUB+= SVNSERVE_WRAPPER=""
|
|
|
|
EXTRA_PATCHES= ${PATCHDIR}/build-outputs.mk.patch
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= SVNSERVE_WRAPPER="@comment "
|
|
|
|
.endif
|
|
|
|
|
2005-02-03 21:21:54 +01:00
|
|
|
.if !defined(NOPORTDOCS) && defined(WITH_BOOK)
|
2004-08-19 22:40:29 +02:00
|
|
|
PORTDOCS+= book
|
2006-09-12 14:46:30 +02:00
|
|
|
DISTFILES+= svn-book.html:bookhtml \
|
|
|
|
ch01dia1.png:bookhtmlimg ch02dia1.png:bookhtmlimg \
|
|
|
|
ch02dia2.png:bookhtmlimg ch02dia3.png:bookhtmlimg \
|
|
|
|
ch02dia5.png:bookhtmlimg ch02dia6.png:bookhtmlimg \
|
|
|
|
ch02dia7.png:bookhtmlimg ch04dia1.png:bookhtmlimg \
|
|
|
|
ch04dia2.png:bookhtmlimg ch04dia3.png:bookhtmlimg \
|
|
|
|
ch04dia4.png:bookhtmlimg ch08dia1.png:bookhtmlimg \
|
|
|
|
ch08dia2.png:bookhtmlimg \
|
|
|
|
svn-book.pdf:bookpdf
|
2004-08-19 22:40:29 +02:00
|
|
|
.endif
|
|
|
|
|
2006-05-25 13:17:17 +02:00
|
|
|
.if defined(WITH_ASVN)
|
|
|
|
PLIST_SUB+= ASVN=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= ASVN="@comment "
|
|
|
|
.endif
|
|
|
|
|
2004-11-05 16:42:05 +01:00
|
|
|
SCRIPTS=
|
|
|
|
|
|
|
|
SCRIPTS_DATA=
|
|
|
|
|
2006-03-17 18:51:55 +01:00
|
|
|
pre-everything::
|
2004-02-05 16:20:42 +01:00
|
|
|
@${ECHO_MSG} ""
|
2004-08-19 22:40:29 +02:00
|
|
|
.if defined(WITHOUT_NEON)
|
|
|
|
@${ECHO_MSG} "WebDAV/Delta-V repository access module disabled."
|
|
|
|
.else
|
|
|
|
@${ECHO_MSG} "WebDAV/Delta-V repository access module enabled."
|
|
|
|
@${ECHO_MSG} "To disable it define WITHOUT_NEON"
|
|
|
|
.endif
|
|
|
|
@${ECHO_MSG} ""
|
2005-02-03 21:21:54 +01:00
|
|
|
.if defined(WITHOUT_BDB)
|
|
|
|
@${ECHO_MSG} "db4 repository backend disabled."
|
|
|
|
.else
|
|
|
|
@${ECHO_MSG} "db4 repository backend enabled."
|
2005-05-25 22:08:44 +02:00
|
|
|
@${ECHO_MSG} "To disable it define WITHOUT_BDB"
|
2005-02-03 21:21:54 +01:00
|
|
|
.endif
|
|
|
|
@${ECHO_MSG} ""
|
2004-02-05 16:20:42 +01:00
|
|
|
.if defined(WITH_MAINTAINER_DEBUG)
|
|
|
|
@${ECHO_MSG} "Build debug version."
|
|
|
|
.else
|
|
|
|
@${ECHO_MSG} "You can enable debug build by defining WITH_MAINTAINER_DEBUG."
|
2003-09-04 11:48:25 +02:00
|
|
|
.endif
|
2004-02-05 16:20:42 +01:00
|
|
|
@${ECHO_MSG} ""
|
|
|
|
.if defined(WITH_PERL)
|
|
|
|
@${ECHO_MSG} "Build with perl bindings."
|
|
|
|
@${ECHO_MSG} "Be sure, that apr library and perl both uses OR not uses threads in same time."
|
|
|
|
.else
|
|
|
|
@${ECHO_MSG} "You can enable perl bindings by defining WITH_PERL"
|
|
|
|
.endif
|
|
|
|
@${ECHO_MSG} ""
|
|
|
|
.if defined(WITH_PYTHON)
|
|
|
|
@${ECHO_MSG} "Build with Python bindings."
|
|
|
|
.else
|
|
|
|
@${ECHO_MSG} "You can enable Python bindings by defining WITH_PYTHON."
|
|
|
|
.endif
|
|
|
|
@${ECHO_MSG} ""
|
2005-07-29 13:15:27 +02:00
|
|
|
.if defined(WITH_RUBY)
|
|
|
|
@${ECHO_MSG} "Build with Ruby bindings."
|
|
|
|
.else
|
|
|
|
@${ECHO_MSG} "You can enable Ruby bindings by defining WITH_RUBY."
|
|
|
|
.endif
|
|
|
|
@${ECHO_MSG} ""
|
2005-09-16 14:01:00 +02:00
|
|
|
.if defined(WITH_JAVA)
|
|
|
|
@${ECHO_MSG} "Build with Java (JavaHL) bindings."
|
|
|
|
.else
|
|
|
|
@${ECHO_MSG} "You can enable Java bindings by defining WITH_JAVA."
|
2005-11-05 17:54:31 +01:00
|
|
|
@${ECHO_MSG} "You should have apr built with threads for Java support!"
|
2005-09-16 14:01:00 +02:00
|
|
|
.endif
|
|
|
|
@${ECHO_MSG} ""
|
2003-06-27 23:03:40 +02:00
|
|
|
.if defined(WITH_MOD_DAV_SVN)
|
|
|
|
@${ECHO_MSG} "mod_dav_svn module for Apache 2.X enabled."
|
|
|
|
.else
|
2003-06-19 18:40:42 +02:00
|
|
|
@${ECHO_MSG} "You can enable the mod_dav_svn module for Apache 2.X"
|
2003-07-07 17:05:38 +02:00
|
|
|
@${ECHO_MSG} "by defining WITH_MOD_DAV_SVN. This option implies"
|
2003-06-27 23:03:40 +02:00
|
|
|
@${ECHO_MSG} "the WITH_APACHE2_APR option."
|
|
|
|
.endif
|
2004-02-05 16:20:42 +01:00
|
|
|
@${ECHO_MSG} ""
|
2003-06-27 23:03:40 +02:00
|
|
|
.if defined(WITH_APACHE2_APR)
|
2005-12-11 12:05:26 +01:00
|
|
|
@${ECHO_MSG} "Using APR from ${APACHE_PORT}. If you have the devel/apr"
|
2003-06-27 23:03:40 +02:00
|
|
|
@${ECHO_MSG} "port/package installed, you may need to remove it."
|
2003-07-02 17:13:31 +02:00
|
|
|
.else
|
2003-06-27 23:03:40 +02:00
|
|
|
@${ECHO_MSG} "You can link subversion against the APR built with"
|
2005-12-11 12:05:26 +01:00
|
|
|
@${ECHO_MSG} "the ${APACHE_PORT} port, rather than the devel/apr port,"
|
2003-06-27 23:03:40 +02:00
|
|
|
@${ECHO_MSG} "by defining WITH_APACHE2_APR."
|
2003-05-23 03:31:48 +02:00
|
|
|
.endif
|
2004-02-05 16:20:42 +01:00
|
|
|
@${ECHO_MSG} ""
|
2003-10-09 14:50:16 +02:00
|
|
|
.if defined(WITH_SVNSERVE_WRAPPER)
|
|
|
|
@${ECHO_MSG} "svnserve wrapper enabled."
|
|
|
|
.else
|
|
|
|
@${ECHO_MSG} "You can install the svnserve wrapper (sets umask 002)"
|
|
|
|
@${ECHO_MSG} "by defining WITH_SVNSERVE_WRAPPER."
|
|
|
|
.endif
|
2004-02-05 16:20:42 +01:00
|
|
|
@${ECHO_MSG} ""
|
2003-10-09 14:50:16 +02:00
|
|
|
.if defined(WITH_REPOSITORY_CREATION)
|
|
|
|
@${ECHO_MSG} "I will create (or use, if it exists) \"${SVNGROUP}\" group."
|
2003-11-19 12:40:34 +01:00
|
|
|
@${ECHO_MSG} "Make sure that all committers are its members."
|
2005-11-05 17:54:31 +01:00
|
|
|
@${ECHO_MSG} ""
|
|
|
|
@${ECHO_MSG} "Repository will be created at '${SVNREPOS}' with group '${SVNGROUP}'."
|
|
|
|
@${ECHO_MSG} "Type of repository will be '${SVNFSTYPE}'."
|
|
|
|
@${ECHO_MSG} "You could change these settings by defining SVNREPOS, SVNGROUP and SVNFSTYPE."
|
2003-10-09 14:50:16 +02:00
|
|
|
.else
|
|
|
|
@${ECHO_MSG} "You can have the repository created for you by defining"
|
|
|
|
@${ECHO_MSG} "WITH_REPOSITORY_CREATION."
|
|
|
|
@${ECHO_MSG} ""
|
|
|
|
@${ECHO_MSG} "Make sure that:"
|
|
|
|
@${ECHO_MSG} "* all your svn users are members of a common group"
|
|
|
|
@${ECHO_MSG} "* this group is the group id of the db/ and locks/"
|
|
|
|
@${ECHO_MSG} " subdirectories of your repository"
|
|
|
|
@${ECHO_MSG} "* the above subdirectories are writable by this group"
|
|
|
|
.endif
|
2004-02-05 16:20:42 +01:00
|
|
|
@${ECHO_MSG} ""
|
2005-02-03 21:21:54 +01:00
|
|
|
.if !defined(NOPORTDOCS) && defined(WITH_BOOK)
|
|
|
|
@${ECHO_MSG} "Subversion Book will be installed."
|
2004-08-19 22:40:29 +02:00
|
|
|
.else
|
2005-02-03 21:21:54 +01:00
|
|
|
@${ECHO_MSG} "You can install the Subversion Book by defining WITH_BOOK."
|
2006-05-25 13:17:17 +02:00
|
|
|
.endif
|
|
|
|
@${ECHO_MSG} ""
|
|
|
|
.if defined(WITH_ASVN)
|
|
|
|
@${ECHO_MSG} "asvn will be installed"
|
|
|
|
.else
|
|
|
|
@${ECHO_MSG} "You can install asvn from contrib by defining WITH_ASVN"
|
2004-08-19 22:40:29 +02:00
|
|
|
.endif
|
|
|
|
@${ECHO_MSG} ""
|
2005-05-26 07:18:11 +02:00
|
|
|
@${ECHO_MSG} "Many useful scripts will be installed into ${PREFIX}/share/subversion"
|
2003-05-23 03:31:48 +02:00
|
|
|
|
2006-09-12 14:46:30 +02:00
|
|
|
#post-extract:
|
|
|
|
# @${RM} -r ${WRKSRC}/neon
|
|
|
|
# @${RM} -r ${WRKSRC}/apr
|
|
|
|
# @${RM} -r ${WRKSRC}/apr-util
|
2002-02-20 03:37:37 +01:00
|
|
|
|
2003-11-13 11:00:38 +01:00
|
|
|
post-patch:
|
|
|
|
.if ${PREFIX} != "/usr"
|
|
|
|
@${REINPLACE_CMD} "s#/etc/subversion#${PREFIX}/etc/subversion#g" ${WRKSRC}/subversion/libsvn_subr/config_file.c
|
|
|
|
@${REINPLACE_CMD} "s#/etc/subversion#${PREFIX}/etc/subversion#g" ${WRKSRC}/subversion/libsvn_subr/config_impl.h
|
|
|
|
.endif
|
2004-02-05 16:20:42 +01:00
|
|
|
@${REINPLACE_CMD} "s#^swig_pydir =.*#swig_pydir = ${PYTHON_SITELIBDIR}/libsvn#" ${WRKSRC}/Makefile.in
|
|
|
|
@${REINPLACE_CMD} "s#^swig_pydir_extra =.*#swig_pydir_extra = ${PYTHON_SITELIBDIR}/svn#" ${WRKSRC}/Makefile.in
|
2004-08-21 20:33:26 +02:00
|
|
|
@${REINPLACE_CMD} "s#^LIBTOOL =.*#LIBTOOL = ${LIBTOOL}#" ${WRKSRC}/Makefile.in
|
2003-11-13 11:00:38 +01:00
|
|
|
|
2004-01-12 11:59:32 +01:00
|
|
|
pre-configure:
|
2004-11-05 16:42:05 +01:00
|
|
|
@if [ ! -x ${APR_APU_DIR}/${APR_CONFIG} -o ! -x ${APR_APU_DIR}/${APU_CONFIG} ] ; then \
|
2004-01-12 11:59:32 +01:00
|
|
|
${ECHO_MSG} "" ; \
|
2004-11-05 16:42:05 +01:00
|
|
|
${ECHO_MSG} 'You selected to use`'"${APR_PORT}' for apr library." ; \
|
2004-02-05 16:20:42 +01:00
|
|
|
${ECHO_MSG} 'It seems that `'"${APR_PORT}' is not properly installed." ; \
|
2004-01-12 11:59:32 +01:00
|
|
|
${ECHO_MSG} "" ; \
|
|
|
|
${FALSE} ; \
|
|
|
|
fi
|
2005-02-03 21:21:54 +01:00
|
|
|
.if !defined(WITHOUT_BDB)
|
2004-11-05 16:42:05 +01:00
|
|
|
@if [ `${APR_APU_DIR}/${APU_CONFIG} --db-version` != "4" ] ; then \
|
2004-01-12 11:59:32 +01:00
|
|
|
${ECHO_MSG} "" ; \
|
2005-07-29 13:15:27 +02:00
|
|
|
${ECHO_MSG} 'You should build `'"${APR_PORT}' with db4 support to use subversion with it." ; \
|
|
|
|
${ECHO_MSG} 'Please rebuild `'"${APR_PORT}' with option "'`'"${OPT_NAME}' and try again." ; \
|
2004-01-12 11:59:32 +01:00
|
|
|
${ECHO_MSG} "" ; \
|
2005-11-05 17:54:31 +01:00
|
|
|
${ECHO_MSG} "Or you can disable db4 support. Only 'fs' repository backend will be available." ; \
|
2005-02-03 21:21:54 +01:00
|
|
|
${ECHO_MSG} "To disable db4 support, define WITHOUT_BDB." ; \
|
|
|
|
${ECHO_MSG} "" ; \
|
2004-01-12 11:59:32 +01:00
|
|
|
${FALSE} ; \
|
|
|
|
fi
|
2005-02-03 21:21:54 +01:00
|
|
|
.endif
|
2004-01-12 11:59:32 +01:00
|
|
|
|
2004-02-05 16:20:42 +01:00
|
|
|
post-build:
|
|
|
|
.if defined(WITH_PERL)
|
|
|
|
cd ${WRKSRC} ; \
|
2004-11-05 16:42:05 +01:00
|
|
|
${MAKE} swig-pl
|
2004-02-05 16:20:42 +01:00
|
|
|
.endif
|
|
|
|
.if defined(WITH_PYTHON)
|
|
|
|
cd ${WRKSRC} ; \
|
|
|
|
${MAKE} swig-py
|
|
|
|
.endif
|
2005-07-29 13:15:27 +02:00
|
|
|
.if defined(WITH_RUBY)
|
|
|
|
cd ${WRKSRC} ; \
|
|
|
|
${MAKE} swig-rb
|
|
|
|
.endif
|
2005-09-16 14:01:00 +02:00
|
|
|
.if defined(WITH_JAVA)
|
|
|
|
@${MKDIR} ${WRKSRC}/subversion/bindings/java/javahl/classes
|
|
|
|
cd ${WRKSRC} ; \
|
|
|
|
${MAKE} javahl
|
|
|
|
.endif
|
2004-02-05 16:20:42 +01:00
|
|
|
|
2003-05-23 03:31:48 +02:00
|
|
|
.if defined(WITH_MOD_DAV_SVN)
|
|
|
|
pre-install:
|
2006-06-06 20:52:10 +02:00
|
|
|
${APXS} -e -S LIBEXECDIR=${PREFIX}/${APACHEMODDIR} -a -n dav ${PREFIX}/${APACHEMODDIR}/mod_dav.so
|
2003-05-23 03:31:48 +02:00
|
|
|
.endif
|
|
|
|
|
2005-04-10 16:56:45 +02:00
|
|
|
post-install: ${MKREPOS_TARGET}
|
2004-11-05 16:42:05 +01:00
|
|
|
@${MKDIR} ${PREFIX}/share/subversion
|
|
|
|
cd ${WRKSRC}/tools ; \
|
|
|
|
tar --exclude '*.in' -cf - * | tar -C ${PREFIX}/share/subversion -xf -
|
2005-12-16 19:52:10 +01:00
|
|
|
@${CHMOD} -R a-st,o+rX ${PREFIX}/share/subversion
|
2003-01-24 08:08:11 +01:00
|
|
|
.if !defined(NOPORTDOCS)
|
2003-07-26 00:47:56 +02:00
|
|
|
${MKDIR} ${DOCSDIR}
|
2004-08-19 22:40:29 +02:00
|
|
|
for f in ${TXT_DOCS}; do \
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/$$f ${DOCSDIR}; \
|
2003-06-10 22:04:42 +02:00
|
|
|
done
|
2005-02-03 21:21:54 +01:00
|
|
|
.if defined(WITH_BOOK)
|
2005-08-01 02:19:14 +02:00
|
|
|
${MKDIR} ${DOCSDIR}/book
|
2006-09-12 14:46:30 +02:00
|
|
|
${MKDIR} ${DOCSDIR}/book/images
|
|
|
|
${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/svn-book.html ${DOCSDIR}/book
|
|
|
|
${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/*.png ${DOCSDIR}/book/images
|
|
|
|
${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/svn-book.pdf ${DOCSDIR}/book
|
2004-08-19 22:40:29 +02:00
|
|
|
.endif
|
2003-01-24 08:08:11 +01:00
|
|
|
.endif
|
2006-05-25 13:17:17 +02:00
|
|
|
.if defined(WITH_ASVN)
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/contrib/client-side/asvn ${PREFIX}/bin
|
|
|
|
.endif
|
2004-02-05 16:20:42 +01:00
|
|
|
.if defined(WITH_PERL)
|
|
|
|
cd ${WRKSRC} ; \
|
2005-03-30 04:05:03 +02:00
|
|
|
${REINPLACE_CMD} '/SWIG_PL_DIR/s, install$$, all pure_install,g' ${WRKSRC}/Makefile ; \
|
2004-11-05 16:42:05 +01:00
|
|
|
${MAKE} install-swig-pl
|
2004-02-05 16:20:42 +01:00
|
|
|
.endif
|
|
|
|
.if defined(WITH_PYTHON)
|
|
|
|
cd ${WRKSRC} ; \
|
|
|
|
${MAKE} install-swig-py
|
|
|
|
.endif
|
2005-07-29 13:15:27 +02:00
|
|
|
.if defined(WITH_RUBY)
|
|
|
|
cd ${WRKSRC} ; \
|
|
|
|
${MAKE} install-swig-rb
|
|
|
|
.endif
|
2005-09-16 14:01:00 +02:00
|
|
|
.if defined(WITH_JAVA)
|
|
|
|
cd ${WRKSRC} ; \
|
|
|
|
${MAKE} install-javahl
|
|
|
|
.endif
|
2003-10-09 14:50:16 +02:00
|
|
|
.if defined(WITH_SVNSERVE_WRAPPER)
|
|
|
|
@${INSTALL_SCRIPT} ${FILESDIR}/svnserve.wrapper ${PREFIX}/bin/svnserve
|
|
|
|
.endif
|
2005-04-10 16:56:45 +02:00
|
|
|
|
|
|
|
repository: _mkrepos
|
|
|
|
|
|
|
|
_SVNGRPFILES= dav db locks locks/db.lock locks/db-logs.lock
|
|
|
|
SVNGRPFILES= ${_SVNGRPFILES:S,^,${SVNREPOS}/,}
|
|
|
|
|
|
|
|
_mkrepos: .USE
|
|
|
|
.if !exists(${SVNREPOS})
|
|
|
|
.if defined(WITH_SVNSERVE_WRAPPER)
|
2003-10-09 14:50:16 +02:00
|
|
|
@if /usr/sbin/pw groupshow "${SVNGROUP}" >/dev/null 2>&1; then \
|
2004-02-05 16:20:42 +01:00
|
|
|
${ECHO_MSG} "You already have a group \"${SVNGROUP}\", so I will use it."; \
|
2003-10-09 14:50:16 +02:00
|
|
|
else \
|
|
|
|
if /usr/sbin/pw groupadd ${SVNGROUP} -h -; \
|
|
|
|
then \
|
2004-02-05 16:20:42 +01:00
|
|
|
${ECHO_MSG} "Added group \"${SVNGROUP}\"."; \
|
2003-10-09 14:50:16 +02:00
|
|
|
else \
|
2004-02-05 16:20:42 +01:00
|
|
|
${ECHO_MSG} "Adding group \"${SVNGROUP}\" failed..."; \
|
|
|
|
${ECHO_MSG} "Please create it, and try again."; \
|
2003-10-09 14:50:16 +02:00
|
|
|
${FALSE}; \
|
|
|
|
fi; \
|
|
|
|
fi
|
2005-04-10 16:56:45 +02:00
|
|
|
.endif
|
2003-10-09 14:50:16 +02:00
|
|
|
@${MKDIR} ${SVNREPOS}
|
2005-04-10 16:56:45 +02:00
|
|
|
@${PREFIX}/bin/svnadmin create --fs-type ${SVNFSTYPE} ${SVNREPOS}
|
|
|
|
.if defined(WITH_SVNSERVE_WRAPPER)
|
|
|
|
@${CHGRP} ${SVNGROUP} ${SVNGRPFILES}
|
|
|
|
@${CHMOD} g+w ${SVNGRPFILES}
|
2003-10-09 14:50:16 +02:00
|
|
|
@for i in ${SVNREPOS}/db/* ; do \
|
|
|
|
i=$${i##*/}; \
|
|
|
|
case $$i in \
|
2005-04-10 16:56:45 +02:00
|
|
|
DB_CONFIG|fs-type|uuid) ;; \
|
|
|
|
*) ${CHGRP} -R ${SVNGROUP} ${SVNREPOS}/db/$$i; \
|
|
|
|
${CHMOD} -R g+w ${SVNREPOS}/db/$$i; \
|
2003-10-09 14:50:16 +02:00
|
|
|
;; \
|
|
|
|
esac; \
|
|
|
|
done
|
|
|
|
.endif
|
2005-04-10 16:56:45 +02:00
|
|
|
.endif
|
2002-01-15 02:45:03 +01:00
|
|
|
|
2003-05-23 03:31:48 +02:00
|
|
|
post-deinstall:
|
|
|
|
.if defined(WITH_MOD_DAV_SVN)
|
|
|
|
@PKG_PREFIX=${PREFIX} ${SH} ${PKGDEINSTALL} ${PKGNAME} POST-DEINSTALL
|
|
|
|
.endif
|
|
|
|
|
2003-10-23 22:07:01 +02:00
|
|
|
.include <bsd.port.post.mk>
|