mirror of
https://github.com/openwrt/luci.git
synced 2025-04-11 22:59:38 +00:00
.github
applications
build
collections
contrib
docs
libs
luci-lib-base
luci-lib-chartjs
luci-lib-httpclient
luci-lib-httpprotoutils
luci-lib-ip
luci-lib-ipkg
luci-lib-iptparser
luci-lib-json
luci-lib-jsonc
luci-lib-nixio
luci-lib-px5g
luci-lib-uqr
rpcd-mod-luci
rpcd-mod-rad2-enc
files
Makefile
rpcd-mod-rrdns
modules
protocols
themes
.gitignore
CONTRIBUTING.md
LICENSE
NOTICE
README.md
jsdoc.conf.json
luci.mk
package.json
Usage of killall is replaced with init script. This is cleaner solution as it does not consider some implementation detail but rather passes that on to init script implementation. IPKG_INSTROOT was added to prevent execution when not running in current root. It is invalid to request reload if install-root is not current root. In this case it can be considered harmless but it is invalid nonetheless. Last change is removal of `exit 0`. This caused skip of default postinst. Execution of default postinst does no harm and is more standard considering possible future expansion of it. Signed-off-by: Karel Kočí <karel.koci@nic.cz>
48 lines
919 B
Makefile
48 lines
919 B
Makefile
#
|
|
# Copyright (C) 2016-2017 Jo-Philipp Wich <jo@mein.io>
|
|
#
|
|
# Licensed under the Apache License, Version 2.0.
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=rpcd-mod-rad2-enc
|
|
PKG_VERSION:=20190109
|
|
|
|
PKG_LICENSE:=Apache-2.0
|
|
|
|
PKG_BUILD_PARALLEL:=1
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Build/Prepare
|
|
true
|
|
endef
|
|
|
|
define Build/Compile
|
|
true
|
|
endef
|
|
|
|
define Package/rpcd-mod-rad2-enc
|
|
SECTION:=libs
|
|
CATEGORY:=Libraries
|
|
TITLE:=Radicale 2.x Hashing RPC module
|
|
DEPENDS:=+rpcd +python3 +python3-passlib
|
|
endef
|
|
|
|
define Package/rpcd-mod-rad2-enc/description
|
|
Python3 password hashing module for use Radicale 2.x LuCI app
|
|
endef
|
|
|
|
define Package/rpcd-mod-rad2-enc/install
|
|
$(INSTALL_DIR) $(1)/usr/libexec/rpcd
|
|
$(INSTALL_BIN) ./files/rad2-enc $(1)/usr/libexec/rpcd
|
|
endef
|
|
|
|
define Package/rpcd-mod-rad2-enc/postinst
|
|
#!/bin/sh
|
|
[ -n "$$IPKG_INSTROOT" ] || /etc/init.d/rpcd reload
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,rpcd-mod-rad2-enc))
|