debian/0000755000000000000000000000000012210201647007161 5ustar debian/python-radicale.install0000644000000000000000000000001012210176012013620 0ustar usr/lib debian/radicale.install0000644000000000000000000000006512210176012012313 0ustar usr/bin config /etc/radicale/ logging /etc/radicale/ debian/patches/0000755000000000000000000000000012210176012010605 5ustar debian/patches/README0000644000000000000000000000021112210176012011457 0ustar 0xxx: Grabbed from upstream development. 1xxx: Possibly relevant for upstream adoption. 2xxx: Only relevant for official Debian release. debian/patches/1002_daemon-owned_logdir.patch0000644000000000000000000000050312210176012016203 0ustar Description: Use daemon-owned logdir for file-based logging Author: Martin Stigge Last-Update: 2012-04-05 --- a/logging +++ b/logging @@ -45,7 +45,7 @@ [handler_file] # File handler class = FileHandler -args = ('/var/log/radicale',) +args = ('/var/log/radicale/radicale.log',) formatter = full debian/patches/2001_debianize_config.patch0000644000000000000000000000172312210176012015552 0ustar Description: Adjust config files to Debian daemon needs Author: Martin Stigge Last-Update: 2012-04-05 --- a/config +++ b/config @@ -109,7 +109,7 @@ #type = filesystem # 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..] --- a/logging +++ b/logging @@ -30,7 +30,9 @@ [logger_root] # Root logger level = DEBUG -handlers = console,file +handlers = file +# Enable the following instead if you also want console logging +#handlers = console,file # Handlers @@ -38,7 +40,7 @@ [handler_console] # Console handler class = StreamHandler -level = INFO +level = DEBUG args = (sys.stdout,) formatter = simple @@ -46,6 +48,7 @@ # File handler class = FileHandler args = ('/var/log/radicale/radicale.log',) +level = INFO formatter = full debian/patches/1001_comment_out_defaults.patch0000644000000000000000000001125312210176012016511 0ustar Description: Comment out defaults in config file to ease maintenance Author: Martin Stigge Last-Update: 2012-04-05 --- a/config +++ b/config @@ -6,7 +6,7 @@ # Place it into /etc/radicale/config (global) # or ~/.config/radicale/config (user) # -# The current values are the default ones +# The commented out values are the defaults. [server] @@ -14,108 +14,108 @@ # IPv4 syntax: address:port # IPv6 syntax: [address]:port # IPv6 adresses are configured to only allow IPv6 connections -hosts = 0.0.0.0:5232 +#hosts = 0.0.0.0:5232 # Daemon flag -daemon = False +#daemon = False # File storing the PID in daemon mode -pid = +#pid = # SSL flag, enable HTTPS protocol -ssl = False +#ssl = False # SSL certificate path -certificate = /etc/apache2/ssl/server.crt +#certificate = /etc/apache2/ssl/server.crt # SSL private key -key = /etc/apache2/ssl/server.key +#key = /etc/apache2/ssl/server.key # Reverse DNS to resolve client address in logs -dns_lookup = True +#dns_lookup = True # Root URL of Radicale (starting and ending with a slash) -base_prefix = / +#base_prefix = / # Message displayed in the client when a password is needed -realm = Radicale - Password Required lol +#realm = Radicale - Password Required lol [encoding] # Encoding for responding requests -request = utf-8 +#request = utf-8 # Encoding for storing local collections -stock = utf-8 +#stock = utf-8 [auth] # Authentication method # Value: None | htpasswd | IMAP | LDAP | PAM | courier | http -type = None +#type = None # Usernames used for public collections, separated by a comma -public_users = public +#public_users = public # Usernames used for private collections, separated by a comma -private_users = private +#private_users = private # Htpasswd filename -htpasswd_filename = /etc/radicale/users +#htpasswd_filename = /etc/radicale/users # Htpasswd encryption method # Value: plain | sha1 | crypt -htpasswd_encryption = crypt +#htpasswd_encryption = crypt # LDAP server URL, with protocol and port -ldap_url = ldap://localhost:389/ +#ldap_url = ldap://localhost:389/ # LDAP base path -ldap_base = ou=users,dc=example,dc=com +#ldap_base = ou=users,dc=example,dc=com # LDAP login attribute -ldap_attribute = uid +#ldap_attribute = uid # LDAP filter string # placed as X in a query of the form (&(...)X) # example: (objectCategory=Person)(objectClass=User)(memberOf=cn=calenderusers,ou=users,dc=example,dc=org) # leave empty if no additional filter is needed -ldap_filter = +#ldap_filter = # LDAP dn for initial login, used if LDAP server does not allow anonymous searches # Leave empty if searches are anonymous -ldap_binddn = +#ldap_binddn = # LDAP password for initial login, used with ldap_binddn -ldap_password = +#ldap_password = # LDAP scope of the search -ldap_scope = OneLevel +#ldap_scope = OneLevel # IMAP Configuration -imap_hostname = localhost -imap_port = 143 -imap_ssl = False +#imap_hostname = localhost +#imap_port = 143 +#imap_ssl = False # PAM group user should be member of -pam_group_membership = +#pam_group_membership = # Path to the Courier Authdaemon socket -courier_socket = +#courier_socket = # HTTP authentication request URL endpoint -http_url = +#http_url = # POST parameter to use for username -http_user_parameter = +#http_user_parameter = # POST parameter to use for password -http_password_parameter = +#http_password_parameter = [rights] # Rights management method # Value: None | owner_only | owner_write | from_file -type = None +#type = None # File for rights management from_file -file = ~/.config/radicale/rights +#file = ~/.config/radicale/rights [storage] # Storage backend # Value: filesystem | database -type = filesystem +#type = filesystem # Folder for storing local collections, created if not present -filesystem_folder = ~/.config/radicale/collections +#filesystem_folder = ~/.config/radicale/collections # Database URL for SQLAlchemy # dialect+driver://user:password@host/dbname[?key=value..] # For example: sqlite:///var/db/radicale.db, postgresql://user:password@localhost/radicale # See http://docs.sqlalchemy.org/en/rel_0_8/core/engines.html#sqlalchemy.create_engine -database_url = +#database_url = [logging] @@ -123,11 +123,11 @@ # If no config is given, simple information is printed on the standard output # For more information about the syntax of the configuration file, see: # http://docs.python.org/library/logging.config.html -config = /etc/radicale/logging +#config = /etc/radicale/logging # Set the default logging level to debug -debug = False +#debug = False # Store all environment variables (including those set in the shell) -full_environment = False +#full_environment = False # Additional HTTP headers debian/patches/series0000644000000000000000000000013312210176012012017 0ustar 1001_comment_out_defaults.patch 1002_daemon-owned_logdir.patch 2001_debianize_config.patch debian/radicale.postrm0000644000000000000000000000035412210176012012172 0ustar #!/bin/sh # postrm script for radicale set -e NAME=radicale RUNDIR=/var/run/$NAME LOGDIR=/var/log/$NAME case "$1" in remove) rm -rf $RUNDIR ;; purge) rm -rf $LOGDIR # We do NOT remove the system user. ;; esac #DEBHELPER# debian/TODO0000644000000000000000000000250212210176012007645 0ustar Saner handling of dual-use as user and system-wide daemon: 1) Make default config usable both for user and system-wide daemon: * Stop hardcoding file-store. See config part of patch 2001. * Recommend upstream to only hint about and rely on internal defaults (not explicitly set them) in config file. See patch 1001. 2) Improve default file-store path when used as user daemon: * Patch default file-store to be ~/.local/share/Radicale/collections (to mimic XDG_DATA_HOME). * Recommend upstream to support resolving XDG_DATA_HOME for file-store (e.g. using python-xdg) and only use static path as fallback. * Adjust NEWS.Debian file accordingly. 3) Improve default file-store path when used as system-wide daemon: * Recommend upstream to support overriding (XDG_DATA_HOME resolved or) static configured file-store path with a command-line option, to not depend on $HOME for system-wide daemon setups. * Adjust NEWS.Debian file accordingly. 4a) Keep radicale as-is, and introduce system-wide daemon separately: * Move sysV init script and packaging scripts into separate radicale-daemon package, and start daemon by default. * Tidy NEWS.Debian file accordingly. 4b) Switch to system-wide daemon by default, but allow overriding: * Ask with debconf if daemon should be enabled at start (default yes). debian/control0000644000000000000000000000364012210201255010562 0ustar Source: radicale Section: web Priority: optional Maintainer: Jonas Smedegaard Uploaders: Martin Stigge , Christian M. Amsüss Standards-Version: 3.9.4 Build-Depends: cdbs (>= 0.4.97~), devscripts, python, debhelper, dh-buildinfo, help2man Vcs-Git: git://anonscm.debian.org/git/collab-maint/radicale.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/radicale.git;a=summary Homepage: http://radicale.org/ Package: radicale Architecture: all Depends: ${misc:Depends}, ${python:Depends}, python-radicale (= ${binary:Version}), python, adduser Suggests: apache2-utils, python-ldap, python-pampy, courier-authdaemon, python-requests, python-sqlalchemy Provides: ${python:Provides} Description: simple calendar server - daemon The Radicale Project is a complete CalDAV (calendar) and CardDAV (contact) server solution. . Calendars and address books are available for both local and remote access, possibly limited through authentication policies. They can be viewed and edited by calendar and contact clients on mobile phones or computers. . This package contains the radicale daemon. . Some authentication schemes require either of the packages apache2-utils, python-ldap, python-pampy, courier-authdaemon or python-requests. . SQL storage requires the package python-sqlalchemy. Package: python-radicale Section: python Architecture: all Depends: ${misc:Depends}, ${python:Depends} Provides: ${python:Provides} XB-Python-Version: ${python:Versions} Description: simple calendar server - module The Radicale Project is a complete CalDAV (calendar) and CardDAV (contact) server solution. . Calendars and address books are available for both local and remote access, possibly limited through authentication policies. They can be viewed and edited by calendar and contact clients on mobile phones or computers. . This package contains the Radicale Python module. debian/source/0000755000000000000000000000000012210176012010456 5ustar debian/source/format0000644000000000000000000000001412210176012011664 0ustar 3.0 (quilt) debian/changelog0000644000000000000000000001654112210201647011042 0ustar radicale (0.8-1) unstable; urgency=low [ upstream ] * New release. + New rights management; configurations need to be updated. Closes: bug#676660. [ Christian M. Amsüss ] * Drop patch 0001: Applied upstream. * Update patch 1001 to comment out new options, and refresh. * Add myself as uploader. [ Martín Ferrari ] * Check DISABLED var before restarting. (Closes: #713936). * Remove Default-Stop levels from the LHS initscript header. Closes: bug#714165. * Add FCGI and WSGI scripts as examples. Related to bug#682016. [ Jonas Smedegaard ] * Adjust init script to allow stopping even when daemon disabled (only skip start part of restart action, not also stop part). * Bump debhelper compatibility to 8. * Use anonscm.debian.org URL for Vcs-Git. * Bump standards-version to 3.9.4. * Fix use comment pseudo-sections in copyright file to obey silly restrictions of copyright format 1.0. * Have git-import-orig suppress upstream .gitignore file. * Build-depend on devscripts, enabling copyright check always. * Relax to build-depend unversioned on help2man: Needed version satisfied even in oldstable. * Update watch and rules files to directly use github.com URL (not githubredir.debian.net). * Stop tracking md5sum of upstream tarball. * Install SQL schema file as example. * Fix suggest python-pampy (not python-pam). * Suggest python-requests (for http auth) and python-sqlalchemy (for SQL storage). -- Jonas Smedegaard Fri, 30 Aug 2013 22:42:14 +0200 radicale (0.7-1.1) unstable; urgency=low * Non-maintainer upload. (Acknowledged by Jonas Smedegaard) * Tighten dependency on python-radicale. Make the Depends on python-radicale explicit on the binary package version. (Closes: #699724) -- Salvatore Bonaccorso Sun, 10 Feb 2013 21:02:27 +0100 radicale (0.7-1) unstable; urgency=low * New upstream release. [ Martin Stigge ] * Remove build-dependency on python-dev. Not needed. * Add myself to Uploaders: * Remove build/ directory in clean target. * Implement daemon handling: + Add postinst for creation of user and directory. + Add postrm to remove log and run dirs from /var. + Add initscript and defaults file + Patch configuration to fit daemon needs. + Add logrotate config file. + Depend on adduser. * Comment out all config defaults to ease maintenance. * Add patch 0001 to fix Iceowl support in newly created calendars, cherry-picked from upstream VCS. [ Jonas Smedegaard ] * Update CDBS suppression for unneeded build-dependency on python-dev. * Bump standards-version to 3.9.3. * Simplify install files, as supported by debhelper 7. * Use anonscm.debian.org for Vcs-Browser field. * Extend my copyright for Debian packaging. * Update copyright file: + Bump format to 1.0. + Fix double-indent in Copyright fields as per Policy §5.6.13. + Shorten GPL comments. + Quote license strings in comments. + Move reference to upstream licensing URL to topmost GPL comment. + Extend copyright years. * Document authentication needs in long description. Suggest apache2-utils python-ldap python-pam courier-authdaemon. * Sync long descriptions with intro on upstream project website. * Reduce patch and split into multiple ones to ease upstream adoption. * Add --daemon and --pid options as default daemon arguments (and stop patching similarly in config file). -- Jonas Smedegaard Fri, 15 Jun 2012 00:13:19 +0200 radicale (0.6.4-1) unstable; urgency=low * New upstream release. * Use Github as upstream source. * Drop dpkg-source local-options hint: Declared options are default since dpkg-source 1.16.1. * Bump debhelper compat level to 7. * Fix install logging config file. Closes: bug#655155. Thanks to Martin Stigge. -- Jonas Smedegaard Mon, 09 Jan 2012 14:51:38 +0100 radicale (0.6.3-1) unstable; urgency=low * New upstream release. Closes: bug#640145. * Drop all patches: applied upstream now. * Use new default python helper (not deprecated python-support). Tighten build-dependency on python and python-dev to versions supporting it. Stop build-depending on python-support. * Have radicale explicitly depend on python (though already satisfied through python-radicale), to silence lintian. * Update copyright file: + Rewrite using draft 174 of DEP-5 format. + Shorten license comments. * Bump policy compliance to standards-version 3.9.2. * Adjust source for upstream changed download URL: + Relax watch file regexp. + Update DEB_UPSTREAM_URL (used by CDBS get-orig-source target). * Tighten build-dependency on cdbs. * Build-depend unversioned on debhelper: Needed version satisfied even in unstable. -- Jonas Smedegaard Tue, 20 Dec 2011 20:37:43 +0700 radicale (0.4-2) unstable; urgency=low * Ease building with git-buildpackage: + Git-ignore quilt .pc dir. + Add dpkg-source local-options. * Ease backporting: + Avoid optional build-dependencies. + Bump down debhelper compat level to 6. Relax build-dependency on debhelper accordingly. + Adjust CDBS usage to only optionally use new features. Build-depend unversioned on cdbs. Stop build-depending on devscripts. * Build-depend on dh-buildinfo. * Add patches 0001-0014 from upstream Git, for improved inter- operability with MacOS, Windows and iPhone clients. * Update copyright file: + Rewrite using Subversion rev.173 of draft DEP5 format. * Use new default python helper (not deprecated python-support). + Stop explicitly setting python helper hint in rules file. + Tighten build-dependency on python and python-dev to versions supporting it. + Stop build-depending on python-support. * Have radicale explicitly depend on python (though already satisfied through python-radicale), to silence lintian. -- Jonas Smedegaard Sat, 12 Mar 2011 15:49:03 +0100 radicale (0.4-1) unstable; urgency=low * New upstream release. [ Jonas Smedegaard ] * Install new global config file below /etc. * Bump standards-version to 3.9.1. -- Jonas Smedegaard Sun, 05 Sep 2010 15:07:52 +0200 radicale (0.3-2) unstable; urgency=low * Tighten watch file to avoid git snapshot tarball. -- Jonas Smedegaard Tue, 20 Jul 2010 12:28:33 +0200 radicale (0.3-1) unstable; urgency=low * New upstream release. * Fix watch file. * Bump Policy compliance to Standards-Version 3.9.0. -- Jonas Smedegaard Tue, 29 Jun 2010 20:02:32 +0200 radicale (0.2-3) unstable; urgency=low * Fix tighten build-dependency on help2man to versions implementing option --version-string. -- Jonas Smedegaard Tue, 18 May 2010 16:44:14 +0200 radicale (0.2-2) unstable; urgency=low * Generate manpage using script and library in destdir (not builddir). * Ensure proper hash-bang in Python script. * Fix append version to python dependency if using non-default version. * Fix have radicale depend on python-radicale. * Fix use of ${python:Provides} (not bogus ${python:Replaces}) and ${python:Versions}. -- Jonas Smedegaard Tue, 18 May 2010 04:06:34 +0200 radicale (0.2-1) unstable; urgency=low * Initial release. Closes: bug#581979. -- Jonas Smedegaard Mon, 17 May 2010 16:19:37 +0200 debian/README.source0000644000000000000000000000056312210176012011341 0ustar CDBS+git-buildpackage --------------------- This source package uses CDBS and git-buildpackage. NMUs need not (but are encouraged to) make special use of these tools. In particular, the debian/control.in file can be completely ignored. More info here: http://wiki.debian.org/CDBS+git-buildpackage -- Jonas Smedegaard Mon, 18 Feb 2013 12:55:37 +0100 debian/radicale.init0000755000000000000000000000625512210176012011622 0ustar #! /bin/sh ### BEGIN INIT INFO # Provides: radicale # Required-Start: $remote_fs # Required-Stop: $remote_fs # Should-Start: $syslog # Default-Start: 2 3 4 5 # Default-Stop: # Short-Description: Radicale CalDAV and CardDAV server # Description: Start/Stop the Radicale CalDAV and CardDAV # server, configurable via /etc/default/radicale. ### END INIT INFO # Author: Martin Stigge PATH=/sbin:/usr/sbin:/bin:/usr/bin DESC="Radicale CalDAV server" NAME=radicale DAEMON=/usr/bin/$NAME DAEMON_UID=radicale DAEMON_GID=radicale RUNDIR=/var/run/$NAME PIDFILE=$RUNDIR/$NAME.pid CALDIR=/var/lib/$NAME LOGDIR=/var/log/$NAME SCRIPTNAME=/etc/init.d/$NAME # Exit if the package is not installed [ -x $DAEMON ] || exit 0 # Load the VERBOSE setting and other rcS variables . /lib/init/vars.sh # Define LSB log_* functions. . /lib/lsb/init-functions # Declare default options RADICALE_OPTS="--daemon" # Read configuration variable file if it is present [ -r /etc/default/$NAME ] && . /etc/default/$NAME # # Check whether daemon starting is enabled # check_start_daemon() { if [ ! "$ENABLE_RADICALE" = "yes" ]; then [ "$VERBOSE" != no ] && \ log_warning_msg "Not starting radicale, disabled via /etc/default/radicale" return 1 else return 0 fi } # # Function that starts the daemon/service # do_start() { # Return # 0 if daemon has been started # 1 if daemon was already running # 2 if daemon could not be started for dir in $RUNDIR $CALDIR $LOGDIR; do if [ ! -d $dir ]; then mkdir -p $dir fi if ! dpkg-statoverride --list $dir >/dev/null 2>&1; then chown $DAEMON_UID:$DAEMON_GID $dir chmod g-w,o-rwx $dir fi done start-stop-daemon --start --quiet --pidfile $PIDFILE --startas $DAEMON \ --name $NAME --test > /dev/null \ || return 1 start-stop-daemon --start --quiet --pidfile $PIDFILE --startas $DAEMON \ --name $NAME --umask 0027 --chuid $DAEMON_UID:$DAEMON_GID -- \ --pid=$PIDFILE $RADICALE_OPTS \ || return 2 } # # Function that stops the daemon/service # do_stop() { # Return # 0 if daemon has been stopped # 1 if daemon was already stopped # 2 if daemon could not be stopped # other if a failure occurred start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile $PIDFILE --name $NAME } case "$1" in start) check_start_daemon || exit 0 [ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC " "$NAME" do_start case "$?" in 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; esac ;; stop) [ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME" do_stop case "$?" in 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; esac ;; status) status_of_proc "$DAEMON" "$NAME" && exit 0 || exit $? ;; restart|force-reload) log_daemon_msg "Restarting $DESC" "$NAME" do_stop case "$?" in 0|1) check_start_daemon || exit 0 do_start case "$?" in 0) log_end_msg 0 ;; 1) log_end_msg 1 ;; # Old process is still running *) log_end_msg 1 ;; # Failed to start esac ;; *) # Failed to stop log_end_msg 1 ;; esac ;; *) echo "Usage: $SCRIPTNAME {start|stop|status|restart|force-reload}" >&2 exit 3 ;; esac : debian/compat0000644000000000000000000000000212210176012010354 0ustar 8 debian/watch0000644000000000000000000000032512210176012010207 0ustar # Run the "uscan" command to check for upstream updates and more. version=2 http://www.radicale.org/download .*/Radicale-(\d.*).tar.gz debian https://github.com/Kozea/Radicale/tags .*/archive/v?(\d[\d\.]+).tar.gz debian/copyright_hints0000644000000000000000000000522012210200061012305 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: FIXME Upstream-Contact: FIXME Source: FIXME Disclaimer: Autogenerated by CDBS Files: MANIFEST.in README README.rst TODO.rst config debian/NEWS debian/README.source debian/TODO debian/compat debian/control debian/control.in debian/gbp.conf debian/patches/1001_comment_out_defaults.patch debian/patches/1002_daemon-owned_logdir.patch debian/patches/2001_debianize_config.patch debian/patches/README debian/patches/series debian/pycompat debian/python-radicale.install debian/radicale.default debian/radicale.examples debian/radicale.init debian/radicale.install debian/radicale.logrotate debian/radicale.postinst debian/radicale.postrm debian/source/format debian/watch logging schema.sql tox.ini Copyright: *No copyright* License: UNKNOWN FIXME Files: radicale.fcgi radicale.wsgi radicale/__main__.py radicale/log.py radicale/rights/from_file.py radicale/rights/owner_only.py radicale/rights/owner_write.py radicale/storage/__init__.py radicale/storage/database.py radicale/storage/filesystem.py setup.py tests/__init__.py tests/test_base.py Copyright: 2009-2013, Guillaume Ayoub 2011-2013, Guillaume Ayoub 2012-2013, Guillaume Ayoub 2013, Guillaume Ayoub License: GPL-3+ FIXME Files: bin/radicale radicale.py radicale/__init__.py radicale/auth/__init__.py radicale/auth/htpasswd.py radicale/config.py radicale/ical.py radicale/rights/__init__.py radicale/xmlutils.py Copyright: 2008, Nicolas Kandel 2008, Pascal Halter 2008-2013, Guillaume Ayoub License: GPL-3+ FIXME Files: radicale/auth/PAM.py radicale/auth/courier.py Copyright: 2011, Henry-Nicolas Tourneur License: GPL-3+ FIXME Files: debian/rules Copyright: 2010-2012, Jonas Smedegaard License: GPL-2+ FIXME Files: radicale/auth/LDAP.py Copyright: 2011, Corentin Le Bail 2011-2013, Guillaume Ayoub License: GPL-3+ FIXME Files: radicale/auth/IMAP.py Copyright: 2012, Daniel Aleksandersen 2013, Guillaume Ayoub 2013, Nikita Koshikov License: GPL-3+ FIXME Files: radicale/auth/http.py Copyright: 2012, Ehsanul Hoque 2013, Guillaume Ayoub License: GPL-3+ FIXME Files: COPYING Copyright: 2007, Free Software Foundation, Inc. are not disclaimer" for the program, if necessary if you do law law, except executing it on a on the Program, and are irrevocable provided the stated on the software, and (2) offer you this License permission permission, other than the making of an treaty adopted on 20 December 1996, or License: GPL-ever FIXME Files: NEWS.rst Copyright: Neumann) License: UNKNOWN FIXME debian/radicale.logrotate0000644000000000000000000000024412210176012012644 0ustar /var/log/radicale/*.log { rotate 12 weekly compress missingok create 640 radicale radicale postrotate invoke-rc.d radicale restart > /dev/null endscript } debian/copyright0000644000000000000000000000376312210176012011122 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: Radicale Upstream-Contact: Guillaume Ayoub Source: http://radicale.org/download https://github.com/Kozea/Radicale/downloads git://github.com/Kozea/Radicale Files: * Copyright: 2008, Nicolas Kandel 2008, Pascal Halter 2008-2013, Guillaume Ayoub 2011, Henry-Nicolas Tourneur 2011, Corentin Le Bail 2012, Daniel Aleksandersen 2013, Nikita Koshikov 2012, Ehsanul Hoque License: GPL-3+ Files: debian/* Copyright: 2010-2012, Jonas Smedegaard License: GPL-2+ License: GPL-3+ This library is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. . This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . Comment: . On Debian systems the 'GNU General Public License' version 3 is located in the file '/usr/share/common-licenses/GPL-3'. . You should have received a copy of the 'GNU General Public License' along with this program. If not, see . License: GPL-2+ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. . This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . Comment: . On Debian systems the 'GNU General Public License' version 2 is located in the file '/usr/share/common-licenses/GPL-2'. debian/gbp.conf0000644000000000000000000000021512210176012010573 0ustar # Configuration file for git-buildpackage and friends [DEFAULT] pristine-tar = True sign-tags = True [git-import-orig] filter = .gitignore debian/rules0000755000000000000000000000440412210176070010244 0ustar #!/usr/bin/make -f # -*- mode: makefile; coding: utf-8 -*- # Copyright © 2010, 2011, 2012, Jonas Smedegaard # Description: Debian packaging script for Radicale # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License as # published by the Free Software Foundation; either version 2, or (at # your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . include /usr/share/cdbs/1/rules/upstream-tarball.mk include /usr/share/cdbs/1/rules/utils.mk include /usr/share/cdbs/1/class/python-distutils.mk include /usr/share/cdbs/1/rules/debhelper.mk DEB_UPSTREAM_URL = https://github.com/Kozea/Radicale/archive DEB_UPSTREAM_TARBALL_BASENAME = $(DEB_UPSTREAM_TARBALL_VERSION) # workaround: python-distutils.mk by default adds unusual option -a DEB_PYTHON_CLEAN_ARGS = # Avoid unneeded build-dependency on python-dev CDBS_BUILD_DEPENDS_class_python-distutils_python = # generate manpage based on --help option of script itself CDBS_BUILD_DEPENDS +=, help2man manpages = debian/radicale.1 DEB_INSTALL_MANPAGES_radicale = $(manpages) common-binary-indep:: $(manpages) $(manpages): install/python-radicale $(manpages): debian/%.1 : % export PYTHONPATH="$(cdbs_python_destdir)/usr/lib/python$(or $(cdbs_python_nondefault_version),$(cdbs_python_current_version))/site-packages/"; \ help2man \ --name="a simple calendar server" \ --version-string="$(DEB_NOEPOCH_VERSION)" \ --no-info \ --output=$@ \ $(cdbs_python_destdir)/usr/bin/$< find "$(cdbs_python_destdir)/usr/lib" -name '*.pyc' -exec rm '{}' ';' clean:: rm -f $(manpages) rm -rf build/ # Ensure proper hash-bang in Python script (Python Policy 0.9 §3.1) binary-fixup/radicale:: egrep -r -l -Z '^#! ?/usr/bin/(env )?python[[:print:]]*$$' debian/$(cdbs_curpkg)/usr/bin/* \ | xargs -r -0 perl -pi -e 's,^#! ?/usr/bin/(env )?python[[:print:]]*$$,#!/usr/bin/python$(cdbs_python_nondefault_version),' debian/radicale.examples0000644000000000000000000000004712210176532012472 0ustar radicale.wsgi radicale.fcgi schema.sql debian/pycompat0000644000000000000000000000000212210176012010725 0ustar 2 debian/control.in0000644000000000000000000000353112210201165011166 0ustar Source: radicale Section: web Priority: optional Maintainer: Jonas Smedegaard Uploaders: Martin Stigge , Christian M. Amsüss Standards-Version: 3.9.4 Build-Depends: @cdbs@ Vcs-Git: git://anonscm.debian.org/git/collab-maint/radicale.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/radicale.git;a=summary Homepage: http://radicale.org/ Package: radicale Architecture: all Depends: ${misc:Depends}, ${python:Depends}, python-radicale (= ${binary:Version}), python, adduser Suggests: apache2-utils, python-ldap, python-pampy, courier-authdaemon, python-requests, python-sqlalchemy Provides: ${python:Provides} Description: simple calendar server - daemon The Radicale Project is a complete CalDAV (calendar) and CardDAV (contact) server solution. . Calendars and address books are available for both local and remote access, possibly limited through authentication policies. They can be viewed and edited by calendar and contact clients on mobile phones or computers. . This package contains the radicale daemon. . Some authentication schemes require either of the packages apache2-utils, python-ldap, python-pampy, courier-authdaemon or python-requests. . SQL storage requires the package python-sqlalchemy. Package: python-radicale Section: python Architecture: all Depends: ${misc:Depends}, ${python:Depends} Provides: ${python:Provides} XB-Python-Version: ${python:Versions} Description: simple calendar server - module The Radicale Project is a complete CalDAV (calendar) and CardDAV (contact) server solution. . Calendars and address books are available for both local and remote access, possibly limited through authentication policies. They can be viewed and edited by calendar and contact clients on mobile phones or computers. . This package contains the Radicale Python module. debian/radicale.postinst0000644000000000000000000000067312210176012012535 0ustar #!/bin/sh # postinst script for radicale set -e NAME=radicale ACCOUNTNAME=$NAME DAEMON_UID=$ACCOUNTNAME DAEMON_GID=$ACCOUNTNAME CALDIR=/var/lib/$NAME ACCOUNTHOME=$CALDIR GECOS="Radicale CalDAV server" case "$1" in configure) if ! getent passwd $ACCOUNTNAME >/dev/null 2>&1; then adduser --system --home $ACCOUNTHOME --no-create-home \ --gecos "$GECOS" --group --disabled-password \ --quiet $ACCOUNTNAME fi ;; esac #DEBHELPER# debian/NEWS0000644000000000000000000000655612210176012007671 0ustar radicale (0.7-1) unstable; urgency=low This package version includes two important changes: Changed config variable for calendar folder =========================================== Radicale now supports different storage backends as plugins. This led to a variable name change in the configuration file, namely "folder" changed to "filesystem_folder". You need to adjust your config file accordingly. System daemon ============= Starting with this version, the radicale Debian package defaults to running the server in system daemon mode using a supplied initscript. During package installation, a system user "radicale" was created and creation of relevant system directories was attempted. The default directories are: /var/lib/radicale - for calendars and contacts, /var/log/radicale - for log files, /var/run/radicale - for run files, e.g., the pid file. The supplied config files /etc/radicale/config and /etc/radicale/logging are now pointing to those directories by default. You can continue running radicale as an ordinary user if you have done so previously, in which case you only need to adjust the config file to point to the old location of your calendar files (see variable renaming above). However, if you wish to migrate to the new locations in order to run radicale as a system daemon, you can use the following procedure: 1.) Stop the server if it is running. 2.) Determine the current location of calendar files and log file from, e.g., /etc/radicale/config and /etc/radicale/logging or your custom command line for launching radicale. In the following we assume that: * ~/.config/radicale/calendars is the old location of your calendars, and * /var/log/radicale is the old log file. (Both were the defaults in previous versions of this Debian package.) 3.) The following steps require root privileges. Move the calendar data to its new location: # mv /home//.config/radicale/calendars /var/lib/radicale/collections (Since radicale can now handle contact data as well, the directory is called "connections" from now on.) The collections need to be owned by the radicale user and group: # chown -R radicale:radicale /var/lib/radicale/collections/ You may want to remove the old and now empty directory /home//.config/radicale/ . 4.) For migrating the log file, we again need root privileges. First, rename the old log file: # mv /var/log/radicale /var/log/radicale.log Second, create the new log directory: # mkdir /var/log/radicale Third, move the log file into the log directory: # mv /var/log/radicale.log /var/log/radicale/ Again, the files need to be owned by the radicale user and group: # chown -R radicale:radicale /var/log/radicale/ Note that if you have logrotate installed, it will now be used to handle the log files of radicale in that directory. 5.) Check whether /etc/radicale/config and /etc/radicale/logging suit your new site configuration including locations. 6.) Activate the daemon in /etc/default/radicale. You can also supply additional startup options there. Now, start the daemon using: # /etc/init.d/radicale start -- Martin Stigge Sun, 08 Apr 2012 17:11:24 +0200 debian/radicale.default0000644000000000000000000000057512210176012012277 0ustar # Defaults for radicale calendar server (sourced from /etc/init.d/radicale) # Uncomment to start radicale on system startup #ENABLE_RADICALE=yes # Options for radicale on startup # Note that most options can be specified in /etc/radicale/config RADICALE_OPTS="--daemon" # Make initscript verbose, override system default # (Note: This is ONLY about the initscript!) VERBOSE=yes