Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 506146 - media-radio/ax25-tools enhancements
Summary: media-radio/ax25-tools enhancements
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Thomas Beierlein
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2014-03-29 12:27 UTC by Stuart Longland
Modified: 2021-05-19 06:33 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
ax25-tools-kissattach-pty.diff: Adds symlinking support to kissattach (ax25-tools-kissattach-pty.diff,5.10 KB, patch)
2014-03-29 12:27 UTC, Stuart Longland
Details | Diff
ax25-tools-kissnetd-pty.diff: Add symlinking support to kissnetd (ax25-tools-kissnetd-pty.diff,13.48 KB, patch)
2014-03-29 12:28 UTC, Stuart Longland
Details | Diff
kissattach init script (kissattach,514 bytes, text/plain)
2014-03-29 12:29 UTC, Stuart Longland
Details
nrattach init script (nrattach,589 bytes, text/plain)
2014-03-29 12:29 UTC, Stuart Longland
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stuart Longland 2014-03-29 12:27:34 UTC
Created attachment 373814 [details, diff]
ax25-tools-kissattach-pty.diff: Adds symlinking support to kissattach

Hi,

I figured I'd share some enhancements for ax25-tools.  The patches have been sent up-stream already, however there are some useful init script additions.

Patches included in this bug...

ax25-tools-kissattach-pty.diff:  This allows kissattach to generate symlinks and adjust the owner of pty slave devices created by kissattach.  The user specifies the PTY device symlink as pty:/dev/symlink-name.  This will symlink /dev/symlink-name to the slave PTY device.

ax25-tools-kissnetd-pty.diff: Along the same lines, this allows kissnetd to also symlink its slaves.

Init scripts included in this bug...

kissattach, nrattach: Similar to how net.* and openvpn.* work, these are symlinked to other files of the form kissattach.PORTNAME and nrattach.PORTNAME, where PORTNAME is what's entered in /etc/ax25/{axports,nrports}.

kissattach reads /etc/conf.d/kissattach and looks for variables of the form DEV_${PORT} and ARGS_${PORT}, and uses those to specify arguments to kissattach.

Likewise for nrattach (which looks for ARGS_${PORT}).

An example set-up:
portege ~ # grep -v '^$' /etc/ax25/axports | grep -v '^#'
TNC     VK4MSL-1        9600    255     2       RF TNC
IP      VK4MSL-2        9600    255     2       Multicast AX/UDP
portege ~ # cat /etc/conf.d/kissattach 
DEV_IP=pty:/dev/axip
DEV_TNC=/dev/ttyUSB0
rc_kissattach_TNC_need="kissattach.IP"
portege ~ # cat /etc/conf.d/nrattach   
rc_nrattach_NRTNC_need="net.ax1"
portege ~ # tail /etc/conf.d/net
config_ax0="null"
config_ax1="null"
rc_net_ax0_need="kissattach.IP"
rc_net_ax1_need="kissattach.TNC net.ax0"

Other services can be made to depend on net.ax0 and net.ax1 as required.
Comment 1 Stuart Longland 2014-03-29 12:28:18 UTC
Created attachment 373816 [details, diff]
ax25-tools-kissnetd-pty.diff: Add symlinking support to kissnetd
Comment 2 Stuart Longland 2014-03-29 12:29:04 UTC
Created attachment 373818 [details]
kissattach init script
Comment 3 Stuart Longland 2014-03-29 12:29:44 UTC
Created attachment 373820 [details]
nrattach init script
Comment 4 Thomas Beierlein gentoo-dev 2014-04-01 09:35:32 UTC
(In reply to Stuart Longland from comment #0)
> Created attachment 373814 [details, diff] [details, diff]
> ax25-tools-kissattach-pty.diff: Adds symlinking support to kissattach
> 
> Hi,
> 
> I figured I'd share some enhancements for ax25-tools.  The patches have been
> sent up-stream already, however there are some useful init script additions.
> 
Hi Stuart, thanks for sharing. I saw your discussion on linux-hams mailing list before.

I will add the patch to the tree in next days.

Did you get any confirmation from up-stream in meantime?
Comment 5 Stuart Longland 2014-04-05 03:34:58 UTC
I did get some confirmation from Thomas Osterried mentioning that they had received the patches, but a few in the group wanted to discuss them first.

I haven't seen them actually committed to any repositories as yet, and I hear rumours there's more than one ax25-tools repository out there: just to make life interesting.

I guess I should poke the devs concerned and see if we can get further movement on this.
Comment 6 Stuart Longland 2021-05-19 06:33:10 UTC
I think the userspace AX.25 tools are so badly fragmented now the chance of these patches going "upstream" is almost zero now.

As it is, I'm more or less going the userspace route now with a Python implementation of the AX.25 stack (with maybe the option to spawn `kissattach` as a subprocess).