From ab710068a62363260d49886d0c10024927e6e970 Mon Sep 17 00:00:00 2001 From: Amin Ben Ramdhane Date: Mon, 18 May 2020 12:36:02 +0100 Subject: [PATCH] change package name: opkgd -> swmodd --- opkgd/Makefile | 44 ------------------- swmodd/Makefile | 44 +++++++++++++++++++ {opkgd => swmodd}/files/map_du | 0 .../opkgd.init => swmodd/files/swmodd.init | 2 +- 4 files changed, 45 insertions(+), 45 deletions(-) delete mode 100755 opkgd/Makefile create mode 100755 swmodd/Makefile rename {opkgd => swmodd}/files/map_du (100%) rename opkgd/files/opkgd.init => swmodd/files/swmodd.init (90%) diff --git a/opkgd/Makefile b/opkgd/Makefile deleted file mode 100755 index 7b6592b13..000000000 --- a/opkgd/Makefile +++ /dev/null @@ -1,44 +0,0 @@ -# -# Copyright (C) 2019 IOPSYS -# -# - -include $(TOPDIR)/rules.mk - -PKG_NAME:=opkgd -PKG_VERSION:=1.0.1 - -PKG_SOURCE_PROTO:=git -PKG_SOURCE_VERSION:=c5ead73a9c667ceaaba32826d27be53fdddaad24 -PKG_SOURCE_URL:=https://dev.iopsys.eu/iopsys/opkgd.git -PKG_SOURCE:=$(PKG_NAME)-$(PKG_SOURCE_VERSION).tar.gz - -PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) - -include $(INCLUDE_DIR)/package.mk - -define Package/opkgd - SECTION:=utils - CATEGORY:=Utilities - TITLE:=OPKG ubus backend - DEPENDS:=+libuci +libubox +ubus +libuuid -endef - -define Package/opkgd/description - Ubus based backend for OPKG which can be used by other applications running on top of it. -endef - -TARGET_CFLAGS += \ - -I$(STAGING_DIR)/usr/include \ - -D_GNU_SOURCE - -define Package/opkgd/install - $(INSTALL_DIR) $(1)/etc/init.d - $(INSTALL_BIN) ./files/opkgd.init $(1)/etc/init.d/opkgd - $(INSTALL_DIR) $(1)/etc/opkg - $(INSTALL_CONF) ./files/map_du $(1)/etc/opkg/map_du - $(INSTALL_DIR) $(1)/usr/sbin - $(INSTALL_BIN) $(PKG_BUILD_DIR)/opkgd $(1)/usr/sbin/opkgd -endef - -$(eval $(call BuildPackage,opkgd)) diff --git a/swmodd/Makefile b/swmodd/Makefile new file mode 100755 index 000000000..35d1c5eef --- /dev/null +++ b/swmodd/Makefile @@ -0,0 +1,44 @@ +# +# Copyright (C) 2020 IOPSYS +# +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=swmodd +PKG_VERSION:=1.0.1 + +PKG_SOURCE_PROTO:=git +PKG_SOURCE_VERSION:=ea25f28354fda5a809e27932755c5686711745e9 +PKG_SOURCE_URL:=https://dev.iopsys.eu/iopsys/swmodd.git +PKG_SOURCE:=$(PKG_NAME)-$(PKG_SOURCE_VERSION).tar.gz + +PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) + +include $(INCLUDE_DIR)/package.mk + +define Package/swmodd + SECTION:=utils + CATEGORY:=Utilities + TITLE:=SWMOD - software modules ubus backend + DEPENDS:=+libuci +libubox +ubus +libuuid +endef + +define Package/swmodd/description + Ubus based backend for software modules which can be used by other applications running on top of it. +endef + +TARGET_CFLAGS += \ + -I$(STAGING_DIR)/usr/include \ + -D_GNU_SOURCE + +define Package/swmodd/install + $(INSTALL_DIR) $(1)/etc/init.d + $(INSTALL_BIN) ./files/swmodd.init $(1)/etc/init.d/swmodd + $(INSTALL_DIR) $(1)/etc/swmod + $(INSTALL_CONF) ./files/map_du $(1)/etc/swmod/map_du + $(INSTALL_DIR) $(1)/usr/sbin + $(INSTALL_BIN) $(PKG_BUILD_DIR)/swmodd $(1)/usr/sbin/swmodd +endef + +$(eval $(call BuildPackage,swmodd)) diff --git a/opkgd/files/map_du b/swmodd/files/map_du similarity index 100% rename from opkgd/files/map_du rename to swmodd/files/map_du diff --git a/opkgd/files/opkgd.init b/swmodd/files/swmodd.init similarity index 90% rename from opkgd/files/opkgd.init rename to swmodd/files/swmodd.init index 7abd41aef..3150ecb11 100644 --- a/opkgd/files/opkgd.init +++ b/swmodd/files/swmodd.init @@ -4,7 +4,7 @@ START=94 STOP=10 USE_PROCD=1 -PROG=/usr/sbin/opkgd +PROG=/usr/sbin/swmodd start_service() { procd_open_instance