Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 17440 Details for
Bug 28349
subversion 0.29.0 ebuild
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
subversion-0.29.0.ebuild
subversion-0.29.0.ebuild (text/plain), 8.24 KB, created by
Akinori Hattori
on 2003-09-10 08:52:14 UTC
(
hide
)
Description:
subversion-0.29.0.ebuild
Filename:
MIME Type:
Creator:
Akinori Hattori
Created:
2003-09-10 08:52:14 UTC
Size:
8.24 KB
patch
obsolete
># Copyright 1999-2003 Gentoo Technologies, Inc. ># Distributed under the terms of the GNU General Public License v2 ># $Header: $ > >inherit libtool > >DESCRIPTION="A compelling replacement for CVS" >SRC_URI=" http://subversion.tigris.org/files/documents/15/5977/${P}.tar.gz" >HOMEPAGE="http://subversion.tigris.org/" > >SLOT="0" >LICENSE="Apache-1.1" >KEYWORDS="~x86" >IUSE="ssl apache2 berkdb python emacs" > >S=${WORKDIR}/${P} > >if [ "${SVN_REPOS_LOC}x" = "x" ]; then > SVN_REPOS_LOC="/home/svn" >fi > ># ># ># Note that to disable the server part of subversion you need to specify ># USE="-berkdb" emerge subversion. ># ># > >DEPEND="python? ( >=dev-lang/python-2.0 ) > python? ( >=dev-lang/swig-1.3.16 ) > emacs? ( virtual/emacs ) > apache2? ( >=net-www/apache-2.0.45 ) > berkdb? ( >=sys-libs/db-4.0.14 ) > !apache2? ( !>=apache-2* ) > !dev-libs/apr > >=sys-apps/diffutils-2.7.7 > >=sys-devel/libtool-1.4.1-r1 > >=sys-devel/bison-1.28-r3 > >=net-misc/neon-0.23.8 > ~sys-devel/m4-1.4" > >RDEPEND="python? ( >=dev-lang/python-2.0 ) > emacs? ( virtual/emacs ) > >=sys-apps/diffutils-2.7.7 > ~sys-devel/m4-1.4" > >pkg_setup() { > > if has_version '<subversion-0.28.0'; then > einfo "WARNING: Now you have $(best_version subversion)" > einfo "WARNING: This release makes an incompatible change to the Subversion" > einfo "WARNING: repository filesystem schema. Repositories created with" > einfo "WARNING: Subversion code prior to this release will unable to operate" > einfo "WARNING: with this new code. To maintain the ability to use said" > einfo "WARNING: repositories, you must use a version 'svnadmin dump' prior to" > einfo "WARNING: this change to dump your repository to a dumpfile." > einfo "" > einfo "More details:" > einfo " http://svn.collab.net/repos/svn/trunk/notes/repos_upgrade_HOWTO" > sleep 5 > fi > > if use apache2; then > einfo "The apache2 subversion module will be built, and libapr from the" > einfo "apache package will be used instead of the included" > else > einfo "Please note that subversion and apache2 cannot be installed" > einfo "simultaneously without specifying the apache2 use flag. This is" > einfo "because subversion installs its own libapr and libapr-util in that" > einfo "case." > fi > >} > >src_unpack() { > > unpack ${P}.tar.gz > cd ${S} > elibtoolize ${S} > patch -p1 <${FILESDIR}/subversion-db4.patch > >} > >src_compile() { > > local myconf > > cd ${S} > use ssl && myconf="${myconf} --with-ssl" > use ssl || myconf="${myconf} --without-ssl" > > use apache2 && myconf="${myconf} --with-apxs=/usr/sbin/apxs2 \ > --with-apr=/usr --with-apr-util=/usr" > use apache2 || myconf="${myconf} --without-apxs" > > use berkdb && myconf="${myconf} --with-berkeley-db" > use berkdb || myconf="${myconf} --without-berkeley-db" > > use python && myconf="${myconf} --with-python=/usr/bin/python --with-swig" > use python || myconf="${myconf} --without-python --without-swig" > > echo "myconf=${myconf}" > econf ${myconf} \ > --with-neon=/usr \ > --disable-experimental-libtool \ > --disable-mod-activation ||die "configuration failed" > > # build subversion, but do it in a way that is safe for paralel builds > # Also apparently the included apr does have a libtool that doesn't like > # -L flags. So not specifying it at all when not building apache modules > # and only specify it for internal parts otherwise > if use apache2; then > ( emake external-all && emake LT_LDFLAGS="-L${D}/usr/lib" local-all ) || die "make of subversion failed" > else > ( emake external-all && emake local-all ) || die "make of subversion failed" > fi > > #building fails without the apache apr-util as includes are wrong. > #Also the python bindings do not work without db installed > if use python; then > if use berkdb; then > if use apache2; then > emake swig-py || die "subversion python bindings failed" > else > emake SVN_APR_INCLUDES="-I${S}/apr/include -I${S}/apr-util/include" swig-py || die "subversion python bindings failed" > fi > fi > fi > > # Byte compile emacs lisps > if use emacs; then > emacs -batch -f batch-byte-compile contrib/client-side/vc-svn.el > emacs -batch -f batch-byte-compile contrib/client-side/psvn/psvn.el > fi > >} > >src_install () { > > make DESTDIR=${D} install || die "Installation of subversion failed" > > if use python; then > if use berkdb; then > make install-swig-py DESTDIR=${D} DISTUTIL_PARAM=--prefix=${D} || die "Installation of subversion python bindings failed" > # move python bindings > mkdir -p ${D}/usr/lib/python2.2/site-packages > mv ${D}/usr/lib/svn-python/svn ${D}/usr/lib/python2.2/site-packages > mv ${D}/usr/lib/svn-python/libsvn ${D}/usr/lib/python2.2/site-packages > rmdir ${D}/usr/lib/svn-python > fi > fi > > # install documents > dodoc [A-Z][A-Z]* > > docinto notes > for f in notes/* > do > [ -f ${f} ] && dodoc ${f} > done > > # refresh DOCTREE and install html documents > docinto > echo "installing html book" > dohtml -r doc/book/book/book.html doc/book/book/styles.css doc/book/book/images > > # install cvs2svn > newbin tools/cvs2svn/cvs2svn.py cvs2svn.py > doman tools/cvs2svn/cvs2svn.1 > > insinto /usr/lib/python2.2/site-packages/rcsparse > for f in tools/cvs2svn/rcsparse/* > do > [ -f ${f} ] && doins ${f} > done > > # install tools. > dodir /usr/share/subversion/tools > for dir in backup client-side hook-scripts examples xslt > do > cp -r tools/${dir} ${D}/usr/share/subversion/tools > > if [ ${dir} = "backup" ] || [ ${dir} = "hook-scripts" ]; then > rm ${D}/usr/share/subversion/tools/${dir}/*.in > fi > done > > # install emacs lisps > if use emacs; then > insinto /usr/share/emacs/site-lisp/subversion > doins contrib/client-side/psvn/psvn.el* > doins contrib/client-side/vc-svn.el* > > inherit elisp > elisp-site-file-install ${FILESDIR}/70svn-gentoo.el > fi > > if use apache2; then > mv ${D}/usr/lib/apache2 ${D}/usr/lib/apache2-extramodules > mkdir -p ${D}/etc/apache2/conf/modules.d > cat <<EOF >${D}/etc/apache2/conf/modules.d/47_mod_dav_svn.conf ><IfDefine SVN> > <IfModule !mod_dav_svn.c> > LoadModule dav_svn_module extramodules/mod_dav_svn.so > </IfModule> > <Location /svn/repos> > DAV svn > SVNPath ${SVN_REPOS_LOC}/repos > AuthType Basic > AuthName "Subversion repository" > AuthUserFile ${SVN_REPOS_LOC}/conf/svnusers > Require valid-user > </Location> ></IfDefine> >EOF > fi >} > >pkg_postinst() { > > if use berkdb; then > einfo "WARNING: If you updated from subversion 0.27 or less." > einfo "WARNING: You must use this new Subversion code to create, and load" > einfo "WARNING: your dumpfile a new repository using 'svnadmin load'." > einfo "WARNING: And don't forget to copy over any custom configuration/hooks" > einfo "WARNING: from the old to the new repository." > einfo "" > einfo "More details:" > einfo " http://svn.collab.net/repos/svn/trunk/notes/repos_upgrade_HOWTO" > > if use apache2; then > einfo "Subversion has multiple server types. To enable the http based version" > einfo "you must edit /etc/conf.d/apache2 to include both \"-D DAV\" and \"-D SVN\"" > einfo "" > fi > > einfo "A repository needs to be created using the ebuild ${PN} config command" > > if has_version =sys-libs/db-4*; then > einfo "If you upgraded from an older version of berkely db and experience" > einfo "problems with your repository then run the following command:" > einfo " su apache -c \"db4_recover -h /path/to/repos\"" > fi > if use apache2; then > einfo "To allow web access a htpasswd file needs to be created using the" > einfo "following command:" > einfo " htpasswd2 -m -c ${SVN_REPOS_LOC}/conf/svnusers USERNAME" > fi > else > einfo "Your subversion is client only as the server is only build when" > einfo "the berkdb flag is set" > fi > > if [ -n "`use emacs`" ]; then > inherit elisp > elisp-site-regen > fi > >} > >pkkg_postrm() { > > if [ -n "`use emacs`" ]; then > inherit elisp > elisp-site-regen > fi > >} > >pkg_config() { > > if [ ! -x /usr/bin/svnadmin ]; then > die "You seem to only have build the subversion client" > fi > > einfo ">>> Initializing the database in ${SVN_REPOS_LOC}..." > if [ -f ${SVN_REPOS_LOC}/repos ] ; then > echo "A subversion repository already exists and I will not overwrite it." > echo "Delete ${SVN_REPOS_LOC}/repos first if you're sure you want to have a clean version." > else > mkdir -p ${SVN_REPOS_LOC} > einfo ">>> Populating repository directory ..." > # create initial repository > /usr/bin/svnadmin create ${SVN_REPOS_LOC}/repos > > einfo ">>> Setting repository permissions ..." > chown -Rf apache.apache ${SVN_REPOS_LOC}/repos > chmod -Rf 755 ${SVN_REPOS_LOC}/repos > fi > >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 28349
:
17423
|
17424
|
17425
|
17426
|
17427
| 17440 |
17441