aboutsummaryrefslogtreecommitdiff
path: root/myrepo/Makefile
diff options
context:
space:
mode:
authorKarel Kočí <karel.koci@nic.cz>2017-11-06 08:23:58 +0100
committerKarel Kočí <karel.koci@nic.cz>2017-11-06 09:57:23 +0100
commit0bcdf73271be4a4f9ca8c849c426b521365dcf30 (patch)
tree375234b57dff8c845bdd8c5c925c3760f3b83a5e /myrepo/Makefile
parent7e3c1561d5dd5e03926aab60b81c62c8b728cac4 (diff)
downloadturris-myrepo-0bcdf73271be4a4f9ca8c849c426b521365dcf30.tar.gz
turris-myrepo-0bcdf73271be4a4f9ca8c849c426b521365dcf30.tar.bz2
turris-myrepo-0bcdf73271be4a4f9ca8c849c426b521365dcf30.zip
Rename myrepo-cert to just myrepo
Diffstat (limited to 'myrepo/Makefile')
-rw-r--r--myrepo/Makefile35
1 files changed, 35 insertions, 0 deletions
diff --git a/myrepo/Makefile b/myrepo/Makefile
new file mode 100644
index 0000000..ac252cc
--- /dev/null
+++ b/myrepo/Makefile
@@ -0,0 +1,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
+PKG_VERSION:=1
+PKG_MAINTAINER:=Karel Koci
+PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/myrepo
+ TITLE:=myrepo
+endef
+
+define Build/Compile
+ :
+endef
+
+define Package/myrepo/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))