mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-07-28 03:01:54 +08:00
40 lines
1001 B
Makefile
40 lines
1001 B
Makefile
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=sysuh3c
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_SOURCE_PROTO:=git
|
|
PKG_SOURCE_URL:=https://github.com/haswelliris/h3c.git
|
|
PKG_SOURCE_DATE:=2019-03-01
|
|
PKG_SOURCE_VERSION:=8a3e0b5a9a5d989e7d8b2105d09a394c3663e016
|
|
PKG_MIRROR_HASH:=skip
|
|
|
|
PKG_LICENSE:=GPL-3.0
|
|
PKG_LICENSE_FILES:=LICENSE
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/sysuh3c
|
|
SECTION:=net
|
|
CATEGORY:=Network
|
|
SUBMENU:=Campus Network
|
|
TITLE:=H3C client for Sun Yat-sen University
|
|
endef
|
|
|
|
define Package/sysuh3c/conffiles
|
|
/etc/config/sysuh3c
|
|
endef
|
|
|
|
define Package/sysuh3c/install
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/h3c $(1)/usr/sbin/sysuh3c
|
|
$(INSTALL_DIR) $(1)/etc/config
|
|
$(INSTALL_CONF) ./files/sysuh3c.config $(1)/etc/config/sysuh3c
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
|
$(INSTALL_BIN) ./files/sysuh3c.init $(1)/etc/init.d/sysuh3c
|
|
$(INSTALL_DIR) $(1)/etc/uci-defaults
|
|
$(INSTALL_BIN) ./files/sysuh3c.uci $(1)/etc/uci-defaults/99-sysuh3c-migrate
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,sysuh3c))
|