summaryrefslogtreecommitdiff
path: root/pcr
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@lavabit.com>2013-05-09 20:52:35 -0300
committerAndré Fabian Silva Delgado <emulatorman@lavabit.com>2013-05-09 20:52:35 -0300
commit6af10bc299aec08ad3f808c844f77d725def2b97 (patch)
tree02f3c2d04a6bb0995b39c8aafca7165774693ac2 /pcr
parentd0d9acab6c54e4af3684a10f70929e548517d0bb (diff)
parentf307a90c2d81336ca68a3dc06be2833b27872e3a (diff)
downloadabslibre-6af10bc299aec08ad3f808c844f77d725def2b97.tar.gz
abslibre-6af10bc299aec08ad3f808c844f77d725def2b97.tar.bz2
abslibre-6af10bc299aec08ad3f808c844f77d725def2b97.zip
Merge branch 'master' of ssh://parabolagnulinux.org:1863/srv/git/abslibre
Diffstat (limited to 'pcr')
-rw-r--r--pcr/radicale/PKGBUILD23
-rw-r--r--pcr/radicale/radicale.service10
2 files changed, 33 insertions, 0 deletions
diff --git a/pcr/radicale/PKGBUILD b/pcr/radicale/PKGBUILD
new file mode 100644
index 000000000..b4f76f6ab
--- /dev/null
+++ b/pcr/radicale/PKGBUILD
@@ -0,0 +1,23 @@
+# Maintainer: Guillaume Bouchard <guillaume.bouchard@liris.cnrs.fr>
+pkgname=radicale
+pkgver=0.7.1
+pkgrel=2
+pkgdesc="A Simple Calendar Server"
+arch=any
+url="http://www.radicale.org/"
+license=('GPL3')
+depends=('python')
+backup=('etc/radicale/config')
+source=(http://pypi.python.org/packages/source/R/Radicale/Radicale-$pkgver.tar.gz
+ radicale.service)
+
+package() {
+ cd "$srcdir/Radicale-$pkgver"
+ python setup.py install --prefix=/usr --root="$pkgdir" || return 1
+
+ install -D "$srcdir/Radicale-$pkgver/config" "$pkgdir/etc/radicale/config"
+ install -m744 -D "$srcdir/radicale.service" "$pkgdir/usr/lib/systemd/system/radicale.service"
+}
+
+md5sums=('ab1167b1ee713a7a58d843c5921f3327'
+ 'dbdfedb46af4ceed0ad0db3441b5a266')
diff --git a/pcr/radicale/radicale.service b/pcr/radicale/radicale.service
new file mode 100644
index 000000000..293cad6e2
--- /dev/null
+++ b/pcr/radicale/radicale.service
@@ -0,0 +1,10 @@
+[Unit]
+Description=Radicale caldav server
+After=network.target
+
+[Service]
+ExecStart=/usr/bin/radicale
+ExecStop=/bin/kill -HUP $MAINPID
+
+[Install]
+WantedBy=multi-user.target