blob: 2d5eb84d94e7871d3a5877d86aaa3611b4d8f211 (
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
|
#
# Copyright (C) 2022 Jo-Philipp Wich <jo@mein.io>
#
# This is free software, licensed under the Apache License, Version 2.0 .
#
include $(TOPDIR)/rules.mk
PKG_NAME:=luci-base-ucode
LUCI_TYPE:=mod
LUCI_BASENAME:=base-ucode
LUCI_TITLE:=LuCI core ucode runtime
LUCI_DEPENDS:=\
+luci-base \
+ucode \
+ucode-mod-fs \
+ucode-mod-uci \
+ucode-mod-ubus \
+ucode-mod-math \
+ucode-mod-lua \
+ucode-mod-html \
+rpcd-mod-ucode \
+liblucihttp-ucode
PKG_LICENSE:=MIT
define Package/luci-base-ucode/postinst
#!/bin/sh
if [ -z "$${PKG_INSTROOT}" ] && [ -f /etc/config/uhttpd ]; then
if ! uci -q get uhttpd.main.ucode_prefix | grep -sq /cgi-bin/luci-ucode; then
uci add_list uhttpd.main.ucode_prefix='/cgi-bin/luci-ucode=/usr/share/ucode/luci/uhttpd.uc'
uci commit uhttpd
service uhttpd reload
fi
fi
exit 0
endef
include ../../luci.mk
# call BuildPackage - OpenWrt buildroot signature
|