89ab25a9e2
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
49 lines
1.5 KiB
Makefile
49 lines
1.5 KiB
Makefile
# $NetBSD: Makefile,v 1.15 2015/09/25 16:49:32 prlw1 Exp $
|
|
|
|
DISTNAME= Radicale-1.0.1
|
|
CATEGORIES= net time www
|
|
MASTER_SITES= http://pypi.python.org/packages/source/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}
|
|
|
|
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"
|