mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-11-13 20:08:05 +08:00
49 lines
1.4 KiB
Makefile
49 lines
1.4 KiB
Makefile
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=luci-app-modem-manager-next
|
|
PKG_VERSION:=1.0.0
|
|
PKG_RELEASE:=2
|
|
|
|
PKG_LICENSE:=MIT
|
|
PKG_MAINTAINER:=Dante <dante@seckv.com>
|
|
|
|
LUCI_TITLE:=LuCI support for Cellular Modem Management (Next-Gen)
|
|
LUCI_DESCRIPTION:=Provides a modern LuCI Web management interface for 4G/5G cellular modems.
|
|
PKG_DESCRIPTION:=Provides a modern LuCI Web management interface for 4G/5G cellular modems.
|
|
LUCI_DEPENDS:=+ucode +ucode-mod-fs +ucode-mod-ubus +ucode-mod-uci \
|
|
+kmod-usb-net +kmod-usb-serial +kmod-usb-serial-option \
|
|
+kmod-usb-net-cdc-ncm +kmod-usb-net-cdc-ether +sms-tool
|
|
LUCI_PKGARCH:=all
|
|
|
|
include $(TOPDIR)/feeds/luci/luci.mk
|
|
|
|
define Package/$(PKG_NAME)
|
|
$(call Package/luci/webtemplate)
|
|
TITLE:=$(LUCI_TITLE)
|
|
DEPENDS:=$(LUCI_DEPENDS)
|
|
PROVIDES:=luci-app-modem-manager
|
|
endef
|
|
|
|
define Package/$(PKG_NAME)/description
|
|
Provides a modern LuCI Web management interface for 4G/5G cellular modems.
|
|
endef
|
|
|
|
define Package/$(PKG_NAME)/conffiles
|
|
/etc/config/modem-manager
|
|
endef
|
|
|
|
define Package/$(PKG_NAME)/postinst
|
|
#!/bin/sh
|
|
[ -n "$${IPKG_INSTROOT}" ] || {
|
|
chmod 0755 /etc/init.d/modem-manager 2>/dev/null || true
|
|
chmod 0755 /etc/hotplug.d/usb/20-modem-hotplug 2>/dev/null || true
|
|
chmod 0755 /usr/libexec/modem-at-executor /usr/libexec/modem-detect /usr/libexec/modem-collector 2>/dev/null || true
|
|
/etc/init.d/rpcd restart
|
|
/etc/init.d/modem-manager enable
|
|
/etc/init.d/modem-manager restart
|
|
}
|
|
exit 0
|
|
endef
|
|
|
|
# call BuildPackage - OpenWrt buildroot signature
|