Browse Source

Merge pull request #9099 from CGretski/feature_ostiary

ostiary: Initial package creation
lilik-openwrt-22.03
Rosen Penev 5 years ago
committed by GitHub
parent
commit
205df2eb36
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 66 additions and 0 deletions
  1. +47
    -0
      net/ostiary/Makefile
  2. +19
    -0
      net/ostiary/files/ostiaryd.init

+ 47
- 0
net/ostiary/Makefile View File

@ -0,0 +1,47 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=ostiary
PKG_VERSION:=4.0
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://ingles.homeunix.net/software/ost/latest/
PKG_HASH:=1b6a0a8a17fd3aa0f6511cdda81558d54f11023a0c953201ddaaef35f56a82c4
PKG_MAINTAINER:=Chris Geraghty <cgretski@hotmail.com>
PKG_LICENSE:=GPL-2.0-only
PKG_LICENSE_FILES:=COPYING
PKG_BUILD_PARALLEL:=1
include $(INCLUDE_DIR)/package.mk
define Package/ostiary
SECTION:=base
CATEGORY:=Network
TITLE:=Secure remote execution utility
URL:=http://ingles.homeunix.net/software/ost/index.html
endef
define Package/ostiary/description
Replay-resistent predefined remote-command trigger
endef
define Package/ostiary/conffiles
/etc/ostiary.cfg
endef
MAKE_FLAGS += all
define Package/ostiary/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/ostiaryd $(1)/usr/bin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/ostclient $(1)/usr/bin/
$(INSTALL_DIR) $(1)/etc
$(INSTALL_CONF) $(PKG_BUILD_DIR)/tests/ostiary.cfg $(1)/etc/ostiary.cfg
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_BIN) ./files/ostiaryd.init $(1)/etc/init.d/ostiary
endef
$(eval $(call BuildPackage,ostiary))

+ 19
- 0
net/ostiary/files/ostiaryd.init View File

@ -0,0 +1,19 @@
#!/bin/sh /etc/rc.common
START=99
STOP=85
USE_PROCD=1
start_service()
{
procd_open_instance
procd_set_param command /usr/bin/ostiaryd -c /etc/ostiary.cfg
procd_close_instance
}
reload_service() {
procd_send_signal ostiaryd
}

Loading…
Cancel
Save