diff options
Diffstat (limited to 'pcr')
36 files changed, 1089 insertions, 0 deletions
diff --git a/pcr/facter/PKGBUILD b/pcr/facter/PKGBUILD new file mode 100644 index 000000000..956569001 --- /dev/null +++ b/pcr/facter/PKGBUILD @@ -0,0 +1,30 @@ +# Contributor: Greg Sutcliffe <facter_aur (at) emeraldreverie.orgr> +# Contributor: Hyacinthe Cartiaux <hyacinthe.cartiaux@free.fr> +# Contributor: Thomas S Hatch <thatch45 (at) Gmail.com> +# Contributor: Dave Simons <miouhpi (at) Gmail (dot) com> +# Maintainer : Parabola GNU / Linux-libre Aurelien Desbrieres + +pkgname=facter +pkgver=1.6.14 +pkgrel=1 +pkgdesc="A library for collecting facts about your system." +arch=("any") +url="http://puppetlabs.com/projects/facter/" +license=("APACHE") +depends=("ruby" "inetutils" "net-tools") +options=(!emptydirs) +source=(http://puppetlabs.com/downloads/facter/facter-$pkgver.tar.gz) +md5sums=('b6c3df8ad1781c10d30785c58a4504ef') + +package() { + cd $srcdir/facter-$pkgver + + ruby ./install.rb \ + --destdir=$pkgdir \ + --bindir=/usr/bin \ + --sbindir=/usr/sbin + + install -d -m755 "${pkgdir}/usr/share/licenses/${pkgname}" + install -m 644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + +} diff --git a/pcr/glance/PKGBUILD b/pcr/glance/PKGBUILD new file mode 100644 index 000000000..a05e66686 --- /dev/null +++ b/pcr/glance/PKGBUILD @@ -0,0 +1,62 @@ +# Contributor: Josh Chase <jcjoshuachase@gmail.com> +# Maintainer : Parabola GNU / Linux-libre Aurelien Desbrieres <aurelien@cwb.IO> + +pkgname=glance +pkgver=2012.1.2 +pkgrel=1 +_ostackver=essex +_clientname=python-glanceclient +_clientver=0.5.1 +pkgdesc="OpenStack image service" +arch=('any') +license=('custom') +url="https://launchpad.net/$pkgname" +depends=('python2' + 'python2-httplib2' + 'python2-webob' + 'python2-eventlet' + 'python2-greenlet' + 'python-paste' + 'python-paste-deploy' + 'python-routes' + 'python2-sqlalchemy' + 'python2-migrate' + 'python2-passlib' + 'python2-lxml' + 'python-anyjson' + 'python-wsgiref' + 'python2-argparse' + 'python2-boto' + 'python-xattr' + 'python2-kombu' + 'python2-crypto' + 'python2-sendfile' + 'python2-iso8601') +makedepends=('python2-distribute') +source=("https://launchpad.net/$pkgname/$_ostackver/$pkgver/+download/$pkgname-$pkgver.tar.gz" + "http://pypi.python.org/packages/source/${_clientname:0:1}/$_clientname/$_clientname-$_clientver.tar.gz") + +build() { + cd $srcdir + + find . -type f -exec sed -i -e 's|^#!/usr/bin/python$|#!/usr/bin/python2|' \ + -e 's|^#!/usr/bin/env python$|#!/usr/bin/env python2|' {} + + + cd $srcdir/$_clientname-$_clientver + python2 setup.py build + + cd "$srcdir/$pkgname-$pkgver" + python2 setup.py build +} + +package() { + cd $srcdir/$_clientname-$_clientver + python2 setup.py install --root=$pkgdir + + cd "$srcdir/$pkgname-$pkgver" + python2 setup.py install --root="$pkgdir" --optimize=1 + + install -dm600 "$pkgdir"/etc/$pkgname + install -Dm600 etc/* "$pkgdir"/etc/$pkgname/ + install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} diff --git a/pcr/nova/PKGBUILD b/pcr/nova/PKGBUILD new file mode 100644 index 000000000..181e5a626 --- /dev/null +++ b/pcr/nova/PKGBUILD @@ -0,0 +1,55 @@ +# Contributor: Josh Chase <jcjoshuachase@gmail.com> +# Maintainer : Parabola GNU / Linux-libre Aurelien Desbrieres <aurelien@cwb.io> + +pkgname=nova +pkgver=2012.1.2 +_clientname=python-novaclient +_clientver=2.8.0 +pkgrel=1.1 +pkgdesc="OpenStack cloud computing fabric controller" +arch=('any') +license=('custom') +url="https://launchpad.net/nova" +depends=('python2' + 'python2-cheetah' + 'python2-simplejson' + 'python2-prettytable' + 'python2-amqplib' + 'python2-carrot' + 'python2-lockfile' + 'python2-daemon' + 'python2-gflags' + 'python2-netaddr' + 'glance' + 'python2-suds' + 'python2-paramiko' + 'python2-feedparser' + 'python2-babel' ) +makedepends=('python2-distribute') +source=("https://launchpad.net/nova/essex/2012.1.2/+download/nova-2012.1.2.tar.gz" + "http://pypi.python.org/packages/source/${_clientname:0:1}/$_clientname/$_clientname-$_clientver.tar.gz") + +build() { + cd $srcdir + + find . -type f -exec sed -i -e 's|^#!/usr/bin/python$|#!/usr/bin/python2|' \ + -e 's|^#!/usr/bin/env python$|#!/usr/bin/env python2|' {} + + + cd $srcdir/$_clientname-$_clientver + python2 setup.py build + + cd "$srcdir/$pkgname-$pkgver" + python2 setup.py build +} + +package() { + cd $srcdir/$_clientname-$_clientver + python2 setup.py install --root=$pkgdir + + cd "$srcdir/$pkgname-$pkgver" + python2 setup.py install --root="$pkgdir" --optimize=1 + + install -dm600 "$pkgdir"/etc/$pkgname + install -Dm600 etc/$pkgname/* "$pkgdir"/etc/$pkgname/ + install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} diff --git a/pcr/puppet/PKGBUILD b/pcr/puppet/PKGBUILD new file mode 100644 index 000000000..02e8f32c8 --- /dev/null +++ b/pcr/puppet/PKGBUILD @@ -0,0 +1,86 @@ +# Puppet: Installer: Arch +# Contributor: Greg Sutcliffe <puppet-aur (at) emeraldreverie (dot) org> +# Contributor: Hyacinthe Cartiaux <hyacinthe (dot) cartiaux (at) free (dot) fr> +# Contributor: Thomas S Hatch <thatch45 (at) Gmail (dot) com> +# Contributor: Xavion <Xavion (dot) 0 (at) Gmail (dot) com> +# Contributor: Miah Johnson <miah (at) chia-pet dot org> +# Contributor: Dave Simons <miouhpi (at) Gmail (dot) com> +# Contributor: Niels Abspoel <aboe76 (at) Gmail (dot) com> +# Maintainer : Parabola GNU / Linux-libre Aurelien Desbrieres <aurelien@cwb.io> + +# RC style, reserved for later use +#pkgname=puppet +#_rc=8 +#_pkgver=3.0.0 +#pkgver=${_pkgver}_rc${_rc} + +pkgname=puppet +pkgver=3.0.1 +pkgrel=5 +pkgdesc="A system for automating system administration tasks." +arch=("any") +url="http://puppetlabs.com/projects/puppet/" +license=("APACHE") +depends=("ruby" "ruby-shadow" "facter" "ruby-hiera" "ruby-hiera-json") +makedepends=('which') +backup=("etc/puppet/puppet.conf") +options=(emptydirs) +provides=("puppet" "vim-puppet" "ruby-hiera-puppet") +conflicts=("puppet3" "ruby-puppet" "vim-puppet" "ruby-hiera-puppet") +install="puppet.install" +source=(http://puppetlabs.com/downloads/puppet/puppet-${pkgver//_/-}.tar.gz + fileserver.conf + puppet + puppet.conf + puppetmaster) +md5sums=('2117e3a1964ac54fcd36d926eed3db94' + 'ffacd9bfb9c7656a3a345dbc5eb0e67a' + '59dbf39e251bc4877e7604a5876c642d' + 'a7d61d20e46b411eb50ad5279987584a' + '4c507c580cb28d7a5adc9ea6b3626657') + +package() { + cd $srcdir/puppet-${pkgver//_/-} + + # Install + ruby ./install.rb \ + --destdir=$pkgdir \ + --bindir=/usr/bin \ + --sbindir=/usr/sbin \ + --mandir=/usr/share/man + + + # Set up vim and emacs + install -Dp -m0644 ext/vim/ftdetect/puppet.vim $pkgdir/usr/share/vim/vimfiles/ftdetect/puppet.vim + install -Dp -m0644 ext/vim/syntax/puppet.vim $pkgdir/usr/share/vim/vimfiles/syntax/puppet.vim + install -Dp -m0644 ext/emacs/puppet-mode.el $pkgdir/usr/share/emacs/site-lisp/puppet-mode.el + install -Dp -m0644 ext/emacs/puppet-mode-init.el $pkgdir/usr/share/emacs/site-lisp/site-start.d/puppet-mode-init.el + + # Configuration and rc scripts + install -d $pkgdir/etc/{puppet,rc.d} + install -m 644 $srcdir/puppet.conf $pkgdir/etc/puppet/puppet.conf + install -m 644 $srcdir/fileserver.conf $pkgdir/etc/puppet/fileserver.conf + + # Setup tmpfiles.d config + install -d $pkgdir/etc/tmpfiles.d + echo "D /var/run/puppet 0755 puppet puppet -" > $pkgdir/etc/tmpfiles.d/puppet.conf + + # Configuration for hiera / symlink is there to use hiera within puppet. + ln -snf /etc/hiera.yaml ${pkgdir}/etc/puppet/hiera.yaml + + # Systemd files + install -Dm 644 $srcdir/puppet-${pkgver//_/-}/ext/systemd/puppetagent.service $pkgdir/usr/lib/systemd/system/puppetagent.service + install -Dm 644 $srcdir/puppet-${pkgver//_/-}/ext/systemd/puppetmaster.service $pkgdir/usr/lib/systemd/system/puppetmaster.service + + # Create puppet homedir and hieradir + install -d $pkgdir/var/lib/puppet + install -d $pkgdir/var/lib/hiera + + install -D $srcdir/puppet $pkgdir/etc/rc.d/puppet + install -D $srcdir/puppetmaster $pkgdir/etc/rc.d/puppetmaster + + # Copy the LICENSE file in the usual directory + install -d -m755 "${pkgdir}/usr/share/licenses/${pkgname}" + install -m 644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + +} diff --git a/pcr/puppet/fileserver.conf b/pcr/puppet/fileserver.conf new file mode 100644 index 000000000..67e387ca0 --- /dev/null +++ b/pcr/puppet/fileserver.conf @@ -0,0 +1,12 @@ +# This file consists of arbitrarily named sections/modules +# defining where files are served from and to whom + +# Define a section 'files' +# Adapt the allow/deny settings to your needs. Order +# for allow/deny does not matter, allow always takes precedence +# over deny +# [files] +# path /var/lib/puppet/files +# allow *.example.com +# deny *.evil.example.com +# allow 192.168.0.0/24 diff --git a/pcr/puppet/puppet b/pcr/puppet/puppet new file mode 100755 index 000000000..4126be850 --- /dev/null +++ b/pcr/puppet/puppet @@ -0,0 +1,45 @@ +#!/bin/bash +DAEMON=$(type -p puppetd) + +. /etc/rc.conf +. /etc/rc.d/functions +[ -f /etc/conf.d/puppet ] && . /etc/conf.d/puppet + +PID=$(pidof -xo %PPID $DAEMON) +case "$1" in + start) + stat_busy "Starting Puppet Daemon" + if [ -z "$PID" ]; then + [ -f /var/run/puppet.pid ] && rm -f /var/run/puppet.pid + $DAEMON $PUPPETD_ARGS + fi + if [ ! -z "$PID" -o $? -gt 0 ]; then + stat_fail + else + PID=$(pidof -xo %PPID $DAEMON) + echo $PID > /var/run/puppet.pid + add_daemon puppet + stat_done + fi + ;; + stop) + stat_busy "Stopping Puppet Daemon" + [ ! -z "$PID" ] && kill $PID &> /dev/null + if [ $? -gt 0 ]; then + stat_fail + else + rm_daemon puppet + rm -f /var/run/puppet.pid + stat_done + fi + ;; + restart) + $0 stop + if [ ! -z $PID ]; then + while ps -p $PID > /dev/null; do sleep 1; done + fi + $0 start + ;; + *) + echo "usage: $0 {start|stop|restart}" +esac diff --git a/pcr/puppet/puppet.conf b/pcr/puppet/puppet.conf new file mode 100644 index 000000000..aa5868dee --- /dev/null +++ b/pcr/puppet/puppet.conf @@ -0,0 +1,32 @@ +[main] + # The Puppet var directory + # The default value is '/var/lib/puppet' + vardir = /var/lib/puppet + + # The Puppet log directory. + # The default value is '$vardir/log'. + logdir = /var/log/puppet + + # Where Puppet PID files are kept. + # The default value is '$vardir/run'. + rundir = /var/run/puppet + + # Where SSL certificates are kept. + # The default value is '$confdir/ssl'. + pluginsync=true + + +[agent] + # The file in which puppetd stores a list of the classes + # associated with the retrieved configuratiion. Can be loaded in + # the separate ``puppet`` executable using the ``--loadclasses`` + # option. + # The default value is '$confdir/classes.txt'. + classfile = $vardir/classes.txt + + # Where puppetd caches the local configuration. An + # extension indicating the cache format is added automatically. + # The default value is '$confdir/localconfig'. + localconfig = $vardir/localconfig + +#[master] diff --git a/pcr/puppet/puppet.install b/pcr/puppet/puppet.install new file mode 100644 index 000000000..928df566b --- /dev/null +++ b/pcr/puppet/puppet.install @@ -0,0 +1,46 @@ +# Puppet: Installer: Arch +# Maintainer: Thomas S Hatch <thatch45 (at) Gmail (dot) com> +# Contributor: Xavion <Xavion (dot) 0 (at) Gmail (dot) com> +# Contributor: Miah Johnson <Miah (at) chia-pet dot org> + +pre_install() { + getent group puppet &>/dev/null || groupadd -r puppet -g 52 &>/dev/null + getent passwd puppet &>/dev/null || useradd -r -u 52 -g puppet -d /var/lib/puppet -s /sbin/nologin -c "Puppet" puppet &>/dev/null || : +} + +pre_upgrade() { + pre_install + usermod -d /var/lib/puppet puppet &>/dev/null || : +} + +post_install() { + : +} + +pre_remove() { +if [ -f /var/run/puppetmasterd.pid ]; then + PIDOF=$(pidof -xo %PPID puppetmasterd) + PIDFILE=$(cat /var/run/puppetmasterd.pid) + if [ $PIDOF -eq $PIDFILE ]; then + /etc/rc.d/puppetmaster stop + fi +fi + +if [ -f /var/run/puppetd.pid ]; then + PIDOF=$(pidof -xo %PPID puppetd) + PIDFILE=$(cat /var/run/puppetd.pid) + if [ $PIDOF -eq $PIDFILE ]; then + /etc/rc.d/puppet stop + fi +fi +} + +post_remove() { + # Remove user and group + userdel puppet +} + +op=$1 +shift + +$op "$@" diff --git a/pcr/puppet/puppetmaster b/pcr/puppet/puppetmaster new file mode 100755 index 000000000..8b3971053 --- /dev/null +++ b/pcr/puppet/puppetmaster @@ -0,0 +1,45 @@ +#!/bin/bash +DAEMON=$(type -p puppetmasterd) + +. /etc/rc.conf +. /etc/rc.d/functions +[ -f /etc/conf.d/puppetmaster ] && . /etc/conf.d/puppetmaster + +PID=$(pidof -xo %PPID $DAEMON) +case "$1" in + start) + stat_busy "Starting Puppet Master Daemon" + if [ -z "$PID" ]; then + [ -f /var/run/puppetmaster.pid ] && rm -f /var/run/puppetmaster.pid + $DAEMON $PUPPETMASTER_ARGS + fi + if [ ! -z "$PID" -o $? -gt 0 ]; then + stat_fail + else + PID=$(pidof -xo %PPID $DAEMON) + echo $PID > /var/run/puppetmaster.pid + add_daemon puppetmaster + stat_done + fi + ;; + stop) + stat_busy "Stopping Puppet Master Daemon" + [ ! -z "$PID" ] && kill $PID &> /dev/null + if [ $? -gt 0 ]; then + stat_fail + else + rm_daemon puppetmaster + rm -f /var/run/puppetmaster.pid + stat_done + fi + ;; + restart) + $0 stop + if [ ! -z $PID ]; then + while ps -p $PID > /dev/null; do sleep 1; done + fi + $0 start + ;; + *) + echo "usage: $0 {start|stop|restart}" +esac diff --git a/pcr/python-anyjson/PKGBUILD b/pcr/python-anyjson/PKGBUILD new file mode 100644 index 000000000..8ab20d1c9 --- /dev/null +++ b/pcr/python-anyjson/PKGBUILD @@ -0,0 +1,21 @@ +# Contributor: Benjamin A. Shelton <zancarius@gmail.com> +# Contributor: p2k <Patrick.Schneider@uni-ulm.de> +# Maintainer : Parabola GNU / Linux-libre Aurelien Desbrieres <aurelien@cwb.IO> + +pkgname=python-anyjson +pkgver=0.3.3 +pkgrel=1 +pkgdesc="Wraps the best available JSON implementation available in a common interface." +arch=('any') +url="http://pypi.python.org/pypi/anyjson" +license=('BSD') +depends=('python2') +makedepends=('python2-distribute') +source=("http://pypi.python.org/packages/source/a/anyjson/anyjson-${pkgver}.tar.gz") + +build () { + + cd "${srcdir}/anyjson-${pkgver}" + python2 setup.py install --root="${pkgdir}/" --optimize=1 + +} diff --git a/pcr/python-paste-deploy/PKGBUILD b/pcr/python-paste-deploy/PKGBUILD new file mode 100644 index 000000000..57b7ca0d3 --- /dev/null +++ b/pcr/python-paste-deploy/PKGBUILD @@ -0,0 +1,24 @@ +# Contributor: David Campbell <davekong@archlinux.us> +# Contributor: Cilyan Olowen <gaknar@gmail.com> +# Maintainer : Parabola GNU / Linux-libre Aurelien Desbrieres <aurelien@cwb.IO> + +pkgname=python-paste-deploy +pkgver=1.5.0 +pkgrel=1 +pkgdesc="Load, configure, and compose WSGI applications and servers" +arch=('any') +url="http://pythonpaste.org/deploy/" +license=('custom') +depends=('python2') +makedepends=('setuptools') +source=(http://pypi.python.org/packages/source/P/PasteDeploy/PasteDeploy-${pkgver}.tar.gz) + + +build() { + cd $srcdir/PasteDeploy-${pkgver} + python2 setup.py install --root=$pkgdir --optimize=1 + install -Dm644 docs/license.txt $pkgdir/usr/share/licenses/$pkgname/license.txt + sed -i -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \ + -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \ + $(find $pkgdir -name '*.py') +} diff --git a/pcr/python-paste/PKGBUILD b/pcr/python-paste/PKGBUILD new file mode 100644 index 000000000..3ffc12ca3 --- /dev/null +++ b/pcr/python-paste/PKGBUILD @@ -0,0 +1,25 @@ +# Contributor: David Campbell <davekong@archlinux.us> +# Contributor: Cilyan Olowen <gaknar@gmail.com> +# Maintainer : Parabola GNU / Linux-libre Aurelien Desbrieres <aurelien@cwb.IO> + +pkgname=python-paste +pkgver=1.7.5.1 +pkgrel=1 +pkgdesc="Tools for using a Web Server Gateway Interface stack." +arch=('any') +url="http://pythonpaste.org/index.html" +license=('custom') +depends=('python2') +makedepends=('setuptools') +source=(http://pypi.python.org/packages/source/P/Paste/Paste-${pkgver}.tar.gz) +optdepends=('python-flup: WSGI utilities' + 'python-openid: Support for OpenID') + +build() { + cd ${srcdir}/Paste-${pkgver} + python2 setup.py install --root=${pkgdir} --optimize=1 + install -Dm644 docs/license.txt ${pkgdir}/usr/share/licenses/$pkgname/license.txt + sed -i -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \ + -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \ + $(find $pkgdir -name '*.py') +} diff --git a/pcr/python-repoze.lru/PKGBUILD b/pcr/python-repoze.lru/PKGBUILD new file mode 100644 index 000000000..844658c27 --- /dev/null +++ b/pcr/python-repoze.lru/PKGBUILD @@ -0,0 +1,32 @@ +# Contributor: speps <speps at aur dot archlinux dot org> +# Contributor: DasIch <dasdasich@googlemail.com> +# Maintainer : Paraobla GNU / Linux-libre Aurelien Desbrieres <aurelien@cwb.IO> + +_name=repoze.lru +pkgname=python-$_name +pkgver=0.6 +pkgrel=1 +pkgdesc="A tiny LRU cache implementation and decorator" +arch=('any') +license=('custom:BSD') +url="http://pypi.python.org/pypi/$_name" +depends=('python') +makedepends=('python-distribute') +provides=(python-repoze-lru) +conflicts=(python-repoze-lru) +replaces=(python-repoze-lru) +source=("http://pypi.python.org/packages/source/r/$_name/$_name-$pkgver.tar.gz") + +build() { + cd "$srcdir/$_name-$pkgver" + python setup.py build +} + +package() { + cd "$srcdir/$_name-$pkgver" + python setup.py install --root="$pkgdir/" + + # license + install -Dm644 LICENSE.txt \ + "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} diff --git a/pcr/python-routes/PKGBUILD b/pcr/python-routes/PKGBUILD new file mode 100644 index 000000000..511934ef2 --- /dev/null +++ b/pcr/python-routes/PKGBUILD @@ -0,0 +1,29 @@ +# Contributor: SpepS <dreamspepser at yahoo dot it> +# Contributor: David Moore <davidm@sjsoft.com> +# Contributor: Nathan Jones <nathanj@insightbb.com> +# Maintainer : Parabola GNU / Linux-libre Aurelien Desbrieres <aurelien@cwb.IO> + +pkgname=python-routes +pkgver=1.13 +pkgrel=2 +pkgdesc="A routing package for Python that matches URL's to dicts and vice versa" +arch=('any') +url="http://pypi.python.org/pypi/Routes" +license=('custom:BSD') +depends=('python-repoze.lru') +makedepends=('python-distribute') +source=("http://pypi.python.org/packages/source/R/Routes/Routes-$pkgver.tar.gz") + +build() { + cd "$srcdir/Routes-$pkgver" + python setup.py build +} + +package() { + cd "$srcdir/Routes-$pkgver" + + python setup.py install --root="$pkgdir/" + install -Dm644 LICENSE \ + "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} + diff --git a/pcr/python-wsgiref/PKGBUILD b/pcr/python-wsgiref/PKGBUILD new file mode 100644 index 000000000..3f3b38bd2 --- /dev/null +++ b/pcr/python-wsgiref/PKGBUILD @@ -0,0 +1,19 @@ +# Contributor: Philipp Schmidt <philschmidt at gmx dot net> +# Maintainer : Parabola GNU / Linux-libre Aurelien Desbrieres <aurelien@cwb.IO> + +pkgname=python-wsgiref +pkgver=0.1.2 +pkgrel=2 +pkgdesc="WSGI (PEP 333) Reference Library" +arch=('i686' 'x86_64') +url="http://cheeseshop.python.org/pypi/wsgiref" +license=('PSF or ZPL') +depends=('python2') +makedepends=('unzip' 'setuptools') +source=("http://pypi.python.org/packages/source/w/wsgiref/wsgiref-$pkgver.zip") + +build() { + cd "$srcdir/wsgiref-$pkgver" + + python2 setup.py install --root=$pkgdir +} diff --git a/pcr/python-xattr/PKGBUILD b/pcr/python-xattr/PKGBUILD new file mode 100644 index 000000000..d6977f435 --- /dev/null +++ b/pcr/python-xattr/PKGBUILD @@ -0,0 +1,31 @@ +# Maintainer : Parabola GNU / Linux-libre Aurelien Desbrieres <aurelien@cwb.IO> + +pkgname=python-xattr +pkgver=20111028 +pkgrel=1 +pkgdesc="module for manipulating filesystem extended attributes" +arch=('i686' 'x86_64') +url="http://undefined.org/python/#xattr" +license=('MIT') +conflicts=('pyattr') +provied=('pyattr') +makedepends=('setuptools') +depends=('python2' 'git') + +_gitroot=https://github.com/xattr/xattr.git +_gitname=xattr + +build() { + cd $srcdir/ + + if [ -e ${_gitname} ] ; then + cd ${_gitname} + git pull + cd .. + else + git clone ${_gitroot} ${_gitname} + fi + + cd $srcdir/xattr/ + python2 setup.py install --prefix=/usr --root=$pkgdir +} diff --git a/pcr/python2-amqplib/PKGBUILD b/pcr/python2-amqplib/PKGBUILD new file mode 100644 index 000000000..d67800a06 --- /dev/null +++ b/pcr/python2-amqplib/PKGBUILD @@ -0,0 +1,22 @@ +# Contributor: Tevin Zhang <mail2tevin {at} gmail {dot} com> +# Maintainer : Parabola GNU / Linux-libre Aurelien Desbrieres <aurelien@cwb.IO> + +pkgname=python2-amqplib +pkgver=1.0.2 +pkgrel=3 +pkgdesc="Python client for the Advanced Message Queuing Procotol (AMQP). Uses Python2." +arch=('any') +url="http://code.google.com/p/py-amqplib/" +license=("LGPL") +depends=('python2>=2.6' 'setuptools') +source=(http://py-amqplib.googlecode.com/files/amqplib-$pkgver.tgz) + +build() { + cd $srcdir/amqplib-$pkgver + + # replace /usr/bin/env python with python2 + find . -name '*.py' -exec sed -i -e '1 s/python\s*$/python2/' {} \; + + python2 ./setup.py install --root=$pkgdir --prefix=/usr || return 1 +} + diff --git a/pcr/python2-carrot/PKGBUILD b/pcr/python2-carrot/PKGBUILD new file mode 100644 index 000000000..b620eca9e --- /dev/null +++ b/pcr/python2-carrot/PKGBUILD @@ -0,0 +1,21 @@ +# Contributor: Lukas Linhart <bugs@almad.net> +# Contributor: Marco Elver <marco.elver AT gmail.com> +# Maintainer : Parabola GNU / Linux-libre Aurelien Desbrieres <aurelien@cwb.IO> + +pkgname=python2-carrot +pkgver=0.10.5 +pkgrel=1 +pkgdesc="AMQP Messaging Framwork for Python" +arch=('any') +url='http://ask.github.com/carrot/' +license=('BSD') +depends=('python2' 'python2-amqplib') +makedepends=('setuptools') +source=("http://pypi.python.org/packages/source/c/carrot/carrot-$pkgver.tar.gz") +options=(!emptydirs) + +build() { + cd ${srcdir}/carrot-$pkgver + python2 setup.py install --root=$pkgdir/ --optimize=1 || return 1 +} + diff --git a/pcr/python2-daemon/PKGBUILD b/pcr/python2-daemon/PKGBUILD new file mode 100644 index 000000000..18358f9cb --- /dev/null +++ b/pcr/python2-daemon/PKGBUILD @@ -0,0 +1,20 @@ +# Contributor: Massimiliano Torromeo <massimiliano.torromeo@gmail.com> +# Maintainer : Parabola GNU / Linux-libre Aurelien Desbrieres <aurelien@cwb.IO> + +pkgname=python2-daemon +pkgver=1.6 +pkgrel=2 +pkgdesc="Library to implement a well-behaved Unix daemon process" +license=("PSF-2+") +url="http://pypi.python.org/pypi/python-daemon" +depends=('python2-lockfile') +makedepends=('python2-distribute') +source=(http://pypi.python.org/packages/source/p/python-daemon/python-daemon-$pkgver.tar.gz) +arch=('any') +options=(!emptydirs) + +build() { + cd "$srcdir/python-daemon-$pkgver" + python2 setup.py install --root="$pkgdir" +} + diff --git a/pcr/python2-eventlet/PKGBUILD b/pcr/python2-eventlet/PKGBUILD new file mode 100644 index 000000000..d9dc41d8d --- /dev/null +++ b/pcr/python2-eventlet/PKGBUILD @@ -0,0 +1,22 @@ +# -*- shell-script -*- +#Maintainer : Parabola GNU / Linux-libre Aurelien Desbrieres <aurelien@cwb.IO> + +python=python2 +name=eventlet + +pkgname=$python-$name +pkgver=0.9.16 +pkgrel=1 +pkgdesc="Highly concurrent networking library" +arch=(any) +url="http://eventlet.net" +license=(MIT) +depends=('python2-greenlet' 'python' 'python2-distribute') +makedepends=("$python") +source=("http://pypi.python.org/packages/source/e/$name/$name-$pkgver.tar.gz") + +build() { + cd "$srcdir/$name-$pkgver" + $python setup.py install --prefix=/usr --root=$pkgdir +} + diff --git a/pcr/python2-iso8601/PKGBUILD b/pcr/python2-iso8601/PKGBUILD new file mode 100644 index 000000000..08ca49004 --- /dev/null +++ b/pcr/python2-iso8601/PKGBUILD @@ -0,0 +1,19 @@ +# Contributor: WU Jun <quark at lihdd dot net> +# Contributor: Vsevolod Balashov <vsevolod@balashov.name> +# Maintainer : Parabola GNU / Linux-libre Aurelien Desbrieres <aurelien@cwb.IO> + +name=iso8601 +pkgname=python2-$name +pkgver=0.1.4 +pkgrel=3 +pkgdesc="Simple module to parse ISO 8601 dates" +arch=(any) +url="http://pypi.python.org/pypi/$name" +license=(MIT) +depends=(python2) +makedepends=(python2-distribute) +source=("http://pypi.python.org/packages/source/i/$name/$name-$pkgver.tar.gz") +build() { + cd "$srcdir/$name-$pkgver" + python2 setup.py install --prefix=/usr --root=$pkgdir || return 1 +} diff --git a/pcr/python2-kombu/PKGBUILD b/pcr/python2-kombu/PKGBUILD new file mode 100644 index 000000000..ef99b0beb --- /dev/null +++ b/pcr/python2-kombu/PKGBUILD @@ -0,0 +1,29 @@ +# Contributor: Felix Yan <felixonmars@gmail.com> +# Maintainer : Parabola GNU / Linux-libre Aurelien Desbrieres <aurelien@cwb.IO> + +pkgname=python2-kombu +pkgver=2.4.10 +pkgrel=1 +pkgdesc="AMQP Messaging Framework for Python 2.x" +arch=('any') +url="http://pypi.python.org/pypi/kombu/" +license=('BSD') +depends=('python2' 'python-anyjson') +optdepends=( + "python2-librabbitmq: High performance AMQP transport written in C" +) +makedepends=('setuptools') +source=("http://pypi.python.org/packages/source/k/kombu/kombu-$pkgver.tar.gz") +options=(!emptydirs) + +build() { + cd "$srcdir"/kombu-$pkgver + python2 setup.py build +} + +package() { + cd "$srcdir"/kombu-$pkgver + python2 setup.py install --root="$pkgdir/" + install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} + diff --git a/pcr/python2-netaddr/PKGBUILD b/pcr/python2-netaddr/PKGBUILD new file mode 100644 index 000000000..8d9f2a827 --- /dev/null +++ b/pcr/python2-netaddr/PKGBUILD @@ -0,0 +1,19 @@ +# Contributor: Sebastien LEDUC <sebastien@sleduc.fr> +# Contributor: Gilles CHAUVIN <gcnweb at gmail dot com> +# Maintainer : Parabola GNU / Linux-libre Aurelien Desbrieres <aurelien@cwb.IO> + +pkgname=python2-netaddr +pkgver=0.7.10 +pkgrel=1 +pkgdesc="A pure Python network address representation and manipulation library" +arch=('i686' 'x86_64') +license=('BSD') +url="http://github.com/drkjam/netaddr/" +depends=('python2') +source=("http://github.com/downloads/drkjam/netaddr/netaddr-$pkgver.tar.gz") + +build() { + cd "$srcdir/netaddr-$pkgver/" + python2 setup.py install --root="$pkgdir/" --optimize=1 +} + diff --git a/pcr/python2-passlib/PKGBUILD b/pcr/python2-passlib/PKGBUILD new file mode 100644 index 000000000..753677827 --- /dev/null +++ b/pcr/python2-passlib/PKGBUILD @@ -0,0 +1,21 @@ +# Contributor: onny <onny@project-insanity.org> +# Contributor: onny <onny@project-insanity.org> +# Maintainer : Parabola GNU /Linux-libre Aurelien Desbrieres <aurelien@cwb.IO> + +pkgname=python2-passlib +pkgver=1.6.1 +pkgrel=1 +pkgdesc="A password hashing library for Python." +arch=('i686' 'x86_64') +url=("https://code.google.com/p/passlib/") +license=('custom') +depends=('python2') +source=("https://passlib.googlecode.com/files/passlib-${pkgver}.tar.gz") +sha512sums=('93c047dc0a06f19a20e5da97db43c5c76e06d69baeac15cc932ef0306ae22dac5c1a3925889a140fd181ab4e00ac513ec829951e15babf5aad89bd2d08dc9907') + +build() { + cd "$srcdir/passlib-${pkgver}" + python2 setup.py build install --root="${pkgdir}" || return 1 +} + +# vim:set ts=2 sw=2 et: diff --git a/pcr/python2-pkgtools/PKGBUILD b/pcr/python2-pkgtools/PKGBUILD new file mode 100644 index 000000000..7060dc416 --- /dev/null +++ b/pcr/python2-pkgtools/PKGBUILD @@ -0,0 +1,20 @@ +# Contributor: Fabien Devaux <fdev31 at gmail dot com> +# Maintainer : Parabola GNU / Linux-libre Aurelien Desbrieres <aurelien@cwb.IO> + +pkgname=python2-pkgtools +pkgver=0.7.1 +pkgrel=1 +pkgdesc="Python packages tools" +arch=('any') +url="http://pkgtools.readthedocs.org/en/latest/" +license=('MIT') +depends=('python2') +makedepends=('python2-distribute') +source=(http://pypi.python.org/packages/source/p/pkgtools/pkgtools-${pkgver}.tar.gz) + +build() { + cd "${srcdir}/pkgtools-${pkgver}" + python2 setup.py build || exit 1 + python2 setup.py install --root="${pkgdir}" --optimize=1 || exit 1 +} + diff --git a/pcr/python2-sendfile/PKGBUILD b/pcr/python2-sendfile/PKGBUILD new file mode 100644 index 000000000..3de2d5a48 --- /dev/null +++ b/pcr/python2-sendfile/PKGBUILD @@ -0,0 +1,22 @@ +# Contributor: Josh Chase <jcjoshuachase@gmail.com> +# Maintainer : Parabola GNU / Linux-libre Aurelien Desbrieres <aurelien@cwb.IO> + +pkgname=python2-sendfile +_pkgname=py-sendfile +pkgver=1.2.3 +pkgrel=1 +pkgdesc="pysendfile" +url="http://code.google.com/p/pysendfile" +license=('MIT') +arch=('i686' 'x86_64') +depends=('python2' 'setuptools') +conflicts=() +replaces=() +backup=() +source=("http://pypi.python.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz") + +build() { + cd $srcdir/$_pkgname-$pkgver + python2 setup.py build + python2 setup.py install --root=$pkgdir + } diff --git a/pcr/python2-suds/PKGBUILD b/pcr/python2-suds/PKGBUILD new file mode 100644 index 000000000..a45009a2b --- /dev/null +++ b/pcr/python2-suds/PKGBUILD @@ -0,0 +1,25 @@ +# Contributor: Jonathan Liu <net147@gmail.com> +# Maintainer : Parabola GNU / Linux-libre Aurelien Desbrieres <aurelien@cwb.IO> + +pkgname=python2-suds +pkgver=0.4 +pkgrel=3 +pkgdesc="A lightweight SOAP python client." +arch=('any') +url="https://fedorahosted.org/suds/" +license=('LGPL') +depends=('python2') +makedepends=('python2-distribute') +source=("https://fedorahosted.org/releases/s/u/suds/python-suds-${pkgver}.tar.gz") + +build() { + cd "${srcdir}/python-suds-${pkgver}" + python2 setup.py build +} + +package() { + cd "${srcdir}/python-suds-${pkgver}" + python2 setup.py install --root="${pkgdir}" -O1 +} + +# vim:set ts=2 sw=2 et: diff --git a/pcr/python2-webob/Changelog b/pcr/python2-webob/Changelog new file mode 100644 index 000000000..d67f3b16b --- /dev/null +++ b/pcr/python2-webob/Changelog @@ -0,0 +1,26 @@ +2012-10-30 Aaron DeVore <aaron.devore@gmail.com> (1.2.3-1) +- Version bump to 1.2.3 +- Change WebOb-${pkgver}.zip to WebOb-${pkgver}.tar.gz +2012-06-07 Aaron DeVore <aaron.devore@gmail.com> (1.2.2-1) +- Version bump to 1.2.2 +2012-06-07 Aaron DeVore <aaron.devore@gmail.com> (1.2-1) +- Version bump to 1.2 +2012-10-07 Aaron DeVore <aaron.devore@gmail.com> +- Version bump to 1.1.1 +2011-8-8 Aaron DeVore <aaron.devore@gmail.com> (1.1b2) +- Version bump to 1.1b2 +- Add python-sphinx to makedepends +2011-5-14 Aaron DeVore <aaron.devore@gmail.com> (1.0.7-2) +- Revert from split build (AUR doesn't work with split builds) +2011-5-14 Aaron DeVore <aaron.devore@gmail.com> (1.0.7-1) +- Version bump to 1.0.7 +- Switch to split build +- Split Sphinx html docs into python-webob-docs package +- Don't bundle license file (upstream has restored it) +2011-4-13 Aaron DeVore <aaron.devore@gmail.com> (1.0.6-1) +- Version bump to 1.0.6 +- Bundle the license file (upstream removed it from the Pypi zip file) +2011-3-24 Aaron DeVore <aaron.devore@gmail.com> (1.0.5-1) +- Version bump to 1.0.5 +- Fix source URL (file extension changed on Pypi) +- Fix some recently change idioms diff --git a/pcr/python2-webob/PKGBUILD b/pcr/python2-webob/PKGBUILD new file mode 100644 index 000000000..8dd0df386 --- /dev/null +++ b/pcr/python2-webob/PKGBUILD @@ -0,0 +1,34 @@ +# Contributor: Aaron DeVore <aaron.devore@gmail.com> +# Contributor: Cilyan Olowen <gaknar@gmail.com> +# Maintainer : Parabola GNU / Linux-libre Aurelien Desbrieres <aurelien@cwb.IO> + +pkgname='python2-webob' +pkgver='1.2.3' +pkgrel='1' +pkgdesc="WebOb provides objects for HTTP requests and responses." +arch=('any') +url="http://webob.org/" +license=('MIT') +depends=('python2') +makedepends=('python2-distribute') +optdepends=('python-webob-docs: documentation') +changelog='Changelog' +source=("http://pypi.python.org/packages/source/W/WebOb/WebOb-${pkgver}.tar.gz") + +build() { + cd "$srcdir/WebOb-${pkgver}" + python2 setup.py build +} + +package() { + cd "$srcdir/WebOb-${pkgver}" + python2 setup.py install "--root=$pkgdir" --optimize=1 + install -D -m644 "docs/license.txt" \ + "$pkgdir/usr/share/licenses/$pkgname/license.txt" +} + +check() { + cd "$srcdir/WebOb-${pkgver}" + python2 setup.py test +} + diff --git a/pcr/ruby-hiera-json/PKGBUILD b/pcr/ruby-hiera-json/PKGBUILD new file mode 100644 index 000000000..4d80244c8 --- /dev/null +++ b/pcr/ruby-hiera-json/PKGBUILD @@ -0,0 +1,26 @@ +# Contributor: Jochen Schalanda <jochen+aur@schalanda.name> +# Maintainer : Parabola GNU / Linux-libre Aurelien Desbrieres <aurelien@cwb.IO> + +_gemname=hiera-json +pkgname=ruby-$_gemname +pkgver=0.4.0 +pkgrel=1 +pkgdesc='Store Hiera data in JSON' +arch=(any) +url='http://projects.puppetlabs.com/projects/hiera/' +license=('MIT') +depends=('ruby') +makedepends=('rubygems' 'ruby-hiera') +source=(http://gems.rubyforge.org/gems/$_gemname-$pkgver.gem) +noextract=($_gemname-$pkgver.gem) + +package() { + cd "$srcdir" + # _gemdir is defined inside package() because if ruby[gems] is not installed on + # the system, makepkg will exit with an error when sourcing the PKGBUILD. + local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')" + + gem install --no-user-install --ignore-dependencies -i "$pkgdir$_gemdir" \ + -n "$pkgdir/usr/bin" "$_gemname-$pkgver.gem" +} + diff --git a/pcr/ruby-hiera/PKGBUILD b/pcr/ruby-hiera/PKGBUILD new file mode 100644 index 000000000..c4d51fe44 --- /dev/null +++ b/pcr/ruby-hiera/PKGBUILD @@ -0,0 +1,34 @@ +# Contributor: Jochen Schalanda <jochen+aur@schalanda.name> +# Maintainer : Parabola GNU / Linux-libre Aurelien Desbrieres <aurelien@cwb.io> + +_gemname=hiera +pkgname=ruby-$_gemname +pkgver=1.1.1 +pkgrel=1 +pkgdesc="A pluggable data store for hierarcical data." +arch=(any) +url='http://projects.puppetlabs.com/projects/hiera/' +license=('MIT') +depends=('ruby') +makedepends=('rubygems') +source=( + "http://gems.rubyforge.org/gems/$_gemname-$pkgver.gem" + 'hiera.yaml') +noextract=($_gemname-$pkgver.gem) + +package() { + cd "$srcdir" + # _gemdir is defined inside package() because if ruby[gems] is not installed on + # the system, makepkg will exit with an error when sourcing the PKGBUILD. + local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')" + + gem install --no-user-install --ignore-dependencies -i "$pkgdir$_gemdir" \ + -n "$pkgdir/usr/bin" "$_gemname-$pkgver.gem" + + # Create hiera default directory + install -d $pkgdir/var/lib/hiera + + # Create hiera default configuration + install -d $pkgdir/etc + install -m 644 $srcdir/hiera.yaml $pkgdir/etc/ +} diff --git a/pcr/ruby-hiera/hiera.yaml b/pcr/ruby-hiera/hiera.yaml new file mode 100644 index 000000000..cd0be3fec --- /dev/null +++ b/pcr/ruby-hiera/hiera.yaml @@ -0,0 +1,21 @@ +--- +:backend: + - yaml + - json +:hierarchy: + - defaults + - global + +:yaml: +# datadir is empty here, so hiera uses its defaults: +# - /var/lib/hiera on *nix +# - %CommonAppData%\PuppetLabs\hiera\var on Windows +# When specifying a datadir, make sure the directory exists. + :datadir: + +:json: +# datadir is empty here, so hiera uses its defaults: +# - /var/lib/hiera on *nix +# - %CommonAppData%\PuppetLabs\hiera\var on Windows +# When specifying a datadir, make sure the directory exists. + :datadir: diff --git a/pcr/ruby-shadow/PKGBUILD b/pcr/ruby-shadow/PKGBUILD new file mode 100644 index 000000000..5b7ee1972 --- /dev/null +++ b/pcr/ruby-shadow/PKGBUILD @@ -0,0 +1,24 @@ +# Contributor: Thomas S Hatch <thatch45@gmail.com> +# Maintainer : Parabola GNU / Linux-libre Aurelien Desbrieres <aurelien@cwb.io> + +pkgname=ruby-shadow +pkgver=2.1.4 +pkgrel=5 +pkgdesc="Interface for shadow passwords for Ruby" +arch=(i686 x86_64 arm) +depends=('ruby') +license=('publicdomain') +url=('https://github.com/apalmblad/ruby-shadow.git') +source=("https://github.com/apalmblad/ruby-shadow/archive/$pkgver.tar.gz") + + +build() { + cd $srcdir/$pkgname-$pkgver + ruby extconf.rb + make +} + +package() { + cd $srcdir/$pkgname-$pkgver + make DESTDIR=$pkgdir install +} diff --git a/pcr/thinkfan/PKGBUILD b/pcr/thinkfan/PKGBUILD new file mode 100644 index 000000000..18a97754f --- /dev/null +++ b/pcr/thinkfan/PKGBUILD @@ -0,0 +1,27 @@ +# Maintainer: nblock <nblock [/at\] archlinux DOT us> +# Contributor: Frederik Alkærsig (FALKER) <havnelisten AT gmail.com> + +pkgname=thinkfan +pkgver=0.8.1 +pkgrel=3 +pkgdesc="A minimalist fan control program. Supports the sysfs hwmon interface and thinkpad_acpi" +arch=('i686' 'x86_64' 'mips64el') +license=('GPL') +source=(http://downloads.sourceforge.net/project/${pkgname}/${pkgname}-${pkgver}.tar.gz + "thinkfan" "thinkfan.service") +url="http://thinkfan.sourceforge.net/" +md5sums=('aaa6c88bab3b43756ac5a1638622828c' + '16fc3a83a1468e3ccaeba67e14ab2177' + '7639b82035fcee712753e05de6b0601d') + +build() { + cd ${srcdir}/${pkgname}-${pkgver} + make + install -D -m755 ${pkgname} ${pkgdir}/usr/sbin/${pkgname} + install -D -m755 ${srcdir}/${pkgname} ${pkgdir}/etc/rc.d/${pkgname} + install -D -m644 README ${pkgdir}/usr/share/doc/${pkgname}/README + install -D -m644 ${srcdir}/thinkfan.service ${pkgdir}/usr/lib/systemd/system/thinkfan.service + cp -r examples ${pkgdir}/usr/share/doc/${pkgname}/ +} + +# vim:set ts=2 sw=2 noet: diff --git a/pcr/thinkfan/thinkfan b/pcr/thinkfan/thinkfan new file mode 100644 index 000000000..d37c81424 --- /dev/null +++ b/pcr/thinkfan/thinkfan @@ -0,0 +1,54 @@ +#!/bin/bash + +. /etc/rc.conf +. /etc/rc.d/functions + +test -f /usr/sbin/thinkfan || exit 0 + +case "$1" in + start) + stat_busy "Starting thinkfan" + /usr/sbin/thinkfan -- -q -s5 >/dev/null 2>&1 + if [ $? -gt 0 ]; then + stat_fail + else + add_daemon thinkfan + stat_done + fi + ;; + stop) + stat_busy "Stopping thinkfan" + PID=$(</var/run/thinkfan.pid) + kill $PID + rm -f /var/run/thinkfan.pid + if [ $? -gt 0 ]; then + stat_fail + else + rm_daemon thinkfan + stat_done + fi + ;; + restart) + stat_busy "Restarting thinkfan" + + PID=$(</var/run/thinkfan.pid) + kill $PID + rm -f /var/run/thinkfan.pid + if [ $? -gt 0 ]; then + stat_fail + rm_daemon thinkfan + else + /usr/sbin/thinkfan -- -q -s5 >/dev/null 2>&1 + if [ $? -gt 0 ]; then + stat_fail + rm_daemon thinkfan + else + stat_done + fi + fi + ;; + *) + echo "Usage: $0 {stop|start|restart}" + ;; +esac +exit 0 diff --git a/pcr/thinkfan/thinkfan.service b/pcr/thinkfan/thinkfan.service new file mode 100644 index 000000000..7895b8d3a --- /dev/null +++ b/pcr/thinkfan/thinkfan.service @@ -0,0 +1,9 @@ +[Unit] +Description=Thinkfan Daemon - simple and lightweight fan control program +After=basic.target + +[Service] +ExecStart=/usr/sbin/thinkfan -n -s5 -q + +[Install] +WantedBy=multi-user.target |