summaryrefslogtreecommitdiff
path: root/community-staging
diff options
context:
space:
mode:
Diffstat (limited to 'community-staging')
-rw-r--r--community-staging/dee/PKGBUILD34
-rw-r--r--community-staging/lxdm/PKGBUILD38
-rw-r--r--community-staging/lxdm/lxdm-pam2
-rw-r--r--community-staging/lxdm/lxdm.install26
-rw-r--r--community-staging/lxdm/pam-env-vars.patch50
-rw-r--r--community-staging/lxdm/service2
-rw-r--r--community-staging/python-bsddb/LICENSE19
-rw-r--r--community-staging/python-bsddb/PKGBUILD49
-rw-r--r--community-staging/python-openbabel/PKGBUILD38
-rw-r--r--community-staging/python-pymongo/PKGBUILD37
-rw-r--r--community-staging/python-sqlalchemy/PKGBUILD44
11 files changed, 304 insertions, 35 deletions
diff --git a/community-staging/dee/PKGBUILD b/community-staging/dee/PKGBUILD
new file mode 100644
index 000000000..00b13d216
--- /dev/null
+++ b/community-staging/dee/PKGBUILD
@@ -0,0 +1,34 @@
+# $Id: PKGBUILD 77761 2012-10-14 15:22:02Z bgyorgy $
+# Maintainer: Balló György <ballogyor+arch at gmail dot com>
+
+pkgname=dee
+pkgver=1.0.14
+pkgrel=2
+pkgdesc="Library to provide objects allowing to create Model-View-Controller type programs across DBus"
+arch=('i686' 'x86_64')
+url="https://launchpad.net/dee"
+license=('LGPL')
+depends=('glib2' 'icu')
+makedepends=('python2' 'gobject-introspection' 'vala')
+options=('!libtool')
+source=(http://launchpad.net/$pkgname/1.0/$pkgver/+download/$pkgname-$pkgver.tar.gz)
+md5sums=('473b4181e26538af0fb753255da7945c')
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
+ --disable-static --disable-tests \
+ PYTHON=python2
+ make
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ make DESTDIR="$pkgdir/" install
+
+ # Install GI overrides for python 3 as well
+ install -dm755 "$pkgdir/usr/lib/python3.3/site-packages/gi/overrides"
+ ln -s ../../../../python2.7/site-packages/gi/overrides/Dee.py "$pkgdir/usr/lib/python3.3/site-packages/gi/overrides/Dee.py"
+}
diff --git a/community-staging/lxdm/PKGBUILD b/community-staging/lxdm/PKGBUILD
index a35c35f31..1430d5160 100644
--- a/community-staging/lxdm/PKGBUILD
+++ b/community-staging/lxdm/PKGBUILD
@@ -1,17 +1,17 @@
-# $Id: PKGBUILD 72524 2012-06-16 08:50:39Z bpiotrowski $
-# Maintainer: Bartłomiej Piotrowski
+# $Id: PKGBUILD 77741 2012-10-14 07:48:01Z bpiotrowski $
+# Maintainer: Bartłomiej Piotrowski <nospam@bpiotrowski.pl>
# Contributor: AndyRTR <andyrtr@archlinux.org>
# Contributor: kiefer <jorgelmadrid@gmail.com>
pkgname=lxdm
pkgver=0.4.1
-pkgrel=12
+pkgrel=16
pkgdesc='Lightweight X11 Display Manager'
arch=('i686' 'x86_64')
url="http://sourceforge.net/projects/lxdm/"
license=('GPL')
groups=('lxde')
-depends=('gtk2' 'xorg-server' 'consolekit')
+depends=('gtk2' 'xorg-server')
makedepends=('intltool')
install=${pkgname}.install
backup=('etc/lxdm/lxdm.conf' 'etc/pam.d/lxdm' 'etc/lxdm/Xsession'
@@ -19,43 +19,45 @@ backup=('etc/lxdm/lxdm.conf' 'etc/pam.d/lxdm' 'etc/lxdm/Xsession'
'etc/lxdm/PostLogout' 'etc/lxdm/PreReboot' 'etc/lxdm/PreShutdown')
source=(http://downloads.sourceforge.net/lxde/$pkgname-$pkgver.tar.gz
glib2-2.32.0.patch lxdm.patch lxdm.conf.patch Xsession.patch
- greeter-session.patch rc.d lxdm-pam service)
+ greeter-session.patch pam-env-vars.patch rc.d lxdm-pam service)
md5sums=('8da1cfc2be6dc9217c85a7cf51e1e821'
'a1e3c46a8bef691bc544028f5b6cfe22'
'baed9055e8825a5511712bc095197519'
'c50dd01b715b0a236407d48066191601'
'd2e4a4a22ee2aa1a986be154c647b6c6'
'28475239d0c8b4fd778ec49f5ec72962'
+ '4c1d43e81e9a256e8d1ea7686c24b3d3'
'705f394052fdd0dec22e95321d170de0'
- 'b20fe3c8487a039050986d60e45233a9'
- '4aaa9a7175cf327d9f7651c2586ef922')
+ '34908bc0ec15b6ae4e1074f39fce44df'
+ 'e8cc66eb1a2405d2d9d184a727cbd9d8')
build() {
- cd $srcdir/$pkgname-$pkgver
+ cd $srcdir/$pkgname-$pkgver
- patch -Np1 -i $srcdir/glib2-2.32.0.patch
+ patch -Np1 -i $srcdir/glib2-2.32.0.patch
patch -Np1 -i $srcdir/greeter-session.patch
+ patch -Np1 -i $srcdir/pam-env-vars.patch
./configure --sysconfdir=/etc --prefix=/usr --libexecdir=/usr/lib/lxdm
- make
+ make
- patch -Np0 -i $srcdir/lxdm.patch
+ patch -Np0 -i $srcdir/lxdm.patch
patch -Np0 -i $srcdir/lxdm.conf.patch
patch -Np0 -i $srcdir/Xsession.patch
}
package() {
- cd $srcdir/$pkgname-$pkgver
- make DESTDIR=$pkgdir install
+ cd $srcdir/$pkgname-$pkgver
+ make DESTDIR=$pkgdir install
- install -m644 $srcdir/lxdm-pam $pkgdir/etc/pam.d/lxdm
- install -Dm755 $srcdir/rc.d $pkgdir/etc/rc.d/lxdm
- install -Dm644 $srcdir/service $pkgdir/usr/lib/systemd/system/lxdm.service
+ install -m644 $srcdir/lxdm-pam $pkgdir/etc/pam.d/lxdm
+ install -Dm755 $srcdir/rc.d $pkgdir/etc/rc.d/lxdm
+ install -Dm644 $srcdir/service $pkgdir/usr/lib/systemd/system/lxdm.service
install -d $pkgdir/var/{lib,run}/lxdm
- # fix the greeter location
- sed -i -e 's/local\/libexec/lib\/lxdm/' $pkgdir/etc/lxdm/lxdm.conf
+ # fix the greeter location
+ sed -i -e 's/local\/libexec/lib\/lxdm/' $pkgdir/etc/lxdm/lxdm.conf
# avoid conflict with filesystem>=2012.06
rm -r $pkgdir/var/run
diff --git a/community-staging/lxdm/lxdm-pam b/community-staging/lxdm/lxdm-pam
index 3f5df04a7..c62f62721 100644
--- a/community-staging/lxdm/lxdm-pam
+++ b/community-staging/lxdm/lxdm-pam
@@ -6,3 +6,5 @@ account required pam_unix.so
session required pam_limits.so
session required pam_unix.so
password required pam_unix.so
+-session optional pam_systemd.so
+-session optional pam_loginuid.so
diff --git a/community-staging/lxdm/lxdm.install b/community-staging/lxdm/lxdm.install
index eaf2339cd..4d1285dc5 100644
--- a/community-staging/lxdm/lxdm.install
+++ b/community-staging/lxdm/lxdm.install
@@ -1,24 +1,18 @@
-pkgname=lxdm
-
post_install() {
- if [ -z "`getent group "lxdm" 2> /dev/null`" ]; then
- groupadd lxdm
- chown root:lxdm /etc/lxdm/lxdm.conf
- fi
- chown -R root:lxdm /var/lib/lxdm > /dev/null
- chmod +r /etc/lxdm/lxdm.conf
+ if ! getent group lxdm > /dev/null ; then
+ groupadd --system lxdm
+ chgrp -R lxdm /var/lib/lxdm
+ chgrp lxdm /etc/lxdm/lxdm.conf
+ chmod +r /etc/lxdm/lxdm.conf
+ fi
}
post_upgrade() {
- post_install
+ post_install $1
}
post_remove() {
- getent group "lxdm" &>/dev/null && groupdel lxdm #1>/dev/null
- return 0
+ if ! getent group lxdm > /dev/null ; then
+ groupdel lxdm
+ fi
}
-
-op=$1
-shift
-
-$op "$@"
diff --git a/community-staging/lxdm/pam-env-vars.patch b/community-staging/lxdm/pam-env-vars.patch
new file mode 100644
index 000000000..ab8605ff1
--- /dev/null
+++ b/community-staging/lxdm/pam-env-vars.patch
@@ -0,0 +1,50 @@
+diff --git a/src/lxdm.c b/src/lxdm.c
+index 369aedf..cd1d486 100644
+--- a/src/lxdm.c
++++ b/src/lxdm.c
+@@ -935,16 +935,23 @@ void setup_pam_session(LXSession *s,struct passwd *pw,char *session_name)
+ g_warning( "pam open session error \"%s\"\n", pam_strerror(s->pamh, err));
+ }
+
+-void append_pam_environ(pam_handle_t *pamh,char **env)
++static char **append_pam_environ(pam_handle_t *pamh,char **env)
+ {
+- int i,j,n;
++ int i,j,n,a;
+ char **penv;
+- if(!pamh) return;
++ if(!pamh) return env;
+ penv=pam_getenvlist(pamh);
+- if(!penv) return;
++ if(!penv) return env;
++ a=g_strv_length(penv);
++ if(a==0)
++ {
++ free(penv);
++ return env;
++ }
++ env=g_renew(char *,env,g_strv_length(env)+1+a+10);
+ for(i=0;penv[i]!=NULL;i++)
+ {
+- //printf("PAM %s\n",penv[i]);
++ fprintf(stderr,"PAM %s\n",penv[i]);
+ n=strcspn(penv[i],"=")+1;
+ for(j=0;env[j]!=NULL;j++)
+ {
+@@ -960,6 +967,7 @@ void append_pam_environ(pam_handle_t *pamh,char **env)
+ free(penv[i]);
+ }
+ free(penv);
++ return env;
+ }
+
+ #endif
+@@ -1540,7 +1548,7 @@ void lxdm_do_login(struct passwd *pw, char *session, char *lang, char *option)
+ if(s->child==0)
+ {
+ #if HAVE_LIBPAM
+- append_pam_environ(s->pamh,env);
++ env=append_pam_environ(s->pamh,env);
+ pam_end(s->pamh,0);
+ #endif
+ switch_user(pw, session_exec, env);
diff --git a/community-staging/lxdm/service b/community-staging/lxdm/service
index b76e1190e..e1840476c 100644
--- a/community-staging/lxdm/service
+++ b/community-staging/lxdm/service
@@ -6,4 +6,4 @@ After=systemd-user-sessions.service
ExecStart=/usr/sbin/lxdm
[Install]
-WantedBy=graphical.target
+Alias=display-manager.service
diff --git a/community-staging/python-bsddb/LICENSE b/community-staging/python-bsddb/LICENSE
new file mode 100644
index 000000000..7d6035775
--- /dev/null
+++ b/community-staging/python-bsddb/LICENSE
@@ -0,0 +1,19 @@
+Copyright (c) 2008-2009 Jesus Cea Avion
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE. \ No newline at end of file
diff --git a/community-staging/python-bsddb/PKGBUILD b/community-staging/python-bsddb/PKGBUILD
new file mode 100644
index 000000000..1f83cd005
--- /dev/null
+++ b/community-staging/python-bsddb/PKGBUILD
@@ -0,0 +1,49 @@
+# $Id: PKGBUILD 77787 2012-10-14 18:15:13Z stephane $
+# Maintainer: Kaiting Chen <kaitocracy@gmail.com>
+# Maintainer: Stéphane Gaudreault <stephane@archlinux.org>
+# Contributor: Douglas Soares de Andrade <dsandrade@gmail.com>
+# Contributor: William Rea <sillywilly@gmail.com>
+
+pkgbase=python-bsddb
+pkgname=('python2-bsddb' 'python-bsddb')
+pkgver=5.3.0
+pkgrel=3
+pkgdesc="Python interface for BerkeleyDB"
+license=('MIT')
+arch=('i686' 'x86_64')
+url="http://www.jcea.es/programacion/pybsddb.htm"
+makedepends=('python2-distribute' 'python-distribute')
+source=(http://pypi.python.org/packages/source/b/bsddb3/bsddb3-${pkgver}.tar.gz
+ LICENSE)
+sha1sums=('8743f6d7a2f5471094941a46859723aae88f3915'
+ 'ef4e4caf618781104dbf5824279ed39d127b4713')
+
+build () {
+ cd "${srcdir}"
+
+ cp -r bsddb3-${pkgver}{,-python2}
+
+ # Build python 3 module
+ cd bsddb3-${pkgver}
+ python3 setup.py --berkeley-db=/usr build
+
+ # Build python 2 module
+ cd ../bsddb3-${pkgver}-python2
+ python2 setup.py --berkeley-db=/usr build
+}
+
+package_python2-bsddb() {
+ depends=('db' 'python2>=2.7')
+ cd "${srcdir}/bsddb3-${pkgver}-python2"
+
+ python2 setup.py --berkeley-db=/usr install --root="${pkgdir}" --skip-build --optimize=1
+ install -Dm644 "${srcdir}"/LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+}
+
+package_python-bsddb() {
+ depends=('db' 'python>=3.3')
+ cd "${srcdir}/bsddb3-${pkgver}"
+
+ python3 setup.py --berkeley-db=/usr install --root="${pkgdir}" --skip-build --optimize=1
+ install -Dm644 "${srcdir}"/LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+}
diff --git a/community-staging/python-openbabel/PKGBUILD b/community-staging/python-openbabel/PKGBUILD
new file mode 100644
index 000000000..1c229f553
--- /dev/null
+++ b/community-staging/python-openbabel/PKGBUILD
@@ -0,0 +1,38 @@
+# $Id: PKGBUILD 77768 2012-10-14 16:13:27Z ebelanger $
+# Maintainer: Andrea Scarpino <andrea@archlinux.org>
+# Contributor: Michal Bozon <bozonm@vscht.cz>
+
+pkgname=python-openbabel
+pkgver=2.3.1
+pkgrel=3
+pkgdesc="Python bindings of openbabel library"
+arch=('i686' 'x86_64')
+url="http://openbabel.org/wiki/Python"
+license=('GPL')
+depends=('python' 'gcc-libs' "openbabel=${pkgver}" 'eigen2')
+makedepends=('swig' 'cmake')
+options=('!libtool')
+source=(http://downloads.sourceforge.net/openbabel/openbabel-$pkgver.tar.gz)
+md5sums=('1f029b0add12a3b55582dc2c832b04f8')
+
+build() {
+ cd "${srcdir}/openbabel-$pkgver"
+
+ # Create babelconfig.h
+ cmake .
+
+ # Regenerate interface with the patched swig 2.0.2
+ cd scripts
+ swig -I../include/ -python -py3 -c++ openbabel-python.i
+ mv openbabel-python_wrap.cxx python/openbabel-python.cpp
+ mv openbabel.py python/
+
+ cd python
+ sed -i '19i os.path.join("/usr/include/openbabel-2.0"),' setup.py
+ sed -i '20i os.path.join("/usr/include/eigen2"),' setup.py
+}
+
+package() {
+ cd "${srcdir}/openbabel-$pkgver/scripts/python"
+ python setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1
+}
diff --git a/community-staging/python-pymongo/PKGBUILD b/community-staging/python-pymongo/PKGBUILD
new file mode 100644
index 000000000..91df7cb6a
--- /dev/null
+++ b/community-staging/python-pymongo/PKGBUILD
@@ -0,0 +1,37 @@
+# $Id: PKGBUILD 77784 2012-10-14 18:11:53Z jelle $
+# Maintainer: Alexander Rødseth <rodseth@gmail.com>
+# Contributor: Thomas S Hatch <thatch45@gmail.com>
+
+pkgbase=python-pymongo
+pkgname=('python-pymongo' 'python2-pymongo')
+pkgver=2.3
+pkgrel=2
+pkgdesc='Python driver for MongoDB'
+arch=('x86_64' 'i686')
+license=('APACHE')
+url='http://pypi.python.org/pypi/pymongo/'
+makedepends=('python-distribute' 'python2-distribute')
+source=("http://pypi.python.org/packages/source/p/pymongo/pymongo-$pkgver.tar.gz")
+sha256sums=('8e43fdd7ea8e2aa965791af1b6e24186248023c6fde70092d9631b1d9150b1dc')
+
+build() {
+ cd "$srcdir"
+ cp -a "pymongo-$pkgver" "pymongo2-$pkgver"
+
+}
+
+package_python2-pymongo() {
+ depends=('python2')
+ cd "$srcdir/pymongo2-$pkgver"
+
+ python2 setup.py install --root="$pkgdir" --optimize=1
+}
+
+package_python-pymongo() {
+ depends=('python')
+
+ cd "$srcdir/pymongo-$pkgver"
+
+ python setup.py install --root="$pkgdir" --optimize=1
+}
+# vim:set ts=2 sw=2 et:
diff --git a/community-staging/python-sqlalchemy/PKGBUILD b/community-staging/python-sqlalchemy/PKGBUILD
new file mode 100644
index 000000000..c59dcf0da
--- /dev/null
+++ b/community-staging/python-sqlalchemy/PKGBUILD
@@ -0,0 +1,44 @@
+# $Id: PKGBUILD 77772 2012-10-14 16:35:27Z ebelanger $
+# Maintainer: Angel Velasquez <angvp@archlinux.org>
+# Contributor: Sébastien Luttringer <seblu@aur.archlinux.org>
+
+pkgbase=python-sqlalchemy
+pkgname=('python-sqlalchemy' 'python2-sqlalchemy')
+pkgver=0.7.9
+pkgrel=1
+arch=('i686' 'x86_64') # python2 package contain .so
+url="http://www.sqlalchemy.org/"
+license=('custom: MIT')
+makedepends=('python' 'python2' 'python-distribute' 'python2-distribute' 'python-nose' 'python2-nose')
+source=("http://downloads.sourceforge.net/sourceforge/sqlalchemy/SQLAlchemy-$pkgver.tar.gz")
+md5sums=('c4852d586d95a59fbc9358f4467875d5')
+
+build() {
+ cp -a SQLAlchemy-$pkgver SQLAlchemy2-$pkgver
+ cd SQLAlchemy-$pkgver
+ python setup.py build
+ cd ../SQLAlchemy2-$pkgver
+ python2 setup.py build
+}
+
+package_python-sqlalchemy() {
+ pkgdesc='Python SQL toolkit and Object Relational Mapper'
+ depends=('python')
+
+ cd SQLAlchemy-${pkgver}
+ python setup.py install --root="${pkgdir}"
+ install -D -m644 LICENSE \
+ "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+package_python2-sqlalchemy() {
+ pkgdesc='Python 2 SQL toolkit and Object Relational Mapper'
+ depends=('python2')
+
+ cd SQLAlchemy2-$pkgver
+ python2 setup.py install --root="$pkgdir"
+ install -D -m644 LICENSE \
+ "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+# vim:set ts=2 sw=2 ft=sh et: