comms/svxlink: Fix missing port files

Looks like I missed adding some files
This commit is contained in:
Diane Bruce 2024-02-01 10:40:21 -05:00
parent 9302d93857
commit e2c383399e
6 changed files with 130 additions and 0 deletions

View file

@ -1,5 +1,6 @@
PORTNAME?= svxlink
PORTVERSION= 19.09.2
PORTREVISION= 1
CATEGORIES= comms hamradio
MAINTAINER= hamradio@FreeBSD.org

View 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

View 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"

View 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"

View 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
View 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
}
]