mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
comms/svxlink: Fix missing port files
Looks like I missed adding some files
This commit is contained in:
parent
9302d93857
commit
e2c383399e
6 changed files with 130 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
||||||
PORTNAME?= svxlink
|
PORTNAME?= svxlink
|
||||||
PORTVERSION= 19.09.2
|
PORTVERSION= 19.09.2
|
||||||
|
PORTREVISION= 1
|
||||||
CATEGORIES= comms hamradio
|
CATEGORIES= comms hamradio
|
||||||
|
|
||||||
MAINTAINER= hamradio@FreeBSD.org
|
MAINTAINER= hamradio@FreeBSD.org
|
||||||
|
|
12
comms/svxlink/files/patch-src_svxlink_svxlink_CMakeLists.txt
Normal file
12
comms/svxlink/files/patch-src_svxlink_svxlink_CMakeLists.txt
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
--- src/svxlink/svxlink/CMakeLists.txt.orig 2021-03-09 23:15:07 UTC
|
||||||
|
+++ src/svxlink/svxlink/CMakeLists.txt
|
||||||
|
@@ -55,6 +55,9 @@ add_version_target(SVXLINK VERSION_DEPENDS)
|
||||||
|
set(VERSION_DEPENDS)
|
||||||
|
add_version_target(SVXLINK VERSION_DEPENDS)
|
||||||
|
|
||||||
|
+# Needed on FreeBSD
|
||||||
|
+string(PREPEND CMAKE_CXX_FLAGS "-Wl,-export-dynamic ")
|
||||||
|
+
|
||||||
|
# Build the executable
|
||||||
|
add_executable(svxlink
|
||||||
|
MsgHandler.cpp Module.cpp Logic.cpp SimplexLogic.cpp RepeaterLogic.cpp
|
32
comms/svxlink/files/remotetrx.in
Normal file
32
comms/svxlink/files/remotetrx.in
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# $FreeBSD$
|
||||||
|
#
|
||||||
|
# PROVIDE: remotetrx
|
||||||
|
# REQUIRE: LOGIN
|
||||||
|
# KEYWORD: shutdown
|
||||||
|
#
|
||||||
|
# Add these lines to /etc/rc.conf.local or /etc/rc.conf
|
||||||
|
# to enable this service:
|
||||||
|
#
|
||||||
|
# remotetrx_enable (bool): Set to NO by default.
|
||||||
|
# Set it to YES to enable remotetrx.
|
||||||
|
# remotetrx_config (path): Set to %%PREFIX%%/etc/remotetrx/remotetrx
|
||||||
|
# by default.
|
||||||
|
|
||||||
|
. /etc/rc.subr
|
||||||
|
|
||||||
|
name=remotetrx
|
||||||
|
rcvar=remotetrx_enable
|
||||||
|
|
||||||
|
load_rc_config $name
|
||||||
|
|
||||||
|
: ${remotetrx_enable:="NO"}
|
||||||
|
: ${remotetrx_config="%%PREFIX%%/etc/remotetrx/remotetrx.conf"}
|
||||||
|
|
||||||
|
command=%%PREFIX%%/bin/${name}
|
||||||
|
pidfile=/var/run/${name}.pid
|
||||||
|
|
||||||
|
command_args="--config $remotetrx_config --daemon --runasuser svxlink --pidfile ${pidfile}"
|
||||||
|
|
||||||
|
run_rc_command "$1"
|
31
comms/svxlink/files/svxlink.in
Normal file
31
comms/svxlink/files/svxlink.in
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# $FreeBSD$
|
||||||
|
#
|
||||||
|
# PROVIDE: svxlink
|
||||||
|
# REQUIRE: LOGIN
|
||||||
|
# KEYWORD: shutdown
|
||||||
|
#
|
||||||
|
# Add these lines to /etc/rc.conf.local or /etc/rc.conf
|
||||||
|
# to enable this service:
|
||||||
|
#
|
||||||
|
# svxlink_enable (bool): Set to NO by default.
|
||||||
|
# Set it to YES to enable svxlink.
|
||||||
|
# svxlink_config (path): Set to %%PREFIX%%/etc/svxlink/svxlink.conf
|
||||||
|
# by default.
|
||||||
|
|
||||||
|
. /etc/rc.subr
|
||||||
|
|
||||||
|
name=svxlink
|
||||||
|
rcvar=svxlink_enable
|
||||||
|
|
||||||
|
load_rc_config $name
|
||||||
|
|
||||||
|
: ${svxlink_enable:="NO"}
|
||||||
|
: ${svxlink_config="%%PREFIX%%/etc/svxlink/svxlink.conf"}
|
||||||
|
|
||||||
|
command=%%PREFIX%%/bin/${name}
|
||||||
|
pidfile=/var/run/${name}.pid
|
||||||
|
command_args="--config $svxlink_config --daemon --runasuser ${name} --pidfile ${pidfile}"
|
||||||
|
|
||||||
|
run_rc_command "$1"
|
32
comms/svxlink/files/svxreflector.in
Normal file
32
comms/svxlink/files/svxreflector.in
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# $FreeBSD$
|
||||||
|
#
|
||||||
|
# PROVIDE: remotetrx
|
||||||
|
# REQUIRE: LOGIN
|
||||||
|
# KEYWORD: shutdown
|
||||||
|
#
|
||||||
|
# Add these lines to /etc/rc.conf.local or /etc/rc.conf
|
||||||
|
# to enable this service:
|
||||||
|
#
|
||||||
|
# svxreflector_enable (bool): Set to NO by default.
|
||||||
|
# Set it to YES to enable svxreflector.
|
||||||
|
# svxreflector_config (path): Set to %%PREFIX%%/etc/svxlink/svxreflector.conf
|
||||||
|
# by default.
|
||||||
|
|
||||||
|
. /etc/rc.subr
|
||||||
|
|
||||||
|
name=svxreflector
|
||||||
|
rcvar=svxreflector_enable
|
||||||
|
|
||||||
|
load_rc_config $name
|
||||||
|
|
||||||
|
: ${svxreflector_enable:="NO"}
|
||||||
|
: ${svxreflector_config="%%PREFIX%%/etc/svxlink/svxreflector.conf"}
|
||||||
|
|
||||||
|
command=%%PREFIX%%/bin/${name}
|
||||||
|
pidfile=/var/run/${name}.pid
|
||||||
|
|
||||||
|
command_args="--config $svxreflector_config --daemon --runasuser svxlink --pidfile ${pidfile}"
|
||||||
|
|
||||||
|
run_rc_command "$1"
|
22
comms/svxlink/pkg-message
Normal file
22
comms/svxlink/pkg-message
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
[
|
||||||
|
{ type: install
|
||||||
|
message: <<EOM
|
||||||
|
svxlink is now installed.
|
||||||
|
|
||||||
|
configuration files in ${PREFIX}/etc/svxlink
|
||||||
|
remotetrx.conf svxlink.conf svxreflector.conf
|
||||||
|
TclVoiceMail.conf gpio.conf
|
||||||
|
|
||||||
|
More modules are in ${PREFIX}/etc/svxlink/svxlink.d
|
||||||
|
|
||||||
|
man svxlink for more information
|
||||||
|
|
||||||
|
To start svxlink, svxreflector or remotetrx as needed add to /etc/rc.local
|
||||||
|
svxlink_enable="YES"
|
||||||
|
svxreflector_enable="YES"
|
||||||
|
remotetrx_enable="YES"
|
||||||
|
|
||||||
|
EOM
|
||||||
|
}
|
||||||
|
]
|
||||||
|
|
Loading…
Add table
Reference in a new issue