From 18c54a7a09959277b31c7671d87f94162da116af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Fri, 24 Aug 2018 18:15:42 +0200 Subject: Add package personal-pkgs-repo --- personal-pkgs-repo/Makefile | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 personal-pkgs-repo/Makefile (limited to 'personal-pkgs-repo/Makefile') diff --git a/personal-pkgs-repo/Makefile b/personal-pkgs-repo/Makefile new file mode 100644 index 0000000..f4f5e18 --- /dev/null +++ b/personal-pkgs-repo/Makefile @@ -0,0 +1,35 @@ +# +## Copyright (C) 2018 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-pkgs-repo +PKG_VERSION:=1 +PKG_MAINTAINER:=Karel Kočí +PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME) + +include $(INCLUDE_DIR)/package.mk + +define Package/$(PKG_NAME) + TITLE:=Package with repository key +endef + +define Build/Compile + true +endef + +define Package/$(PKG_NAME)/install + $(INSTALL_DIR) $(1)/etc/opkg/keys + $(INSTALL_DIR) $(1)/etc/updater/keys + $(INSTALL_DATA) ./files/key.pub $(1)/etc/opkg/keys/6b76319bf5a9dc2 + $(INSTALL_DATA) ./files/key.pub $(1)/etc/updater/keys/personal-pkgs.pub + + $(INSTALL_DIR) $(1)/etc/updater/conf.d + $(INSTALL_CONF) ./files/updater.lua $(1)/etc/updater/conf.d/personal-pkgs.lua +endef + +$(eval $(call BuildPackage,$(PKG_NAME))) -- cgit v1.2.3