2022-01-21 20:30:46 +08:00
|
|
|
#
|
|
|
|
# Copyright (C) 2015-2016 OpenWrt.org
|
|
|
|
# Copyright (C) 2020 jjm2473@gmail.com
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v3.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_ARCH_quickstart:=$(ARCH)
|
|
|
|
|
|
|
|
PKG_NAME:=quickstart
|
2022-07-14 20:25:14 +08:00
|
|
|
PKG_VERSION:=0.5.3
|
2022-06-21 08:54:38 +08:00
|
|
|
PKG_RELEASE:=1
|
2022-01-21 20:30:46 +08:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-binary-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=https://fw.koolcenter.com/binary/quickstart/
|
2022-07-14 20:25:14 +08:00
|
|
|
PKG_HASH:=bcae824ad8b3bd03719ff93197d9b37b2d4222b7ce3bb7763aa48c7ed6397b35
|
2022-01-21 20:30:46 +08:00
|
|
|
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-binary-$(PKG_VERSION)
|
|
|
|
|
|
|
|
PKG_BUILD_PARALLEL:=1
|
|
|
|
PKG_USE_MIPS16:=0
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/$(PKG_NAME)
|
|
|
|
SECTION:=net
|
2022-01-23 09:04:00 +08:00
|
|
|
CATEGORY:=Network
|
2022-01-21 20:30:46 +08:00
|
|
|
SUBMENU:=Web Servers/Proxies
|
|
|
|
TITLE:=Quickstart, the quick start.
|
2022-06-30 20:22:16 +08:00
|
|
|
DEPENDS:=@(x86_64||aarch64) +shadow-utils +shadow-useradd +mount-utils +lsblk +e2fsprogs +parted +smartmontools +smartd +mdadm
|
2022-01-21 20:30:46 +08:00
|
|
|
URL:=https://easepi.linkease.com/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/$(PKG_NAME)/description
|
|
|
|
Quickstart is a dashboard & user guide
|
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
define Package/$(PKG_NAME)/postinst
|
|
|
|
#!/bin/sh
|
|
|
|
if [ -z "$${IPKG_INSTROOT}" ]; then
|
|
|
|
[ -f /etc/uci-defaults/quickstart ] && /etc/uci-defaults/quickstart && rm -f /etc/uci-defaults/quickstart
|
|
|
|
fi
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Configure
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/$(PKG_NAME)/install
|
2022-07-07 23:45:13 +08:00
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin $(1)/etc/init.d $(1)/etc/uci-defaults $(1)/etc/hotplug.d/block $(1)/etc/config
|
2022-01-21 20:30:46 +08:00
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/quickstart.$(PKG_ARCH_quickstart) $(1)/usr/sbin/quickstart
|
|
|
|
$(INSTALL_BIN) ./files/quickstart.init $(1)/etc/init.d/quickstart
|
|
|
|
$(INSTALL_BIN) ./files/quickstart.uci-default $(1)/etc/uci-defaults/quickstart
|
2022-07-07 23:45:13 +08:00
|
|
|
$(INSTALL_BIN) ./files/quickstart.hotplug $(1)/etc/hotplug.d/block/11-quickstart
|
|
|
|
$(INSTALL_BIN) ./files/quickstart.config $(1)/etc/config/quickstart
|
2022-01-21 20:30:46 +08:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,$(PKG_NAME)))
|