diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2014-11-17 15:05:09 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2014-11-17 15:11:03 +0000 |
commit | fe8a40d64b351377da03643018854dc4d8856bc6 (patch) | |
tree | f12b7c97a858b05859332b2a0359163678e33e4d /testing/radicale | |
parent | 8387c17e377233fcfc30260c5bd3c8f291cd191a (diff) | |
download | aports-fe8a40d64b351377da03643018854dc4d8856bc6.tar.bz2 aports-fe8a40d64b351377da03643018854dc4d8856bc6.tar.xz |
testing/radicale: new aport
A simple CalDAV (calendar) and CardDAV (contact) server
http://radicale.org
Diffstat (limited to 'testing/radicale')
-rw-r--r-- | testing/radicale/APKBUILD | 60 | ||||
-rw-r--r-- | testing/radicale/radicale-0.9-systemwide.patch | 52 | ||||
-rw-r--r-- | testing/radicale/radicale.initd | 16 | ||||
-rw-r--r-- | testing/radicale/radicale.pre-install | 7 |
4 files changed, 135 insertions, 0 deletions
diff --git a/testing/radicale/APKBUILD b/testing/radicale/APKBUILD new file mode 100644 index 0000000000..b34474fa42 --- /dev/null +++ b/testing/radicale/APKBUILD @@ -0,0 +1,60 @@ +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +pkgname=radicale +pkgver=0.9 +pkgrel=0 +pkgdesc="A simple CalDAV (calendar) and CardDAV (contact) server" +url="http://radicale.org" +arch="noarch" +license="GPLv3+" +depends="python" +depends_dev="" +makedepends="$depends_dev python" +pkgusers="radicale" +pkggroups="radicale" +install="$pkgname.pre-install" +subpackages="" +source="http://pypi.python.org/packages/source/R/Radicale/Radicale-$pkgver.tar.gz + radicale-0.9-systemwide.patch + radicale.initd + " + +_builddir="$srcdir"/Radicale-$pkgver +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" + python setup.py build || return 1 +} + +package() { + cd "$_builddir" + python setup.py install --skip-build --prefix=/usr --root="$pkgdir" \ + || return 1 + install -d "$pkgdir"/etc/radicale + install -m640 config "$pkgdir"/etc/radicale/ || return 1 + install -m640 logging "$pkgdir"/etc/radicale/ || return 1 + install -d -o radicale "$pkgdir"/var/lib/radicale \ + "$pkgdir"/var/log/radicale || return 1 + + install -D -m755 "$srcdir"/radicale.initd \ + "$pkgdir"/etc/init.d/radicale || return 1 + +} + +md5sums="38295981c8e595fe774c6a5e6908c844 Radicale-0.9.tar.gz +79f3ceab466ae0529e418182a8a90acb radicale-0.9-systemwide.patch +c29bfd3a2927ddf777e8e289e0f8da26 radicale.initd" +sha256sums="77bf813fd26f0d359c1a7b7bcce9b842b4503c5516989a4a0a4f648e299e41f7 Radicale-0.9.tar.gz +389c0fa882e18c8e95e445be964464c8f9ba62cf5c6659d637473d95bad2fb5c radicale-0.9-systemwide.patch +fec7084565e99d17bea72fc809f03250ef0bcdc40eacb25ace77faf0c2fbd489 radicale.initd" +sha512sums="d030332a281c938859177ec6e7bf111622e47d1efc6c5d72e520051e8923a97e8e0b457488a88636ef86816bba1a72a867e8ef7a8c96e7414a87bb10c958aca2 Radicale-0.9.tar.gz +8cf1d4a377d75df479d8d8d601c2b11e429a798b14e4544a7e183a8c1dc0fe1ec948771710d6c31f8262dfa02d070204762f0594e5e054e20e8a2e76b5a8d29f radicale-0.9-systemwide.patch +7d786530b917585044ce3f301b8b307676f8ef965fe512a308812d0c7ef1abeea144c4f84f52b45d3657a4c44e9d36b0e3c0601e08c4cec27ae9ce9a812bec0e radicale.initd" diff --git a/testing/radicale/radicale-0.9-systemwide.patch b/testing/radicale/radicale-0.9-systemwide.patch new file mode 100644 index 0000000000..eb1c1f5752 --- /dev/null +++ b/testing/radicale/radicale-0.9-systemwide.patch @@ -0,0 +1,52 @@ +--- Radicale-0.9.orig/config ++++ Radicale-0.9/config +@@ -15,7 +15,7 @@ + # IPv6 syntax: [address]:port + # For example: 0.0.0.0:9999, [::]:9999 + # IPv6 adresses are configured to only allow IPv6 connections +-hosts = 0.0.0.0:5232 ++hosts = 127.0.0.1:5232 + # Daemon flag + daemon = False + # File storing the PID in daemon mode +@@ -23,9 +23,9 @@ + # SSL flag, enable HTTPS protocol + ssl = False + # SSL certificate path +-certificate = /etc/apache2/ssl/server.crt ++certificate = /etc/ssl/radicale/server.crt + # SSL private key +-key = /etc/apache2/ssl/server.key ++key = /etc/ssl/radicale/server.key + # SSL Protocol used. See python's ssl module for available values + protocol = PROTOCOL_SSLv23 + # Ciphers available. See python's ssl module for available ciphers +@@ -113,7 +113,7 @@ + custom_handler = + + # File for rights management from_file +-file = ~/.config/radicale/rights ++file = /var/lib/radicale/rights + + + [storage] +@@ -125,7 +125,7 @@ + custom_handler = + + # Folder for storing local collections, created if not present +-filesystem_folder = ~/.config/radicale/collections ++filesystem_folder = /var/lib/radicale/collections + + # Database URL for SQLAlchemy + # dialect+driver://user:password@host/dbname[?key=value..] +--- Radicale-0.9.orig/logging ++++ Radicale-0.9/logging +@@ -45,7 +45,7 @@ + [handler_file] + # File handler + class = FileHandler +-args = ('/var/log/radicale',) ++args = ('/var/log/radicale/radicale.log',) + formatter = full + + diff --git a/testing/radicale/radicale.initd b/testing/radicale/radicale.initd new file mode 100644 index 0000000000..b405391e0d --- /dev/null +++ b/testing/radicale/radicale.initd @@ -0,0 +1,16 @@ +#!/sbin/runscript + +pidfile=/var/run/radicale.pid +start_stop_daemon_args="--user radicale" +command=/usr/bin/radicale +command_args="--foreground" +command_background=yes + +depend() { + use net + need localmount +} + +#start_pre() { +# checkpath --directory "${pidfile%/*}" +#} diff --git a/testing/radicale/radicale.pre-install b/testing/radicale/radicale.pre-install new file mode 100644 index 0000000000..11450050b5 --- /dev/null +++ b/testing/radicale/radicale.pre-install @@ -0,0 +1,7 @@ +#!/bin/sh + +name=radicale +addgroup -S $name 2>/dev/null +adduser -S -H -h /var/lib/$name -s /sbin/nologin -D -G $name $name 2>/dev/null +addgroup $name $name 2>/dev/null +exit 0 |