@ -8,97 +8,53 @@ include $(TOPDIR)/rules.mk
PKG_NAME := radicale
PKG_VERSION := 1.1.6
PKG_RELEASE := 2
PKG_MAINTAINER :=
PKG_RELEASE := 3
PKG_SOURCE := Radicale-$( PKG_VERSION) .tar.gz
PKG_SOURCE_URL := https://files.pythonhosted.org/packages/source/R/Radicale
PKG_HASH := c007198ea45ef797344672c681d4c13f8b4aa85c15c41a1156225767a405c92b
PKG_BUILD_DIR := $( BUILD_DIR) /Radicale-$( PKG_VERSION)
PKG_MAINTAINER :=
PKG_LICENSE := GPL-3.0
PKG_LICENSE_FILES := COPYING
PKG_SOURCE_PROTO := git
PKG_SOURCE_URL = https://github.com/Kozea/Radicale
PKG_SOURCE_VERSION := 7568ec39f09a753217fb2d525c5f8db64f4d98f4
PKG_MIRROR_HASH := 73de51e296479f860d4d8cd383a6aa34e8c702d9fca63b0499c7fcc2e794e6df
PKG_SOURCE := $( PKG_NAME) -$( PKG_VERSION) .tar.xz
PKG_SOURCE_SUBDIR = $( PKG_NAME) -$( PKG_VERSION)
i n c l u d e $( INCLUDE_DIR ) / p a c k a g e . m k
i n c l u d e . . / . . / l a n g / p y t h o n / p y t h o n - p a c k a g e . m k
i n c l u d e . . / . . / l a n g / p y t h o n / p y t h o n 3 - p a c k a g e . m k
# no default dependencies
PKG_DEFAULT_DEPENDS :=
d e f i n e P a c k a g e / r a d i c a l e / D e f a u l t
d e f i n e P a c k a g e / r a d i c a l e
SECTION:= net
CATEGORY:= Network
SUBMENU:= Web Servers/Proxies
URL:= http://radicale.org/
TITLE:= Radicale CalDAV/CardDAV server
PKGARCH:= all
URL:= https://radicale.org/
DEPENDS:= \
+python3-light \
+python3-codecs \
+python3-logging \
+python3-openssl \
+python3-urllib \
+python3-xml
USERID:= radicale = 5232:radicale= 5232
e n d e f
d e f i n e P a c k a g e / r a d i c a l e - p y 2
$( call Package/radicale/Default)
TITLE += ( Python 2)
VARIANT:= 2
DEPENDS:= +python-logging +python-openssl +python-xml +python-codecs
e n d e f
d e f i n e P a c k a g e / r a d i c a l e - p y 3
$( call Package/radicale/Default)
TITLE += ( Python 3)
VARIANT:= 3
DEPENDS:= +python3-logging +python3-openssl +python3-xml +python3-codecs +python3-email
e n d e f
# shown in LuCI package description
d e f i n e P a c k a g e / r a d i c a l e - p y 2 / d e s c r i p t i o n
Radicale CalDAV/CardDAV server (Python 2) - Homepage : http ://radicale .org /
e n d e f
d e f i n e P a c k a g e / r a d i c a l e - p y 3 / d e s c r i p t i o n
Radicale CalDAV/CardDAV server (Python 3) - Homepage : http ://radicale .org /
PROVIDES:= radicale-py2 radicale-py3
VARIANT:= python3
e n d e f
# shown in make menuconfig <Help>
d e f i n e P a c k a g e / r a d i c a l e - p y 2 / c o n f i g
help
The Radicale Project is a CalDAV ( calendar) and CardDAV ( contact) server.
It aims to be a light solution, easy to use, easy to install, easy to configure.
As a consequence, it requires few software dependances and is pre-configured to work out-of-the-box.
!!! Will install and use Python $( VARIANT) !!!
.
Version : $( PKG_VERSION)
Homepage: http://radicale.org/
d e f i n e P a c k a g e / r a d i c a l e / d e s c r i p t i o n
The Radicale Project is a CalDAV ( calendar) and CardDAV ( contact) server. It
aims to be a light solution, easy to use, easy to install, easy to configure.
As a consequence, it requires few software dependances and is pre-configured to
work out-of-the-box.
e n d e f
P a c k a g e / r a d i c a l e - p y 3 / config = $( Package/radicale-py2/config)
d e f i n e P a c k a g e / r a d i c a l e - p y 2 / c o n f f i l e s
d e f i n e P a c k a g e / r a d i c a l e / c o n f f i l e s
/ e t c / c o n f i g / r a d i c a l e
/ e t c / r a d i c a l e / u s e r s
/ e t c / r a d i c a l e / r i g h t s
e n d e f
P a c k a g e / r a d i c a l e - p y 3 / conffiles = $( Package/radicale-py2/conffiles)
d e f i n e B u i l d / C o n f i g u r e
# nothing to configure
e n d e f
d e f i n e B u i l d / C o m p i l e
# nothing to compile
e n d e f
d e f i n e P a c k a g e / r a d i c a l e - p y 2 / p r e i n s t
#!/bin/sh
[ -n " $$ {IPKG_INSTROOT} " ] && exit 0 # if run within buildroot exit
# stop service if PKG_UPGRADE
[ " $$ {PKG_UPGRADE} " = "1" ] && /etc/init.d/radicale stop >/dev/null 2>& 1
exit 0 # suppress errors from stop command
e n d e f
d e f i n e P a c k a g e / r a d i c a l e - p y 3 / p r e i n s t
$( call Package /radicale -py 2/preinst )
e n d e f
d e f i n e P a c k a g e / r a d i c a l e / i n s t _ a l l
d e f i n e P y 3 P a c k a g e / r a d i c a l e / i n s t a l l
$( INSTALL_DIR) $( 1) /etc/init.d
$( INSTALL_BIN) ./files/radicale.init $( 1) /etc/init.d/radicale
@ -108,9 +64,6 @@ define Package/radicale/inst_all
$( INSTALL_DIR) $( 1) /etc/config
$( INSTALL_CONF) ./files/radicale.config $( 1) /etc/config/radicale
$( INSTALL_DIR) $( 1) /lib/upgrade/keep.d
$( INSTALL_DATA) ./files/radicale.upgrade $( 1) /lib/upgrade/keep.d/radicale
$( INSTALL_DIR) $( 1) /etc/radicale/ssl
$( INSTALL_DATA) ./files/config.template $( 1) /etc/radicale/config.template
$( INSTALL_DATA) ./files/logging.template $( 1) /etc/radicale/logging.template
@ -118,29 +71,9 @@ define Package/radicale/inst_all
$( INSTALL_DATA) ./files/radicale.rights $( 1) /etc/radicale/rights
$( INSTALL_DIR) $( 1) /usr/bin
$( INSTALL_BIN) $( PKG_BUILD_DIR) /bin/radicale $( 1) /usr/bin/
e n d e f
d e f i n e P a c k a g e / r a d i c a l e - p y 2 / i n s t a l l
$( call Package/radicale/inst_all, $( 1) )
$( INSTALL_DIR) $( 1) $( PYTHON_PKG_DIR) /radicale
$( CP) $( PKG_BUILD_DIR) /radicale/* $( 1) $( PYTHON_PKG_DIR) /radicale
e n d e f
d e f i n e P a c k a g e / r a d i c a l e - p y 3 / i n s t a l l
$( call Package/radicale/inst_all, $( 1) )
$( INSTALL_DIR) $( 1) $( PYTHON3_PKG_DIR) /radicale
$( CP) $( PKG_BUILD_DIR) /radicale/* $( 1) $( PYTHON3_PKG_DIR) /radicale
e n d e f
d e f i n e P a c k a g e / r a d i c a l e - p y 2 / p o s t i n s t
#!/bin/sh
# patch /usr/bin/radicale force run using python2
/bin/sed -i 's/python/python2/' $$ { IPKG_INSTROOT} /usr/bin/radicale
e n d e f
d e f i n e P a c k a g e / r a d i c a l e - p y 3 / p o s t i n s t
#!/bin/sh
# patch /usr/bin/radicale force run using python3
/bin/sed -i 's/python/python3/' $$ { IPKG_INSTROOT} /usr/bin/radicale
$( INSTALL_BIN) $( PKG_INSTALL_DIR) /usr/bin/radicale $( 1) /usr/bin/
e n d e f
$( eval $ ( call BuildPackage ,radicale -py 2) )
$( eval $ ( call BuildPackage ,radicale -py 3) )
$( eval $ ( call Py 3Package ,radicale ) )
$( eval $ ( call BuildPackage ,radicale ) )
$( eval $ ( call BuildPackage ,radicale -src ) )