import xastir: postition tracking and APRS graphical client

This commit is contained in:
jason 2007-05-28 17:19:37 +00:00
parent 5433213895
commit 7aae6463d8
6 changed files with 268 additions and 0 deletions

53
comms/xastir/Makefile Normal file
View File

@ -0,0 +1,53 @@
# $OpenBSD: Makefile,v 1.1.1.1 2007/05/28 17:19:37 jason Exp $
COMMENT= "X amateur station tracking and info reporting"
VERSION= 1.8.2
DISTNAME= xastir-${VERSION}
CATEGORIES= devel
HOMEPAGE= http://www.xastir.org/
MAINTAINER= Jason Wright <jason@openbsd.org>
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= $(MASTER_SITE_SOURCEFORGE:=xastir/)
CONFIGURE_STYLE= autoconf
AUTOCONF_VERSION= 2.59
AUTOMAKE_VERSION= 1.9
USE_MOTIF= openmotif
CONFIGURE_ARGS= --with-shapelib \
--with-pcre \
--with-libproj \
--with-geotiff \
--with-dbfawk \
--with-rtree \
--with-map-cache \
--with-imagemagick \
--with-x \
--without-ax25 \
--without-gpsman \
--without-festival \
--without-gdal \
--with-bdb-libdir=$(LOCALBASE)/lib/db4 \
--with-bdb-incdir=$(LOCALBASE)/include/db4
WANTLIB= ICE SM c pthread freetype Xt Xpm jpeg Xext m Xp X11 z \
proj bz2 xml2 png tiff iconv jbig lcms jasper expat fontconfig
LIB_DEPENDS= curl::net/curl \
shp::devel/shapelib \
geotiff::devel/geotiff \
Magick::graphics/ImageMagick \
Wand::graphics/ImageMagick \
lib/db4/db.=4:db-4.*:databases/db/v4 \
intl::devel/gettext \
pcre::devel/pcre
.include <bsd.port.mk>

4
comms/xastir/distinfo Normal file
View File

@ -0,0 +1,4 @@
MD5 (xastir-1.8.2.tar.gz) = 77b2c60cd59de17c2caccb13f95d4993
RMD160 (xastir-1.8.2.tar.gz) = 244db44988a5bddb2f3fec6f14b0a558d4100008
SHA1 (xastir-1.8.2.tar.gz) = 00e0bef7c205a08b86c26d0e930aab9ae1523b92
SIZE (xastir-1.8.2.tar.gz) = 1642849

View File

@ -0,0 +1,11 @@
$OpenBSD: patch-configure_ac,v 1.1.1.1 2007/05/28 17:19:37 jason Exp $
--- configure.ac.orig Wed Aug 16 15:50:07 2006
+++ configure.ac Wed Aug 16 15:51:48 2006
@@ -216,6 +216,7 @@ AC_CHECK_FUNCS([roundf])
# Check for intl library (Needed for Cygwin)
#
+AC_CHECK_LIB(iconv, libiconv_open, LIBS="-liconv ${LIBS}")
AC_CHECK_LIB(intl, gettext, LIBS="-lintl ${LIBS}")

View File

@ -0,0 +1,60 @@
$OpenBSD: patch-src_interface_c,v 1.1.1.1 2007/05/28 17:19:37 jason Exp $
--- src/interface.c.orig Tue May 30 14:50:50 2006
+++ src/interface.c Fri Aug 18 12:59:11 2006
@@ -87,6 +87,16 @@
#include <Xm/XmAll.h>
#include <X11/cursorfont.h>
+#ifdef __OpenBSD__
+#include <paths.h>
+#endif
+
+#ifdef _PATH_UUCPLOCK
+#define LOCK_DIR _PATH_UUCPLOCK
+#else
+#define LOCK_DIR "/var/lock"
+#endif
+
#include "xastir.h"
#include "symbols.h"
#include "main.h"
@@ -4209,7 +4219,7 @@ int serial_detach(int port) {
}
// Delete lockfile
- xastir_snprintf(fn, sizeof(fn), "/var/lock/LCK..%s", get_device_name_only(port_data[port].device_name));
+ xastir_snprintf(fn, sizeof(fn), "%s/LCK..%s", LOCK_DIR, get_device_name_only(port_data[port].device_name));
if (debug_level & 2)
fprintf(stderr,"Delete lock file %s\n",fn);
@@ -4283,7 +4293,7 @@ int serial_init (int port) {
// check for lock file
- xastir_snprintf(fn, sizeof(fn), "/var/lock/LCK..%s",
+ xastir_snprintf(fn, sizeof(fn), "%s/LCK..%s", LOCK_DIR,
get_device_name_only(port_data[port].device_name));
if (filethere(fn) == 1) {
// Also look for pid of other process and see if it is a valid lock
@@ -4354,8 +4364,20 @@ int serial_init (int port) {
return (-1);
}
+#ifdef NMEADISC
+ if (port_data[port].device_type == DEVICE_SERIAL_GPS) {
+ int ldisc = NMEADISC, ret;
+
+ ENABLE_SETUID_PRIVILEGE;
+ ret = ioctl(port_data[port].channel, TIOCSETD, &ldisc);
+ DISABLE_SETUID_PRIVILEGE;
+ if (ret == -1)
+ fprintf(stderr, "couldn't set nmea discipline on port %d", port);
+ }
+#endif
+
// Attempt to create the lock file
- xastir_snprintf(fn, sizeof(fn), "/var/lock/LCK..%s", get_device_name_only(port_data[port].device_name));
+ xastir_snprintf(fn, sizeof(fn), "%s/LCK..%s", LOCK_DIR, get_device_name_only(port_data[port].device_name));
if (debug_level & 2)
fprintf(stderr,"Create lock file %s\n",fn);

3
comms/xastir/pkg/DESCR Normal file
View File

@ -0,0 +1,3 @@
Xastir is program for receiving and plotting APRS(tm) position packets.
Development is a collaborative effort of programmers from around the
world. Xastir supports many map formats and is highly customizable.

137
comms/xastir/pkg/PLIST Normal file
View File

@ -0,0 +1,137 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2007/05/28 17:19:37 jason Exp $
bin/callpass
bin/xastir
bin/xastir_udp_client
lib/xastir/
lib/xastir/Coordinate.pm
lib/xastir/Xastir_tigerpoly.py
lib/xastir/coord-convert.pl
lib/xastir/fcc-get
lib/xastir/get-NWSdata
lib/xastir/get-gnis
lib/xastir/get-maptools.sh
lib/xastir/get_shapelib.sh
lib/xastir/gpx2shape
lib/xastir/icontable.pl
lib/xastir/inf2geo.pl
lib/xastir/kiss-off.pl
lib/xastir/mapblast2geo.pl
lib/xastir/mapfgd.pl
lib/xastir/object2shp.pl
lib/xastir/overlay.pl
lib/xastir/ozi2geo.pl
lib/xastir/permutations.pl
lib/xastir/split_gnis.bash
lib/xastir/split_gnis.pl
lib/xastir/test_coord.pl
lib/xastir/toporama250k.pl
lib/xastir/toporama50k.pl
lib/xastir/track-get.pl
lib/xastir/update_langfile.pl
lib/xastir/waypoint-get.pl
lib/xastir/xastir-fixcfg.sh
lib/xastir/xastir-migrate.sh
@man man/man1/xastir.1
share/xastir/
share/xastir/Counties/
share/xastir/Counties/placeholder
share/xastir/GNIS/
share/xastir/GNIS/placeholder
share/xastir/config/
share/xastir/config/24kgrid.dbfawk
share/xastir/config/gps_wpt.dbfawk
share/xastir/config/language-Dutch.sys
share/xastir/config/language-English.sys
share/xastir/config/language-French.sys
share/xastir/config/language-German.sys
share/xastir/config/language-Italian.sys
share/xastir/config/language-Portuguese.sys
share/xastir/config/language-Spanish.sys
share/xastir/config/nwsc_ddmmyy.dbfawk
share/xastir/config/nwsmzddmmyy.dbfawk
share/xastir/config/nwsmzoddmmyy.dbfawk
share/xastir/config/nwsozddmmyy.dbfawk
share/xastir/config/nwsw_ddmmyy.dbfawk
share/xastir/config/nwsz_ddmmyy.dbfawk
share/xastir/config/nwszoddmmyy.dbfawk
share/xastir/config/predefined_EVENT.sys
share/xastir/config/predefined_SAR.sys
share/xastir/config/tgr2shp.dbfawk
share/xastir/config/tgr2shppoly.dbfawk
share/xastir/config/tgrcty.dbfawk
share/xastir/config/tgrkgl.dbfawk
share/xastir/config/tgrlk.dbfawk
share/xastir/config/tgrlpt.dbfawk
share/xastir/config/tgrlpy.dbfawk
share/xastir/config/tgrplc00.dbfawk
share/xastir/config/tgrwat.dbfawk
share/xastir/config/tnc-startup.aea
share/xastir/config/tnc-startup.d700
share/xastir/config/tnc-startup.kam
share/xastir/config/tnc-startup.kpc2
share/xastir/config/tnc-startup.kpc3
share/xastir/config/tnc-startup.null
share/xastir/config/tnc-startup.paccomm
share/xastir/config/tnc-startup.pico
share/xastir/config/tnc-startup.sys
share/xastir/config/tnc-startup.thd7
share/xastir/config/tnc-startup.tnc2
share/xastir/config/tnc-startup.tnc2-ui
share/xastir/config/tnc-stop.d700
share/xastir/config/tnc-stop.sys
share/xastir/config/tnc-stop.thd7
share/xastir/config/tnc-stop.tnc2-ui
share/xastir/config/xastir.rgb
share/xastir/doc/
share/xastir/doc/AUTHORS
share/xastir/doc/COPYING
share/xastir/doc/ChangeLog
share/xastir/doc/FAQ
share/xastir/doc/INSTALL
share/xastir/doc/LICENSE
share/xastir/doc/README
share/xastir/doc/README.CVS
share/xastir/doc/README.Contributing
share/xastir/doc/README.Getting-Started
share/xastir/doc/README.MAPS
share/xastir/doc/README.win32
share/xastir/doc/UPGRADE
share/xastir/fcc/
share/xastir/fcc/placeholder
share/xastir/help/
share/xastir/help/help-Dutch.dat
share/xastir/help/help-English.dat
share/xastir/help/help-French.dat
share/xastir/help/help-German.dat
share/xastir/help/help-Italian.dat
share/xastir/help/help-Portuguese.dat
share/xastir/help/help-Spanish.dat
share/xastir/maps/
share/xastir/maps/GPS/
share/xastir/maps/GPS/placeholder
share/xastir/maps/Online/
share/xastir/maps/Online/CanadaTopo250k.geo
share/xastir/maps/Online/CanadaTopo50k.geo
share/xastir/maps/Online/TXRadar.geo
share/xastir/maps/Online/USRadar.geo
share/xastir/maps/Online/WMSRadar.geo
share/xastir/maps/Online/terraserver-reflectivity.geo
share/xastir/maps/Online/terraserver-topo.geo
share/xastir/maps/Online/terraserver-urban.geo
share/xastir/maps/Online/terraserver.geo
share/xastir/maps/Online/tigermap.geo
share/xastir/sounds/
share/xastir/sounds/placeholder
share/xastir/symbols/
share/xastir/symbols/13pct.xbm
share/xastir/symbols/25pct.xbm
share/xastir/symbols/2x2.xbm
share/xastir/symbols/alert.xbm
share/xastir/symbols/flood.xbm
share/xastir/symbols/red_flag.xbm
share/xastir/symbols/snow.xbm
share/xastir/symbols/symbols.dat
share/xastir/symbols/tornado.xbm
share/xastir/symbols/wind.xbm
share/xastir/symbols/winter_wx.xbm
share/xastir/symbols/wntr_strm.xbm