summaryrefslogtreecommitdiffhomepage
path: root/libs/rpcd-mod-rad2-enc/Makefile
blob: 121e3a274feb5b411083d2e2f2b50a77547806a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#
# 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
killall -HUP rpcd 2>/dev/null
exit 0
endef

$(eval $(call BuildPackage,rpcd-mod-rad2-enc))