diff options
author | root <root@rshg054.dnsready.net> | 2012-11-15 01:46:35 -0800 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-11-15 01:46:35 -0800 |
commit | 2264379d37a6a00a3ecec1fd03c5dd4796078d49 (patch) | |
tree | c7d44781aab3d74058a981f8e9035eee06f8f5bc | |
parent | 6fa5f08247aef1f757f376ef12bd4a6257c124f2 (diff) |
Thu Nov 15 01:46:22 PST 2012
59 files changed, 1545 insertions, 134 deletions
diff --git a/community/cgminer/PKGBUILD b/community/cgminer/PKGBUILD new file mode 100644 index 000000000..f1bcc82c3 --- /dev/null +++ b/community/cgminer/PKGBUILD @@ -0,0 +1,56 @@ +# Maintainer: Felix Yan <felixonmars@gmail.com> +# Contributor: monson <holymonson@gmail.com> +# Contributor: Thomas Dziedzic < gostrc at gmail > +# Contributor: David Manouchehri <david@davidmanouchehri.com> + +pkgname=cgminer +pkgver=2.9.3 +_build= +pkgrel=1 +pkgdesc="Multi-threaded multi-pool CPU and GPU miner for bitcoin, forked from cpuminer." +url='http://forum.bitcoin.org/index.php?topic=28402.0' +license=('GPL3') +arch=('i686' 'x86_64') +depends=('curl' 'libcl') +makedepends=('opencl-headers') +optdepends=('opencl-nvidia: OpenCL implementation for NVIDIA' \ + 'intel-opencl-sdk: OpenCL implementation for Intel' \ + 'amdstream: OpenCL implementation for AMD') +source=("http://ck.kolivas.org/apps/cgminer/$pkgname-$pkgver.tar.bz2" + "$pkgname.conf.d" + "$pkgname" + "$pkgname.service") +backup=("etc/conf.d/$pkgname" "etc/$pkgname.conf") + +[ $CARCH == 'x86_64' ] && makedepends+=('yasm') + +build() { + cd "$srcdir" + cd $pkgname-$pkgver${_build} + + # Use in-tree jansson since it is not compatible with jansson 2.0 + #sed -e 's/^AC_CHECK_LIB(jansson, json_loads, request_jansson=false, request_jansson=true)$/request_jansson=true/' -i configure.ac + + # Here you may want to use custom CFLAGS + #export CFLAGS="-O2 -march=native -mtune=native -msse2" + + ./configure --prefix=/usr --enable-cpumining + + make +} + +package() { + cd "$srcdir"/$pkgname-$pkgver${_build} + + make DESTDIR="$pkgdir" install + + install -Dm755 "$srcdir"/$pkgname "$pkgdir"/etc/rc.d/$pkgname + install -Dm644 "$srcdir"/$pkgname.service "$pkgdir"/usr/lib/systemd/system/$pkgname.service + install -Dm644 "$srcdir"/$pkgname.conf.d "$pkgdir"/etc/conf.d/$pkgname + sed 's#/usr/local/bin#/usr/bin#g' example.conf > $pkgname.conf + install -Dm644 $pkgname.conf "$pkgdir"/etc/$pkgname.conf +} +md5sums=('f386036c72861f7b2c130de6ed990d33' + 'fe4a243fabe24608f5c05e40f0f118f6' + 'ee39698273671fee0e98d4af16014c36' + 'c2bb974adf92cc234fbf0136ebcb355d') diff --git a/community/cgminer/cgminer b/community/cgminer/cgminer new file mode 100644 index 000000000..9081e8e77 --- /dev/null +++ b/community/cgminer/cgminer @@ -0,0 +1,51 @@ +#!/bin/bash + +. /etc/rc.conf +. /etc/rc.d/functions + +DAEMON=cgminer + +# stupid patch var +export HOME=/root + +[ -r /etc/conf.d/$DAEMON ] && . /etc/conf.d/$DAEMON + +if [ -r $CGMINER_CONF ]; then + ARGS="--config $CGMINER_CONF $CGMINER_ARGS" +else + ARGS="--url $CGMINER_PROTOCOL://$CGMINER_IP:$CGMINER_PORT --user $CGMINER_USER --pass $CGMINER_PASS $CGMINER_ARGS" +fi + +PID=$(get_pid $DAEMON) + +case "$1" in + start) + stat_busy "Starting $DAEMON" + [ -z "$PID" ] && $DAEMON $ARGS &>/dev/null & + if [ $? = 0 ]; then + add_daemon $DAEMON + stat_done + else + stat_fail + exit 1 + fi + ;; + stop) + stat_busy "Stopping $DAEMON" + [ -n "$PID" ] && kill $PID &>/dev/null + if [ $? = 0 ]; then + rm_daemon $DAEMON + stat_done + else + stat_fail + exit 1 + fi + ;; + restart) + $0 stop + sleep 1 + $0 start + ;; + *) + echo "usage: $0 {start|stop|restart}" +esac diff --git a/community/cgminer/cgminer.conf.d b/community/cgminer/cgminer.conf.d new file mode 100644 index 000000000..88ec535d6 --- /dev/null +++ b/community/cgminer/cgminer.conf.d @@ -0,0 +1,11 @@ +# Use JSON-format configuration. (recommended) +CGMINER_CONF="/etc/cgminer.conf" + +# Uncommend this if you prefer simple command-line arguments. +#CGMINER_CONF="" +#CGMINER_PROTOCOL="http" +#CGMINER_IP="127.0.0.1" +#CGMINER_PORT="8332" +#CGMINER_USER="username" +#CGMINER_PASS="password" +CGMINER_ARGS="--syslog" diff --git a/community/cgminer/cgminer.service b/community/cgminer/cgminer.service new file mode 100644 index 000000000..9d6595047 --- /dev/null +++ b/community/cgminer/cgminer.service @@ -0,0 +1,8 @@ +[Unit] +Description=Multi-threaded multi-pool CPU and GPU miner for bitcoin + +[Service] +ExecStart=/usr/bin/cgminer -T --config /etc/cgminer.conf + +[Install] +WantedBy=multi-user.target diff --git a/community/esdl/PKGBUILD b/community/esdl/PKGBUILD index 83132ae56..8b03ebb5e 100644 --- a/community/esdl/PKGBUILD +++ b/community/esdl/PKGBUILD @@ -4,16 +4,16 @@ pkgname=esdl pkgver=1.2 -pkgrel=2 +pkgrel=3 epoch=2 arch=('x86_64' 'i686') -pkgdesc="SDL and OpenGL bindings for the Erlang programming language" -url="http://esdl.sourceforge.net/" +pkgdesc='SDL and OpenGL bindings for Erlang' +url='http://esdl.sourceforge.net/' license=('custom') depends=('erlang' 'sdl' 'glu') -source=("$pkgname-$pkgver.tar.gz::https://nodeload.github.com/dgud/esdl/tarball/master") -md5sums=('d51f8e2fe07b9e82ff9c2e06af35e3eb') -_dirname='dgud-esdl-4139134' +source=("$pkgname-$pkgver.tar.gz::https://nodeload.github.com/dgud/esdl/tar.gz/dgud/r15b-driver-compat") +sha256sums=('a14d695229b93401a304b773874e87c02c5b304d4b5b66f35cba75e140672086') +_dirname="$pkgname-dgud-r15b-driver-compat" build() { cd "$srcdir/$_dirname" diff --git a/community/go/PKGBUILD b/community/go/PKGBUILD index d57e9373a..5e2afb2e5 100644 --- a/community/go/PKGBUILD +++ b/community/go/PKGBUILD @@ -1,4 +1,4 @@ -# $Id: PKGBUILD 77818 2012-10-15 00:41:07Z arodseth $ +# $Id: PKGBUILD 79946 2012-11-15 01:53:41Z arodseth $ # Maintainer: Vesa Kaihlavirta <vegai@iki.fi> # Maintainer: Alexander Rødseth <rodseth@gmail.com> # Contributor: Rémy Oudompheng <remy@archlinux.org> @@ -10,7 +10,7 @@ pkgname=go pkgver=1.0.3 -pkgrel=2 +pkgrel=3 epoch=2 pkgdesc='Google Go compiler and tools' arch=('x86_64' 'i686') @@ -27,6 +27,8 @@ sha256sums=('7fba3533d172f13629d3d8a79e57c620632b0bd075abe11d7698b338be0ae3df' 'a03db71d323ed2794123bb31b5c8ad5febd551c490b5c0b341052c8e5f0ba892') build() { + cd $srcdir/$pkgname + if [ "$CARCH" == 'x86_64' ]; then export GOARCH=amd64 fi @@ -34,18 +36,26 @@ build() { export GOARCH=386 fi - # Set GOARCH to arm for crosscompilation (currently doesn't work) - - cd $srcdir/$pkgname export GOROOT_FINAL=/usr/lib/go export GOOS=linux cd src bash make.bash + + # Enable ARM crosscompilation + export GOARCH=arm + bash make.bash } check() { cd $srcdir/$pkgname + if [ "$CARCH" == 'x86_64' ]; then + export GOARCH=amd64 + fi + if [ "$CARCH" == 'i686' ]; then + export GOARCH=386 + fi + export GOROOT=$srcdir/$pkgname export PATH=$srcdir/$pkgname/bin:$PATH diff --git a/community/gpg-crypter/PKGBUILD b/community/gpg-crypter/PKGBUILD index b8b49c4ce..182a33e79 100644 --- a/community/gpg-crypter/PKGBUILD +++ b/community/gpg-crypter/PKGBUILD @@ -1,26 +1,24 @@ -# $Id: PKGBUILD 67947 2012-03-16 11:29:44Z giovanni $ +# $Id: PKGBUILD 79925 2012-11-14 19:52:32Z jlichtblau $ # Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org> # Contributor: Roman Kyrylych <Roman.Kyrylych@gmail.com> # Contributor: lp76 <l.peduto@gmail.com> pkgname=gpg-crypter -pkgver=0.3.5 -pkgrel=5 -pkgdesc="A graphical front-end to GnuPG(GPG) using the GTK2 toolkit and libgpgme" +pkgver=0.4.1 +pkgrel=1 +pkgdesc="A graphical front-end to GnuPG(GPG) using the GTK3 toolkit and libgpgme" arch=('i686' 'x86_64') url="http://gpg-crypter.sourceforge.net/" -license=('GPL') -depends=('gtk2' 'gpgme') -source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz - $pkgname.desktop) -md5sums=('be33140ae205b8a3f37217c1c2c0737a' - 'a2a226ff44eb02cdab7bee46864dea6d') +license=('GPL2') +depends=('gtk3' 'gpgme') +makedepends=('intltool') +changelog=$pkgname.changelog +source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz) +sha256sums=('1f7e2b27bf4a27ecbb07bce9cd40d1c08477a3bd065ba7d1a75d1732e4bdc023') build() { cd ${srcdir}/$pkgname-$pkgver - export CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" - ./configure --prefix=/usr make } @@ -29,15 +27,4 @@ package() { cd ${srcdir}/$pkgname-$pkgver make DESTDIR=${pkgdir} install - -# icon - install -Dm644 ${srcdir}/$pkgname-$pkgver/pixmaps/$pkgname.png \ - ${pkgdir}/usr/share/pixmaps/$pkgname.png - -# .desktop file - install -Dm644 ${srcdir}/$pkgname.desktop \ - ${pkgdir}/usr/share/applications/$pkgname.desktop - -# delete unneeded icon - rm -rf ${pkgdir}/usr/share/$pkgname } diff --git a/community/gpg-crypter/gpg-crypter.changelog b/community/gpg-crypter/gpg-crypter.changelog new file mode 100644 index 000000000..a56f276cc --- /dev/null +++ b/community/gpg-crypter/gpg-crypter.changelog @@ -0,0 +1,2 @@ +2012-11-14 Jaroslav Lichtblau <dragonlord@aur.archlinux.org> + * gpg-crypter 0.4.1-1 diff --git a/community/klavaro/PKGBUILD b/community/klavaro/PKGBUILD index 946bd220c..31f5a771f 100644 --- a/community/klavaro/PKGBUILD +++ b/community/klavaro/PKGBUILD @@ -1,8 +1,8 @@ -# $Id: PKGBUILD 73539 2012-07-09 10:19:45Z spupykin $ +# $Id: PKGBUILD 79909 2012-11-14 16:40:39Z stativ $ # Maintainer: Lukas Jirkovsky <l.jirkovsky@gmail.com> pkgname=klavaro pkgver=1.9.5 -pkgrel=2 +pkgrel=3 pkgdesc="Free touch typing tutor program" arch=('i686' 'x86_64') url="http://klavaro.sourceforge.net/" diff --git a/community/libpng12/PKGBUILD b/community/libpng12/PKGBUILD new file mode 100644 index 000000000..968cd9123 --- /dev/null +++ b/community/libpng12/PKGBUILD @@ -0,0 +1,50 @@ +# $Id: PKGBUILD 79866 2012-11-14 07:22:13Z dwallace $ +# Maintainer: Daniel Wallace <danielwallace at gtmanfred dot com> +# Contributor: dorphell <archlinux.org: dorphell> +# Contributor: Travis Willard <archlinux.org: travis> +# Contributor: Douglas Soares de Andrade <archlinux.org: douglas> +# Contributor: Jesse Jaara <gmail.com: jesse.jaara> + +pkgname=libpng12 +_realname=libpng +pkgver=1.2.50 +pkgrel=2 +pkgdesc="A collection of routines used to create PNG format graphics files" +arch=('i686' 'x86_64') +url="http://www.libpng.org/pub/png/libpng.html" +license=('custom') +depends=('zlib') +options=('!libtool') +source=("http://sourceforge.net/projects/libpng/files/libpng-${pkgver}.tar.xz" + "http://sourceforge.net/projects/apng/files/libpng/libpng12/libpng-${pkgver}-apng.patch.gz") + +build() { + cd "${srcdir}/${_realname}-${pkgver}" + + patch -Np0 -i "${srcdir}/libpng-${pkgver}-apng.patch" + + libtoolize --force --copy + aclocal + autoconf + automake --add-missing + + ./configure --prefix=/usr + + make ECHO=echo +} + +package() { + cd "${srcdir}/${_realname}-${pkgver}" + + make ECHO=echo DESTDIR="${pkgdir}" install + + rm -rf "${pkgdir}/usr/share" + rm -rf "${pkgdir}/usr/bin/libpng-config" + rm -rf "${pkgdir}/usr/lib/"{libpng.so,libpng.a} + rm -fr "${pkgdir}/usr/lib/pkgconfig/libpng.pc" + rm -rf "${pkgdir}/usr/include/"{pngconf.h,png.h} + +} + +md5sums=('a3e00fccbfe356174ab515b5c00641c7' + 'b06ac3f6a6f982abc2036359665e82a9') diff --git a/community/mod_wsgi/PKGBUILD b/community/mod_wsgi/PKGBUILD index 36445ed53..22c403936 100644 --- a/community/mod_wsgi/PKGBUILD +++ b/community/mod_wsgi/PKGBUILD @@ -1,28 +1,35 @@ -# $Id: PKGBUILD 79816 2012-11-13 07:48:03Z eric $ -# Maintainer: Andrea Scarpino <andrea@archlinux.org> +# $Id: PKGBUILD 79940 2012-11-15 00:36:52Z arodseth $ +# Maintainer: Alexander Rødseth <rodseth@gmail.com> +# Contributor: Andrea Scarpino <andrea@archlinux.org> # Contributor: Ryan Coyner <rcoyner@gmail.com> pkgname=mod_wsgi pkgver=3.4 -pkgrel=1 -pkgdesc="Python WSGI adapter module for Apache" -arch=('i686' 'x86_64') -url="http://www.modwsgi.org/" +pkgrel=2 +pkgdesc='Python WSGI adapter module for Apache' +arch=('x86_64' 'i686') +url='http://www.modwsgi.org/' license=('APACHE') -depends=('apache' 'python2') +depends=('apache' 'python') +makedepends=('setconf') install=mod_wsgi.install -source=("http://modwsgi.googlecode.com/files/${pkgname}-${pkgver}.tar.gz") -md5sums=('f42d69190ea0c337ef259cbe8d94d985') +source=("http://modwsgi.googlecode.com/files/$pkgname-$pkgver.tar.gz") +sha256sums=('ae85c98e9e146840ab3c3e4490e6774f9bef0f99b9f679fca786b2adb5b4b6e8') build() { - cd "${srcdir}/${pkgname}-${pkgver}" + cd "$srcdir/$pkgbase-$pkgver" + ./configure --prefix=/usr \ --with-apxs=/usr/sbin/apxs \ - --with-python=/usr/bin/python2 + --with-python=/usr/bin/python + setconf Makefile LDLIBS '-lpython3 -lpthread -ldl -lutil -lm' make } package() { - cd "${srcdir}/${pkgname}-${pkgver}" - make DESTDIR="${pkgdir}" install + cd "$srcdir/$pkgbase-$pkgver" + + make DESTDIR="$pkgdir" install } + +# vim:set ts=2 sw=2 et: diff --git a/community/opencc/PKGBUILD b/community/opencc/PKGBUILD new file mode 100644 index 000000000..ae94dce10 --- /dev/null +++ b/community/opencc/PKGBUILD @@ -0,0 +1,25 @@ +# $Id: PKGBUILD 79884 2012-11-14 13:43:08Z fyan $ +# Maintainer: Felix Yan <felixonmars@gmail.com> + +pkgname=opencc +pkgver=0.3.0 +pkgrel=1 +pkgdesc="Library for Open Chinese Convert" +arch=('i686' 'x86_64') +url="http://code.google.com/p/opencc/" +license=('Apache') +depends=('glibc') +makedepends=('cmake') +source=("http://opencc.googlecode.com/files/${pkgname}-${pkgver}.tar.gz") + +build() { + cd "$srcdir/${pkgname}-${pkgver}" + cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release + make +} + +package() { + cd "$srcdir/${pkgname}-${pkgver}" + make DESTDIR="${pkgdir}" install +} +md5sums=('84462870e5d491da24bb33a5fb494911') diff --git a/community/qmmp/PKGBUILD b/community/qmmp/PKGBUILD index f1cc5061a..83207b2a3 100644 --- a/community/qmmp/PKGBUILD +++ b/community/qmmp/PKGBUILD @@ -1,8 +1,8 @@ -#$Id: PKGBUILD 75532 2012-08-26 20:15:34Z jlichtblau $ +#$Id: PKGBUILD 79921 2012-11-14 19:18:29Z jlichtblau $ # Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org> pkgname=qmmp -pkgver=0.6.3 +pkgver=0.6.4 pkgrel=1 pkgdesc="Qt4 based audio-player" arch=('i686' 'x86_64') @@ -22,7 +22,7 @@ optdepends=('flac: native FLAC support' 'ffmpeg' 'libsamplerate' 'wavpack') install=$pkgname.install source=(http://qmmp.ylsoftware.com/files/$pkgname-$pkgver.tar.bz2) -sha256sums=('98f5b8121d475ead81c788ec9d5346c8da537e342c0d99eaff08586af4c92ca8') +sha256sums=('3db8a38da74ed4a8551c9215f4984f83831d5a4602e1daaf42fcb48313a73372') build() { cd ${srcdir}/$pkgname-$pkgver diff --git a/community/qmmp/qmmp.changelog b/community/qmmp/qmmp.changelog index 5d80b8321..4d1e9351a 100644 --- a/community/qmmp/qmmp.changelog +++ b/community/qmmp/qmmp.changelog @@ -1,3 +1,6 @@ +2012-11-14 Jaroslav Lichtblau <dragonlord@aur.archlinux.org> + * qmmp 0.6.4-1 + 2012-08-26 Jaroslav Lichtblau <dragonlord@aur.archlinux.org> * qmmp 0.6.3-1 diff --git a/core/kmod/PKGBUILD b/core/kmod/PKGBUILD index e5f78609e..2b4fcb644 100644 --- a/core/kmod/PKGBUILD +++ b/core/kmod/PKGBUILD @@ -1,9 +1,9 @@ -# $Id: PKGBUILD 169581 2012-10-23 22:08:40Z dreisner $ +# $Id: PKGBUILD 171018 2012-11-15 00:46:13Z dreisner $ # Maintainer: Dave Reisner <dreisner@archlinux.org> pkgname=kmod -pkgver=10 -pkgrel=2 +pkgver=11 +pkgrel=1 pkgdesc="Linux kernel module handling" arch=('i686' 'x86_64') url='http://git.kernel.org/?p=utils/kernel/kmod/kmod.git;a=summary' @@ -15,23 +15,13 @@ provides=('module-init-tools=3.16') conflicts=('module-init-tools') replaces=('module-init-tools') source=("ftp://ftp.kernel.org/pub/linux/utils/kernel/$pkgname/$pkgname-$pkgver.tar.xz" - '0001-depmod-fix-parsing-of-modules.order-with-compressed-.patch' - '0001-libkmod-Add-support-for-.-in-module-parameter-on-kcm.patch' "depmod-search.conf") -md5sums=('e2a883c4df15a50f78a7a61d5b64089f' - '47005a6e70496d429d40e3fc4fd89755' - 'ecf5bfd4fd9ed14cf0dc1ce4025d256b' +md5sums=('607e33b0144625c2e5221e5a7df49c7a' 'dd62cbf62bd8f212f51ef8c43bec9a77') build() { cd "$pkgname-$pkgver" - # upstream commit 88c247f7f18ac25181ddcaff97fbbecbd3a29f57 - patch -Np1 < "$srcdir/0001-depmod-fix-parsing-of-modules.order-with-compressed-.patch" - - # upstream commit 66f3228d17d66d7e2dd484427259290fbc82b2f0 - patch -Np1 < "$srcdir/0001-libkmod-Add-support-for-.-in-module-parameter-on-kcm.patch" - ./configure \ --sysconfdir=/etc \ --enable-gtk-doc \ diff --git a/extra/cabal-install/PKGBUILD b/extra/cabal-install/PKGBUILD index 2a091f21f..0ea842488 100644 --- a/extra/cabal-install/PKGBUILD +++ b/extra/cabal-install/PKGBUILD @@ -3,7 +3,7 @@ # Contributor: Arch Haskell Team <arch-haskell@haskell.org> pkgname=cabal-install -pkgver=1.16.0.1 +pkgver=1.16.0.2 pkgrel=1 pkgdesc="The command-line interface for Cabal and Hackage." url="http://hackage.haskell.org/package/cabal-install" @@ -12,7 +12,7 @@ arch=('i686' 'x86_64') makedepends=('haskell-http=4000.2.4-1' 'haskell-zlib=0.5.3.3-5' 'haskell-mtl=2.1.2-1' 'haskell-network=2.3.1.0-1' 'haskell-random=1.0.1.1-3') depends=('ghc' 'gmp' 'zlib') source=("http://hackage.haskell.org/packages/archive/cabal-install/${pkgver}/cabal-install-${pkgver}.tar.gz") -md5sums=('fdd184a8e097dd4dda8a8d9083b82280') +md5sums=('18e07d5b431d19d94cc5279a5e6fbfee') build() { cd cabal-install-${pkgver} diff --git a/extra/claws-mail-extra-plugins/PKGBUILD b/extra/claws-mail-extra-plugins/PKGBUILD index f1e137a91..b5f7889a6 100644 --- a/extra/claws-mail-extra-plugins/PKGBUILD +++ b/extra/claws-mail-extra-plugins/PKGBUILD @@ -1,15 +1,15 @@ -# $Id: PKGBUILD 162657 2012-06-27 15:37:05Z andyrtr $ +# $Id: PKGBUILD 171015 2012-11-14 20:36:10Z andyrtr $ # Maintainer: Andreas Radke <andyrtr@archlinux.org> # Contributor: Mildred <mildred593 at online dot fr> pkgname=claws-mail-extra-plugins -pkgver=3.8.1 +pkgver=3.9.0 pkgrel=1 pkgdesc="Extra plugins for claws-mail" url="http://www.claws-mail.org/plugins.php?branch=EXT" license=('GPL3') arch=('i686' 'x86_64') -depends=('claws-mail>=3.8.1') +depends=('claws-mail>=3.9.0') makedepends=('make' 'bc' 'perl>=5.16.0' 'libgtkhtml>=2.11.1-2' 'libnotify>=0.7' 'libxml2>=2.7.6' 'curl>=7.19.7' 'libytnef>=1.5-2' 'libwebkit>=1.6.1' 'pygtk>=2.16.0' 'libsoup-gnome' 'libcanberra' 'libgdata' @@ -36,16 +36,13 @@ conflicts=('claws-gtkhtml2_viewer' 'claws-mail-acpinotifier-plugin' replaces=('sylpheed-claws-extra-plugins') options=('!libtool' '!strip') source=(http://downloads.sourceforge.net/project/sylpheed-claws/extra%20plugins/$pkgver/claws-mail-extra-plugins-$pkgver.tar.bz2) -md5sums=('04528ff6c8a7a38d392c4f2afb1bb0d2') +md5sums=('e82431243a6643bcc5520df78908240c') build() { cd "$srcdir/claws-mail-extra-plugins-$pkgver" # fix for python2 export PYTHON="/usr/bin/python2" - - # fix gdata plugin build - sed -i -e "s:libgdata\ <\ 0.9.0:libgdata\ <\ 0.11.0:g" gdata_plugin-0.4/configure for dir in */; do [[ $dir != geolocation_plugin-* ]] && ( diff --git a/extra/claws-mail/PKGBUILD b/extra/claws-mail/PKGBUILD index 3886ec90c..93da73a27 100644 --- a/extra/claws-mail/PKGBUILD +++ b/extra/claws-mail/PKGBUILD @@ -1,9 +1,9 @@ -# $Id: PKGBUILD 168547 2012-10-13 11:00:14Z andyrtr $ +# $Id: PKGBUILD 171014 2012-11-14 20:36:08Z andyrtr $ # Maintainer: Andreas Radke <andyrtr@archlinux.org> pkgname=claws-mail -pkgver=3.8.1 -pkgrel=3 +pkgver=3.9.0 +pkgrel=1 pkgdesc="A GTK+ based e-mail client." arch=('i686' 'x86_64') license=('GPL3') @@ -19,17 +19,12 @@ replaces=('sylpheed-claws') provides=('claws') options=(!libtool) install=claws-mail.install -source=(http://downloads.sourceforge.net/sourceforge/sylpheed-claws/${pkgname}-${pkgver}.tar.bz2 - gnutls313.diff) -md5sums=('d388929fb1c8f04d4bcb2139faaf9e70' - '21bdc9d324f9424e0071bb73be169977') +source=(http://downloads.sourceforge.net/sourceforge/sylpheed-claws/${pkgname}-${pkgver}.tar.bz2) +md5sums=('4c5ac7b21f0ed17d0f6404124c2229a4') build() { cd ${srcdir}/${pkgname}-${pkgver} - # fix a bug in gnutls cert check triggered since gnutls 3.1.3 update - patch -Np1 -i ${srcdir}/gnutls313.diff - sed -i 's@^#!.*python.*@#!/usr/bin/python2@' tools/*.py ./configure --prefix=/usr --disable-static \ diff --git a/extra/devhelp/PKGBUILD b/extra/devhelp/PKGBUILD index 9f717133b..d51581202 100644 --- a/extra/devhelp/PKGBUILD +++ b/extra/devhelp/PKGBUILD @@ -1,11 +1,11 @@ -# $Id: PKGBUILD 169860 2012-10-30 22:24:49Z heftig $ +# $Id: PKGBUILD 170977 2012-11-14 07:19:21Z heftig $ # Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com> # Contributor: Jan de Groot <jgc@archlinux.org> # Contributor: Link Dupont <link@subpop.net> pkgname=devhelp -pkgver=3.6.0 -pkgrel=2 +pkgver=3.6.1 +pkgrel=1 pkgdesc="API documentation browser for GNOME" arch=(i686 x86_64) license=('GPL') @@ -15,7 +15,7 @@ makedepends=('pkgconfig' 'intltool' 'python2') options=('!libtool' '!emptydirs') install=devhelp.install source=(http://ftp.gnome.org/pub/GNOME/sources/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.xz) -sha256sums=('bf0576d5d70496367ccb22be53be620bbfe341bd491c1d725cfb59d566769fe1') +sha256sums=('71c6933422bf876745fc10276a2b2ee0f8c4c4ddfe034b3f6380507725fd4e63') build() { cd $pkgname-$pkgver diff --git a/extra/farstream/PKGBUILD b/extra/farstream/PKGBUILD index 1cb8f0de9..60c493c8f 100644 --- a/extra/farstream/PKGBUILD +++ b/extra/farstream/PKGBUILD @@ -1,8 +1,8 @@ -# $Id: PKGBUILD 169871 2012-10-30 22:25:23Z heftig $ +# $Id: PKGBUILD 170993 2012-11-14 14:37:18Z ibiru $ # Maintainer: Ionut Biru <ibiru@archlinux.org> pkgname=farstream -pkgver=0.2.1 +pkgver=0.2.2 pkgrel=1 pkgdesc="Farstream (formerly Farsight) - Audio/Video Communications Framework" arch=(i686 x86_64) @@ -15,10 +15,10 @@ conflicts=('farsight2') replaces=('farsight2') options=(!libtool) source=(http://freedesktop.org/software/$pkgname/releases/$pkgname/$pkgname-$pkgver.tar.gz) -md5sums=('479c42adf5cc606abcb47d58ed542414') +md5sums=('01c20c1ed014ad4e18e55f1f6caf7877') build() { - cd "$pkgname-$pkgver" + cd $pkgname-$pkgver ./configure --prefix=/usr \ --with-package-name='Arch Linux farstream package' \ --with-package-origin='http://archlinux.org' \ @@ -27,7 +27,7 @@ build() { } package() { - cd "$pkgname-$pkgver" + cd $pkgname-$pkgver make DESTDIR="$pkgdir" install } diff --git a/extra/gnome-control-center/PKGBUILD b/extra/gnome-control-center/PKGBUILD index a13b38176..bdc425a68 100644 --- a/extra/gnome-control-center/PKGBUILD +++ b/extra/gnome-control-center/PKGBUILD @@ -1,10 +1,10 @@ -# $Id: PKGBUILD 169892 2012-10-30 22:33:48Z heftig $ +# $Id: PKGBUILD 170990 2012-11-14 14:28:31Z ibiru $ # Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com> # Contributor: Jan de Groot <jgc@archlinux.org> pkgname=gnome-control-center -pkgver=3.6.2 -pkgrel=1 +pkgver=3.6.3 +pkgrel=2 pkgdesc="The Control Center for GNOME" arch=('i686' 'x86_64') depends=('accountsservice' 'cups-pk-helper' 'gnome-bluetooth' 'gnome-desktop' 'gnome-menus' @@ -19,7 +19,7 @@ install=gnome-control-center.install license=('GPL') options=('!libtool' '!emptydirs') source=(http://download.gnome.org/sources/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.xz) -sha256sums=('3ab5aa304b424006c9f38ce2ff50afbf38e167ca632c64509bf30aa3c786afb7') +sha256sums=('2ae23972bc64f62b4facd12dd5adce212bda02491eb6e56bbf195332157d21fb') build() { cd $pkgname-$pkgver @@ -28,7 +28,7 @@ build() { --localstatedir=/var --disable-static \ --enable-systemd --with-libsocialweb \ --disable-update-mimedb \ - --without-cheese + --without-cheese --disable-ibus #https://bugzilla.gnome.org/show_bug.cgi?id=656229 sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0 /g' -e 's/ if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then/ func_append compile_command " -Wl,-O1,--as-needed"\n func_append finalize_command " -Wl,-O1,--as-needed"\n\0/' libtool @@ -39,4 +39,8 @@ package() { cd $pkgname-$pkgver make DESTDIR="$pkgdir" install + + # Fix a warning + chown 102:0 "$pkgdir/usr/share/polkit-1/rules.d" + chmod 700 "$pkgdir/usr/share/polkit-1/rules.d" } diff --git a/extra/gnome-menus/PKGBUILD b/extra/gnome-menus/PKGBUILD index 4850c051b..68d7dcbd4 100644 --- a/extra/gnome-menus/PKGBUILD +++ b/extra/gnome-menus/PKGBUILD @@ -1,8 +1,8 @@ -# $Id: PKGBUILD 169902 2012-10-30 22:34:20Z heftig $ +# $Id: PKGBUILD 170973 2012-11-14 07:13:15Z heftig $ # Maintainer: Jan de Groot <jan@archlinux.org> pkgname=gnome-menus -pkgver=3.6.0 +pkgver=3.6.1 pkgrel=1 pkgdesc="GNOME menu specifications" arch=('i686' 'x86_64') @@ -13,7 +13,7 @@ license=('GPL' 'LGPL') url="http://www.gnome.org" source=(http://ftp.gnome.org/pub/gnome/sources/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.xz menus.patch) -sha256sums=('523ac10729e28f9acde4785e61dcb895828fd89e39b38b68f6c14ec815805a0b' +sha256sums=('1615f6852280a161cd137d5b8b59f35519a3a7ba89738f55c578325b0512043e' 'df2779777906b038fa911dc745534564ede9524a64ab368e2f6f8e38d54e7acc') build() { diff --git a/extra/gnome-settings-daemon/PKGBUILD b/extra/gnome-settings-daemon/PKGBUILD index 31a28fc46..570ae3ef4 100644 --- a/extra/gnome-settings-daemon/PKGBUILD +++ b/extra/gnome-settings-daemon/PKGBUILD @@ -1,14 +1,14 @@ -# $Id: PKGBUILD 170537 2012-11-08 11:30:19Z heftig $ +# $Id: PKGBUILD 170991 2012-11-14 14:29:35Z ibiru $ # Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com> pkgname=gnome-settings-daemon -pkgver=3.6.2 -pkgrel=1 +pkgver=3.6.3 +pkgrel=2 pkgdesc="The GNOME Settings daemon" arch=('i686' 'x86_64') license=('GPL') depends=('dconf' 'gnome-desktop' 'gsettings-desktop-schemas' 'hicolor-icon-theme' 'libcanberra-pulse' 'libnotify' - 'libsystemd' 'libwacom' 'nss' 'pulseaudio' 'pulseaudio-alsa' 'upower' 'ibus') + 'libsystemd' 'libwacom' 'nss' 'pulseaudio' 'pulseaudio-alsa' 'upower') makedepends=('intltool' 'xf86-input-wacom' 'libxslt' 'docbook-xsl') options=('!emptydirs' '!libtool') install=gnome-settings-daemon.install @@ -16,7 +16,7 @@ url="http://www.gnome.org" groups=('gnome') source=(http://ftp.gnome.org/pub/gnome/sources/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.xz 0001-power-and-media-keys-Use-logind-for-suspending-and-r.patch) -sha256sums=('d718f9fdf3bb26fc71861548f834364955d37532871ec2e89a5ad0d63857215f' +sha256sums=('606aaaba9cc7f51035702aead46c8bb595917a09cb947b396a579ea443328cdc' 'c4aab9b45346fbae18808358346208f989cce8bf9c9eb753e2af7eca73715109') build() { @@ -30,7 +30,7 @@ build() { ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ --libexecdir=/usr/lib/gnome-settings-daemon --disable-static \ - --enable-systemd + --enable-systemd --disable-ibus #https://bugzilla.gnome.org/show_bug.cgi?id=656231 sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool diff --git a/extra/maxima/PKGBUILD b/extra/maxima/PKGBUILD index 6d0327ed1..67e5bb739 100644 --- a/extra/maxima/PKGBUILD +++ b/extra/maxima/PKGBUILD @@ -1,15 +1,15 @@ -# $Id: PKGBUILD 168309 2012-10-08 09:18:38Z juergen $ +# $Id: PKGBUILD 170988 2012-11-14 14:24:25Z juergen $ # Maintainer: Ronald van Haren <ronald.archlinux.org> # Contributor: Damir Perisa <damir@archlinux.org> pkgname=maxima pkgver=5.28.0 -pkgrel=2 +pkgrel=3 pkgdesc="Maxima - a sophisticated computer algebra system" arch=('i686' 'x86_64') license=('GPL') url="http://maxima.sourceforge.net" -depends=('sbcl=1.1.0' 'texinfo' 'sh') +depends=('sbcl=1.1.1' 'texinfo' 'sh') makedepends=('python2') optdepends=('gnuplot: plotting capabilities' 'rlwrap: readline support via /usr/bin/rmaxima' 'tk: graphical xmaxima interface') # needs rebuild when bash changes version diff --git a/extra/sbcl/PKGBUILD b/extra/sbcl/PKGBUILD index 8e8f4cd47..2851ae69c 100644 --- a/extra/sbcl/PKGBUILD +++ b/extra/sbcl/PKGBUILD @@ -1,11 +1,11 @@ -# $Id: PKGBUILD 168308 2012-10-08 09:08:03Z juergen $ +# $Id: PKGBUILD 170982 2012-11-14 13:51:56Z juergen $ # Contributor: John Proctor <jproctor@prium.net> # Contributor: Daniel White <daniel@whitehouse.id.au> # Maintainer: Juergen Hoetzel <juergen@archlinux.org> # Contributor: Leslie Polzer (skypher) pkgname=sbcl -pkgver=1.1.0 +pkgver=1.1.1 pkgrel=1 pkgdesc="Steel Bank Common Lisp" url="http://www.sbcl.org/" @@ -17,7 +17,7 @@ makedepends=('sbcl' 'texinfo') install=sbcl.install source=("http://downloads.sourceforge.net/project/sbcl/sbcl/$pkgver/$pkgname-$pkgver-source.tar.bz2" "arch-fixes.lisp") -md5sums=('7390495ce158eac45002c028ed8c149b' +md5sums=('1f000ca9d83072b2712d6cdfca7b41de' '7ac0c1936547f4278198b8bf7725204d') build() { diff --git a/extra/webmin/PKGBUILD b/extra/webmin/PKGBUILD index add24654f..c918677f2 100644 --- a/extra/webmin/PKGBUILD +++ b/extra/webmin/PKGBUILD @@ -1,8 +1,8 @@ -# $Id: PKGBUILD 167305 2012-09-30 19:42:57Z tpowa $ +# $Id: PKGBUILD 170999 2012-11-14 16:17:47Z tpowa $ # Maintainer: Tobias Powalowski <tpowa@archlinux.org> pkgname=webmin pkgver=1.600 -pkgrel=1 +pkgrel=2 pkgdesc="a web-based interface for system administration" arch=(i686 x86_64) license=('custom:webmin') @@ -215,7 +215,7 @@ build() { install -m 644 -D $startdir/src/$pkgname-$pkgver/LICENCE $startdir/pkg/usr/share/licenses/webmin/LICENCE } md5sums=('8a9124bdd180aeec13fc16fa75fb1419' - '43a77243acd519c4efe9577090b59912' + 'b0b3e3fb231a12e60165b6b4d604dcfa' 'bfebb75bb94029b48c46b7f1ba1aa811' 'c77dfcd621b417a7826d25f56a1e60ae' 'fc29ecb6a5cd8c278abe054e60381095') diff --git a/extra/webmin/webmin-config.tar.bz2 b/extra/webmin/webmin-config.tar.bz2 Binary files differindex fa343772c..c7869eebf 100644 --- a/extra/webmin/webmin-config.tar.bz2 +++ b/extra/webmin/webmin-config.tar.bz2 diff --git a/libre/file-roller-libre/PKGBUILD b/libre/file-roller-libre/PKGBUILD index 097162a88..1e20fe070 100644 --- a/libre/file-roller-libre/PKGBUILD +++ b/libre/file-roller-libre/PKGBUILD @@ -1,11 +1,11 @@ -# $Id: PKGBUILD 170863 2012-11-12 20:12:03Z heftig $ +# $Id: PKGBUILD 170951 2012-11-14 01:36:00Z foutrelis $ # Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com> # Contributor: Jan de Groot <jgc@archlinux.org> _pkgname=file-roller pkgname=file-roller-libre pkgver=3.6.2 -pkgrel=1 +pkgrel=2 pkgdesc="Archive manipulator for GNOME" arch=('i686' 'x86_64') license=('GPL') @@ -22,11 +22,17 @@ conflicts=("$_pkgname") options=('!libtool' '!emptydirs') install=file-roller.install url="http://www.gnome.org" -source=(http://ftp.gnome.org/pub/gnome/sources/$_pkgname/${pkgver::3}/$_pkgname-$pkgver.tar.xz) -sha256sums=('47b026c827fcb0db4df51bf81c1e90f829f287fe2c9b9e65f167a2ef5bfec5f1') +source=(http://ftp.gnome.org/pub/gnome/sources/$_pkgname/${pkgver::3}/$_pkgname-$pkgver.tar.xz + extract-to-fix.patch) +sha256sums=('47b026c827fcb0db4df51bf81c1e90f829f287fe2c9b9e65f167a2ef5bfec5f1' + 'fc23e122b2d95df9eafe5bdf2a55beb1339a2b1b077973a1b45f881d9bb8427e') build() { cd $_pkgname-$pkgver + + # https://bugzilla.gnome.org/show_bug.cgi?id=686321 + patch -Np1 -i "$srcdir/extract-to-fix.patch" + ./configure --prefix=/usr --sysconfdir=/etc \ --libexecdir=/usr/lib/file-roller \ --localstatedir=/var --disable-static \ diff --git a/libre/file-roller-libre/extract-to-fix.patch b/libre/file-roller-libre/extract-to-fix.patch new file mode 100644 index 000000000..2ec4c8336 --- /dev/null +++ b/libre/file-roller-libre/extract-to-fix.patch @@ -0,0 +1,13 @@ +diff --git a/src/main.c~ b/src/main.c +index 1eb2e65..539ddfa 100644 +--- a/src/main.c~ ++++ b/src/main.c +@@ -850,7 +850,7 @@ fr_application_command_line (GApplication *application, + + _g_object_unref (default_directory); + _g_object_unref (add_to_archive); +- g_free (extraction_destination); ++ _g_object_unref (extraction_destination); + + return fr_application_command_line_finished (application, EXIT_SUCCESS); + } diff --git a/pcr/dsh/PKGBUILD b/pcr/dsh/PKGBUILD new file mode 100644 index 000000000..605598100 --- /dev/null +++ b/pcr/dsh/PKGBUILD @@ -0,0 +1,19 @@ +# Contributor: SkiltZ <skiltz@free.fr> +# Maintainer : Parabola GNU / Linux-libre Aurelien Desbrieres <aurelien@cwb.io> + +pkgname=dsh +pkgver=0.25.9 +pkgrel=2 +pkgdesc="Distributed shell. Runs command through rsh or ssh on a cluster of machines." +arch=(i686 x86_64) +depends=('libdshconfig') +url="http://www.netfort.gr.jp/~dancer/software/dsh.html.en" +license=('GPL') +source=(http://www.netfort.gr.jp/~dancer/software/downloads/dsh-$pkgver.tar.gz) + +build() { + cd $startdir/src/$pkgname-$pkgver + ./configure --prefix=/usr --sysconfdir='/etc' + make || return 1 + make prefix=$startdir/pkg/usr sysconfdir=$startdir/pkg/etc install + } diff --git a/pcr/ibus-bogo/PKGBUILD b/pcr/ibus-bogo/PKGBUILD new file mode 100644 index 000000000..44652b204 --- /dev/null +++ b/pcr/ibus-bogo/PKGBUILD @@ -0,0 +1,55 @@ +# Contributor: Nguyen Ha Duong <cmpitg@gmail.com> +# Contributor: Ngo Trung <ndtrung4419@gmail.com> +# Contributor: Dam Tien Long <longdt90@gmail.com> +# Maintainer : Parabola GNU / Linux-libre Aurelien Desbrieres <aurelien@cwb.io> + +pkgname="ibus-bogo" +pkgver=0.1.0 +pkgrel=1 +pkgdesc=" Bogo Engine for Ibus" + +arch=('i686' 'x86_64') +url="https://github.com/BoGoEngine" +license=('GPLv3') +depends=('ibus' 'python2' 'glibmm' 'python2-gobject') +makedepends=('git' 'cmake' 'gcc' 'python2') +provides=('ibus-bogo') + +_gitpython="https://github.com/BoGoEngine/ibus-bogo-python.git" +_gitpythonname="ibus-bogo-python" + +install=install + +build() { + cd ${srcdir} + + if [ -d ${_gitpythonname} ] ; then + cd ${srcdir}/${_gitpythonname} && git pull + msg "Local ${srcdir}/${_gitpythonname} updated" + + else + git clone ${_gitpython} ${_gitpythonname} + + fi + + + + msg "Starting make..." + + mkdir ${pkgdir}/usr/ + + + # Building ibus-bogo-python + cd ${srcdir}/${_gitpythonname} + if [ -d build ]; then + cd build + else + mkdir build + cd build + fi + cmake -DCMAKE_INSTALL_PREFIX:PATH="${pkgdir}/usr" .. + make + make install + rm ${pkgdir}/usr/share/glib-2.0/schemas/gschemas.compiled + + } diff --git a/pcr/ibus-bogo/install b/pcr/ibus-bogo/install new file mode 100644 index 000000000..0ed8986d0 --- /dev/null +++ b/pcr/ibus-bogo/install @@ -0,0 +1,40 @@ +post_install () { + + glib-compile-schemas /usr/share/glib-2.0/schemas + + } + +pre_upgrade () { + + cd /usr/share + if [ -d ibus-bogo ]; then + rm -rf ibus-bogo/* + fi + + cd /usr/share/ibus/component/ + if [ -f bogo.xml ]; then + rm bogo.xml + fi + + cd /usr/lib/python2.7/site-packages/ + if [ -d BoGo ]; then + rm -rf BoGo/* + fi + + for i in `ls /usr/lib | grep bogo`; do + rm -rf /usr/lib/$i + done + + } + +post_upgrade () { + + glib-compile-schemas /usr/share/glib-2.0/schemas + + } + +post_remove () { + + glib-compile-schemas /usr/share/glib-2.0/schemas + + } diff --git a/pcr/libdshconfig/PKGBUILD b/pcr/libdshconfig/PKGBUILD new file mode 100644 index 000000000..adf9d18b2 --- /dev/null +++ b/pcr/libdshconfig/PKGBUILD @@ -0,0 +1,20 @@ +# Contributor: SkiltZ <skiltz@free.fr> +# Maintainer : Parabola GNU / Linux-libre Aurelien Desbrieres <aurelien@cwb.io> + +pkgname=libdshconfig +pkgver=0.20.9 +pkgrel=2 +pkgdesc="Library for parsing dsh-style configuration files. Required by dsh and other applications." +arch=(i686 x86_64) +url="http://www.netfort.gr.jp/~dancer/software/dsh.html.en" +license=('GPL') +depends=('glibc') +source=(http://www.netfort.gr.jp/~dancer/software/downloads/libdshconfig-$pkgver.tar.gz) + + +build() { + cd $startdir/src/$pkgname-$pkgver + ./configure --prefix=/usr + make || return 1 + make prefix=$startdir/pkg/usr install + } diff --git a/pcr/note/PKGBUILD b/pcr/note/PKGBUILD new file mode 100644 index 000000000..f4b2eefe2 --- /dev/null +++ b/pcr/note/PKGBUILD @@ -0,0 +1,34 @@ +# Contributor: David Pflug <Viaken@Gmail.com> +# Maintainer : Parabola GNU / Linux-libre Aurelien Desbrieres <aurelien@cwb.io> + +_author=TLINDEN +_perlmod=note +pkgname=$_perlmod +pkgver=1.3.12 +pkgrel=2 +pkgdesc="A Perl-based note taking application with multiple backends" +arch=('i686' 'x86_64') +url="http://www.daemon.de/NOTE" +license=('GPL') +depends=('perl' 'perl-yaml') +optdepends=( + 'perl-config-general: general db backend' + 'perl-crypt-cbc: encryption support' + 'perl-crypt-pwsafe3: password safe 3 backend' + 'perl-crypt-rijndael: encryption support' + 'perl-dbd-mysql: mysql db backend' + 'perl-dbi: mysql db backend' + ) +source=(http://cpan.perl.org/modules/by-authors/id/T/TL/$_author/$_perlmod-$pkgver.tar.gz) + +build() { + cd "$srcdir/$pkgname-$pkgver" + + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor + make +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + make install DESTDIR="$pkgdir" +} diff --git a/pcr/owncloud/PKGBUILD b/pcr/owncloud/PKGBUILD new file mode 100644 index 000000000..7861d0917 --- /dev/null +++ b/pcr/owncloud/PKGBUILD @@ -0,0 +1,35 @@ +# Contributor: Antonio Rojas <nqn1976 @ gmail.com> +# Based on owncloud-git PKGBUILD by Alexander Ovsyannikov +# Maintainer : Parabola GNU / Linux-libre Aurelien Desbrieres <aurelien@cwb.io> + +pkgname=owncloud +pkgver=4.5.2 +pkgrel=1 +pkgdesc="A cloud server to store your files centrally on a hardware controlled by you" +arch=('any') +url="http://owncloud.org/" +license=('GPL') +depends=('php-gd') +optdepends=("php-apache: to use the Apache web server" "php-sqlite: to use the SQLite database backend" "mysql: to use the MySQL database backend") +makedepends=() +source=("http://owncloud.org/releases/$pkgname-$pkgver.tar.bz2" 'owncloud.conf') +backup=('etc/httpd/conf/extra/owncloud.conf') +install=owncloud.install + +package() { +# install license + install -d $pkgdir/usr/share/licenses/$pkgname + cp $srcdir/$pkgname/COPYING-* $pkgdir/usr/share/licenses/$pkgname + +# install project + install -d $pkgdir/usr/share/webapps/ + cp -a $srcdir/$pkgname $pkgdir/usr/share/webapps/ + chown -R http:http $pkgdir/usr/share/webapps/* + +# install apache .conf file + install -d $pkgdir/etc/httpd/conf/extra + install -m 644 $srcdir/owncloud.conf $pkgdir/etc/httpd/conf/extra/ +} + + + diff --git a/pcr/owncloud/owncloud.conf b/pcr/owncloud/owncloud.conf new file mode 100644 index 000000000..5f050f134 --- /dev/null +++ b/pcr/owncloud/owncloud.conf @@ -0,0 +1,17 @@ +<IfModule mod_alias.c> +Alias /owncloud /usr/share/webapps/owncloud/ +</IfModule> +<Directory /usr/share/webapps/owncloud/> + Options FollowSymlinks + Order allow,deny + AllowOverride all + allow from all + php_admin_value open_basedir "/srv/http/:/home/:/tmp/:/usr/share/pear/:/usr/share/webapps/" +</Directory> +<VirtualHost *:80> + ServerAdmin foo@foofarm.com + DocumentRoot /usr/share/webapps/owncloud + ServerName owncloud.foo.com + ErrorLog logs/owncloud.foo.info-error_log + CustomLog logs/owncloud.foo.info-access_log common +</VirtualHost>
\ No newline at end of file diff --git a/pcr/owncloud/owncloud.install b/pcr/owncloud/owncloud.install new file mode 100644 index 000000000..327733f97 --- /dev/null +++ b/pcr/owncloud/owncloud.install @@ -0,0 +1,17 @@ +pkgname=ownCloud + +post_install() { + echo "Add the following lines into /etc/httpd/conf/httpd.conf:" + echo "Include /etc/httpd/conf/extra/owncloud.conf" + echo "LoadModule php5_module modules/libphp5.so" + echo "Include conf/extra/php5_module.conf" + echo + echo "Uncomment extensions xmlrpc.so zip.so gd.so" + echo "and either pdo_sqlite.so sqlite3.so (for the SQLite backend) or mysql.so mysqli.so pdo_mysql.so (for the MySQL backend)" + echo "in /etc/php/php.ini" +} + +post_upgrade() { + echo "owncloud is now installed in /usr/share/webapps/owncloud" + echo "if you want it in /srv/http, add a symlink manually" +}
\ No newline at end of file diff --git a/pcr/vim-ifdef/PKGBUILD b/pcr/vim-ifdef/PKGBUILD new file mode 100644 index 000000000..1fb983cb3 --- /dev/null +++ b/pcr/vim-ifdef/PKGBUILD @@ -0,0 +1,23 @@ +# Contributor: Manuel Mendez <mmendez534 at gmail dot com> +# Author: Laszlo Papp <djszapi @ gmail at com> +# Maintainer : Parabola GNU / Linux-libre Aurelien Desbrieres <aurelien@cwb.io> + +pkgname=vim-ifdef +pkgver=3.2 +_scriptid=16097 +pkgrel=1 +pkgdesc="C Preprocessor Highlighting" +arch=(any) +url="http://www.vim.org/scripts/script.php?script_id=7" +license=('custom') +depends=(vim) +install=vimdoc.install +source=(ifdef.vim::http://www.vim.org/scripts/download_script.php?src_id=${_scriptid}) + +build() { + cd "$srcdir" + install -Dm644 ifdef.vim "$pkgdir"/usr/share/vim/syntax/ifdef.vim + sed -n '/^" Copyright/,/^\s*$/ p' ifdef.vim | + sed -e 's|^" ||' -e '/^\s*$/ d' > extracted-license.txt + install -Dm644 extracted-license.txt "$pkgdir"/usr/share/licenses/$pkgname/license.txt +} diff --git a/pcr/vim-ifdef/vimdoc.install b/pcr/vim-ifdef/vimdoc.install new file mode 100644 index 000000000..61c4b3a81 --- /dev/null +++ b/pcr/vim-ifdef/vimdoc.install @@ -0,0 +1,14 @@ +post_install() { + echo -n "Updating vim help tags..." + /usr/bin/vim --noplugins -u NONE -U NONE \ + --cmd ":helptags /usr/share/vim/doc" --cmd ":q" > /dev/null 2>&1 + echo "done." +} + +post_upgrade() { + post_install $1 +} + +post_remove() { + post_install +} diff --git a/pcr/xfce-theme-greybird/PKGBUILD b/pcr/xfce-theme-greybird/PKGBUILD new file mode 100644 index 000000000..0c5f9501d --- /dev/null +++ b/pcr/xfce-theme-greybird/PKGBUILD @@ -0,0 +1,32 @@ +# Maintainer: flan_suse +pkgname=xfce-theme-greybird +pkgver=1.0.7 +pkgrel=1 +pkgdesc="A grey and blue Xfce theme, introduced in the release of Xubuntu 11.04 and updated for 12.04; includes the classic low saturation theme" +arch=('any') +url="http://shimmerproject.org/projects/greybird/" +license=('GPL2' 'CC-BY-SA-3.0') +groups=('xfce-themes-shimmer-collection') +depends=('gtk-engine-murrine') +optdepends=('shimmer-wallpapers: contains the Greybird wallpaper, among others' + 'gtk3: required for CSS/GTK3 theme' + 'elementary-xfce-icons: matching icon set; use the dark icon theme' + 'lightdm-gtk-greeter: required for the LightDM GTK theme' + 'lightdm-unity-greeter: required for the LightDM Unity theme' + 'gtk-engine-unico: required for gtk3 support for the classic theme; not required for the current theme') +source=($pkgname-$pkgver.tar.gz::https://github.com/shimmerproject/Greybird/tarball/v${pkgver}) + +package() { + cd "${srcdir}/shimmerproject-Greybird"* + + # Create installation directories + install -d -m755 "${pkgdir}/usr/share/themes/Greybird"{,\ Compact} + + # Install the current theme + cp -a * "${pkgdir}/usr/share/themes/Greybird/" + + # Make a symbolic link for the compact version of the xfwm4 theme + cd "${pkgdir}/usr/share/themes/Greybird Compact" + ln -s "../${_pkgname}/xfwm4_compact" "xfwm4" +} +md5sums=('d7c291408cd644e102cf811ee62e7a37') diff --git a/radio/idjc/idjc_0.8.4_configure.patch b/radio/idjc/idjc_0.8.4_configure.patch new file mode 100644 index 000000000..9f1b3c5f0 --- /dev/null +++ b/radio/idjc/idjc_0.8.4_configure.patch @@ -0,0 +1,12 @@ +diff -Naur idjc-0.8.4/configure idjc-0.8.4.new/configure +--- idjc-0.8.4/configure 2010-10-07 15:00:07.000000000 +0200 ++++ idjc-0.8.4.new/configure 2010-10-20 19:30:48.000000000 +0200 +@@ -5349,7 +5349,7 @@ + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mutagen" >&5 + $as_echo_n "checking for mutagen... " >&6; } +-python -c "import mutagen" &>/dev/null ++$PYTHON -c "import mutagen" &>/dev/null + if test $? -ne 0 ; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 + $as_echo "no" >&6; } diff --git a/social/anubis/PKGBUILD b/social/anubis/PKGBUILD new file mode 100644 index 000000000..8835d2275 --- /dev/null +++ b/social/anubis/PKGBUILD @@ -0,0 +1,30 @@ +# Maintainer: Nicolás Reynolds <fauno@kiwwwi.com.ar> +# Contributor: Nathan Owe <ndowens04 at gmail> +pkgname=anubis +pkgver=4.1.1 +pkgrel=2 +pkgdesc="An SMTP message submission daemon. " +arch=('i686') +url="http://www.gnu.org/software/anubis/" +license=('GPL3') +depends=('guile' 'gpgme' 'gnutls' 'gsasl' 'pam' 'pcre' 'tcp_wrappers') +source=(ftp://ftp.gnu.org/gnu/anubis/$pkgname-$pkgver.tar.gz) +md5sums=('28df4daee11bc74a9e4b19b425d8a196') + +build() { + cd $srcdir/$pkgname-$pkgver + + ./configure --prefix=/usr \ + --with-pam \ + --with-pcre \ + --with-tcp-wrappers \ + --with-socks-proxy + make +} + +package() { + cd $srcdir/$pkgname-$pkgver + make DESTDIR=$pkgdir/ install +} + +# vim:set ts=2 sw=2 et: diff --git a/social/asterisk/PKGBUILD b/social/asterisk/PKGBUILD index 7318e71dc..896d5bacf 100644 --- a/social/asterisk/PKGBUILD +++ b/social/asterisk/PKGBUILD @@ -1,7 +1,7 @@ # Contributor: Alessio Biancalana <dottorblaster@gmail.com> pkgname=asterisk -pkgver=1.8.7.0 +pkgver=10.9.0 pkgrel=1 pkgdesc="A complete PBX solution" arch=('i686' 'x86_64') @@ -9,13 +9,13 @@ url="http://www.asterisk.org" license=('GPL') depends=('alsa-lib' 'speex' 'popt' 'libvorbis' 'curl') makedepends=('postgresql' 'unixodbc' 'sqlite3') -optdepends=('libpri' 'libss7' 'openr2') +optdepends=('libpri' 'libss7' 'openr2' 'iksemel') backup=(etc/asterisk/asterisk.conf) -source=(http://downloads.digium.com/pub/asterisk/releases/asterisk-$pkgver.tar.gz \ +source=(http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-$pkgver.tar.gz \ asterisk \ asterisk.logrotated) install=$pkgname.install -md5sums=('5c6616a53fa3f300420ea17fd23abae9' +md5sums=('2fb85dc753584ac13692c27f9749c6cb' '59146273738605f1e011d8e7bed3561a' '486e07a0a1405ea25ec5b1736034653e') diff --git a/social/inspircd/PKGBUILD b/social/inspircd/PKGBUILD new file mode 100644 index 000000000..6165f7c31 --- /dev/null +++ b/social/inspircd/PKGBUILD @@ -0,0 +1,62 @@ +pkgname=inspircd +pkgver=2.0.5 +pkgrel=2 +pkgdesc='A lightweight IRC daemon' +arch=('x86_64' 'i686') +url='http://www.inspircd.org/' +license=('GPL2') +depends=('perl' 'gnutls' 'openssl' 'libgcrypt') +makedepends=('pkg-config' 'mysql' 'postgresql' 'sqlite3' 'libldap' 'geoip' 'tre') +optdepends=('mysql: m_mysql' + 'pcre: m_regex_pcre' + 'postgresql: m_pgsql' + 'sqlite3: m_sqlite3' + 'libldap: m_ldapoper and m_ldapauth' + 'geoip: m_geoip' + 'tre: m_regex_tre') +install=inspircd.install +backup=('etc/inspircd/inspircd.conf') + +source=(http://www.inspircd.org/downloads/InspIRCd-$pkgver.tar.bz2 inspircd.rcd gnutls.patch) +md5sums=('60dec04bdc8f8c473f3c7bd774a1f153' + 'f4f32d944401b1602ab6716476892afd' + '6312154e759e5d71b85c7dca71b7a4fd') + +build() { + cd "${srcdir}/inspircd" + patch -Np1 -i "${srcdir}/gnutls.patch" + + ./configure \ + --enable-extras=m_geoip.cpp \ + --enable-extras=m_ldapauth.cpp \ + --enable-extras=m_ldapoper.cpp \ + --enable-extras=m_mysql.cpp \ + --enable-extras=m_pgsql.cpp \ + --enable-extras=m_regex_pcre.cpp \ + --enable-extras=m_regex_posix.cpp \ + --enable-extras=m_regex_tre.cpp \ + --enable-extras=m_sqlite3.cpp + + ./configure \ + --prefix=/usr/lib/inspircd \ + --binary-dir=/usr/sbin \ + --module-dir=/usr/lib/inspircd/modules \ + --config-dir=/etc/inspircd \ + --enable-gnutls \ + --enable-openssl \ + --enable-epoll + + make +} + +package() { + install -Dm755 "${srcdir}"/inspircd.rcd "${pkgdir}"/etc/rc.d/inspircd + install -o141 -g141 -dm750 "${pkgdir}/var/log/inspircd" + install -o141 -g141 -dm750 "${pkgdir}/var/run/inspircd" + + cd "${srcdir}/inspircd" + make DESTDIR="$pkgdir" INSTUID=141 install + + rm -rf "${pkgdir}"/usr/lib/inspircd/logs + rm -rf "${pkgdir}"/usr/lib/inspircd/data +} diff --git a/social/inspircd/gnutls.patch b/social/inspircd/gnutls.patch new file mode 100644 index 000000000..3975c418c --- /dev/null +++ b/social/inspircd/gnutls.patch @@ -0,0 +1,12 @@ +ff --git a/src/modules/extra/m_ssl_gnutls.cpp b/src/modules/extra/m_ssl_gnutls.cpp +index b8c4815..d58caa8 100644 +--- a/src/modules/extra/m_ssl_gnutls.cpp ++++ b/src/modules/extra/m_ssl_gnutls.cpp +@@ -20,7 +20,7 @@ + + /* $ModDesc: Provides SSL support for clients */ + /* $CompileFlags: pkgconfincludes("gnutls","/gnutls/gnutls.h","") */ +-/* $LinkerFlags: rpath("pkg-config --libs gnutls") pkgconflibs("gnutls","/libgnutls.so","-lgnutls") */ ++/* $LinkerFlags: rpath("pkg-config --libs gnutls") pkgconflibs("gnutls","/libgnutls.so","-lgnutls") -lgcrypt */ + + enum issl_status { ISSL_NONE, ISSL_HANDSHAKING_READ, ISSL_HANDSHAKING_WRITE, ISSL_HANDSHAKEN, ISSL_CLOSING, ISSL_CLOSED }; diff --git a/social/inspircd/inspircd.install b/social/inspircd/inspircd.install new file mode 100644 index 000000000..ec97113f5 --- /dev/null +++ b/social/inspircd/inspircd.install @@ -0,0 +1,15 @@ +post_install() { + getent group inspircd &>/dev/null || groupadd -r -g 141 inspircd >/dev/null + getent passwd inspircd &>/dev/null || useradd -r -u 141 -g inspircd -d /var/lib/inspircd -s /bin/false -c inspircd inspircd >/dev/null + + echo '==> You will need to create a config file for inspircd' + echo '==> cp /etc/inspircd/inspircd.conf.example /etc/inspircd/inspircd.conf' + echo '==> You will need to change the pidfile. To do this you can insert the following into your config.' + echo '==> <pid file="/var/run/inspircd/inspircd.pid">' + echo '==> Remember to use absolute paths in your config directory and not relative paths like you would do with a user-based inspircd install.' +} + +post_remove() { + getent passwd inspircd &>/dev/null && userdel inspircd >/dev/null + getent group inspircd &>/dev/null && groupdel inspircd >/dev/null +} diff --git a/social/inspircd/inspircd.rcd b/social/inspircd/inspircd.rcd new file mode 100644 index 000000000..a041b9be4 --- /dev/null +++ b/social/inspircd/inspircd.rcd @@ -0,0 +1,50 @@ +#!/bin/bash + +. /etc/rc.conf +. /etc/rc.d/functions + +get_pid() { + pidof /usr/sbin/inspircd +} + +case "$1" in + start) + stat_busy "Starting inspircd" + PID=$(get_pid) + if [ -z "$PID" ]; then + su -s /bin/sh -c '/usr/sbin/inspircd --logfile /var/log/inspircd/startup.log --config /etc/inspircd/inspircd.conf' 'inspircd' > /dev/null + if [ $? -gt 0 ]; then + stat_fail + exit 1 + else + add_daemon inspircd + stat_done + fi + else + stat_fail + exit 1 + fi + ;; + + stop) + stat_busy "Stopping inspircd" + PID=$(get_pid) + [ ! -z "$PID" ] && kill $PID + if [ $? -gt 0 ]; then + stat_fail + exit 1 + else + rm_daemon inspircd + stat_done + fi + ;; + + restart) + $0 stop + $0 start + ;; + + *) + echo "usage: $0 {start|stop|restart}" +esac +exit 0 diff --git a/social/libnatpmp/PKGBUILD b/social/libnatpmp/PKGBUILD index e81d3445f..ded1e6ca5 100644 --- a/social/libnatpmp/PKGBUILD +++ b/social/libnatpmp/PKGBUILD @@ -4,7 +4,7 @@ pkgname=libnatpmp pkgver=20120821 pkgrel=1 pkgdesc="A portable and fully compliant implementation of the NAT-PMP protocol" -arch=('i686' 'x86_64') +arch=('i686' 'x86_64' 'mips64el') url="http://miniupnp.free.fr/libnatpmp.html" license=('BSD') depends=('glibc') diff --git a/social/sobby/PKGBUILD b/social/sobby/PKGBUILD index 644c74aec..50f847db9 100644 --- a/social/sobby/PKGBUILD +++ b/social/sobby/PKGBUILD @@ -1,16 +1,14 @@ # Maintainer: Thomas Jost <schnouki@schnouki.net> pkgname=sobby -pkgver=0.4.7 +pkgver=0.4.8 pkgrel=1 pkgdesc="Standalone obby server" url="http://gobby.0x539.de/trac/" license="GPL" -depends=('obby>=0.4.7' 'libxml++') +depends=('obby=0.4.8' 'libxml++') makedepends=('pkgconfig' 'net6>=1.3.12') -arch=('i686' 'x86_64') -source=(http://releases.0x539.de/sobby/sobby-$pkgver.tar.gz) -md5sums=('816ac9e2ecf2ac79306f9bbb80699464') -sha1sums=('ca20369eabce1657d090b310d78d4a35d697f28b') +arch=('i686' 'x86_64' 'mips6el') +source=(http://releases.0x539.de/sobby/sobby-$pkgver.tar.gz{,.sig}) build() { cd $srcdir/$pkgname-$pkgver @@ -22,3 +20,5 @@ package() { cd $srcdir/$pkgname-$pkgver make DESTDIR=$pkgdir install } +md5sums=('1f7cf8c09cdeddbf2152843b28f73ce1' + '96822427ab95289ebb1520e6353c5d3c') diff --git a/social/tokyocabinet/PKGBUILD b/social/tokyocabinet/PKGBUILD index 6e9b7969d..7b3a55c80 100644 --- a/social/tokyocabinet/PKGBUILD +++ b/social/tokyocabinet/PKGBUILD @@ -2,7 +2,7 @@ # Contributor: Nicolas Martyanoff <khaelin@gmail.com> pkgname=tokyocabinet -pkgver=1.4.47 +pkgver=1.4.48 pkgrel=1 pkgdesc="a modern implementation of DBM" arch=('i686' 'x86_64') @@ -11,7 +11,7 @@ license=('LGPL') makedepends=('gcc>=3.1' 'make' 'pkgconfig') depends=('zlib' 'bzip2') source=("http://fallabs.com/tokyocabinet/${pkgname}-${pkgver}.tar.gz") -md5sums=('3d94fe2aebf5d9ff0478ed895bc46fc9') +md5sums=('fd03df6965f8f56dd5b8518ca43b4f5e') build() { cd "$srcdir/$pkgname-$pkgver" diff --git a/~fauno/faenza-icon-theme/PKGBUILD b/~fauno/faenza-icon-theme/PKGBUILD new file mode 100644 index 000000000..484764c73 --- /dev/null +++ b/~fauno/faenza-icon-theme/PKGBUILD @@ -0,0 +1,25 @@ +# Maintainer: Elia Notarangelo <elia.notarangelo AT gmail DOT com> +# Contributor: Frikilinux <frikilinux at frikilinux.com.ar> +# Contributor: graysky <graysky AT archlinux DOT us> +# Contributor: Samsagax <samsagax AT gmail DOT com> +# Contributor: simongmzlj <simongmzlj AT gmail DOT com> + +pkgname=faenza-icon-theme +pkgver=1.3 +pkgrel=1 +pkgdesc="Icon theme designed for Equinox GTK theme" +url="http://gnome-look.org/content/show.php/Faenza?content=128143" +license=('GPL3') +arch=('any') +makedepends=() +options=(!strip) +source=("http://ppa.launchpad.net/tiheum/equinox/ubuntu/pool/main/f/${pkgname}/${pkgname}_${pkgver}.orig.tar.gz") +md5sums=('763e0450b0853bd11f04c970ba3fd49f') + +package() { + cd "${srcdir}" + mkdir -p "${pkgdir}"/usr/share/icons + cp -rf Faenza{,-Dark,-Darkest,-Darker} "${pkgdir}"/usr/share/icons/ + +} + diff --git a/~fauno/kyotocabinet/PKGBUILD b/~fauno/kyotocabinet/PKGBUILD new file mode 100644 index 000000000..1636bfda0 --- /dev/null +++ b/~fauno/kyotocabinet/PKGBUILD @@ -0,0 +1,26 @@ +# Maintainer: Alexander Duscheleit <jinks@archlinux.us> +# Contributor: Joaquim Pedro (osmano807) <osmano807@gmail.com> +pkgname=kyotocabinet +pkgver=1.2.76 +pkgrel=1 +pkgdesc="a modern implementation of DBM in C++" +arch=('i686' 'x86_64') +url="http://fallabs.com/kyotocabinet" +license=('LGPL3') +makedepends=('gcc>=3.1' 'make' 'pkgconfig' 'zlib') +depends=('zlib' 'gcc-libs') +source=("http://fallabs.com/${pkgname}/pkg/${pkgname}-${pkgver}.tar.gz") + +build() { + cd "$srcdir/$pkgname-$pkgver" + + ./configure --prefix=/usr + make +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + + make install DESTDIR="$pkgdir/" +} +sha512sums=('278db7b327eb4c21bf0137d9aa14fb67d74d5ce7ed1cb29fc9120d157a60de165ec0cf842903eb7952e8f998045ae585b958977fa973ba0e0773381de71d9f6a') diff --git a/~fauno/kyototycoon/PKGBUILD b/~fauno/kyototycoon/PKGBUILD new file mode 100644 index 000000000..af88f6020 --- /dev/null +++ b/~fauno/kyototycoon/PKGBUILD @@ -0,0 +1,26 @@ +# Maintainer: Alexander Duscheleit <jinks@archlinux.us> +pkgname=kyototycoon +pkgver=0.9.56 +pkgrel=1 +pkgdesc="A lightweight conncurent remote frontend for Kyoto Cabinet." +arch=('i686' 'x86_64') +url="http://fallabs.com/kyototycoon" +license=('GPL3') +depends=('zlib' 'kyotocabinet') +source=("http://fallabs.com/${pkgname}/pkg/${pkgname}-${pkgver}.tar.gz") +sha256sums=('553e4ea83237d9153cc5e17881092cefe0b224687f7ebcc406b061b2f31c75c6') + +build() { + cd "$srcdir/$pkgname-$pkgver" + + ./configure --prefix=/usr + make +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + + make install DESTDIR="$pkgdir/" +} + +# vim:set ts=2 sw=2 et: diff --git a/~fauno/spawn-fcgi-php/PKGBUILD b/~fauno/spawn-fcgi-php/PKGBUILD new file mode 100644 index 000000000..a49858417 --- /dev/null +++ b/~fauno/spawn-fcgi-php/PKGBUILD @@ -0,0 +1,40 @@ +# Contributor: Piotr Rogoża <rogoza dot piotr at gmail dot com> +pkgname=spawn-fcgi-php +pkgver=1.1.1 +pkgrel=1 +pkgdesc="script to provide simple cgi-php support for nginx http daemon" +arch=('any') +url="http://aur.archlinux.org/packages.php?ID=37439" +license=('GPL') +depends=('php-cgi' 'spawn-fcgi') +backup=('etc/conf.d/spawn-fcgi-php.conf') +source=( + 'spawn-fcgi-php' + 'spawn-fcgi-php.conf' + 'server.conf.example' + 'nginx.conf.example' + 'public_html.conf.example' +) + +build() { + # Install script and configuration file + install -Dm775 spawn-fcgi-php \ + ${pkgdir}/etc/rc.d/spawn-fcgi-php || return 1 + install -Dm664 spawn-fcgi-php.conf \ + ${pkgdir}/etc/conf.d/spawn-fcgi-php.conf || return 1 + + # Install examples of configuration + install -Dm664 public_html.conf.example \ + ${pkgdir}/etc/nginx/conf/public_html.conf.example || return 1 + install -Dm644 server.conf.example \ + ${pkgdir}/etc/nginx/conf/server.conf.example || return 1 + install -Dm664 nginx.conf.example \ + ${pkgdir}/etc/nginx/conf/nginx.conf.example || return 1 +} + +# vim:set ts=2 sw=2 et ft=sh: +md5sums=('9088c130caebf43902f958c985200811' + 'a8bfb0b50120c91449c8a08144706c9b' + 'c02189e88531386cd67d3401924c18ae' + '00bf49fc8a0d8c9f6c96305fae8471d4' + '9202545dc3701d5933804890312667e6') diff --git a/~fauno/spawn-fcgi-php/nginx.conf.example b/~fauno/spawn-fcgi-php/nginx.conf.example new file mode 100644 index 000000000..35d0868f3 --- /dev/null +++ b/~fauno/spawn-fcgi-php/nginx.conf.example @@ -0,0 +1,34 @@ +user http; +worker_processes 1; + +error_log logs/error.log; + +#pid logs/nginx.pid; + +events { + worker_connections 1024; +} + + +http { + include mime.types; + default_type application/octet-stream; + + sendfile on; + #tcp_nopush on; + + #keepalive_timeout 0; + keepalive_timeout 65; + + #gzip on; + + # the file with mapping username per port + include /etc/nginx/conf/map_user2port.conf; + #or only + #include map_user2port.conf + + # Servers configurations ... + include server.conf.example; + + } +} diff --git a/~fauno/spawn-fcgi-php/public_html.conf.example b/~fauno/spawn-fcgi-php/public_html.conf.example new file mode 100644 index 000000000..74f6c2b4b --- /dev/null +++ b/~fauno/spawn-fcgi-php/public_html.conf.example @@ -0,0 +1,16 @@ +location ~ ^/~([^/]+)(/?.*)$ { + set $username $1; + alias /home/$1/public_html/$2; + autoindex on; + location ~ \.php { + #fastcgi_pass 127.0.0.1:9000; + # or for multiusers, one port per user + fastcgi_pass 127.0.0.1:$port; + # or for unix domain sockets + #fastcgi_pass unix:/var/run/spawn-fcgi/spawn-fcgi.$username.sock; + fastcgi_index index.php; + fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; + include /etc/nginx/conf/fastcgi_params; + } +} +# vi: ft=nginx diff --git a/~fauno/spawn-fcgi-php/server.conf.example b/~fauno/spawn-fcgi-php/server.conf.example new file mode 100644 index 000000000..06160cfb2 --- /dev/null +++ b/~fauno/spawn-fcgi-php/server.conf.example @@ -0,0 +1,22 @@ +server { + listen 80; + server_name domain.tld; + root /srv/http/domain.tld; + + index index.php index.html; + + access_log logs/access.log; + error_log logs/error.log; + + location ~ \.php { + # TCP + fastcgi_pass 127.0.0.1:9000; + # or SOCKET + #fastcgi_pass unix:/var/run/spawn-fcgi/spawn-fcgi.sock; + fastcgi_index index.php; + fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; + include /etc/nginx/conf/fastcgi_params; + } + include public_html.conf.example; +} +# vi: ft=nginx diff --git a/~fauno/spawn-fcgi-php/spawn-fcgi-php b/~fauno/spawn-fcgi-php/spawn-fcgi-php new file mode 100755 index 000000000..607ebab8c --- /dev/null +++ b/~fauno/spawn-fcgi-php/spawn-fcgi-php @@ -0,0 +1,460 @@ +#!/bin/bash + +. /etc/rc.conf +. /etc/rc.d/functions + +NAME=spawn-fcgi-php +CONF="/etc/conf.d/spawn-fcgi-php.conf" +#------------------------------------------------------------------------------- +# Return value for: +# for check_process +PROCNOPIDEXIST=-1 # none process is running and pidfile exist +PROCNOPIDNO=0 # none process is running +PROCRUNPIDEXIST=1 # process is running, pidfile exist and has size >0b +PROCRUNPID0=2 # process is running, pidfile has size 0b +PROCRUNPIDNO=3 # process is running, pidfile doesn't exist +OTHERERROR=255 +# check_daemon +DAEMONEXIST=0 +DAEMONNOEXIST=1 +#------------------------------------------------------------------------------- + +# Reading configuration +if [ -r "$CONF" ]; then + . $CONF +else + stat_fail + stat_busy "File $CONF not found" + stat_die +fi +check_config(){ #{{{ +#=== FUNCTION ================================================================ +# NAME: check_config +# DESCRIPTION: Check configuration file +# PARAMETERS: +# RETURNS: 0 if all right +#=============================================================================== + # testing DAEMON + if [ ! -x "$DAEMON" ]; then + stat_fail + stat_busy "File $DAEMON isn't executable" + stat_die + fi + # testing USER and GROUP + if [ -z "$USER" -o -z "$GROUP" ]; then + stat_fail + stat_busy "The variable USER/GROUP isn't defined. I cann't run process $PHPCGI as root." + stat_die + fi + # testing directory of socket + if [ -n "$SOCKET" ]; then + local sockdir=$(dirname "$SOCKET") + if [ ! -d "$sockdir" ]; then + mkdir -p "$sockdir" + fi + fi + # testing directory for user's socket + if [ -n "$USERSOCKET" ]; then + local socksdir=$(dirname "$USERSOCKET") + if [ ! -d "$socksdir" ]; then + mkdir -p "$socksdir" + fi + fi + # testing directory of pidfile + if [ -n "$PIDFILE" ]; then + if [ ! -d $(dirname $PIDFILE) ]; then + mkdir -p $(dirname $PIDFILE) + fi + fi + # testing the program php-cgi + if [ -z "$PHPCGI" ]; then + stat_fail + stat_busy "The variable PHPCGI isn't defined" + stat_die + else + if [ ! -x "$PHPCGI" ]; then + stat_fail + stat_busy "The program $PHPCGI isn't executable" + stat_die + fi + fi + return 0 +} #}}} +check_process(){ #{{{ +#=== FUNCTION ================================================================ +# NAME: check_process +# DESCRIPTION: Check that process is alive +# PARAMETERS: name of process and/or pidfile +# RETURNS: look at the beginning of the script +#=============================================================================== + local process + local pidfile + if [ $# -eq 2 ]; then + process=$1 + pidfile=$2 + elif [ $# -eq 1 ]; then + process=$1 + else + return $OTHERERROR + fi + + if get_pid $process >/dev/null; then + # process is running + if [ -s "$pidfile" ]; then + return $PROCRUNPIDEXIST + elif [ -r "$pidfile" ]; then + return $PROCRUNPID0 + else + return $PROCRUNPIDNO + fi + else + # process doesn't runnig + if [ -r "$pidfile" ]; then + return $PROCNOPIDEXIST + else + return $PROCNOPIDNO + fi + fi +} #}}} +get_userpid(){ #{{{ +#=== FUNCTION ================================================================ +# NAME: get_userpid +# DESCRIPTION: looking for pid of process belong to user +# PARAMETERS: name of user, name of process +# RETURNS: pid of process or 1 if error +#=============================================================================== + local user=$1 + local process=$2 + if [ -n "$user" -a -n "$process" ]; then + local pid=$(ps aux | \ + awk -vuser=$user -vprocess=$process \ + '$1 == user && $8 ~ "s" && $11 == process {print $2}') + if [[ "$pid" =~ ^[0-9]+$ ]]; then + echo $pid + else + return 1 + fi + else + return 1 + fi +} #}}} +check_daemon(){ #{{{ +#=== FUNCTION ================================================================ +# NAME: check_daemon +# DESCRIPTION: check that daemon exist in directory +# PARAMETERS: name of daemon +# RETURNS: look at the beginning of the script +#=============================================================================== + if ck_daemon $NAME; then + return $DAEMONEXIST + else + return $DAEMONEXIST + fi +} #}}} +start(){ #{{{ +#=== FUNCTION ================================================================ +# NAME: start +# DESCRIPTION: check configuration, if a process is already running and running php-cgi daemon +# PARAMETERS: - +# RETURNS: - +#=============================================================================== + stat_busy "Checking configuration" + check_config && + stat_done || \ + stat_die + + stat_busy "Starting server $NAME" #{{{ + check_process $PHPCGI $PIDFILE + local error=$? + if [ $error -ge $PROCRUNPIDEXIST -a $error -le $PROCRUNPIDNO ]; then + stat_fail + case $error in + $PROCRUNPIDEXIST) + stat_busy "The process $PHP is running" + ;; + $PROCRUNPID0) + stat_busy "The process $PHP is running and pidfile has size 0b" + ;; + $PROCRUNPIDNO) + stat_busy "The process $PHP is running and pidfile doesn't exist" + ;; + esac + stat_die $error + elif [ $error -eq $OTHERERROR ]; then + stat_fail + stat_busy "Something went wrong..." + stat_die $returnvalue + fi + + # run the main daemon + $DAEMON $OPTIONS >/dev/null + if [ $? -eq 0 ]; then + add_daemon $NAME + stat_done + else + stat_die + fi + #}}} + #{{{ start daemons for multiusers + if [ -n "$STARTMULTI" ]; then + stat_busy "Starting server $NAME for multiusers" + gen_all_uid + if [ -z "$USERSOCKET" ]; then + # Generate file map user 2 port + :>$MAPUSER2PORT + cat >> $MAPUSER2PORT <<- EOF + # Map username to port + map \$username \$port { + default $PORT; + + EOF + local userport=$PORT + local uid + for uid in ${ALLUID[@]}; do + local login=$(uid2login $uid) + if [ $? -eq 0 ]; then + userport=$((userport+1)) + echo -e "$login $userport;" >> $MAPUSER2PORT + local gid=$(id -g $login) + local group=$(gid2group $gid) + if [ -n "$USERPIDFILE" ]; then + local userpidfile=${USERPIDFILE}.${login}.pid + fi + USEROPTIONS="-a $IPADDR -p $userport -u $login ${group:+-g $group} -f $PHPCGI -C ${USER_PHP_FCGI_CHILDREN:-1} ${userpidfile:+-P $userpidfile}" + $DAEMON $USEROPTIONS &>/dev/null + if [ $? -ne 0 ]; then + stat_die + fi + fi + done + echo '}' >> $MAPUSER2PORT + stat_done + elif [ -n "$USERSOCKET" ]; then + local uid + for uid in ${ALLUID[@]}; do + local login=$(uid2login $uid) + if [ $? -eq 0 ]; then + local gid=$(id -g $login) + local group=$(gid2group $gid) + if [ -n "$USERPIDFILE" ]; then + local userpidfile=${USERPIDFILE}.${login}.pid + fi + local usersocket=${USERSOCKET}.${login}.sock + USEROPTIONS="-s ${usersocket} -u $login ${group:+-g $group} -f $PHPCGI -C ${USER_PHP_FCGI_CHILDREN:-1} ${userpidfile:+-P $userpidfile}" + $DAEMON $USEROPTIONS &>/dev/null + if [ $? -ne 0 ]; then + stat_die + fi + fi + done + stat_done + fi + fi + #}}} +} #}}} +stop(){ #{{{ +#=== FUNCTION ================================================================ +# NAME: stop +# DESCRIPTION: check whether a process is running, stop the daemon php-cgi +# PARAMETERS: - +# RETURNS: - +#=============================================================================== + stat_busy "Stopping server $NAME" #{{{ + # for main daemon + if ! get_pid $PHPCGI &>/dev/null; then + stat_fail + stat_busy "None process $PHPCGI isn't running" + stat_die + else + #process php-cgi is running + if [ -s "$PIDFILE" ]; then + # pidfile exists + kill $(<$PIDFILE) + if [ $? -eq 0 ]; then + rm -f $PIDFILE + rm_daemon $NAME + stat_done + else + stat_die + fi + else #pidfile doesn't exist + if [ -r "$PIDFILE" ]; then + #pidfile exists and has size 0b + stat_busy "Pidfile $PIDFILE exists and has size 0b.Removing it" + rm -f "$PIDFILE" && \ + stat_done || \ + stat_fail + fi + killall -9 $PHPCGI + if [ $? -eq 0 ]; then + stat_done + rm_daemon $NAME + else + stat_die + fi + fi + fi + #}}} + #{{{ for multiusers + if [ -n "$STARTMULTI" ]; then + # waiting to kill the main daemon + sleep 1 + if get_pid $PHPCGI &>/dev/null; then + stat_busy "Stopping server $NAME for multiusers" + killall $PHPCGI + # cleaning pidfiles + if [ -n "$USERPIDFILE" ]; then + gen_all_uid + for UserID in ${ALLUID[@]}; do + local login=$(uid2login $UserID) + if [ $? -eq 0 ]; then + rm -f ${USERPIDFILE}.${login}.pid + fi + done + fi #$USERPIDFILE + stat_done + fi + fi + #}}} +} #}}} +restart(){ #{{{ +#=== FUNCTION ================================================================ +# NAME: restart +# DESCRIPTION: stop and start service +# PARAMETERS: - +# RETURNS: - +#=============================================================================== + stat_busy "Restarting server $NAME" + stop + sleep 1 + start +} #}}} +status(){ #{{{ +#=== FUNCTION ================================================================ +# NAME: status +# DESCRIPTION: check status of service +# PARAMETERS: - +# RETURNS: - +#=============================================================================== + if ! get_pid $PHPCGI>/dev/null; then + stat_busy "None process $PHPCGI isn't running" + stat_done + else + stat_busy "Process $PHPCGI is running" + stat_done + if [ -s "$PIDFILE" ]; then + stat_busy "It's spawned by process: $(cat $PIDFILE|tr '\n' ' ')"; + stat_done + elif [ -r "$PIDFILE" ]; then + stat_fail + stat_busy "Pidfile $PIDFILE exists but has size 0b" + else + stat_busy "Pidfile $PIDFILE doesn't exist" + stat_done + fi + if [ -n "$STARTMULTI" -a -n "$USERSSTATUS" ]; then + gen_all_uid + local uid + for uid in ${ALLUID[@]}; do + local login=$(uid2login $uid) + if [ $? -eq 0 ]; then + if [ -n "$USERPIDFILE" ]; then + # USERPIDFILE defined + local userpidfile=${USERPIDFILE}.${login}.pid + if [ -s "$userpidfile" ]; then + stat_busy "Process $PHPCGI of user $login is spawned by process: $(cat $userpidfile|tr '\n' ' ')"; + stat_done + fi + else + local pid=$(get_userpid $login $PHPCGI) + if [ $? -eq 0 ]; then + stat_busy "Process $PHPCGI for user $login is running and it's spawned by: $pid"; + stat_done + fi + fi + fi + done + fi + fi +} #}}} +uid2login(){ #{{{ +#=== FUNCTION ================================================================ +# NAME: uid2login +# DESCRIPTION: convert uid to username +# PARAMETERS: uid +# RETURNS: name of user for uid +#=============================================================================== + local uid=$1 + if [ ! $uid -gt 0 ]; then + return 1 + fi + local username=$(getent passwd | awk -vuid=$uid -F: '$3 == uid {print $1}') + if [ -z "$username" ]; then + return 1 + else + echo $username + fi +} #}}} +gid2group(){ #{{{ + #=== FUNCTION ================================================================ + # NAME: uid2group + # DESCRIPTION: convert gid to name of group + # PARAMETERS: gid + # RETURNS: name of group for gid + #=============================================================================== + local gid=$1 + if [ ! $gid -gt 0 ]; then + return 1 + fi + local groupname=$(getent group | awk -vgid=$1 -F: '$3 == gid {print $1}') + if [ -z "$groupname" ]; then + return 1 + else + echo $groupname + fi +} #}}} +gen_all_uid(){ #{{{ +#=== FUNCTION ================================================================ +# NAME: gen_all_uid +# DESCRIPTION: Generate array of all UID +# PARAMETERS: - +# RETURNS: - +#=============================================================================== + ALLUID=() + if [ -n "$RANGEUID" -a ${#RANGEUID[@]} -gt 0 ]; then + for line in ${RANGEUID[@]/,/ }; do + (( line )) || stat_die # not a number + if [[ ${line/-/} != $line ]]; then + for ((i=${line%-*}; i<=${line#*-}; i++)); do + ALLUID+=($i) + done + else + ALLUID+=($line) + fi + done + elif [ $FIRSTUID -gt 1 -a $LASTUID -gt 1 -a $LASTUID -ge $FIRSTUID ]; then + for ((line=FIRSTUID; line<=LASTUID; line++)); do + (( line )) || stat_die #not a number + ALLUID+=($line) + done + else + echo "Error: Wrong range UID. Change RANGEUID or FIRSTUID and LASTUID" + exit 1 + fi +} #}}} +case $1 in + start) + start + ;; + stop) + stop + ;; + restart) + restart + ;; + status) + status + ;; + *) + echo "Usage: $0 start|stop|restart|status" +esac diff --git a/~fauno/spawn-fcgi-php/spawn-fcgi-php.conf b/~fauno/spawn-fcgi-php/spawn-fcgi-php.conf new file mode 100644 index 000000000..d87520c1d --- /dev/null +++ b/~fauno/spawn-fcgi-php/spawn-fcgi-php.conf @@ -0,0 +1,60 @@ +# vi: ft=sh +# run PHPCGI as +USER=http +GROUP=http + +# Name of daemon +DAEMON="/usr/bin/spawn-fcgi" +PIDFILE="/var/run/spawn-fcgi-php.pid" +# spawn the process +PHPCGI="/usr/bin/php-cgi" + +#------------------------------------------------------------------------------- +# Options for php-cgi +#------------------------------------------------------------------------------- +# (PHP only) Number of children to spawn +PHP_FCGI_CHILDREN=4 +# or export PHP_FCGI_CHILDREN +# PHP FastCGI proccess exit after requests: +export PHP_FCGI_MAX_REQUESTS=1000 +# Choose ONE of PORT/IPADDR (for TCP) OR SOCKET (for unix domain sockets) +IPADDR=127.0.0.1 +PORT=9000 +#SOCKET=/var/run/spawn-fcgi/spawn-fcgi.sock +# Options only for socket +#MODE=0644 +#SOCKET_USER=other +#SOCKET_GROUP=other + +#------------------------------------------------------------------------------- +# Options for spawn-fcgi +#------------------------------------------------------------------------------- +# Number of children to fork, defaults to 1. +SPAWN_FCGI_CHILDREN=1 + + +#------------------------------------------------------------------------------- +# For many users +#------------------------------------------------------------------------------- +# Run separate processes for users with UIDs from the range RANGEUID +# uncomment STARTMULTI if you want this +STARTMULTI=yes +# Base user's socket, uncomment to use socket instead IPADDR:USERPORT +USERSOCKET='/var/run/spawn-fcgi/spawn-fcgi' +# file with mapping user to port +MAPUSER2PORT='/etc/nginx/conf/map_user2port.conf' +# Base user's pidfile +#USERPIDFILE='/var/run/spawn-fcgi-php' +# range for UIDs, use the dash for range and split groups by spaces e.g. 1000-1003 1005 1010-1020, use parenthis for all +RANGEUID=(1000-1001) +# (PHP only) Number of children to spawn +USER_PHP_FCGI_CHILDREN=1 +# for status, comment if you don't want print status for users +#USERSSTATUS=yes + +OPTIONS="-u $USER -g $GROUP -f $PHPCGI -C ${PHP_FCGI_CHILDREN:-4} ${PIDFILE:+-P $PIDFILE} -F ${SPAWN_FCGI_CHILDREN:-1} " +if [ -n "$SOCKET" ]; then + OPTIONS+="-s $SOCKET ${MODE:+-M $MODE} ${SOCKET_USER:+-U $SOCKET_USER} ${SOCKET_GROUP:+-G $SOCKET_GROUP} " +else + OPTIONS+="-a $IPADDR -p $PORT " +fi |