mirror of
https://github.com/MiyooCFW/buildroot.git
synced 2025-09-27 22:24:19 +03:00
Merge from bittboy/buildroot@db180c0
This commit is contained in:
8
package/ser2net/Config.in
Normal file
8
package/ser2net/Config.in
Normal file
@@ -0,0 +1,8 @@
|
||||
config BR2_PACKAGE_SER2NET
|
||||
bool "ser2net"
|
||||
depends on BR2_USE_MMU # fork()
|
||||
help
|
||||
Ser2net provides a way for a user to connect from a network
|
||||
connection to a serial port.
|
||||
|
||||
http://ser2net.sourceforge.net
|
||||
43
package/ser2net/S50ser2net
Normal file
43
package/ser2net/S50ser2net
Normal file
@@ -0,0 +1,43 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# Startup script for ser2net
|
||||
#
|
||||
|
||||
start() {
|
||||
printf "Starting ser2net: "
|
||||
if [ ! -f /etc/ser2net.conf ] ; then
|
||||
echo "no configuration file"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
start-stop-daemon -S -q --exec /usr/sbin/ser2net -- -P /var/run/ser2net.pid
|
||||
[ $? = 0 ] && echo "OK" || echo "FAIL"
|
||||
}
|
||||
|
||||
stop() {
|
||||
printf "Shutting down ser2net: "
|
||||
start-stop-daemon -K -q -p /var/run/ser2net.pid
|
||||
[ $? = 0 ] && echo "OK" || echo "FAIL"
|
||||
}
|
||||
|
||||
restart() {
|
||||
stop
|
||||
start
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
start
|
||||
;;
|
||||
stop)
|
||||
stop
|
||||
;;
|
||||
restart)
|
||||
restart
|
||||
;;
|
||||
*)
|
||||
echo "Usage: ser2net {start|stop|restart}"
|
||||
exit 1
|
||||
esac
|
||||
|
||||
exit $?
|
||||
6
package/ser2net/ser2net.hash
Normal file
6
package/ser2net/ser2net.hash
Normal file
@@ -0,0 +1,6 @@
|
||||
# From https://sourceforge.net/projects/ser2net/files/ser2net/
|
||||
md5 e10e7c8c97e5bade5e85ce6e89bdf1f4 ser2net-3.5.tar.gz
|
||||
sha1 0ad0affd37ef544c23f42a3f46d09e969d0d9116 ser2net-3.5.tar.gz
|
||||
# Locally computed:
|
||||
sha256 ba9e1d60a89fd7ed075553b4a2074352902203f7fbd9b65b15048c05f0e3f3be ser2net-3.5.tar.gz
|
||||
sha256 501f3108e6c03e5a0a5585ebaaa369171aead5319cd0a7a4dc1f66211c1f09f1 COPYING
|
||||
23
package/ser2net/ser2net.mk
Normal file
23
package/ser2net/ser2net.mk
Normal file
@@ -0,0 +1,23 @@
|
||||
################################################################################
|
||||
#
|
||||
# ser2net
|
||||
#
|
||||
################################################################################
|
||||
|
||||
SER2NET_VERSION = 3.5
|
||||
SER2NET_SITE = http://downloads.sourceforge.net/project/ser2net/ser2net
|
||||
SER2NET_LICENSE = GPL-2.0+
|
||||
SER2NET_LICENSE_FILES = COPYING
|
||||
|
||||
ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y)
|
||||
SER2NET_CONF_OPTS += --with-pthreads
|
||||
else
|
||||
SER2NET_CONF_OPTS += --without-pthreads
|
||||
endif
|
||||
|
||||
define SER2NET_INSTALL_INIT_SYSV
|
||||
$(INSTALL) -D -m 755 package/ser2net/S50ser2net \
|
||||
$(TARGET_DIR)/etc/init.d/S50ser2net
|
||||
endef
|
||||
|
||||
$(eval $(autotools-package))
|
||||
Reference in New Issue
Block a user