moved subversion from core to platform

added serf
moved scons from apps to platform
This commit is contained in:
AlmAck 2014-04-22 21:45:56 +02:00
parent aecfc196f3
commit da118eb175
8 changed files with 188 additions and 0 deletions

24
scons/PKGBUILD Normal file
View File

@ -0,0 +1,24 @@
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
pkgname=scons
pkgver=2.3.1
pkgrel=1
pkgdesc="Extensible Python-based build utility"
arch=('x86_64')
url="http://scons.org"
license=('custom')
depends=('python2')
source=(http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.gz)
md5sums=('60a3cfb98b661df9f4406c61b5686bd7')
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
python2 setup.py install --standard-lib \
--prefix=/usr \
--install-data=/usr/share \
--optimize=1 \
--root="${pkgdir}"
install -D -m644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}

30
serf/PKGBUILD Normal file
View File

@ -0,0 +1,30 @@
# Maintainer: almack <almack@chakraos.org>
pkgname=serf
pkgver=1.3.4
pkgrel=1
pkgdesc="High-performance asynchronous HTTP client library"
arch=('x86_64')
url="http://code.google.com/p/serf/"
license=('Apache')
depends=('apr-util')
makedepends=('scons')
options=('!staticlibs')
source=(http://serf.googlecode.com/svn/src_releases/${pkgname}-${pkgver}.zip)
md5sums=('f2d469ac03db98781c9d414fed5368ae')
build() {
cd ${pkgname}-${pkgver}
scons PREFIX=/usr
}
#check() {
# cd ${pkgname}-${pkgver}
# scons check
#}
package() {
cd ${pkgname}-${pkgver}
install -d "${pkgdir}/usr"
scons PREFIX="${pkgdir}/usr" install
}

94
subversion/PKGBUILD Normal file
View File

@ -0,0 +1,94 @@
#
# Core Packages for Chakra, part of chakra-project.org
#
# maintainer almack@chakraos.org
pkgname=subversion
pkgver=1.8.8
pkgrel=2
pkgdesc="A Modern Concurrent Version Control System"
arch=('x86_64')
license=('apache')
depends=('sqlite3' 'file' 'serf' 'systemd')
makedepends=('krb5' 'apache' 'python2' 'perl' 'swig' 'ruby' 'java-runtime'
'autoconf' 'kdelibs')
optdepends=('kdeutils-kwallet: for KWallet for auth credentials'
'bash-completion: for svn bash completion'
'python2: for some hook scripts'
'java-environment: for Java support'
'ruby: for some hook scripts')
backup=('etc/xinetd.d/svn' 'etc/conf.d/svnserve')
url="http://subversion.apache.org/"
provides=('svn')
options=('!makeflags' '!emptydirs')
source=(http://www.apache.org/dist/subversion/subversion-${pkgver}.tar.bz2{,.asc}
svn svnserve.conf
svnserve.tmpfiles
svnserve.service
subversion.rpath.fix.patch)
sha1sums=('8e9f10b7a9704c90e17cfe76fd56e3fe74c01a7a'
'SKIP'
'73b36c046c09cec2093354911c89e3ba8056af6c'
'ad117bf3b2a838a9a678a93fd8db1a066ad46c41'
'00cc36e69077a8c45674ead6dd62a7647b3a3b6d'
'9f6790d842cf3e0228b007483a43e39a42724068'
'3d1e28408a9abb42af2e531adc0d01ce21acfad6')
prepare() {
cd ${pkgname}-${pkgver}
patch -Np0 -i ../subversion.rpath.fix.patch
sed -i 's|/usr/bin/env python|/usr/bin/env python2|' tools/hook-scripts/{,mailer/{,tests/}}*.py
}
build() {
cd ${pkgname}-${pkgver}
export PYTHON=/usr/bin/python2
# configure
./configure --prefix=/usr --with-apr=/usr --with-apr-util=/usr \
--with-zlib=/usr --with-serf=/usr --with-apxs \
--with-sqlite=/usr \
--enable-javahl --without-gnome-keyring --with-kwallet \
--with-apache-libexecdir=/usr/lib/httpd/modules \
--disable-static
make LT_LDFLAGS="-L$Fdestdir/usr/lib" local-all
make swig_pydir=/usr/lib/python2.7/site-packages/libsvn \
swig_pydir_extra=/usr/lib/python2.7/site-packages/svn swig-py swig-pl javahl swig-rb
}
package() {
cd ${pkgname}-${pkgver}
export LD_LIBRARY_PATH="${pkgdir}"/usr/lib:${LD_LIBRARY_PATH}
make DESTDIR="${pkgdir}" INSTALLDIRS=vendor \
swig_pydir=/usr/lib/python2.7/site-packages/libsvn \
swig_pydir_extra=/usr/lib/python2.7/site-packages/svn \
install install-swig-py install-swig-pl install-javahl install-swig-rb
install -d "${pkgdir}"/usr/share/subversion
cp -a tools/hook-scripts "${pkgdir}"/usr/share/subversion/
rm "${pkgdir}"/usr/share/subversion/hook-scripts/*.in
rm "${pkgdir}"/usr/lib/perl5/vendor_perl/auto/SVN/_Core/.packlist
rm -r "${pkgdir}"/usr/lib/perl5/core_perl
# xinetd
install -D -m 644 "${srcdir}"/svn "${pkgdir}"/etc/xinetd.d/svn
# svnserve
install -D -m 644 "${srcdir}"/svnserve.conf "${pkgdir}"/etc/conf.d/svnserve
# systemd
install -D -m 644 "${srcdir}"/svnserve.service "${pkgdir}"/usr/lib/systemd/system/svnserve.service
install -D -m 644 "${srcdir}"/svnserve.tmpfiles "${pkgdir}"/usr/lib/tmpfiles.d/svnserve.conf
# bash completion
install -Dm 644 tools/client-side/bash_completion \
"${pkgdir}"/usr/share/bash-completion/completions/subversion
for i in svn svnadmin svndumpfilter svnlook svnsync svnversion; do
ln -sf subversion "${pkgdir}"/usr/share/bash-completion/completions/${i}
done
}

View File

@ -0,0 +1,10 @@
--- Makefile.in.orig 2009-02-16 14:10:48.000000000 -0200
+++ Makefile.in 2009-06-04 00:56:29.000000000 -0300
@@ -678,6 +678,7 @@
$(SWIG_PL_DIR)/native/Makefile: $(SWIG_PL_DIR)/native/Makefile.PL
cd $(SWIG_PL_DIR)/native; $(PERL) Makefile.PL
+ cd $(SWIG_PL_DIR)/native; sed -i 's|LD_RUN_PATH|DIE_RPATH_DIE|g' Makefile{,.{client,delta,fs,ra,repos,wc}}
swig-pl_DEPS = autogen-swig-pl libsvn_swig_perl \
$(SWIG_PL_DIR)/native/Makefile

11
subversion/svn Normal file
View File

@ -0,0 +1,11 @@
service svn
{
flags = REUSE
socket_type = stream
wait = no
user = root
server = /usr/bin/svnserve
server_args = -i
log_on_failure += USERID
disable = yes
}

7
subversion/svnserve.conf Normal file
View File

@ -0,0 +1,7 @@
#
# Parameters to be passed to svnserve
#
#SVNSERVE_ARGS="-r /path/to/some/repos"
SVNSERVE_ARGS=""
#SVNSERVE_USER="svn"

View File

@ -0,0 +1,11 @@
[Unit]
Description=Subversion protocol daemon
After=syslog.target network.target
[Service]
Type=forking
EnvironmentFile=/etc/conf.d/svnserve
ExecStart=/usr/bin/svnserve --daemon --pid-file=/run/svnserve/svnserve.pid $SVNSERVE_ARGS
[Install]
WantedBy=multi-user.target

View File

@ -0,0 +1 @@
D /run/svnserve 0700 root root -