summaryrefslogtreecommitdiff
path: root/personal-enabler/Makefile
blob: 9a6b588fe10640020bde027edd6624d93c6fa5bb (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
#
## Copyright (C) 2020 Karel Kočí
#
## This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
# #
#
include $(TOPDIR)/rules.mk

PKG_NAME:=personal-enabler
PKG_VERSION:=1.0.0
PKG_RELEASE:=2
PKG_MAINTAINER:=Karel Kočí <cynerd@email.cz>
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)

include $(INCLUDE_DIR)/package.mk

define PKG

define Package/personal-enabler-$(1)
  TITLE:=Personal configurator: $(1)
  DEPENDS:=+uci $(2)
endef

define Package/personal-enabler-$(1)/install
	$(INSTALL_DIR) $(1)/etc/uci-defaults
	$(INSTALL_BIN) ./files/$(1).sh $(1)/etc/uci-defaults/60-$(1)
endef

$$(eval $$(call BuildPackage,personal-enabler-$(1)))

endef

Build/Compile:=:

$(eval $(call PKG,common,+updater-ng +user-notify))
$(eval $(call PKG,sentinel,+pkglists +sentinel-proxy))
$(eval $(call PKG,public-ssh,+uci +firewall))