Initial Commit
- initial default booting image
This commit is contained in:
22
package/ssdp-responder/Config.in
Normal file
22
package/ssdp-responder/Config.in
Normal file
@@ -0,0 +1,22 @@
|
||||
config BR2_PACKAGE_SSDP_RESPONDER
|
||||
bool "ssdp-responder"
|
||||
depends on BR2_USE_MMU
|
||||
help
|
||||
Simple Service Discovery Protocol daemon (SSDP) for networked
|
||||
Linux and UNIX devices. Useful in any setup, big or small, but
|
||||
targeted more at embedded systems that need to announce
|
||||
themselves to Windows systems.
|
||||
|
||||
The project consists of ssdpd and ssdp-scan. The former is a
|
||||
stand-alone UNIX daemon, it has no dependencies but a standard
|
||||
C library. It comes with built-in web server for serving the
|
||||
UPnP XML description on port 1901, the XML is used by Windows
|
||||
to present the icon, by default an InternetGatewayDevice is
|
||||
announced.
|
||||
|
||||
ssdp-scan is a tool, similar to mdns-scan, to find other SSDP
|
||||
capable hosts on the network. Take care to only use it for
|
||||
debugging, or quicker device discovery operations, since it
|
||||
scans the network quite aggressively.
|
||||
|
||||
https://github.com/troglobit/ssdp-responder/
|
||||
49
package/ssdp-responder/S50ssdpd
Normal file
49
package/ssdp-responder/S50ssdpd
Normal file
@@ -0,0 +1,49 @@
|
||||
#!/bin/sh
|
||||
|
||||
DAEMON=ssdpd
|
||||
PIDFILE=/var/run/$DAEMON.pid
|
||||
CFGFILE=/etc/default/$DAEMON
|
||||
|
||||
DAEMON_ARGS=""
|
||||
|
||||
# Read configuration variable file if it is present
|
||||
# shellcheck source=/dev/null
|
||||
[ -r "$CFGFILE" ] && . "$CFGFILE"
|
||||
|
||||
start() {
|
||||
printf 'Starting %s: ' "$DAEMON"
|
||||
# shellcheck disable=SC2086 # we need the word splitting
|
||||
if start-stop-daemon -S -q -p "$PIDFILE" -x "$DAEMON" -- $DAEMON_ARGS; then
|
||||
echo "OK"
|
||||
else
|
||||
echo "FAIL"
|
||||
fi
|
||||
}
|
||||
|
||||
stop() {
|
||||
printf 'Stopping %s: ' "$DAEMON"
|
||||
if start-stop-daemon -K -q -p "$PIDFILE" -x "$DAEMON"; then
|
||||
echo "OK"
|
||||
else
|
||||
echo "FAIL"
|
||||
fi
|
||||
}
|
||||
|
||||
restart() {
|
||||
stop
|
||||
start
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
start|stop|restart)
|
||||
"$1"
|
||||
;;
|
||||
reload)
|
||||
restart
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $0 {start|stop|restart|reload}"
|
||||
exit 1
|
||||
esac
|
||||
|
||||
exit $?
|
||||
3
package/ssdp-responder/ssdp-responder.hash
Normal file
3
package/ssdp-responder/ssdp-responder.hash
Normal file
@@ -0,0 +1,3 @@
|
||||
# Locally calculated
|
||||
sha256 75787cd9c0a88329dd39437eb28a188b54a3a0cab8472968e2713d90076f321f ssdp-responder-2.1.tar.gz
|
||||
sha256 b66025f1e568a8d80264550d7bd7683780ac248f2baa1e85b4da4b15e28d55a7 LICENSE
|
||||
32
package/ssdp-responder/ssdp-responder.mk
Normal file
32
package/ssdp-responder/ssdp-responder.mk
Normal file
@@ -0,0 +1,32 @@
|
||||
################################################################################
|
||||
#
|
||||
# ssdp-responder
|
||||
#
|
||||
################################################################################
|
||||
|
||||
SSDP_RESPONDER_VERSION = 2.1
|
||||
SSDP_RESPONDER_SITE = https://github.com/troglobit/ssdp-responder/releases/download/v$(SSDP_RESPONDER_VERSION)
|
||||
SSDP_RESPONDER_LICENSE = ISC
|
||||
SSDP_RESPONDER_LICENSE_FILES = LICENSE
|
||||
SSDP_RESPONDER_CPE_ID_VENDOR = \
|
||||
simple_service_discovery_protocol_responder_project
|
||||
SSDP_RESPONDER_CPE_ID_PRODUCT = simple_service_discovery_protocol_responder
|
||||
SSDP_RESPONDER_DEPENDENCIES = host-pkgconf
|
||||
|
||||
ifeq ($(BR2_PACKAGE_SYSTEMD),y)
|
||||
SSDP_RESPONDER_DEPENDENCIES += systemd
|
||||
SSDP_RESPONDER_CONF_OPTS += --with-systemd
|
||||
else
|
||||
SSDP_RESPONDER_CONF_OPTS += --without-systemd
|
||||
endif
|
||||
|
||||
define SSDP_RESPONDER_INSTALL_INIT_SYSV
|
||||
$(INSTALL) -D -m 0755 package/ssdp-responder/S50ssdpd \
|
||||
$(TARGET_DIR)/etc/init.d/S50ssdpd
|
||||
endef
|
||||
|
||||
define SSDP_RESPONDER_INSTALL_INIT_SYSTEMD
|
||||
mkdir -p $(TARGET_DIR)/var/lib/misc/
|
||||
endef
|
||||
|
||||
$(eval $(autotools-package))
|
||||
Reference in New Issue
Block a user