pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/ham/direwolf



Module Name:    pkgsrc
Committed By:   jmcneill
Date:           Sat Apr 12 18:37:16 UTC 2025

Added Files:
        pkgsrc/ham/direwolf: DESCR Makefile PLIST distinfo options.mk
        pkgsrc/ham/direwolf/patches: patch-CMakeLists.txt patch-src_audio.h
            patch-src_decode__aprs.c patch-src_symbols.c

Log Message:
Initial import of direwolf version 1.7

Dire Wolf is a software "soundcard" AX.25 packet modem/TNC and APRS
encoder/decoder. It can be used stand-alone to observe APRS traffic, as a
tracker, digipeater, APRStt gateway, or Internet Gateway (IGate).


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/ham/direwolf/DESCR pkgsrc/ham/direwolf/Makefile \
    pkgsrc/ham/direwolf/PLIST pkgsrc/ham/direwolf/distinfo \
    pkgsrc/ham/direwolf/options.mk
cvs rdiff -u -r0 -r1.1 pkgsrc/ham/direwolf/patches/patch-CMakeLists.txt \
    pkgsrc/ham/direwolf/patches/patch-src_audio.h \
    pkgsrc/ham/direwolf/patches/patch-src_decode__aprs.c \
    pkgsrc/ham/direwolf/patches/patch-src_symbols.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: pkgsrc/ham/direwolf/DESCR
diff -u /dev/null pkgsrc/ham/direwolf/DESCR:1.1
--- /dev/null   Sat Apr 12 18:37:16 2025
+++ pkgsrc/ham/direwolf/DESCR   Sat Apr 12 18:37:15 2025
@@ -0,0 +1,3 @@
+Dire Wolf is a software "soundcard" AX.25 packet modem/TNC and APRS
+encoder/decoder. It can be used stand-alone to observe APRS traffic, as a
+tracker, digipeater, APRStt gateway, or Internet Gateway (IGate).
Index: pkgsrc/ham/direwolf/Makefile
diff -u /dev/null pkgsrc/ham/direwolf/Makefile:1.1
--- /dev/null   Sat Apr 12 18:37:16 2025
+++ pkgsrc/ham/direwolf/Makefile        Sat Apr 12 18:37:15 2025
@@ -0,0 +1,28 @@
+# $NetBSD: Makefile,v 1.1 2025/04/12 18:37:15 jmcneill Exp $
+
+DISTNAME=      1.7
+PKGNAME=       ${GITHUB_PROJECT}-${DISTNAME}
+CATEGORIES=    ham
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=wb2osz/}
+GITHUB_PROJECT=        direwolf
+GITHUB_TAG=    refs/tags/1.7
+DIST_SUBDIR=   ${GITHUB_PROJECT}
+
+MAINTAINER=    jmcneill%NetBSD.org@localhost
+HOMEPAGE=      https://github.com/wb2osz/direwolf/
+COMMENT=       Software "soundcard" AX.25 packet modem/TNC and APRS encoder/decoder
+LICENSE=       gnu-gpl-v2
+
+CMAKE_CONFIGURE_ARGS+= -DPKGSRC=TRUE -DINSTALL_PREFIX=${PREFIX}
+CMAKE_CONFIGURE_ARGS+= -DPORTAUDIO_INCLUDE_DIRS=${BUILDLINK_DIR}/include/portaudio2
+CMAKE_CONFIGURE_ARGS+= -DPORTAUDIO_LIBRARIES=${BUILDLINK_DIR}/lib/portaudio2/libportaudio.so
+
+.include "options.mk"
+
+WRKSRC=                ${WRKDIR}/direwolf-1.7
+USE_LANGUAGES= c c++
+
+.include "../../audio/portaudio/buildlink3.mk"
+.include "../../devel/cmake/build.mk"
+.include "../../ham/hamlib/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/ham/direwolf/PLIST
diff -u /dev/null pkgsrc/ham/direwolf/PLIST:1.1
--- /dev/null   Sat Apr 12 18:37:16 2025
+++ pkgsrc/ham/direwolf/PLIST   Sat Apr 12 18:37:15 2025
@@ -0,0 +1,70 @@
+@comment $NetBSD: PLIST,v 1.1 2025/04/12 18:37:15 jmcneill Exp $
+bin/aclients
+bin/appserver
+bin/atest
+bin/decode_aprs
+bin/direwolf
+bin/dwespeak.sh
+bin/gen_packets
+bin/kissutil
+bin/ll2utm
+bin/log2gpx
+bin/telem-balloon.pl
+bin/telem-bits.pl
+bin/telem-data.pl
+bin/telem-data91.pl
+bin/telem-eqns.pl
+bin/telem-parm.pl
+bin/telem-seq.sh
+bin/telem-unit.pl
+bin/telem-volts.py
+bin/text2tt
+bin/tnctest
+bin/tt2text
+bin/ttcalc
+bin/utm2ll
+man/man1/aclients.1
+man/man1/atest.1
+man/man1/decode_aprs.1
+man/man1/direwolf.1
+man/man1/gen_packets.1
+man/man1/kissutil.1
+man/man1/ll2utm.1
+man/man1/log2gpx.1
+man/man1/text2tt.1
+man/man1/tt2text.1
+man/man1/utm2ll.1
+share/applications/direwolf.desktop
+share/direwolf/symbols-new.txt
+share/direwolf/symbolsX.txt
+share/direwolf/tocalls.txt
+share/doc/direwolf/2400-4800-PSK-for-APRS-Packet-Radio.pdf
+share/doc/direwolf/A-Better-APRS-Packet-Demodulator-Part-1-1200-baud.pdf
+share/doc/direwolf/A-Better-APRS-Packet-Demodulator-Part-2-9600-baud.pdf
+share/doc/direwolf/A-Closer-Look-at-the-WA8LMF-TNC-Test-CD.pdf
+share/doc/direwolf/AIS-Reception.pdf
+share/doc/direwolf/APRS-Telemetry-Toolkit.pdf
+share/doc/direwolf/APRStt-Implementation-Notes.pdf
+share/doc/direwolf/APRStt-Listening-Example.pdf
+share/doc/direwolf/APRStt-interface-for-SARTrack.pdf
+share/doc/direwolf/AX25_plus_FEC_equals_FX25.pdf
+share/doc/direwolf/Bluetooth-KISS-TNC.pdf
+share/doc/direwolf/CHANGES.md
+share/doc/direwolf/Going-beyond-9600-baud.pdf
+share/doc/direwolf/LICENSE
+share/doc/direwolf/README.md
+share/doc/direwolf/Raspberry-Pi-APRS-Tracker.pdf
+share/doc/direwolf/Raspberry-Pi-APRS.pdf
+share/doc/direwolf/Raspberry-Pi-SDR-IGate.pdf
+share/doc/direwolf/Successful-APRS-IGate-Operation.pdf
+share/doc/direwolf/User-Guide.pdf
+share/doc/direwolf/WA8LMF-TNC-Test-CD-Results.pdf
+share/doc/direwolf/Why-is-9600-only-twice-as-fast-as-1200.pdf
+share/doc/direwolf/conf/direwolf.conf
+share/doc/direwolf/conf/sdr.conf
+share/doc/direwolf/conf/telem-balloon.conf
+share/doc/direwolf/conf/telem-m0xer-3.txt
+share/doc/direwolf/conf/telem-volts.conf
+share/doc/direwolf/external/LICENSE
+share/doc/direwolf/scripts/dw-start.sh
+share/pixmaps/direwolf_icon.png
Index: pkgsrc/ham/direwolf/distinfo
diff -u /dev/null pkgsrc/ham/direwolf/distinfo:1.1
--- /dev/null   Sat Apr 12 18:37:16 2025
+++ pkgsrc/ham/direwolf/distinfo        Sat Apr 12 18:37:15 2025
@@ -0,0 +1,9 @@
+$NetBSD: distinfo,v 1.1 2025/04/12 18:37:15 jmcneill Exp $
+
+BLAKE2s (direwolf/1.7.tar.gz) = 73c8f13681fa32683e7ca939effed4c4fc5fb302d4263c0e5176f21ca519b948
+SHA512 (direwolf/1.7.tar.gz) = e09b14d7a036546e042da8b536b70d07f485d6a7224b19f5626b33e43a21c48200591fd6680ca1ee4b3c9fb5909d6f1c54ae8160877d51e06278fe19516abe1e
+Size (direwolf/1.7.tar.gz) = 20587417 bytes
+SHA1 (patch-CMakeLists.txt) = 9a455c6bcb163b34d2904a08a4d0c1ce05de3df1
+SHA1 (patch-src_audio.h) = 35f0683d1fd5ff16833e518ce2df8544cc3327be
+SHA1 (patch-src_decode__aprs.c) = 0a897894080d9921f3fe52a5bd971e90602d8b2b
+SHA1 (patch-src_symbols.c) = 510c0f1d98a3cd5710b7b05b362367483fb2f6c1
Index: pkgsrc/ham/direwolf/options.mk
diff -u /dev/null pkgsrc/ham/direwolf/options.mk:1.1
--- /dev/null   Sat Apr 12 18:37:16 2025
+++ pkgsrc/ham/direwolf/options.mk      Sat Apr 12 18:37:15 2025
@@ -0,0 +1,10 @@
+# $NetBSD: options.mk,v 1.1 2025/04/12 18:37:15 jmcneill Exp $
+
+PKG_OPTIONS_VAR=               PKG_OPTIONS.direwolf
+PKG_SUPPORTED_OPTIONS=         gpsd
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mgpsd)
+.include "../../geography/gpsd/buildlink3.mk"
+.endif

Index: pkgsrc/ham/direwolf/patches/patch-CMakeLists.txt
diff -u /dev/null pkgsrc/ham/direwolf/patches/patch-CMakeLists.txt:1.1
--- /dev/null   Sat Apr 12 18:37:16 2025
+++ pkgsrc/ham/direwolf/patches/patch-CMakeLists.txt    Sat Apr 12 18:37:15 2025
@@ -0,0 +1,53 @@
+$NetBSD: patch-CMakeLists.txt,v 1.1 2025/04/12 18:37:15 jmcneill Exp $
+
+Allow pkgsrc to override INSTALL_MAN_DIR.
+
+--- CMakeLists.txt.orig        2023-10-28 15:03:04.000000000 +0000
++++ CMakeLists.txt
+@@ -16,6 +16,8 @@ option(FORCE_SSE41 "Compile with SSE4.1 
+ option(OPTIONAL_TEST "Compile optional test (might be broken)" OFF)
+ # UNITTEST option must be after CMAKE_BUILT_TYPE
+ 
++option(PKGSRC "Build for pkgsrc" OFF)
++
+ # where cmake find custom modules
+ list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules)
+ 
+@@ -41,6 +43,9 @@ if(NOT (WIN32 OR CYGWIN))
+     set(APPLICATION_DESKTOP_EXEC "xterm -e ${CMAKE_PROJECT_NAME}")
+   endif()
+ endif()
++if(PKGSRC)
++  add_definitions("-DINSTALL_PREFIX=\"${INSTALL_PREFIX}\"")
++endif()
+ 
+ find_package(Git)
+ if(GIT_FOUND AND EXISTS "${CMAKE_SOURCE_DIR}/.git/")
+@@ -177,6 +182,9 @@ elseif (WIN32)
+       set(CUSTOM_SHELL_BIN "")
+     endif()
+   endif()
++elseif (PKGSRC)
++  configure_file("${CMAKE_SOURCE_DIR}/cmake/cpack/${CMAKE_PROJECT_NAME}.desktop.in"
++    "${CMAKE_BINARY_DIR}/${CMAKE_PROJECT_NAME}.desktop" @ONLY)
+ endif()
+ 
+ if (C_CLANG OR C_GCC)
+@@ -254,7 +262,7 @@ else()
+   set(INSTALL_DOC_DIR "share/doc/${CMAKE_PROJECT_NAME}")
+   set(INSTALL_CONF_DIR "${INSTALL_DOC_DIR}/conf")
+   set(INSTALL_SCRIPTS_DIR "${INSTALL_DOC_DIR}/scripts")
+-  if(FREEBSD)
++  if(FREEBSD OR PKGSRC)
+     set(INSTALL_MAN_DIR "man/man1")
+   else()
+     set(INSTALL_MAN_DIR "share/man/man1")
+@@ -395,7 +403,7 @@ add_subdirectory(doc)
+ add_subdirectory(man)
+ 
+ # install desktop link
+-if (LINUX OR FREEBSD)
++if (LINUX OR FREEBSD OR PKGSRC)
+   install(FILES ${CMAKE_BINARY_DIR}/${CMAKE_PROJECT_NAME}.desktop DESTINATION share/applications)
+   install(FILES ${CMAKE_SOURCE_DIR}/cmake/cpack/${CMAKE_PROJECT_NAME}_icon.png DESTINATION share/pixmaps)
+ endif()
Index: pkgsrc/ham/direwolf/patches/patch-src_audio.h
diff -u /dev/null pkgsrc/ham/direwolf/patches/patch-src_audio.h:1.1
--- /dev/null   Sat Apr 12 18:37:16 2025
+++ pkgsrc/ham/direwolf/patches/patch-src_audio.h       Sat Apr 12 18:37:15 2025
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_audio.h,v 1.1 2025/04/12 18:37:15 jmcneill Exp $
+
+Fixup default audio device on NetBSD.
+
+--- src/audio.h.orig   2025-04-12 18:27:57.541421369 +0000
++++ src/audio.h
+@@ -390,6 +390,8 @@ struct audio_s {
+ #define DEFAULT_ADEVICE       "default"       /* Use default device for ALSA. */
+ #elif USE_SNDIO
+ #define DEFAULT_ADEVICE       "default"       /* Use default device for sndio. */
++#elif defined(__NetBSD__)
++#define DEFAULT_ADEVICE "/dev/audio"  /* First audio device for OSS.  (NetBSD) */
+ #else
+ #define DEFAULT_ADEVICE       "/dev/dsp"      /* First audio device for OSS.  (FreeBSD) */
+ #endif                                        
Index: pkgsrc/ham/direwolf/patches/patch-src_decode__aprs.c
diff -u /dev/null pkgsrc/ham/direwolf/patches/patch-src_decode__aprs.c:1.1
--- /dev/null   Sat Apr 12 18:37:16 2025
+++ pkgsrc/ham/direwolf/patches/patch-src_decode__aprs.c        Sat Apr 12 18:37:16 2025
@@ -0,0 +1,16 @@
+$NetBSD: patch-src_decode__aprs.c,v 1.1 2025/04/12 18:37:16 jmcneill Exp $
+
+Fixup search locations for pkg PREFIX.
+
+--- src/decode_aprs.c.orig     2025-04-12 12:38:21.806501733 +0000
++++ src/decode_aprs.c
+@@ -4309,6 +4309,9 @@ static const char *search_locations[] = 
+       (const char *) "/usr/local/share/direwolf/tocalls.txt",
+       (const char *) "/usr/share/direwolf/tocalls.txt",
+ #endif
++#ifdef INSTALL_PREFIX
++      (const char *) INSTALL_PREFIX "/share/direwolf/tocalls.txt",
++#endif
+ #if __APPLE__
+       // https://groups.yahoo.com/neo/groups/direwolf_packet/conversations/messages/2458
+       // Adding the /opt/local tree since macports typically installs there.  Users might want their
Index: pkgsrc/ham/direwolf/patches/patch-src_symbols.c
diff -u /dev/null pkgsrc/ham/direwolf/patches/patch-src_symbols.c:1.1
--- /dev/null   Sat Apr 12 18:37:16 2025
+++ pkgsrc/ham/direwolf/patches/patch-src_symbols.c     Sat Apr 12 18:37:16 2025
@@ -0,0 +1,16 @@
+$NetBSD: patch-src_symbols.c,v 1.1 2025/04/12 18:37:16 jmcneill Exp $
+
+Fixup search locations for pkg PREFIX.
+
+--- src/symbols.c.orig 2025-04-12 12:37:35.269157776 +0000
++++ src/symbols.c
+@@ -271,6 +271,9 @@ static const char *search_locations[] = 
+       (const char *) "/usr/local/share/direwolf/symbols-new.txt",
+       (const char *) "/usr/share/direwolf/symbols-new.txt",
+ #endif
++#ifdef INSTALL_PREFIX
++      (const char *) INSTALL_PREFIX "/share/direwolf/symbols-new.txt",
++#endif
+ #if __APPLE__
+       // https://groups.yahoo.com/neo/groups/direwolf_packet/conversations/messages/2458
+       // Adding the /opt/local tree since macports typically installs there.  Users might want their



Home | Main Index | Thread Index | Old Index