diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 90 |
1 files changed, 90 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..159b71c70f12 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,90 @@ +# Maintainer: Javier Torres <javitonino [at] gmail [dot] com> +# Contributor: Jonas Heinrich <onny@project-insanity.org> + +pkgname=pykolab +pkgver=0.7.11 +pkgrel=1 +pkgdesc='Kolab Python Utilities' +arch=('any') +license=('GPL3') +makedepends=('intltool') +depends=('python2' 'python2-nose' 'python2-ldap' 'python2-augeas' 'python2-cheetah' 'python2-sqlalchemy' 'python2-kolabformat' 'python2-icalendar' 'python2-mysql-connector') +url='http://kolab.org' +install=pykolab.install +backup=('etc/kolab/kolab.conf') +source=("http://mirror.kolabsys.com/pub/releases/${pkgname}-${pkgver}.tar.gz" + "http://mirror.kolabsys.com/pub/releases/kolab-schema-3.2.tar.gz" + "systemd-services.patch" + "setup-script.patch" + "templates.patch" + "kolabd.tmpfiles") +optdepends=('cyrus-imapd-ldap: Only supported IMAP backend so far' + 'postfix: Mail Transfer Agent' + 'amavisd-new: Mail scanning' + 'perl-ldap: Amavis integration' + 'spamassassin: Spam detection' + 'clamav: Virus detection' + '389-ds-base: Prefered LDAP server' + 'mariadb: Mysql server backend' + 'roundcubemail: Default webclient used by Kolab' + 'roundcubemail-plugins-kolab: Roundcube plugin for Kolab integration' + 'roundcubemail-skin-chameleon: Recommended skin for Roundcube' + 'chwala: File Manager' + 'irony: Cal/Card/GroupDAV support' + 'kolab-freebusy: Free/Busy API' + 'kolab-syncroton: ActiveSync support' + 'kolab-webadmin: Administration tool') + +sha256sums=('ef3c2d462f06e3d3a9206b611b77c11c8281dc7979283436edd587a8e6b83bad' + '6995524d755ea3cbf3d36fc572667629716a141e7f757af1a970c2e85f8fa4de' + 'a515f068b5fe12c858f327fa0558087e61b4d39070d67dfba9a2b6d19a83c2c6' + '27c2505eed62ae3f74494d93aed7f0a4c5b72df1bf4cb797189be6d398459b7b' + 'e88c3114f0803ac9dcf589b5e144df8e4b4932ada3347d1d46c05770a3efdefd' + '4bbb72695b20b7a4c1c0348a93c62f048f0eef9f3bc7135fa2720c62e98e4634') + + +prepare(){ + cd "$srcdir/${pkgname}-${pkgver}" + find . -name "*.py" -exec sed -i "s|usr/bin/python|usr/bin/python2|" {} \; + patch -p1 < "${srcdir}/systemd-services.patch" + patch -p1 < "${srcdir}/setup-script.patch" + patch -p1 < "${srcdir}/templates.patch" +} + +build() { + cd "$srcdir/${pkgname}-${pkgver}" + autoreconf -vi + PYTHON=python2 ./configure \ + --prefix=/usr \ + --sbindir=/usr/bin \ + --libexecdir=/usr/lib \ + --sysconfdir=/etc \ + --localstatedir=/var + make +} + +package() { + cd "$srcdir/${pkgname}-${pkgver}" + make DESTDIR=$pkgdir/ install + + install -D "COPYING" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + + install -Dm644 "kolabd/kolabd.systemd" "${pkgdir}/usr/lib/systemd/system/kolabd.service" + install -Dm644 "kolabd/kolabd.tmpfiles.d.conf" "${pkgdir}/usr/lib/tmpfiles.d/kolabd.conf" + install -Dm644 "kolabd/kolabd.sysconfig" "${pkgdir}/etc/conf.d/kolabd.conf" + + install -Dm644 "saslauthd/kolab-saslauthd.systemd" "${pkgdir}/usr/lib/systemd/system/kolab-saslauthd.service" + install -Dm644 "saslauthd/kolab-saslauthd.sysconfig" "${pkgdir}/etc/conf.d/kolab-saslauthd.conf" + + install -Dm644 "wallace/wallace.systemd" "${pkgdir}/usr/lib/systemd/system/wallace.service" + install -Dm644 "wallace/wallace.tmpfiles.d.conf" "${pkgdir}/usr/lib/tmpfiles.d/wallace.conf" + install -Dm644 "wallace/wallace.sysconfig" "${pkgdir}/etc/conf.d/wallace.conf" + + install -Dm644 doc/kolab.1 "$pkgdir/usr/share/doc/kolab/kolab.1" + + install -Dm0644 "${srcdir}/kolabd.tmpfiles" "${pkgdir}/usr/lib/tmpfiles.d/kolabd.conf" + + cp ${srcdir}/kolab-schema-3.2/* "${pkgdir}/usr/share/doc/kolab/" + + rm ${pkgdir}/var/run -r +} |