aboutsummaryrefslogtreecommitdiff
path: root/myrepo-cert/Makefile
blob: 9c0cba2c58d7a34c81fe59100f6daa1d3173824b (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
#
## Copyright (C) 2016-2017 CZ.NIC z.s.p.o. (http://www.nic.cz/)
#
## This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
# #
#
include $(TOPDIR)/rules.mk

PKG_NAME:=myrepo-cert
PKG_VERSION:=2
PKG_MAINTAINER:=Karel Koci
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)

include $(INCLUDE_DIR)/package.mk

define Package/myrepo-cert
	TITLE:=myrepo-cert
endef

define Build/Compile
	true
endef

define Package/myrepo-cert/install
	$(INSTALL_DIR) $(1)/etc/opkg/keys
	$(INSTALL_DIR) $(1)/etc/updater/keys
	$(INSTALL_DATA) ./files/key.pub $(1)/etc/opkg/keys/cfb977a0d53c5424
	$(INSTALL_DATA) ./files/key.pub $(1)/etc/updater/keys/myrepo.pub

	$(INSTALL_DIR) $(1)/etc/updater/conf.d
	$(INSTALL_CONF) ./files/updater.lua $(1)/etc/updater/conf.d/myrepo.lua
endef

$(eval $(call BuildPackage,myrepo-cert))