summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordarcy <darcy>2017-07-01 05:57:06 +0000
committerdarcy <darcy>2017-07-01 05:57:06 +0000
commitfc22aeb17d6758ecbb35b9d888903566fea025f9 (patch)
tree35d1a7152ec283f167bde1e7d09fb55859b7e8c4
parent6da3dea05636cfcd60af2139e1b1dc4e861bff3e (diff)
downloadpkgsrc-fc22aeb17d6758ecbb35b9d888903566fea025f9.tar.gz
Version 2.1.1 of Radicale.
This is a new package as the file storage is incompatible with 1.x.x. Too many changes from 1.1.4. Please see http://radicale.org/news/ for details.
-rw-r--r--net/Makefile3
-rw-r--r--net/Radicale2/DESCR7
-rw-r--r--net/Radicale2/Makefile51
-rw-r--r--net/Radicale2/PLIST39
-rw-r--r--net/Radicale2/distinfo6
-rw-r--r--net/Radicale2/files/radicale.sh20
-rw-r--r--net/Radicale2/options.mk11
7 files changed, 136 insertions, 1 deletions
diff --git a/net/Makefile b/net/Makefile
index 16a315f5b3e..3d3084502f7 100644
--- a/net/Makefile
+++ b/net/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1161 2017/06/24 14:24:45 tnn Exp $
+# $NetBSD: Makefile,v 1.1162 2017/07/01 05:57:06 darcy Exp $
#
COMMENT= Networking tools
@@ -13,6 +13,7 @@ SUBDIR+= LaBrea
SUBDIR+= ORBit
SUBDIR+= ORBit2
SUBDIR+= Radicale
+SUBDIR+= Radicale2
SUBDIR+= SDL2_net
SUBDIR+= SDL_net
SUBDIR+= adns
diff --git a/net/Radicale2/DESCR b/net/Radicale2/DESCR
new file mode 100644
index 00000000000..c65aa4cc716
--- /dev/null
+++ b/net/Radicale2/DESCR
@@ -0,0 +1,7 @@
+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.
diff --git a/net/Radicale2/Makefile b/net/Radicale2/Makefile
new file mode 100644
index 00000000000..45b3d0283fb
--- /dev/null
+++ b/net/Radicale2/Makefile
@@ -0,0 +1,51 @@
+# $NetBSD: Makefile,v 1.1 2017/07/01 05:57:07 darcy Exp $
+
+DISTNAME= Radicale-2.1.1
+CATEGORIES= net time www
+MASTER_SITES= ${MASTER_SITE_PYPI:=R/Radicale/}
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= http://radicale.org/
+COMMENT= CalDAV (calendar) and CardDAV (contact) server
+LICENSE= gnu-gpl-v3
+
+EGDIR= share/examples/radicale
+
+RADICALE_USER?= www
+RADICALE_GROUP?= www
+PKG_GROUPS= ${RADICALE_GROUP}
+PKG_USERS= ${RADICALE_USER}:${RADICALE_GROUP}
+CONFLICTS+= Radicale-1*
+PYTHON_VERSIONS_INCOMPATIBLE= 27
+
+INSTALLATION_DIRS= ${EGDIR}
+OWN_DIRS= ${PKG_SYSCONFDIR}/radicale
+CONF_FILES+= ${EGDIR}/config ${PKG_SYSCONFDIR}/radicale/config
+RCD_SCRIPTS= radicale
+FILES_SUBST+= RADICALE_USER=${RADICALE_USER}
+FILES_SUBST+= RADICALE_GROUP=${RADICALE_GROUP}
+FILES_SUBST+= PYTHONBIN=${PYTHONBIN}
+
+SUBST_CLASSES+= config
+SUBST_SED.config+= -e 's,/etc,${PKG_SYSCONFDIR},g'
+SUBST_SED.config+= -e 's,apache2/,httpd/,g'
+SUBST_FILES.config+= radicale/config.py config logging
+SUBST_STAGE.config= pre-configure
+SUBST_MESSAGE.config= Fixing path to configuration file.
+
+SUBST_CLASSES+= server
+SUBST_SED.server+= -e 's,\#daemon = False,daemon = True,'
+SUBST_FILES.server+= config
+SUBST_STAGE.server= pre-configure
+SUBST_MESSAGE.server= Configure as a daemon by default.
+
+.include "options.mk"
+
+# for md5 htpasswd_encryption method
+DEPENDS+= ${PYPKGPREFIX}-passlib-[0-9]*:../../security/py-passlib
+
+post-install:
+ ${INSTALL_DATA} ${WRKSRC}/config ${DESTDIR}${PREFIX}/${EGDIR}/config
+
+.include "../../lang/python/distutils.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/net/Radicale2/PLIST b/net/Radicale2/PLIST
new file mode 100644
index 00000000000..76e672b9782
--- /dev/null
+++ b/net/Radicale2/PLIST
@@ -0,0 +1,39 @@
+@comment $NetBSD: PLIST,v 1.1 2017/07/01 05:57:07 darcy Exp $
+bin/radicale
+${PYSITELIB}/${EGG_FILE}/PKG-INFO
+${PYSITELIB}/${EGG_FILE}/SOURCES.txt
+${PYSITELIB}/${EGG_FILE}/dependency_links.txt
+${PYSITELIB}/${EGG_FILE}/requires.txt
+${PYSITELIB}/${EGG_FILE}/top_level.txt
+${PYSITELIB}/radicale/__init__.py
+${PYSITELIB}/radicale/__main__.py
+${PYSITELIB}/radicale/__init__.pyo
+${PYSITELIB}/radicale/__init__.pyc
+${PYSITELIB}/radicale/__main__.pyo
+${PYSITELIB}/radicale/__main__.pyc
+${PYSITELIB}/radicale/auth.pyo
+${PYSITELIB}/radicale/auth.pyc
+${PYSITELIB}/radicale/config.pyo
+${PYSITELIB}/radicale/config.pyc
+${PYSITELIB}/radicale/log.pyo
+${PYSITELIB}/radicale/log.pyc
+${PYSITELIB}/radicale/rights.pyo
+${PYSITELIB}/radicale/rights.pyc
+${PYSITELIB}/radicale/storage.pyo
+${PYSITELIB}/radicale/storage.pyc
+${PYSITELIB}/radicale/web.pyo
+${PYSITELIB}/radicale/web.pyc
+${PYSITELIB}/radicale/xmlutils.pyo
+${PYSITELIB}/radicale/xmlutils.pyc
+${PYSITELIB}/radicale/auth.py
+${PYSITELIB}/radicale/config.py
+${PYSITELIB}/radicale/log.py
+${PYSITELIB}/radicale/rights.py
+${PYSITELIB}/radicale/storage.py
+${PYSITELIB}/radicale/web.py
+${PYSITELIB}/radicale/web/css/icon.png
+${PYSITELIB}/radicale/web/css/main.css
+${PYSITELIB}/radicale/web/fn.js
+${PYSITELIB}/radicale/web/index.html
+${PYSITELIB}/radicale/xmlutils.py
+share/examples/radicale/config
diff --git a/net/Radicale2/distinfo b/net/Radicale2/distinfo
new file mode 100644
index 00000000000..b69048b0f62
--- /dev/null
+++ b/net/Radicale2/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2017/07/01 05:57:07 darcy Exp $
+
+SHA1 (Radicale-2.1.1.tar.gz) = e250986f11a946da7e48de189b10da61c93d2427
+RMD160 (Radicale-2.1.1.tar.gz) = c950be03fd5b2edf37f4977bf4e060e544acfe8f
+SHA512 (Radicale-2.1.1.tar.gz) = 3aa5aa6d6d3abfa256ab0f02a932d68daeb91ea857b68376a2bda3dae9dd8951e78a54a0657e4e827186ebb6c0d90165cb876d22ebc988cb66ba2f4617761830
+Size (Radicale-2.1.1.tar.gz) = 70878 bytes
diff --git a/net/Radicale2/files/radicale.sh b/net/Radicale2/files/radicale.sh
new file mode 100644
index 00000000000..816d8861556
--- /dev/null
+++ b/net/Radicale2/files/radicale.sh
@@ -0,0 +1,20 @@
+#!@RCD_SCRIPTS_SHELL@
+#
+# $NetBSD: radicale.sh,v 1.1 2017/07/01 05:57:07 darcy Exp $
+#
+# PROVIDE: radicale
+# REQUIRE: DAEMON
+# KEYWORD: shutdown
+
+$_rc_subr_loaded . /etc/rc.subr
+
+name="radicale"
+rcvar=$name
+radicale_user=@RADICALE_USER@
+radicale_group=@RADICALE_GROUP@
+command="@PREFIX@/bin/radicale"
+command_interpreter="@PYTHONBIN@"
+required_files="@PKG_SYSCONFDIR@/radicale/config"
+
+load_rc_config $name
+run_rc_command "$1"
diff --git a/net/Radicale2/options.mk b/net/Radicale2/options.mk
new file mode 100644
index 00000000000..113db7f8cbc
--- /dev/null
+++ b/net/Radicale2/options.mk
@@ -0,0 +1,11 @@
+# $NetBSD: options.mk,v 1.1 2017/07/01 05:57:07 darcy Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.Radicale
+PKG_SUPPORTED_OPTIONS= ldap
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mldap)
+PYTHON_VERSIONS_INCOMPATIBLE= 34 35 36 # py-ldap
+DEPENDS+= ${PYPKGPREFIX}-ldap-[0-9]*:../../databases/py-ldap
+.endif