mirror of
https://github.com/novatiq/packages.git
synced 2026-04-29 23:18:42 +01:00
dcwapd: Update init script to use procd
consolidate shell scripts into init script remove "litter" from uci file update default UCI values Signed-off-by: Carey Sonsino <careys@edgewaterwireless.com> Signed-off-by: Carey Sonsino <csonsino@gmail.com>
This commit is contained in:
+2
-9
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=dcwapd
|
||||
PKG_VERSION:=1.1.0
|
||||
PKG_RELEASE:=1
|
||||
PKG_RELEASE:=2
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=https://codeload.github.com/ewsi/$(PKG_NAME)/tar.gz/v$(PKG_VERSION)?
|
||||
@@ -58,19 +58,12 @@ define Package/dcwapd/install
|
||||
# Note: $(INSTALL_BIN) does not keep symlinks, so use $(CP)
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
|
||||
|
||||
# Utility files
|
||||
$(INSTALL_DIR) $(1)/etc/$(PKG_NAME)
|
||||
$(INSTALL_DATA) ./files/*.inc $(1)/etc/$(PKG_NAME)/
|
||||
$(INSTALL_BIN) ./files/*.sh $(1)/etc/$(PKG_NAME)/
|
||||
# UCI config file copy - this is here for convenience and reference only
|
||||
$(INSTALL_DATA) ./files/dcwapd.uci $(1)/etc/$(PKG_NAME)/
|
||||
|
||||
# UCI config file
|
||||
$(INSTALL_DIR) $(1)/etc/config
|
||||
$(INSTALL_DATA) ./files/dcwapd.uci $(1)/etc/config/dcwapd
|
||||
|
||||
# Init script
|
||||
$(INSTALL_DIR) $(1)/etc/init.d
|
||||
$(INSTALL_BIN) ./files/dcwapd.init.d $(1)/etc/init.d/dcwapd
|
||||
$(INSTALL_BIN) ./files/dcwapd.init $(1)/etc/init.d/dcwapd
|
||||
endef
|
||||
$(eval $(call BuildPackage,dcwapd))
|
||||
|
||||
Reference in New Issue
Block a user