Documentation
¶
Overview ¶
Package catalog lists the software hamstack knows how to detect and update.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var All = []Package{ {Name: "vnc", Aliases: []string{"Xtigervnc"}, Desc: "TigerVNC: individual apps on virtual displays (browser or tunneled native viewer)", Category: "remote", Binary: "Xvnc", Args: []string{"-version"}, Version: ver(`(?i)(?:Xvnc|TigerVNC).*?(\d+\.\d+\.\d+)`), Repo: "TigerVNC/tigervnc", TagPrefix: "v", Distro: map[string][]string{"arch": {"tigervnc"}, "debian": {"tigervnc-standalone-server"}, "fedora": {"tigervnc-server-minimal"}}, Suggests: []string{"novnc"}}, {Name: "novnc", Desc: "Browser VNC viewer (enable authenticated HTTPS with hamstack web on)", Category: "remote", Binary: "vnc.html", Version: ver(`(\d+\.\d+\.\d+)`), Files: []string{"/usr/share/novnc/vnc.html", "/usr/share/webapps/novnc/vnc.html"}, NoVersionFlag: true, Repo: "novnc/noVNC", TagPrefix: "v", Distro: map[string][]string{"arch": {"novnc"}, "debian": {"novnc"}, "fedora": {"novnc"}}, Suggests: []string{"vnc"}}, {Name: "wayvnc", Desc: "Whole-desktop sharing for compatible Wayland compositors (not GNOME/KDE/Weston)", Category: "remote", Binary: "wayvnc", Args: []string{"--version"}, Version: ver(`(\d+\.\d+\.\d+)`), Repo: "any1/wayvnc", TagPrefix: "v", Distro: map[string][]string{"arch": {"wayvnc"}, "debian": {"wayvnc"}, "fedora": {"wayvnc"}}, Suggests: []string{"novnc"}}, { Name: "pat", Desc: "Winlink client", Category: "winlink", Binary: "pat", Args: []string{"version"}, Version: ver(`(?i)pat\D*(\d+\.\d+(?:\.\d+)?)`), Repo: "la5nta/pat", TagPrefix: "v", Suggests: []string{"mercury", "direwolf", "ardopcf"}, }, { Name: "mercury", Desc: "HF modem (VARA-compatible)", Category: "modem", Binary: "mercury", Args: []string{"-V"}, Version: ver(`Version\s+(\d+\.\d+(?:\.\d+)?)`), Repo: "Rhizomatica/mercury", TagPrefix: "v", Requires: []string{"hamlib"}, Suggests: []string{"pat"}, }, { Name: "data2g", Desc: "Data2G: fast HF data modem, VARA-compatible (Pat can use it; both ends need Data2G)", Category: "modem", Binary: "data2g", Version: ver(`(\d+\.\d+\.\d+)`), NoVersionFlag: true, Repo: "arodland/Data2G", TagPrefix: "v", Suggests: []string{"pat"}, }, { Name: "hamlib", Desc: "rig control (rigctld)", Category: "modem", Binary: "rigctld", Args: []string{"--version"}, Version: ver(`Hamlib\s+(\d+\.\d+(?:\.\d+)?)`), Repo: "Hamlib/Hamlib", TagPrefix: "", }, { Name: "direwolf", Desc: "soundcard packet TNC (VHF/UHF)", Category: "modem", Binary: "direwolf", Args: []string{"-h"}, Version: ver(`(?i)dire wolf\s+(?:release|version)\s+(\d+\.\d+(?:\.\d+)?)`), Repo: "wb2osz/direwolf", TagPrefix: "", Suggests: []string{"hamlib", "pat", "ax25"}, }, { Name: "ardopcf", Desc: "ARDOP HF modem (Pat can use it: an alternative to Mercury and VARA)", Category: "modem", Binary: "ardopcf", Args: []string{"-h"}, Version: ver(`ardopcf Version (\d+(?:\.\d+)+)`), Repo: "pflarue/ardop", TagPrefix: "", Suggests: []string{"pat", "hamlib"}, AUR: []string{"ardopcf"}, Source: &Source{ URL: "https://github.com/pflarue/ardop/archive/refs/tags/{tag}.tar.gz", Tag: "{version}", Build: "make", Args: []string{"CFLAGS=-O2 -Wno-error=int-conversion -Wno-error=incompatible-pointer-types"}, Notes: "The release's source has two type errors that GCC 14 and newer refuse; the build turns them back into warnings.", Deps: map[string][]string{ "arch": {"base-devel", "alsa-lib"}, "debian": {"build-essential", "libasound2-dev"}, "fedora": {"gcc", "make", "alsa-lib-devel"}, }, }, }, { Name: "flrig", Desc: "rig control for the fl suite and hamlib (FLRig)", Category: "modem", Binary: "flrig", Args: []string{"--version"}, Version: ver(`Version:\s*(\d+\.\d+\.\d+)`), SF: sfFldigi("flrig"), Suggests: []string{"fldigi"}, Distro: debFed("flrig"), AUR: []string{"flrig"}, Source: flSource("flrig", flBase), }, { Name: "fldigi", Desc: "digital modes (PSK, RTTY, Olivia, MFSK...)", Category: "digital", Binary: "fldigi", Args: []string{"--version"}, Version: ver(`fldigi\s+(\d+\.\d+\.\d+)`), SF: sfFldigi("fldigi"), Suggests: []string{"flrig", "flmsg", "flamp"}, Distro: debFed("fldigi"), AUR: []string{"fldigi"}, Source: flSource("fldigi", concat(flBase, flAudio)), }, { Name: "flmsg", Desc: "forms and messages over fldigi (ICS forms, radiograms)", Category: "digital", Binary: "flmsg", Args: []string{"--version"}, Version: ver(`Version:\s*(\d+\.\d+\.\d+)`), SF: sfFldigi("flmsg"), Suggests: []string{"fldigi"}, Distro: debFed("flmsg"), AUR: []string{"flmsg"}, Source: flSource("flmsg", flBase), }, { Name: "flamp", Desc: "file transfer over fldigi (amateur multicast protocol)", Category: "digital", Binary: "flamp", Args: []string{"--version"}, Version: ver(`Version:\s*(\d+\.\d+\.\d+)`), SF: sfFldigi("flamp"), Suggests: []string{"fldigi"}, Distro: debFed("flamp"), AUR: []string{"flamp"}, Source: flSource("flamp", flBase), }, { Name: "wsjtx", Desc: "WSJT-X: FT8, FT4, WSPR and other weak-signal modes", Category: "digital", Binary: "wsjtx", Version: ver(`(\d+\.\d+\.\d+)`), NoVersionFlag: true, SF: &SourceForge{Project: "wsjt", File: ver(`^wsjtx-(\d+\.\d+\.\d+)$`), HTML: true}, Suggests: []string{"hamlib", "flrig"}, Conflicts: []string{"wsjtx-improved"}, Distro: debFed("wsjtx"), AUR: []string{"wsjtx"}, Source: &Source{ URL: "https://sourceforge.net/projects/wsjt/files/wsjtx-{version}/wsjtx-{version}-src.tar.gz/download", Build: "cmake", Args: []string{"-DWSJT_GENERATE_DOCS=OFF", "-DWSJT_SKIP_MANPAGES=ON"}, Deps: wsjtxDeps, NotOn: map[string]string{"arch": "WSJT-X needs Qt 5's WebSockets module, which Arch no longer ships; WSJT-X Improved has a Qt 6 build: hamstack install wsjtx-improved"}, Notes: "WSJT-X is large (Fortran and C++ with Qt): expect a long build. The source comes from SourceForge, the project's own site.", }, }, { Name: "wsjtx-improved", Desc: "WSJT-X Improved: WSJT-X with extra features (the usual choice)", Category: "digital", Binary: "wsjtx", Version: ver(`(\d+\.\d+\.\d+)`), NoVersionFlag: true, SF: &SourceForge{Project: "wsjt-x-improved", File: ver(`^WS_v(\d+\.\d+\.\d+)$`), HTML: true}, Suggests: []string{"hamlib", "flrig"}, Conflicts: []string{"wsjtx"}, Distro: map[string][]string{"debian": {"wsjtx-improved"}}, AUR: []string{"wsjtx-improved"}, Source: &Source{ Find: &SourceFile{Project: "wsjt-x-improved", Dir: "/WS_v{version}/Source code/Qt6", File: `^ws-{version}_\d+_qt6\.tgz$`}, Build: "cmake", Args: []string{"-DWSJT_GENERATE_DOCS=OFF", "-DWSJT_SKIP_MANPAGES=ON", "-DCMAKE_POLICY_VERSION_MINIMUM=3.5"}, Deps: wsjtxQt6Deps, Patches: []Patch{ {"CMakeLists.txt", "add_custom_target (install DEPENDS wsjtx-install)", ""}, {"CMakeLists.txt", "add_custom_target (package DEPENDS wsjtx-package)", ""}, {"CMakeLists.txt", "--without-cxx-binding ${EXTRA_FLAGS}", "--without-cxx-binding --without-indi ${EXTRA_FLAGS}"}, }, InstallTarget: "wsjtx-install", Binary: "ws", Links: map[string]string{"wsjtx": "ws"}, Notes: "WSJT-X Improved is large (Fortran and C++ with Qt): expect a long build. The source comes from SourceForge, the project's own site.", }, }, { Name: "js8call", Desc: "JS8Call: keyboard-to-keyboard messaging on HF", Category: "digital", Binary: "js8call", Version: ver(`(\d+\.\d+\.\d+)`), NoVersionFlag: true, Repo: "js8call/js8call", TagPrefix: "v", Suggests: []string{"hamlib", "flrig"}, Distro: debFed("js8call"), AUR: []string{"js8call"}, Source: &Source{ URL: "https://github.com/js8call/js8call/archive/refs/tags/{tag}.tar.gz", Tag: "v{version}", Build: "cmake", Deps: js8Deps, Notes: "JS8Call needs Qt 6.4 or newer; on an older distribution the build stops at the configure step.", }, }, { Name: "xastir", Desc: "APRS client with maps", Category: "aprs", Binary: "xastir", Version: ver(`(\d+\.\d+\.\d+)`), NoVersionFlag: true, Repo: "Xastir/Xastir", TagPrefix: "Release-", Suggests: []string{"direwolf", "gpsd"}, Distro: debFed("xastir"), AUR: []string{"xastir"}, Source: &Source{ URL: "https://github.com/Xastir/Xastir/archive/refs/tags/{tag}.tar.gz", Tag: "Release-{version}", Build: "autotools", Bootstrap: true, Deps: xastirDeps, }, }, { Name: "gpsd", Desc: "GPS daemon (position and your grid square)", Category: "aprs", Binary: "gpsd", Args: []string{"-V"}, Version: ver(`gpsd:?\s+(?:release\s+)?(\d+\.\d+(?:\.\d+)?)`), Repo: "", Distro: map[string][]string{"arch": {"gpsd"}, "debian": {"gpsd"}, "fedora": {"gpsd"}}, }, { Name: "ax25", Desc: "Linux AX.25 tools: kissattach, axcall, axlisten (needs a kernel with AX.25)", Category: "tools", Binary: "kissattach", Version: ver(`(\d+\.\d+\.\d+)`), NoVersionFlag: true, Suggests: []string{"direwolf"}, Distro: debFed("ax25-tools", "ax25-apps"), AUR: []string{"ax25-tools", "ax25-apps"}, }, }
All is every program hamstack knows how to detect, install and update.
var Categories = []struct{ ID, Title string }{
{"winlink", "Winlink"},
{"modem", "Modems and rig control"},
{"digital", "Digital modes"},
{"aprs", "APRS and position"},
{"tools", "Tools"},
{"remote", "Remote access"},
}
Category names, in the order they are listed.
Functions ¶
func Closure ¶
Closure returns names plus everything they require, directly or through other requirements, with each program after the ones it needs (so installing in order works). added says why each extra one is there.
Types ¶
type Package ¶
type Package struct {
Name string
Desc string
Category string // what it is for: see the Categories
Binary string // executable to look for in PATH
Args []string // arguments that make Binary print its version
Version *regexp.Regexp // first capture group is the version number
// Upstream release source: GitHub "owner/repo" (TagPrefix is stripped from the tag), or a SourceForge
// feed. Some projects keep a stale GitHub mirror, so the real home has to be used for their versions.
Repo string
TagPrefix string
SF *SourceForge
// Requires must be installed for this one to work; Suggests are worth installing with it. Conflicts cannot
// be installed together (they provide the same program).
Requires, Suggests, Conflicts []string
// Distro lists the distribution package names, by family ("arch", "debian", "fedora"). A family that is
// missing has no package for this program: it is built from source, or on Arch taken from the AUR.
Distro map[string][]string
AUR []string // the Arch User Repository names, shown as a hint (hamstack never builds AUR packages)
// Source says how to build it from the upstream source; nil means a custom plan in the install package.
Source *Source
// NoVersionFlag is set for programs that cannot print their version without a display (Qt applications):
// the version is then read from the package database, or from the record hamstack keeps for its own builds.
Aliases []string // alternate executable names used by some distributions
Files []string // non-executable assets that establish installation (for example noVNC)
NoVersionFlag bool
}
Package describes one piece of software.
type Patch ¶
type Patch struct{ File, Old, New string }
Patch replaces Old with New in File (a path inside the extracted source).
type Source ¶
type Source struct {
URL string // {version} and {tag} are replaced
Tag string // the tag, with {version}: "v{version}"
Build string // "autotools" or "cmake"
Bootstrap bool // run autoreconf first (a repository archive has no configure script)
Args []string // extra configure or cmake arguments
Deps map[string][]string // build dependencies by distribution family
CMakeDir string // subfolder of the source that holds CMakeLists.txt ("" for the top)
Notes string // shown with the source-build disclaimer
// Find locates the source archive by listing a SourceForge folder, for projects whose file names carry more than
// the version (a build date). Dir and File may contain {version}; File's match is the file to fetch.
Find *SourceFile
// NotOn names a distribution family this cannot be built on, and why (say, a library it needs that the
// distribution no longer ships).
NotOn map[string]string
// InstallTarget names a build target to install with ("cmake --build --target T") instead of "cmake --install",
// for projects (the WSJT-X superbuild) whose install is a custom target that the plain command does not run.
InstallTarget string
// Binary is the program the build installs, when it is not the name the program is known by (WSJT-X Improved
// builds "ws"); Links are extra names for it in the bin folder, so the known name finds it.
Binary string
Links map[string]string
// Patches are exact text replacements made in the extracted source before building. The build stops, saying
// the recipe needs updating, if the text is not there: a release that changed must not be patched blindly.
Patches []Patch
}
Source is a recipe for building a program: where its source is, how, and what it needs.
type SourceFile ¶
type SourceFile struct {
Project, Dir, File string
}
SourceFile is a source archive found in a SourceForge folder.
type SourceForge ¶
type SourceForge struct {
Project string
Path string // folder in the project's files ("/flrig"); "" for the top level
File *regexp.Regexp // matches a file name or folder; the first group is the version
HTML bool // read the web page's folder list instead of the RSS feed (needed when the RSS lists only recent files)
}
SourceForge locates a release on SourceForge: a project's file listing, and the file names in it.