diff options
author | prlw1 <prlw1@pkgsrc.org> | 2015-09-25 16:49:32 +0000 |
---|---|---|
committer | prlw1 <prlw1@pkgsrc.org> | 2015-09-25 16:49:32 +0000 |
commit | 03fa26728cbb8ec8f93916129dde0d0f7d822237 (patch) | |
tree | 8a5685adda883cc4ca0e2c21bab3f1582d28f741 /net/Radicale | |
parent | 325679beaa0a80460ef4cd6c01bead78b3fd2828 (diff) | |
download | pkgsrc-03fa26728cbb8ec8f93916129dde0d0f7d822237.tar.gz |
Update Radicale to 1.0.0
Add rc script, and launch as daemon by default.
1.0.1
=====
* Update the version because of a **stupid** "feature"(TM) of PyPI
1.0 - Sunflower
===============
* Enhanced performances (by Mathieu Dupuy)
* Add MD5-APR1 and BCRYPT for htpasswd-based authentication (by
Jan-Philip Gehrcke)
* Use PAM service (by Stephen Paul Weber)
* Don't discard PROPPATCH on empty collections (Markus Unterwaditzer)
* Write the path of the collection in the git message (Matthew Monaco)
* Tests launched on Travis
Diffstat (limited to 'net/Radicale')
-rw-r--r-- | net/Radicale/Makefile | 31 | ||||
-rw-r--r-- | net/Radicale/PLIST | 8 | ||||
-rw-r--r-- | net/Radicale/distinfo | 8 | ||||
-rw-r--r-- | net/Radicale/files/radicale.sh | 20 |
4 files changed, 52 insertions, 15 deletions
diff --git a/net/Radicale/Makefile b/net/Radicale/Makefile index 2efdccd612d..627fcdc25c2 100644 --- a/net/Radicale/Makefile +++ b/net/Radicale/Makefile @@ -1,7 +1,6 @@ -# $NetBSD: Makefile,v 1.14 2015/01/28 07:22:51 wiz Exp $ +# $NetBSD: Makefile,v 1.15 2015/09/25 16:49:32 prlw1 Exp $ -DISTNAME= Radicale-0.10 -PKGREVISION= 1 +DISTNAME= Radicale-1.0.1 CATEGORIES= net time www MASTER_SITES= http://pypi.python.org/packages/source/R/Radicale/ @@ -12,25 +11,39 @@ LICENSE= gnu-gpl-v3 EGDIR= share/examples/radicale +RADICALE_USER?= www +RADICALE_GROUP?= www +PKG_GROUPS= ${RADICALE_GROUP} +PKG_USERS= ${RADICALE_USER}:${RADICALE_GROUP} + 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},' +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" -post-build: - ${SED} -e "s#/etc#${PKG_SYSCONFDIR}#" -e "s#apache2/#httpd/#" \ - ${WRKSRC}/config >${WRKSRC}/config.pkgsrc +# for md5 htpasswd_encryption method +DEPENDS+= ${PYPKGPREFIX}-passlib-[0-9]*:../../security/py-passlib post-install: - ${INSTALL_DATA} ${WRKSRC}/config.pkgsrc \ - ${DESTDIR}${PREFIX}/${EGDIR}/config + ${INSTALL_DATA} ${WRKSRC}/config ${DESTDIR}${PREFIX}/${EGDIR}/config .include "../../lang/python/distutils.mk" .include "../../mk/bsd.pkg.mk" diff --git a/net/Radicale/PLIST b/net/Radicale/PLIST index 1f5863163fa..0057802cd6b 100644 --- a/net/Radicale/PLIST +++ b/net/Radicale/PLIST @@ -1,6 +1,10 @@ -@comment $NetBSD: PLIST,v 1.5 2015/01/11 21:17:43 wiz Exp $ +@comment $NetBSD: PLIST,v 1.6 2015/09/25 16:49:32 prlw1 Exp $ bin/radicale -${PYSITELIB}/${EGG_FILE} +${PYSITELIB}/${EGG_FILE}/PKG-INFO +${PYSITELIB}/${EGG_FILE}/SOURCES.txt +${PYSITELIB}/${EGG_FILE}/dependency_links.txt +${PYSITELIB}/${EGG_FILE}/pbr.json +${PYSITELIB}/${EGG_FILE}/top_level.txt ${PYSITELIB}/radicale/__init__.py ${PYSITELIB}/radicale/__init__.pyc ${PYSITELIB}/radicale/__init__.pyo diff --git a/net/Radicale/distinfo b/net/Radicale/distinfo index e684202e4b1..5b12f2bf527 100644 --- a/net/Radicale/distinfo +++ b/net/Radicale/distinfo @@ -1,5 +1,5 @@ -$NetBSD: distinfo,v 1.6 2015/01/16 11:28:08 wiz Exp $ +$NetBSD: distinfo,v 1.7 2015/09/25 16:49:32 prlw1 Exp $ -SHA1 (Radicale-0.10.tar.gz) = 4d17e2e8ac3c2fcdc934bc075c57b7078af63db5 -RMD160 (Radicale-0.10.tar.gz) = fdde81a4193aded435f6ec44a00293ca89b9e150 -Size (Radicale-0.10.tar.gz) = 43051 bytes +SHA1 (Radicale-1.0.1.tar.gz) = 79de8838862110e62c7f557a499a77cf04bfc3fa +RMD160 (Radicale-1.0.1.tar.gz) = cb195840abf3de06219c5290fa031ff74b57a2af +Size (Radicale-1.0.1.tar.gz) = 45658 bytes diff --git a/net/Radicale/files/radicale.sh b/net/Radicale/files/radicale.sh new file mode 100644 index 00000000000..429876aaeaf --- /dev/null +++ b/net/Radicale/files/radicale.sh @@ -0,0 +1,20 @@ +#!@RCD_SCRIPTS_SHELL@ +# +# $NetBSD: radicale.sh,v 1.1 2015/09/25 16:49:32 prlw1 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" |