mentohust: move config/init.d to mentohust package

Signed-off-by: sbwml <admin@cooluc.com>
This commit is contained in:
sbwml 2024-08-10 05:01:44 +08:00
parent bcf8805710
commit 20c1a31c01
3 changed files with 6 additions and 2 deletions

View File

@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=mentohust PKG_NAME:=mentohust
PKG_VERSION:=0.3.1 PKG_VERSION:=0.3.1
PKG_RELEASE:=1 PKG_RELEASE:=2
PKG_FIXUP:=autoreconf PKG_FIXUP:=autoreconf
@ -37,6 +37,8 @@ define Build/Prepare
$(SED) 's/dhclient/udhcpc -i/g' $(PKG_BUILD_DIR)/myconfig.c $(SED) 's/dhclient/udhcpc -i/g' $(PKG_BUILD_DIR)/myconfig.c
endef endef
TARGET_CFLAGS += -Wno-incompatible-pointer-types
define Build/Compile define Build/Compile
#$(Build/Compile/$(PKG_NAME)) #$(Build/Compile/$(PKG_NAME))
$(MAKE) -C $(PKG_BUILD_DIR)/ \ $(MAKE) -C $(PKG_BUILD_DIR)/ \
@ -47,7 +49,9 @@ define Build/Compile
endef endef
define Package/mentohust/install define Package/mentohust/install
$(INSTALL_DIR) $(1)/usr/sbin $(INSTALL_DIR) $(1)/usr/sbin $(1)/etc/config $(1)/etc/init.d
$(INSTALL_BIN) ./files/mentohust.init $(1)/etc/init.d/mentohust
$(INSTALL_CONF) ./files/mentohust.config $(1)/etc/config/mentohust
$(INSTALL_BIN) $(PKG_BUILD_DIR)/mentohust $(1)/usr/sbin/ $(INSTALL_BIN) $(PKG_BUILD_DIR)/mentohust $(1)/usr/sbin/
endef endef