summaryrefslogtreecommitdiffstats
path: root/net/bsbf-openwrt-resources/Makefile
blob: 9cece8d8d6e4e1eab8a65a5bde280a0bf011490d (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
49
50
51
52
# SPDX-License-Identifier: AGPL-3.0-or-later
# Copyright (C) 2025-2026 Chester A. Unal <chester.a.unal@arinc9.com>

include $(TOPDIR)/rules.mk

PKG_NAME:=bsbf-openwrt-resources
PKG_VERSION:=3

PKG_LICENSE:=AGPL-3.0-or-later
PKG_MAINTAINER:=Chester A. Unal <chester.a.unal@arinc9.com>

include $(INCLUDE_DIR)/package.mk

define Package/bsbf-autoconf-cellular
  SECTION:=net
  CATEGORY:=Network
  TITLE:=bsbf-autoconf-cellular
  URL:=https://github.com/bondingshouldbefree/
endef

define Package/bsbf-autoconf-cellular/description
  bsbf-autoconf-cellular creates a network with MBIM or QMI protocol using a
  newly created network interface. It uses metric values from 1 to 8.
endef

define Package/bsbf-autoconf-dhcp
  SECTION:=net
  CATEGORY:=Network
  TITLE:=bsbf-autoconf-dhcp
  URL:=https://github.com/bondingshouldbefree/
endef

define Package/bsbf-autoconf-dhcp/description
  bsbf-autoconf-dhcp creates a network with a DHCP client using a newly created
  network interface. It uses metric values from 1 to 8.
endef

define Build/Compile
endef

define Package/bsbf-autoconf-cellular/install
	$(INSTALL_DIR) $(1)/etc/hotplug.d/net
	$(INSTALL_BIN) ./files/etc/hotplug.d/net/99-bsbf-autoconf-cellular $(1)/etc/hotplug.d/net
endef

define Package/bsbf-autoconf-dhcp/install
	$(INSTALL_DIR) $(1)/etc/hotplug.d/net
	$(INSTALL_BIN) ./files/etc/hotplug.d/net/99-bsbf-autoconf-dhcp $(1)/etc/hotplug.d/net
endef

$(eval $(call BuildPackage,bsbf-autoconf-cellular))
$(eval $(call BuildPackage,bsbf-autoconf-dhcp))