I have been trying to add the run-one package to openwrt... Due to time constraints for now i created a files directory, but I 'd like to just normal download it...
Makefile
include $(TOPDIR)/rules.mk
PKG_NAME:=run-one
PKG_VERSION:=1.17
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).orig.tar.gz
PKG_SOURCE_URL:=https://launchpad.net/ubuntu/+archive/primary/+sourcefiles/run-one/$(PKG_VERSION)-0ubuntu2
PKG_HASH:=b7c9b257b52f29ba0d923a4dfee4edd47332ebeca0200c65f309eb6ae33f701f
# PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_MAINTAINER:=Maurice Smulders <MSmulders@xxx.xxx>
PKG_LICENSE:=GPLv3
PKG_LICENSE_FILES:=COPYING
include $(INCLUDE_DIR)/package.mk
define Package/run-one
SECTION:=utils
CATEGORY:=Utilities
TITLE:=run-one
URL:=https://git.launchpad.net/ubuntu/+source/run-one
PKGARCH:=all
endef
define Package/run-one/description
This utility will run just one instance at a time of some command and
unique set of arguments (useful for cronjobs, eg).
endef
define Build/Configure
endef
define Build/Compile
endef
define Package/run-one/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/run-one $(1)/usr/bin/run-one
$(INSTALL_BIN) $(PKG_BUILD_DIR)/run-one-constantly $(1)/usr/bin/run-once-constantly
$(INSTALL_BIN) $(PKG_BUILD_DIR)/run-one-until-failure $(1)/usr/bin/run-one-until-failure
$(INSTALL_BIN) $(PKG_BUILD_DIR)/run-one-until-success $(1)/usr/bin/run-one-until-success
$(INSTALL_BIN) $(PKG_BUILD_DIR)/run-this-one $(1)/usr/bin/run-this-one
$(INSTALL_BIN) $(PKG_BUILD_DIR)/keep-one-running $(1)/usr/bin/keep-one-running
endef
$(eval $(call BuildPackage,run-one))
I have not been able to build this target correctly. I am missing something but not sure what...