Makefile 660 B

123456789101112131415161718192021222324252627282930313233343536
  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=gluon-authorized-keys
  3. PKG_VERSION:=2
  4. PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
  5. include $(GLUONDIR)/include/package.mk
  6. define Package/gluon-authorized-keys
  7. SECTION:=gluon
  8. CATEGORY:=Gluon
  9. TITLE:=Fill /etc/dropbear/authorized_keys from site.conf
  10. DEPENDS:=+gluon-core
  11. endef
  12. define Build/Prepare
  13. mkdir -p $(PKG_BUILD_DIR)
  14. endef
  15. define Build/Configure
  16. endef
  17. define Build/Compile
  18. endef
  19. define Package/gluon-authorized-keys/install
  20. $(CP) ./files/* $(1)/
  21. endef
  22. define Package/gluon-authorized-keys/postinst
  23. #!/bin/sh
  24. $(call GluonCheckSite,check_site.lua)
  25. endef
  26. $(eval $(call BuildPackage,gluon-authorized-keys))