Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions

11
ham/7plus/DESCR Normal file
View File

@@ -0,0 +1,11 @@
7plus is an uuencoder-like file coder for use in Amateur Packet Radio
BBS S&F of binary data files. The Packet Radio protocol (AX.25) utilizes
8 bits for data transfer whereas most standard terminal programs only
use a 7 bits alogarithm. The result is that only 87.5% of the available
bandwidth is utilized.
7plus fully exploits the capacity of the network by using all 8 bits
and hence increasing data throughput. Furthermore, it uses alogarithms
which checks for data integrity, detecting, reporting and, whenever
possible, correcting data transmission errors that may have occurred due
to noise or loss of signal with minimal overheads.

27
ham/7plus/Makefile Normal file
View File

@@ -0,0 +1,27 @@
# $NetBSD: Makefile,v 1.16 2012/10/03 13:01:42 asau Exp $
#
DISTNAME= 7pl225sr
PKGNAME= 7plus-225
PKGREVISION= 1
CATEGORIES= ham
MASTER_SITES= ${MASTER_SITE_BACKUP}
DISTFILES= 7pl225sr.tgz \
7pl210mg.tgz
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= #http://home.t-online.de/home/dg1bbq/
COMMENT= Uuencode-like file coder for AMPR BBS S&F of binary files
LICENSE= no-commercial-use
WRKSRC= ${WRKDIR}/7plsrc.225
MAKE_FILE= netbsd.mak
USE_TOOLS+= gmake
INSTALLATION_DIRS= bin share/doc/7plus
post-install:
${INSTALL_DATA} ${WRKDIR}/*.txt ${DESTDIR}${PREFIX}/share/doc/7plus && \
${INSTALL_DATA} ${WRKDIR}/readme.now ${DESTDIR}${PREFIX}/share/doc/7plus
.include "../../mk/bsd.pkg.mk"

6
ham/7plus/PLIST Normal file
View File

@@ -0,0 +1,6 @@
@comment $NetBSD: PLIST,v 1.3 2009/06/14 18:00:32 joerg Exp $
bin/7plus
share/doc/7plus/7plus_g.txt
share/doc/7plus/asc.txt
share/doc/7plus/ascbin.txt
share/doc/7plus/readme.now

15
ham/7plus/distinfo Normal file
View File

@@ -0,0 +1,15 @@
$NetBSD: distinfo,v 1.7 2009/04/07 18:45:04 hasso Exp $
SHA1 (7pl225sr.tgz) = 9c393e8f6968d24ec469fbca45ade65a5c6d52fc
RMD160 (7pl225sr.tgz) = 23fe71c10ab4e006c49c7b0e7fbf96d498b2ccf7
Size (7pl225sr.tgz) = 65122 bytes
SHA1 (7pl210mg.tgz) = 7acc708cabf8d166f74bd398940fb71aac2c7495
RMD160 (7pl210mg.tgz) = ffaf7b5dd4c55fb847a6b5fd87cdfaecf904e53e
Size (7pl210mg.tgz) = 31095 bytes
SHA1 (patch-aa) = 62fa52455c8225cbd4465bbd5e1565e7eaae3421
SHA1 (patch-ab) = 4bf37d21aceced7b8faaeb67dffb8280b220fc16
SHA1 (patch-ac) = 286a5f9f8bf7066948735e646e8138e820f84a68
SHA1 (patch-ad) = b55e4b7d5f416f4363f8457f244ce21a0e19e1eb
SHA1 (patch-ae) = d52190c471cebd4c4fc5debb33a342aa3e852928
SHA1 (patch-af) = 499fd3c8d56bec7c5e52c4e131eadadb837506d9
SHA1 (patch-ag) = cb02b04427d655de882fcc6932c89cfd94a85429

View File

@@ -0,0 +1,57 @@
$NetBSD: patch-aa,v 1.2 2006/01/09 20:02:02 joerg Exp $
--- 7plus.h.orig 2000-01-10 15:03:02.000000000 +0000
+++ 7plus.h
@@ -207,7 +207,7 @@
#ifdef __unix__
- #if defined(__i386__) && !defined(__NetBSD__)
+ #if defined(__i386__) && !defined(__NetBSD__) && !defined(__DragonFly__)
#ifndef SYSV
#define SYSV
#endif
@@ -225,9 +225,15 @@
#include <string.h>
#include <linux/limits.h>
#include <sys/ioctl.h>
+ #ifndef S_IREAD
+ #define S_IREAD S_IRUSR
+ #endif
+ #ifndef S_IWRITE
+ #define S_IWRITE S_IWUSR
+ #endif
#endif /* __linux__ */
- #ifdef __NetBSD__
+ #if defined(__NetBSD__) || defined(__DragonFly__)
#define _HAVE_STRSTR
#define _HAVE_RENAME
#define _HAVE_GMTIME
@@ -251,7 +257,7 @@
#include <termio.h>
struct termio sg[2];
#else
- #ifdef __NetBSD__
+ #if defined(__NetBSD__) || defined(__DragonFly__)
#include <unistd.h>
#include <termios.h>
struct termios sg[2];
@@ -262,7 +268,7 @@
#endif /* SYSV */
/* assumed limits (hope reasonable !!! DF6NL) */
- #if defined(__linux__) || defined(__NetBSD__)
+ #if defined(__linux__) || defined(__NetBSD__) || defined(__DragonFly__)
#define MAXPATH PATH_MAX /* defined in linux/limits.h DL5MLO */
#define MAXFILE NAME_MAX
#define MAXEXT NAME_MAX /* you can a.asdfasdfasdfasfa */
@@ -343,7 +349,7 @@
/** shorthands for unsigned types **/
typedef unsigned char byte; /* 8bit unsigned char */
-#ifdef __unix__
+#if defined(__unix__) && !defined(__linux__) && !defined(__DragonFly__)
#ifdef __vax__
typedef u_long ulong;
#endif

View File

@@ -0,0 +1,31 @@
$NetBSD: patch-ab,v 1.2 2009/04/07 18:45:04 hasso Exp $
--- 7plus.c.orig 2000-03-20 16:35:56 +0200
+++ 7plus.c 2009-04-06 11:37:24 +0300
@@ -118,7 +118,7 @@ const char nomem[] = "\007Argh error:
"Can't continue.....\n";
int noquery = 0;
int force = 0;
-int fls = 0;
+int cfls = 0;
int autokill = 0;
int simulate = 0;
int sysop = 0;
@@ -264,7 +264,7 @@ const char *help[] = {
#define EXMPL "dh0:/pr/"
#endif
-#if defined(__linux__) || defined(__NetBSD__)
+#if defined(__linux__) || defined(__NetBSD__) || defined(__DragonFly__)
#undef EXMPL
#define EXMPL "/pr/"
#endif
@@ -634,7 +634,7 @@ int go_at_it (int argc, char **argv)
}
if (!stricmp (argv[i], "-#")) /* Create 7PLUS.FLS. Contents e.g.: */
- fls = 1; /* 10 TEST */
+ cfls = 1; /* 10 TEST */
/* for TEST.EXE encoded into 10 parts */
if (!stricmp (argv[i], "-C")) /* Use 7PLUS-file as a correction file */

View File

@@ -0,0 +1,49 @@
$NetBSD: patch-ac,v 1.1 2006/01/09 20:02:02 joerg Exp $
--- utils.c.orig 2006-01-09 19:56:59.000000000 +0000
+++ utils.c
@@ -1591,7 +1591,7 @@ void fnsplit(char *pth, char *dr, char *
strcpy(tmp,pth);
-#if (defined (__MWERKS__) || defined (__linux__) || defined (__NETBSD__))
+#if (defined (__MWERKS__) || defined (__linux__) || defined (__NETBSD__)) || defined(__DragonFly__)
/* Ignore drive on systems that don't have drives. */
p = tmp;
drv[0] = EOS;
@@ -1729,7 +1729,7 @@ int strnicmp (const char *s1, const char
#ifndef _HAVE_GETCH
- #if defined(SYSV) || defined(__EMX__) || defined(__NetBSD__)/* use ioctl() */
+ #if defined(SYSV) || defined(__EMX__) || defined(__NetBSD__) || defined(__DragonFly__) /* use ioctl() */
#define _IOCTL_
#endif
@@ -1769,7 +1769,7 @@ int strnicmp (const char *s1, const char
{
first = 0;
#ifdef _IOCTL_
- #ifdef __NetBSD__
+ #if defined(__NetBSD__) || defined(__DragonFly__)
(void) ioctl(fd, TIOCGETA, (char *) &sg[OFF]);
#else
(void) ioctl(fd, TCGETA, (char *) &sg[OFF]);
@@ -1795,7 +1795,7 @@ int strnicmp (const char *s1, const char
}
#ifdef _IOCTL_
- #ifdef __NetBSD__
+ #if defined(__NetBSD__) || defined(__DragonFly__)
(void) ioctl(fd, TIOCSETAW, (char *) &sg[ON]);
#else
(void) ioctl(fd, TCSETAW, (char *) &sg[ON]);
@@ -1807,7 +1807,7 @@ int strnicmp (const char *s1, const char
read(fd, &c, 1);
#ifdef _IOCTL_
- #ifdef __NetBSD__
+ #if defined(__NetBSD__) || defined(__DragonFly__)
(void) ioctl(fd, TIOCSETAW, (char *) &sg[OFF]);
#else
(void) ioctl(fd, TCSETAW, (char *) &sg[OFF]);

View File

@@ -0,0 +1,13 @@
$NetBSD: patch-ad,v 1.1 2008/06/12 02:14:32 joerg Exp $
--- netbsd.mak.orig 2008-06-10 09:03:21.000000000 +0000
+++ netbsd.mak
@@ -31,7 +31,7 @@ all: $(OBJS)
$(LD) $(LDFLAGS) $(SPECFLAGS) -o $(TARGET) $(OBJS) $(LIBS)
install: all
- $(INSTALL_PROGRAM) 7plus $(PREFIX)/bin
+ $(INSTALL_PROGRAM) 7plus ${DESTDIR}$(PREFIX)/bin
depend:
$(CC) -M $(SRCS) >depend.out

View File

@@ -0,0 +1,13 @@
$NetBSD: patch-ae,v 1.1 2009/04/07 18:45:04 hasso Exp $
--- globals.h.orig 2009-04-06 11:37:54 +0300
+++ globals.h 2009-04-06 11:38:05 +0300
@@ -22,7 +22,7 @@ extern char notsame[];
extern char def_format[];
extern int noquery;
extern int force;
-extern int fls;
+extern int cfls;
extern int autokill;
extern int sysop;
extern int simulate;

View File

@@ -0,0 +1,13 @@
$NetBSD: patch-af,v 1.1 2009/04/07 18:45:04 hasso Exp $
--- decode.c.orig 2009-04-06 11:38:47 +0300
+++ decode.c 2009-04-06 11:38:57 +0300
@@ -44,7 +44,7 @@ int control_decode (char *name)
/* write 7plus.fls (for server use) */
sprintf (filename, "%s"_7PLUS_FLS, genpath);
- if (!i && fls)
+ if (!i && cfls)
{
if ((out = fopen (filename, OPEN_WRITE_TEXT)) == NULLFP)
return (14);

View File

@@ -0,0 +1,22 @@
$NetBSD: patch-ag,v 1.1 2009/04/07 18:45:04 hasso Exp $
--- encode.c.orig 2009-04-06 11:39:05 +0300
+++ encode.c 2009-04-06 11:39:26 +0300
@@ -37,7 +37,7 @@ int encode_file (char *name, long blocks
tune = 0;
#endif
- if (fls)
+ if (cfls)
if (!test_exist (_7PLUS_FLS))
unlink (_7PLUS_FLS);
@@ -738,7 +738,7 @@ int encode_file (char *name, long blocks
}
fprintf (o, "\n\nEncoding successful!\n");
- if (fls)
+ if (cfls)
{
if (!*altname)
sprintf (filename, "%s%s", searchbin?searchbin:"", _7PLUS_FLS);

40
ham/Makefile Normal file
View File

@@ -0,0 +1,40 @@
# $NetBSD: Makefile,v 1.24 2008/10/23 08:09:14 wulf Exp $
#
COMMENT= Wireless communication tools and applications
SUBDIR+= 7plus
SUBDIR+= cwtext
SUBDIR+= dpbox
SUBDIR+= fl_logbook
SUBDIR+= fldigi
SUBDIR+= gmfsk
SUBDIR+= gnuradio-audio-jack
SUBDIR+= gnuradio-audio-oss
SUBDIR+= gnuradio-audio-portaudio
SUBDIR+= gnuradio-core
SUBDIR+= gnuradio-core-docs
SUBDIR+= gnuradio-examples
SUBDIR+= gnuradio-gsm
SUBDIR+= gnuradio-howto
SUBDIR+= gnuradio-radio-astronomy
SUBDIR+= gnuradio-trellis
SUBDIR+= gnuradio-usrp
SUBDIR+= gnuradio-video-sdl
SUBDIR+= gnuradio-wxgui
SUBDIR+= gpredict
SUBDIR+= grig
SUBDIR+= hamlib
SUBDIR+= linpsk
SUBDIR+= locator
SUBDIR+= tfkiss
SUBDIR+= tlf
SUBDIR+= tnt
SUBDIR+= usrp
SUBDIR+= usrp-docs
SUBDIR+= wwl
SUBDIR+= xdx
SUBDIR+= xlog
SUBDIR+= yaesu
.include "../mk/misc/category.mk"

4
ham/cwtext/DESCR Normal file
View File

@@ -0,0 +1,4 @@
Convert text to International Morse Code. Input is ASCII text.
Output can be: - . -..- - on the console, raw 8bit PCM suitable
for piping to /dev/audio, .wav files or even (mp3|ogg).
Good for headlines on your MP3 player or code practice.

5
ham/cwtext/MESSAGE Normal file
View File

@@ -0,0 +1,5 @@
===========================================================================
$NetBSD: MESSAGE,v 1.1 2010/12/07 13:14:57 mef Exp $
See ${PREFIX}/share/doc/${PKGBASE}/README for licence and usage.
===========================================================================

33
ham/cwtext/Makefile Normal file
View File

@@ -0,0 +1,33 @@
# $NetBSD: Makefile,v 1.21 2012/10/03 13:01:42 asau Exp $
DISTNAME= cwtext-0.96
PKGREVISION= 1
CATEGORIES= ham
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=cwtext/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://cwtext.sourceforge.net/
COMMENT= Morse Code Generator
MAKE_FILE= makefile
USE_TOOLS+= gmake
BUILD_TARGET= ALL
INSTALLATION_DIRS= bin
INSTALLATION_DIRS+= share/doc/${PKGBASE}
post-patch:
${SED} -e "s,^PREFIX,#PREFIX,g" \
-e "s,gcc,${CC} ${CFLAGS},g" \
-e "s,python,${PYTHONBIN},g" \
${WRKSRC}/${MAKE_FILE} > ${WRKSRC}/${MAKE_FILE}.done
${MV} ${WRKSRC}/${MAKE_FILE}.done ${WRKSRC}/${MAKE_FILE}
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/cwpcm ${DESTDIR}${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/cwtext ${DESTDIR}${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/cwmm ${DESTDIR}${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
.include "../../lang/python/application.mk"
.include "../../mk/bsd.pkg.mk"

5
ham/cwtext/PLIST Normal file
View File

@@ -0,0 +1,5 @@
@comment $NetBSD: PLIST,v 1.3 2010/12/07 13:14:57 mef Exp $
bin/cwmm
bin/cwpcm
bin/cwtext
share/doc/cwtext/README

7
ham/cwtext/distinfo Normal file
View File

@@ -0,0 +1,7 @@
$NetBSD: distinfo,v 1.6 2012/11/01 19:43:42 joerg Exp $
SHA1 (cwtext-0.96.tar.gz) = 5e6d7d57b5329de80fce84eb65d47c0b776f2d4f
RMD160 (cwtext-0.96.tar.gz) = 1d47de9a6441846484e993708b9c0fdd9042e8ba
Size (cwtext-0.96.tar.gz) = 16596 bytes
SHA1 (patch-morse.c) = 19f95a2d66d54708cd13d19468964cfac282b47a
SHA1 (patch-pcm.c) = 305d818ee9557a626673b2023b758bd19150ce44

View File

@@ -0,0 +1,12 @@
$NetBSD: patch-morse.c,v 1.1 2012/11/01 19:43:42 joerg Exp $
--- morse.c.orig 2012-10-30 22:47:24.000000000 +0000
+++ morse.c
@@ -17,6 +17,7 @@ Foundation, Inc., 59 Temple Place - Suit
*/
+#include <ctype.h>
#include <stdio.h>
#include "cw.h"

View File

@@ -0,0 +1,13 @@
$NetBSD: patch-pcm.c,v 1.1 2012/11/01 19:43:42 joerg Exp $
--- pcm.c.orig 2012-10-30 22:47:38.000000000 +0000
+++ pcm.c
@@ -60,7 +60,7 @@ int mStoSamples(int hVox, int time) {
float samples;
float fsr;
- if (!valid(hVox)) return;
+ if (!valid(hVox)) return -1;
timelen = (float) time;
fsr = (float) voxref(hVox).samplerate;

3
ham/dpbox/DESCR Normal file
View File

@@ -0,0 +1,3 @@
DPBOX is a multi protocol and multi user packet radio BBS. It can
handle up to 200 simultaneous users and has the capacity of storing
a maximum of 32767*32767 messages.

77
ham/dpbox/Makefile Normal file
View File

@@ -0,0 +1,77 @@
# $NetBSD: Makefile,v 1.18 2012/10/03 13:01:43 asau Exp $
#
DISTNAME= dpbox-60000
PKGNAME= dpbox-6.00.00
PKGREVISION= 3
CATEGORIES= ham
MASTER_SITES= http://home.snafu.de/wahlm/dl8hbs/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://home.snafu.de/wahlm/dl8hbs/dpbox.html
COMMENT= Multi-Protocol Amateur Packet Radio BBS
WRKSRC= ${WRKDIR}/dpbox-6.00.00/source
USE_TOOLS+= gmake
MAKE_FILE= Makefile.netbsd
MAKE_ENV+= prefix=${PREFIX:Q}
INSTALL_MAKE_FLAGS+= prefix=${DESTDIR}${PREFIX}
.include "../../mk/bsd.prefs.mk"
PKG_SYSCONFDIR.dpbox=${PREFIX}/share/dpbox/conf
DPBOX_CONF_DIR= ${PKG_SYSCONFDIR}
DPBOX_SPOOL_DIR=/var/spool/dpbox
FILES_SUBST+= DPBOX_CONF_DIR=${DPBOX_CONF_DIR:Q} \
DPBOX_SPOOL_DIR=${DPBOX_SPOOL_DIR:Q}
EGDIR= ${PREFIX}/share/examples/${PKGBASE}/conf
REQD_DIRS= ${PKG_SYSCONFDIR} \
${PKG_SYSCONFDIR}/sf \
${PKG_SYSCONFDIR}/system \
${DPBOX_SPOOL_DIR}/crawler \
${DPBOX_SPOOL_DIR}/fileserv \
${DPBOX_SPOOL_DIR}/fileserv/incoming \
${DPBOX_SPOOL_DIR}/fileserv/temp7pl \
${DPBOX_SPOOL_DIR}/fileserv/newbin \
${DPBOX_SPOOL_DIR}/indexes \
${DPBOX_SPOOL_DIR}/infofiles \
${DPBOX_SPOOL_DIR}/import \
${DPBOX_SPOOL_DIR}/newmail \
${DPBOX_SPOOL_DIR}/privserv \
${DPBOX_SPOOL_DIR}/privserv/temp7pl \
${DPBOX_SPOOL_DIR}/proto \
${DPBOX_SPOOL_DIR}/save \
${DPBOX_SPOOL_DIR}/server \
${DPBOX_SPOOL_DIR}/stat \
${DPBOX_SPOOL_DIR}/stat/extusers
CONF_FILES= ${EGDIR}/dpbox.ini ${PKG_SYSCONFDIR}/dpbox.ini \
${EGDIR}/crawler/stopwords ${DPBOX_SPOOL_DIR}/crawler/stopwords \
${EGDIR}/sf/db0xyz.sf ${PKG_SYSCONFDIR}/sf/db0xyz.sf \
${EGDIR}/system/badwords.box ${PKG_SYSCONFDIR}/system/badwords.box \
${EGDIR}/system/bcast.box ${PKG_SYSCONFDIR}/system/bcast.box \
${EGDIR}/system/beacon.box ${PKG_SYSCONFDIR}/system/beacon.box \
${EGDIR}/system/commands.box ${PKG_SYSCONFDIR}/system/commands.box \
${EGDIR}/system/config.box ${PKG_SYSCONFDIR}/system/config.box \
${EGDIR}/system/convlt.box ${PKG_SYSCONFDIR}/system/convlt.box \
${EGDIR}/system/convtit.box ${PKG_SYSCONFDIR}/system/convtit.box \
${EGDIR}/system/cookies.doc ${PKG_SYSCONFDIR}/system/cookies.doc \
${EGDIR}/system/digimap.stn ${PKG_SYSCONFDIR}/system/digimap.stn \
${EGDIR}/system/prefix.inf ${PKG_SYSCONFDIR}/system/prefix.inf \
${EGDIR}/system/prefix.sub ${PKG_SYSCONFDIR}/system/prefix.sub \
${EGDIR}/system/prvcalls.box ${PKG_SYSCONFDIR}/system/prvcalls.box \
${EGDIR}/system/reject.box ${PKG_SYSCONFDIR}/system/reject.box \
${EGDIR}/system/rubriken.box ${PKG_SYSCONFDIR}/system/rubriken.box \
${EGDIR}/system/tcpip.box ${PKG_SYSCONFDIR}/system/tcpip.box \
${EGDIR}/system/transfer.box ${PKG_SYSCONFDIR}/system/transfer.box \
${EGDIR}/system/unproto.box ${PKG_SYSCONFDIR}/system/unproto.box \
${EGDIR}/system/whotalks.lan ${PKG_SYSCONFDIR}/system/whotalks.box
post-build:
${SED} -e 's#@prefix@#${PREFIX}#g' \
< ${FILESDIR}/dpbox.ini > ${WRKDIR}/dpbox-6.00.00/dpbox.ini
.include "../../mk/bsd.pkg.mk"

116
ham/dpbox/PLIST Normal file
View File

@@ -0,0 +1,116 @@
@comment $NetBSD: PLIST,v 1.4 2009/06/14 18:00:32 joerg Exp $
bin/dpgate
bin/dpcodeconv
bin/dpmybbs
bin/dphttp
bin/dpputlinks
sbin/dpbox
libexec/cgi-bin/dpbbs
libexec/cgi-bin/dpcheck
libexec/cgi-bin/dpcmd
libexec/cgi-bin/dpdir
libexec/cgi-bin/dpftr
libexec/cgi-bin/dplist
libexec/cgi-bin/dplist.neu
libexec/cgi-bin/dploc
libexec/cgi-bin/dpprefix
libexec/cgi-bin/dpsertit
libexec/cgi-bin/dpuser
libexec/cgi-bin/dpbottom.html
libexec/cgi-bin/dptop.html
share/dpbox/language/BS.ALL
share/dpbox/language/BS.LAN
share/dpbox/language/DL.ALL
share/dpbox/language/DL.LAN
share/dpbox/language/DLX.ALL
share/dpbox/language/DLX.LAN
share/dpbox/language/EA.ALL
share/dpbox/language/EA.LAN
share/dpbox/language/EY.ALL
share/dpbox/language/EY.LAN
share/dpbox/language/F.LAN
share/dpbox/language/G.ALL
share/dpbox/language/G.LAN
share/dpbox/language/HB.ALL
share/dpbox/language/HB.LAN
share/dpbox/language/HELP.BS
share/dpbox/language/HELP.DL
share/dpbox/language/HELP.DLX
share/dpbox/language/HELP.EA
share/dpbox/language/HELP.EY
share/dpbox/language/HELP.F
share/dpbox/language/HELP.G
share/dpbox/language/HELP.HB
share/dpbox/language/HELP.I
share/dpbox/language/HELP.NL
share/dpbox/language/HELP.OE1
share/dpbox/language/HELP.OK
share/dpbox/language/HELP.OZ
share/dpbox/language/HELP_SYS.BS
share/dpbox/language/HELP_SYS.DL
share/dpbox/language/HELP_SYS.DLX
share/dpbox/language/HELP_SYS.EY
share/dpbox/language/HELP_SYS.G
share/dpbox/language/HELP_SYS.HB
share/dpbox/language/HELP_SYS.OE1
share/dpbox/language/I.LAN
share/dpbox/language/NEWS.DL
share/dpbox/language/NL.LAN
share/dpbox/language/NLX.LAN
share/dpbox/language/OE1.ALL
share/dpbox/language/OE1.LAN
share/dpbox/language/OK.LAN
share/dpbox/language/OZ.LAN
share/dpbox/language/SP.LAN
share/dpbox/language/SPC.LAN
share/dpbox/language/SW.LAN
share/examples/dpbox/conf/dpbox.ini
share/examples/dpbox/conf/crawler/stopwords
share/examples/dpbox/conf/sf/db0xyz.sf
share/examples/dpbox/conf/system/badwords.box
share/examples/dpbox/conf/system/bcast.box
share/examples/dpbox/conf/system/beacon.box
share/examples/dpbox/conf/system/commands.box
share/examples/dpbox/conf/system/config.box
share/examples/dpbox/conf/system/convlt.box
share/examples/dpbox/conf/system/convtit.box
share/examples/dpbox/conf/system/cookies.doc
share/examples/dpbox/conf/system/digimap.stn
share/examples/dpbox/conf/system/prefix.inf
share/examples/dpbox/conf/system/prefix.sub
share/examples/dpbox/conf/system/prvcalls.box
share/examples/dpbox/conf/system/reject.box
share/examples/dpbox/conf/system/rubriken.box
share/examples/dpbox/conf/system/tcpip.box
share/examples/dpbox/conf/system/transfer.box
share/examples/dpbox/conf/system/unproto.box
share/examples/dpbox/conf/system/whotalks.lan
share/doc/dpbox/active_routing.txt
share/doc/dpbox/dpbox500.html
share/doc/dpbox/layer.gif
share/doc/dpbox/release.500
share/doc/dpbox/release.503
share/doc/dpbox/release.504
share/doc/dpbox/release.506
share/doc/dpbox/release.507
share/doc/dpbox/release.50708.german
share/doc/dpbox/release.508
share/httpd/htdocs/dpbox/boxmain.html
share/httpd/htdocs/dpbox/boxrub.html
share/httpd/htdocs/dpbox/dboxmain.html
share/httpd/htdocs/dpbox/dboxrub.html
share/httpd/htdocs/dpbox/dindex.html
share/httpd/htdocs/dpbox/index.html
share/httpd/htdocs/dpbox/pic/arrow1.gif
share/httpd/htdocs/dpbox/pic/icindex.gif
libexec/dpbox/crawler
libexec/dpbox/7cor
libexec/dpbox/7get
libexec/dpbox/bsget
libexec/dpbox/bsjoin
libexec/dpbox/listarc
libexec/dpbox/mkboard
libexec/dpbox/mkreject
libexec/dpbox/mktrans
libexec/dpbox/new
libexec/dpbox/search

30
ham/dpbox/distinfo Normal file
View File

@@ -0,0 +1,30 @@
$NetBSD: distinfo,v 1.11 2007/01/08 03:42:13 rillig Exp $
SHA1 (dpbox-60000.tar.gz) = 73a55785f499324f57736c7fb3cc0bd1001facd3
RMD160 (dpbox-60000.tar.gz) = 05a14f7601b531fcdd0bc0252d171eed3bfafb7f
Size (dpbox-60000.tar.gz) = 957010 bytes
SHA1 (patch-aa) = abf41e621eecd933e5d0d46d4fbae7e64fe2ec88
SHA1 (patch-ab) = abeee7b86844c8937792ef09a938caf232574fb3
SHA1 (patch-ac) = f81ea8e6441bd3bf95d8d60660cf9b407895a070
SHA1 (patch-ad) = 589a69328b5959f81b86739a6e3c32f6d1d71ffe
SHA1 (patch-ae) = 82c22fd343ab353012c822d84d39c8018b285f83
SHA1 (patch-af) = a875f03b78a1afb444fa9301e24b5718f0f285cc
SHA1 (patch-ag) = 7f0a7fa59aa48a0aaf940558b4de3498fb00dacd
SHA1 (patch-ah) = 6501eb257f10c4907d875a14d134bfb5fe6736f1
SHA1 (patch-ai) = 9d96b644d0b29a6bfc787202d2c42223570b1ee5
SHA1 (patch-ak) = be90e11c83d474e8c5b25e2510334a0cb145286b
SHA1 (patch-al) = 79b6a63442336b8824763a95512b87f90550aaff
SHA1 (patch-am) = 510dbc978691543bba8da95be33cc3ba3f2c18fe
SHA1 (patch-an) = 8f385b6bbaeb16dd5f3206262e9bba00b050d451
SHA1 (patch-ao) = 6a0b4bcfe08346c44a57edbc049e3ebcff8b668f
SHA1 (patch-ap) = f4bdfc134803f280dfebef013d09d291f0a19e6e
SHA1 (patch-aq) = 550c726ff658cc5b0b2d0ad2cff00545a5281b3d
SHA1 (patch-ar) = 8fb3d40c39ff2a4ba83ad563c0389a9e01898e9c
SHA1 (patch-as) = 0cd800c7bef8b8ab216aedd6eec18177cf16a8c7
SHA1 (patch-at) = 53ae592225a089e33011cb2ee059e2dc28b637cd
SHA1 (patch-au) = 170dc7507ed637ae39a30235485c64823817f04c
SHA1 (patch-av) = d8fd927a763cff03f038150950fc4eeb0f171a88
SHA1 (patch-aw) = 93607d109698386ad819f32841bab1e197632aab
SHA1 (patch-ax) = 34c9d90538b94a85a7d36d4a27f3de633e92e807
SHA1 (patch-ay) = f493bbbf11716a48e3b18363a2dcf4a8522094f3
SHA1 (patch-az) = 4a2c67f63e62308fb7af36f69df030a5e5e79775

80
ham/dpbox/files/dpbox.ini Normal file
View File

@@ -0,0 +1,80 @@
# dpbox.ini
# edited: Joachim Schurig, DL8HBS, 26.09.1999
#
# This is the first configuration file DPBOX will read
# Take care, if something is missing or misconfigured,
# DPBOX will NOT start.
#
# After reading this config file (it only defines the basic unix
# setup of the system), DPBOX will read the file system/config.box
# (and all other files in the subdirectory system/ ). Those files
# define the amateur radio settings of DPBOX. Please check them and
# set them up carefully.
# THIS FILE CANNOT BE REREAD WHILE DPBOX IS RUNNING!
# If you change any of the settings, you have to restart dpbox to
# accept the changes. The configuration data in all other files
# can be reloaded by sending a -SIGHUP to dpbox or by typing
# RELOAD in the mailbox itself.
# Unix user for DPBOX:
# DPBOX can only change to this user if started as root...
# If DPBOX is not started as root, please comment out the following line
dpbox_user dpbox
# own callsign (CHANGE IT TO THE CALLSIGN FOR DPBOX) :
Console_call AN0NYM
# SSID of box
box_ssid 7
# own QTH-loc:
# put in your WW-Locator.
myqthwwloc JO62RL
# packet length:
# 236 for TNN/NetRom networks, 255 for other
# (not 256, the huffman compression needs a byte)
box_paclen 236
# main box directory:
# usually, don't change it, except if you plan to start more than one DPBOX...
boxdir /var/spool/dpbox/
# directory for temporary files:
# usually, don't change it, except if you plan to start more than one DPBOX...
tempdir /tmp/
# name of socket for interface
# usually, don't change it, except if you plan to start more than one DPBOX...
box_socket /var/run/dpbox
#
# system files directory
#
boxsysdir @prefix@/share/dpbox/conf/system/
#
# S/F directory
#
boxsfdir @prefix@/share/dpbox/conf/sf/
#
# language files directory
#
boxlanguagedir @prefix@/share/dpbox/language/
#
# run files directory
#
boxrundir @prefix@/libexec/dpbox/
# directory for dpbox-pid-file
# usually, don't change it
boxprocdir /var/run/
# filename of dpbox-pid-file
# usually, don't change it, except if you plan to start more than one DPBOX...
proc_file dpbox.pid
@DPBOX_CONF_DIR@
@DPBOX_SPOOL_DIR@

164
ham/dpbox/patches/patch-aa Normal file
View File

@@ -0,0 +1,164 @@
$NetBSD: patch-aa,v 1.5 2007/01/08 03:42:13 rillig Exp $
--- Makefile.netbsd.orig 2000-04-27 22:18:57.000000000 +0930
+++ Makefile.netbsd 2006-04-21 10:41:09.000000000 +0930
@@ -1,9 +1,9 @@
###############################################################################
# #
-# This is the Makefile of dpbox-5.08 for NetBSD #
+# This is the Makefile of dpbox-6.00.00 for NetBSD #
# #
-# Version: 1.0.0 #
-# Date : 16 September 1999 #
+# Version: 1.2.0 #
+# Date : 15 May 2000 #
# Author : Berndt Josef Wulf, VK5ABN #
# #
###############################################################################
@@ -19,11 +19,12 @@
INSTALL_CONF = ${INSTALL} -m 440
MKDIR = mkdir -p
LN = ln -sf
-
-prefix = /usr/pkg
+CHMOD = /bin/chmod
+SED = /usr/bin/sed
bindir = $(prefix)/bin
sbindir = $(prefix)/sbin
confdir = $(prefix)/share/dpbox/conf
+exampledir = $(prefix)/share/examples/dpbox/conf
docdir = $(prefix)/share/doc/dpbox
landir = $(prefix)/share/dpbox/language
spooldir = /var/spool/dpbox
@@ -63,10 +64,6 @@
OTHER_SRCS = dpputlinks.c dpcodeconv.c dpgate.c crawler.c dpmybbs.c
-SUBDIRS = indexes infofiles newmail import save crawler \
- fileserv fileserv/incoming fileserv/temp7pl fileserv/newbin \
- privserv privserv/temp7pl proto server stat stat/extusers
-
all: dpbox crawler cgi toolbox
tgz:
@@ -96,11 +93,12 @@
$(INSTALL_PROGRAM) dpbox $(sbindir)
$(MKDIR) $(bindir)
- $(INSTALL_PROGRAM) -m u+s,a+x dpgate $(bindir)
+ $(INSTALL_PROGRAM) -m 4511 dpgate $(bindir)
$(INSTALL_PROGRAM) dpputlinks $(bindir)
$(INSTALL_PROGRAM) dpcodeconv $(bindir)
$(INSTALL_PROGRAM) dpmybbs $(bindir)
- $(INSTALL) -m 555 ../cgi/dpboxcgi/dphttp $(bindir)
+ $(SED) "s,/installdir,$(bindir)," < ../cgi/dpboxcgi/dphttp > $(bindir)/dphttp
+ $(CHMOD) 555 $(bindir)/dphttp
$(MKDIR) $(docdir)
$(INSTALL_DATA) ../document/* $(docdir)
@@ -123,59 +121,51 @@
$(LN) HELP_SYS.DL $(landir)/HELP_SYS.HB
$(LN) HELP_SYS.DL $(landir)/HELP_SYS.OE1
- for i in $(SUBDIRS); \
- do \
- $(MKDIR) $(spooldir)/$$i; \
- done;
-
$(MKDIR) $(prefix)/libexec/dpbox
$(INSTALL) -m 555 ../run/* $(prefix)/libexec/dpbox
$(INSTALL_PROGRAM) crawler $(prefix)/libexec/dpbox
- $(INSTALL_DATA) ../crawler/stopwords $(spooldir)/crawler
- @if [ -f ${confdir}/dpbox.ini ]; then \
- echo "***********************************************************"; \
- echo "* *"; \
- echo "* W A R N I N G *"; \
- echo "* ============= *"; \
- echo "* *"; \
- echo "* A previously installed version of DPBOX was dected *"; \
- echo "* on this system. The installation of the configuration *"; \
- echo "* files was suspended in order to preserve the *"; \
- echo "* old configuration. *"; \
- echo "* *"; \
- echo "* Please refer to the documentation and CHANGE logfile *"; \
- echo "* and manually adjust the configuration files where *"; \
- echo "* necessary. *"; \
- echo "* *"; \
- echo "***********************************************************"; \
- else \
- $(MKDIR) $(confdir); \
- $(INSTALL_CONF) ../dpbox.ini $(confdir)/dpbox.ini; \
- $(MKDIR) $(confdir)/system; \
- $(INSTALL_CONF) ../system/* $(confdir)/system ; \
- $(MKDIR) $(confdir)/sf ; \
- $(INSTALL_CONF) ../sf/* $(confdir)/sf; \
- fi
-
- @if [ -e ${cgidir} ]; then \
- echo "installing cgi-scripts"; \
- $(INSTALL) -m 755 ../cgi/cgi/* $(cgidir); \
- $(INSTALL_DATA) ../cgi/dpboxcgi/*.html $(cgidir); \
- fi
-
- @if [ -e ${httpdir} ]; then \
- echo "installing html pages"; \
- $(MKDIR) $(httpdir)/dpbox/pic; \
- $(INSTALL_DATA) ../cgi/dpbox/*.html $(httpdir)/dpbox; \
- $(INSTALL_DATA) ../cgi/dpbox/pic/* $(httpdir)/dpbox/pic; \
- fi
-
- @echo
- @echo dpbox installation complete
- @echo
- @echo Now edit the configuration files in $(confdir) and
- @echo $(confdir)/dpbox.ini!!!
+ $(MKDIR) $(exampledir)
+ $(INSTALL_CONF) ../dpbox.ini $(exampledir)/dpbox.ini
+ $(MKDIR) $(exampledir)/crawler
+ $(INSTALL_DATA) ../crawler/stopwords $(exampledir)/crawler
+ $(MKDIR) $(exampledir)/system
+ $(INSTALL_CONF) ../system/* $(exampledir)/system
+ $(MKDIR) $(exampledir)/sf
+ $(INSTALL_CONF) ../sf/* $(exampledir)/sf
+
+ $(MKDIR) $(cgidir)
+ echo "installing cgi-scripts";
+ @for i in `ls -1 ../cgi/cgi`; \
+ do \
+ $(SED) "s,/installdir,$(bindir)," < ../cgi/cgi/$$i > $(cgidir)/$$i; \
+ $(CHMOD) 555 $(cgidir)/$$i; \
+ done; \
+ $(INSTALL_DATA) ../cgi/dpboxcgi/*.html $(cgidir);
+
+ $(MKDIR) $(httpdir)
+ echo "installing html pages";
+ $(MKDIR) $(httpdir)/dpbox/pic;
+ $(INSTALL_DATA) ../cgi/dpbox/*.html $(httpdir)/dpbox;
+ $(INSTALL_DATA) ../cgi/dpbox/pic/* $(httpdir)/dpbox/pic;
+
+ @echo
+ @echo "***********************************************************"
+ @echo "* *"
+ @echo "* The installation of dpbox is now completed. *"
+ @echo "* *"
+ @echo "* Please read the documentation provided with this *"
+ @echo "* package carefully and edit all configuration files *"
+ @echo "* to reflect your system setup! *"
+ @echo "* *"
+ @echo "* The documentation can be found in *"
+ @echo "* $(docdir) *"
+ @echo "* *"
+ @echo "* The configuration files are located in *"
+ @echo "* $(confdir) *"
+ @echo "* *"
+ @echo "***********************************************************"
+ @echo
clean:
$(RM) *.o *~ .*~ *.orig *.bak *.s *.core
@@ -193,4 +183,3 @@
ifeq (.depend,$(wildcard .depend))
include .depend
endif
-

View File

@@ -0,0 +1,13 @@
$NetBSD: patch-ab,v 1.1 2000/09/25 16:21:01 wulf Exp $
--- box_tim.c.orig Sun Sep 24 12:46:31 2000
+++ box_tim.c Sun Sep 24 07:54:48 2000
@@ -1045,7 +1045,7 @@
/* tct is a counter with TICKSPERSEC Hz (at least 200) */
-void box_timing2(long tct)
+void box_timing2(time_t tct)
{
static short lastbatchhour = -1;
static long ltc1 = 0;

View File

@@ -0,0 +1,31 @@
$NetBSD: patch-ac,v 1.2 2006/01/24 22:27:07 joerg Exp $
--- filesys.h.orig 2000-04-27 12:48:56.000000000 +0000
+++ filesys.h
@@ -71,7 +71,7 @@ extern void mktemp(char *name);
-#if defined(__linux__) || defined(__NetBSD__)
+#if defined(__linux__) || defined(__NetBSD__) || defined(__DragonFly__)
/* simply copied that widespread file access code of former dpbox code */
/* in this single file. Not a real change to previous versions of the */
@@ -79,7 +79,7 @@ extern void mktemp(char *name);
/* localisation of the dpbox code from Atari to Linux */
#include <sys/stat.h>
-#ifndef __NetBSD__
+#if !defined(__NetBSD__) && !defined(__DragonFly__)
#include <sys/vfs.h>
#endif
@@ -177,7 +177,7 @@ extern long sfwrite(short handle, long c
extern void sfclose_x(short *handle, boolean delete_it);
extern void sfdelfile(char *name);
extern void sfdispfilelist(short x, dispfilelistproc outproc);
-extern void chkopenfiles(long maxopen, char *fn); /* maxopen in sekunden */
+extern void chkopenfiles(time_t maxopen, char *fn); /* maxopen in sekunden */
extern short fmv_x(char *filea, char *fileb, boolean delete_source,
long start, long size, boolean was_rename);
extern boolean tas_lockfile(long waittime, long oldtime, char *name);

View File

@@ -0,0 +1,12 @@
$NetBSD: patch-ad,v 1.1 2000/09/25 16:21:02 wulf Exp $
--- md2md5.c.orig Sun Sep 24 12:46:31 2000
+++ md2md5.c Sun Sep 24 08:11:22 2000
@@ -26,6 +26,7 @@
*/
#include "md2md5.h"
+#include <string.h>
/* PROTOTYPES should be set to one if and only if the compiler supports
function argument prototyping.

View File

@@ -0,0 +1,40 @@
$NetBSD: patch-ae,v 1.2 2006/01/24 22:27:07 joerg Exp $
--- pastrix.h.orig 2000-04-27 12:48:56.000000000 +0000
+++ pastrix.h
@@ -20,6 +20,8 @@
#include <stdlib.h>
#include <string.h>
+#include <limits.h>
+
/* The following definitions work only on twos-complement machines */
#ifndef SHORT_MAX
@@ -27,7 +29,7 @@
# define SHORT_MIN (~SHORT_MAX)
#endif
-#ifndef __NetBSD__
+#if !defined(__NetBSD__) && !defined(__DragonFly__)
#ifndef INT_MAX
# define INT_MAX ((int)(((unsigned int) -1) >> 1))
# define INT_MIN (~INT_MAX)
@@ -76,7 +78,7 @@
#include <sys/time.h>
#endif
-#if defined(__linux__) || defined(__NetBSD__)
+#if defined(__linux__) || defined(__NetBSD__) || defined(__DragonFly__)
#include <signal.h>
#define DP_SIGHUP SIGHUP
#define DP_SIGTSTP SIGTSTP
@@ -181,7 +183,7 @@ extern long memavail__(void);
#endif
#define move_b(quelle, ziel, size) memmove(ziel, quelle, size)
-#if defined(__linux__) || defined(__NetBSD__)
+#if defined(__linux__) || defined(__NetBSD__) || defined(__DragonFly__)
extern long get_cpuusage(void);
extern long get_memusage(void);
#else

View File

@@ -0,0 +1,52 @@
$NetBSD: patch-af,v 1.4 2006/01/24 22:27:07 joerg Exp $
--- filesys.c.orig 2000-04-27 12:48:54.000000000 +0000
+++ filesys.c
@@ -11,7 +11,7 @@
#include "filesys.h"
#include <unistd.h>
-#ifdef __NetBSD__
+#if defined(__NetBSD__) || defined(__DragonFly__)
#include <sys/param.h>
#include <sys/mount.h>
#endif
@@ -399,7 +399,12 @@ short sfremovedir(char *name)
-#if defined(__linux__) || defined(__NetBSD__)
+#if defined(__linux__) || defined(__NetBSD__) || defined(__DragonFly__)
+
+#if (defined(__NetBSD__) && (__NetBSD_Version__ >= 299000900)) || defined(__DragonFly__)
+#include <sys/statvfs.h>
+#endif
+
/* simply copied that widespread file access code of former dpbox code */
/* in this single file. Not a real change to previous versions of the */
@@ -413,9 +418,15 @@ long Diskfree(int dummy)
long DFree(char *mount)
{
+#if (defined(__NetBSD__) && (__NetBSD_Version__ < 299000900))
struct statfs mystatfs;
statfs(mount, &mystatfs);
+#else
+ struct statvfs mystatfs;
+
+ statvfs(mount, &mystatfs);
+#endif
if (mystatfs.f_bsize % 1024 == 0)
return (mystatfs.f_bsize / 1024) * mystatfs.f_bavail;
else
@@ -1523,7 +1534,7 @@ void _filesys_init(void)
#ifdef __macos__
StartupFilesysInit();
#endif
-#if defined(__linux__) || defined(__NetBSD__)
+#if defined(__linux__) || defined(__NetBSD__) || defined(__DragonFly__)
nextptr = NULL;
#endif
}

View File

@@ -0,0 +1,77 @@
$NetBSD: patch-ag,v 1.2 2006/04/21 02:07:54 wulf Exp $
--- tools.c.orig 2000-04-27 22:18:55.000000000 +0930
+++ tools.c 2006-04-14 11:57:42.000000000 +0930
@@ -72,12 +72,14 @@
void conv_string_from_local(char *s)
{
- while (*s) *s++ = conv_umlaut_from_local(*s);
+ for (; *s; ++s)
+ *s = conv_umlaut_from_local(*s);
}
void conv_string_to_local(char *s)
{
- while (*s) *s++ = conv_umlaut_to_local(*s);
+ for (; *s; ++s)
+ *s = conv_umlaut_to_local(*s);
}
boolean conv_file_umlaut(boolean to_local, char *fname)
@@ -168,7 +170,7 @@
#ifdef __macos__
return (status);
#endif
-#if defined(__linux__) || defined(__NetBSD__)
+#if defined(__linux__) || defined(__NetBSD__) || defined(__DragonFly__)
return (statusconvert(status));
#endif
}
@@ -1221,11 +1223,11 @@
static short iscalpha(char c)
{
- if (isupper(c))
+ if (isupper((u_char) c))
return 1;
- else if (isdigit(c))
+ else if (isdigit((u_char) c))
return 0;
- else if (islower(c))
+ else if (islower((u_char) c))
return 1;
else
return -1;
@@ -2202,11 +2204,11 @@
if (only_numbers) {
do {
c = dp_randomize(48, 57);
- } while (!isdigit(c));
+ } while (!isdigit((u_char) c));
} else {
do {
c = dp_randomize(48, 122);
- } while (!isalnum(c));
+ } while (!isalnum((u_char) c));
}
sprintf(MDprompt + strlen(MDprompt), "%c", c);
}
@@ -2349,7 +2351,7 @@
upper(hs);
p = hs;
while (*p) {
- if (!isupper(*p) && !isdigit(*p)) *p = '\0';
+ if (!isupper((u_char) *p) && !isdigit((u_char) *p)) *p = '\0';
p++;
}
s = hs;
@@ -2840,7 +2842,7 @@
for (TmpPtr = ConvStr; *OriginStr; TmpPtr++, OriginStr++)
{
- *TmpPtr = tolower(*OriginStr);
+ *TmpPtr = tolower((u_char) *OriginStr);
if (*OriginStr < '0') /* Satzzeichen neutralisieren */
*TmpPtr = ' ';
else

View File

@@ -0,0 +1,75 @@
$NetBSD: patch-ah,v 1.1 2006/01/24 22:27:07 joerg Exp $
--- status.c.orig 2000-04-27 12:48:55.000000000 +0000
+++ status.c
@@ -27,7 +27,7 @@
#include <utsname.h>
#endif
-#ifdef __NetBSD__
+#if defined(__NetBSD__) || defined(__DragonFly__)
#include <sys/utsname.h>
#include <sys/param.h>
#include <sys/sysctl.h>
@@ -110,7 +110,7 @@ long get_sysruntime(void)
static time_t lastsysrunt = 0;
static time_t lastsysrunres = 0;
-#ifndef __NetBSD__
+#if !defined(__NetBSD__) && !defined(__DragonFly__)
short k;
char hs[256], w[256];
short x, y;
@@ -145,7 +145,7 @@ void get_sysload(char *s)
static time_t lastsysltime = 0;
static char lastsysload[21] = "";
-#ifdef __NetBSD__
+#if defined(__NetBSD__) || defined(__DragonFly__)
double loadavg[3];
#else
short k;
@@ -185,7 +185,7 @@ void get_sysload(char *s)
} else
#endif
-#ifdef __NetBSD__
+#if defined(__NetBSD__) || defined(__DragonFly__)
if (getloadavg(loadavg, 3))
sprintf(s,"load averages: %.2f%%, %.2f%%, %.2f%%\n",
loadavg[0], loadavg[1], loadavg[2]);
@@ -205,7 +205,7 @@ void get_cpuinf(char *cpu, char *bmips)
short k;
char *hp;
-#ifdef __NetBSD__
+#if defined(__NetBSD__) || defined(__DragonFly__)
int mib[2];
size_t len;
#else
@@ -250,7 +250,15 @@ void get_cpuinf(char *cpu, char *bmips)
strcpy(lastcputype, &hs[1]);
}
#endif
-#ifdef __NetBSD__
+#ifdef __DragonFly__
+ sysctlbyname("hw.model", NULL, &len, NULL, 0);
+ if ((hp = malloc(len)) != NULL) {
+ sysctlbyname("hw.model", hp, &len, NULL, 0);
+ snprintf(lastcputype,80,"%s",hp);
+ free(hp);
+ }
+#endif
+#if defined(__NetBSD__)
mib[0] = CTL_HW;
mib[1] = HW_MODEL;
sysctl(mib, 2, NULL, &len, NULL, 0);
@@ -303,7 +311,7 @@ void get_linpack(char *s)
void get_sysversion(char *s)
{
-#if defined(__macos__) || defined(__NetBSD__)
+#if defined(__macos__) || defined(__NetBSD__) || defined(__DragonFly__)
struct utsname name;
strcpy(s, "?");

View File

@@ -0,0 +1,39 @@
$NetBSD: patch-ai,v 1.1 2006/01/24 22:27:07 joerg Exp $
--- shell.c.orig 2006-01-24 22:00:03.000000000 +0000
+++ shell.c
@@ -1,6 +1,6 @@
/* ---- shell functs, stolen from TNT / Mark Wahl, DL4YBG ----- */
-#if defined(__linux__) || defined(__NetBSD__)
+#if defined(__linux__) || defined(__NetBSD__) || defined(__DragonFly__)
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
@@ -231,7 +231,7 @@ boolean close_shell(short unr)
trans_show_puffer(unr,user[unr]->ptybuffer,user[unr]->ptybuflen);
}
if (user[unr]->pty >= minhandle) {
-#ifdef __NetBSD__
+#if defined(__NetBSD__) || defined(__DragonFly__)
ioctl(user[unr]->pty, TCIOFLUSH, 2);
#else
ioctl(user[unr]->pty, TCFLSH, 2);
@@ -415,7 +415,7 @@ boolean cmd_shell(short unr, boolean tra
if (user[unr]->ptylfcrconv) {
memset((char *) &termios, 0, sizeof(termios));
termios.c_iflag = ICRNL | IXOFF;
-#ifdef __NetBSD__
+#if defined(__NetBSD__) || defined(__DragonFly__)
termios.c_oflag = OPOST | OXTABS | ONLRET;
#else
termios.c_oflag = OPOST | TAB3 | ONLRET;
@@ -485,7 +485,7 @@ boolean cmd_run(short unr, boolean trans
if (user[unr]->ptylfcrconv) {
memset((char *) &termios, 0, sizeof(termios));
termios.c_iflag = ICRNL | IXOFF;
-#ifdef __NetBSD__
+#if defined(__NetBSD__) || defined(__DragonFly__)
termios.c_oflag = OPOST | OXTABS | ONLRET;
#else
termios.c_oflag = OPOST | TAB3 | ONLRET;

View File

@@ -0,0 +1,79 @@
$NetBSD: patch-ak,v 1.2 2006/04/21 02:07:54 wulf Exp $
--- pastrix.c.orig 2000-04-27 22:18:55.000000000 +0930
+++ pastrix.c 2006-04-14 11:56:19.000000000 +0930
@@ -19,7 +19,7 @@
#include "boxlocal.h"
#include "tools.h"
-#if defined(__linux__) || defined(__NetBSD__)
+#if defined(__linux__) || defined(__NetBSD__) || defined(__DragonFly__)
#include <ctype.h>
#include <sys/time.h>
#include <sys/resource.h>
@@ -80,7 +80,7 @@
#endif
}
-#if defined(__linux__) || defined(__NetBSD__)
+#if defined(__linux__) || defined(__NetBSD__) || defined(__DragonFly__)
long get_cpuusage(void)
{
@@ -557,7 +557,7 @@
return 129;
default:
- return tolower(ch);
+ return tolower((u_char) ch);
}
}
@@ -576,7 +576,7 @@
return 154;
default:
- return toupper(ch);
+ return toupper((u_char) ch);
}
}
@@ -615,7 +615,7 @@
if (*s == '\0') return false;
}
while (*s != '\0') {
- if (!isdigit(*s++)) {
+ if (!isdigit((u_char) *s++)) {
return false;
}
}
@@ -633,7 +633,7 @@
if (s[1] == '\0')
return false;
while (*s != '\0') {
- if (!((*s >= 'a' && *s <= 'f') || (*s >= 'A' && *s <= 'F') || isdigit(*s)))
+ if (!((*s >= 'a' && *s <= 'f') || (*s >= 'A' && *s <= 'F') || isdigit((u_char) *s)))
return false;
s++;
}
@@ -669,9 +669,9 @@
digit = false;
while (*s != '\0') {
- if (!(*s == 'e' || *s == 'E' || *s == '+' || *s == '-' || *s == '.' || isdigit(*s)))
+ if (!(*s == 'e' || *s == 'E' || *s == '+' || *s == '-' || *s == '.' || isdigit((u_char) *s)))
return false;
- else if (isdigit(*s))
+ else if (isdigit((u_char) *s))
digit = true;
}
@@ -702,7 +702,7 @@
return c - 87;
default:
- if (isdigit(c))
+ if (isdigit((u_char) c))
return c - '0';
else
return 0;

View File

@@ -0,0 +1,13 @@
$NetBSD: patch-al,v 1.1 2006/01/24 22:27:07 joerg Exp $
--- init.h.orig 2006-01-24 22:02:14.000000000 +0000
+++ init.h
@@ -33,7 +33,7 @@
#define DEF_SAVEDIR "save/"
#define DEF_SERVERDIR "server/"
-#ifdef __NetBSD__
+#if defined(__NetBSD__) || defined(__DragonFly__)
#define DEF_BOXPROCDIR "/var/run/"
#define DEF_BOXSOCKDIR "/var/run/"
#else /* Have to preserve the old setting for running installations */

View File

@@ -0,0 +1,13 @@
$NetBSD: patch-am,v 1.1 2006/01/24 22:27:07 joerg Exp $
--- init.c.orig 2006-01-24 22:02:35.000000000 +0000
+++ init.c
@@ -5,7 +5,7 @@
updated: Joachim Schurig DL8HBS 99/09/26
*/
-#if defined(__linux__) || defined(__NetBSD__)
+#if defined(__linux__) || defined(__NetBSD__) || defined(__DragonFly__)
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>

View File

@@ -0,0 +1,37 @@
$NetBSD: patch-an,v 1.2 2006/04/21 02:07:54 wulf Exp $
--- box_sys.c.orig 2000-04-27 22:18:53.000000000 +0930
+++ box_sys.c 2006-04-14 11:53:42.000000000 +0930
@@ -1679,6 +1679,14 @@
wlnuser(unr, "NetBSD porting : (c) 1999 Berndt Josef Wulf, VK5ABN");
#define __dp_version_ok
#endif
+#ifdef __DragonFly__
+ sprintf(hs, "dpbox (DragonFly) v%s%s %s", dp_vnr, dp_vnr_sub, dp_date);
+ wuser(unr, hs);
+ wlnuser(unr, " (c) 1990-2000 Joachim Schurig, DL8HBS");
+ wlnuser(unr, "Linux porting : (c) 1994-1997 Mark Wahl, DL4YBG");
+ wlnuser(unr, "NetBSD porting : (c) 1999 Berndt Josef Wulf, VK5ABN");
+#define __dp_version_ok
+#endif
#ifndef __dp_version_ok
sprintf(hs, "dpbox v%s%s %s", dp_vnr, dp_vnr_sub, dp_date);
wuser(unr, hs);
@@ -3123,7 +3131,7 @@
for (x = 1; x <= 53; x++) {
do {
c = dp_randomize(48, 122);
- } while (!isalnum(c));
+ } while (!isalnum((u_char) c));
sprintf(hs + strlen(hs), "%c", c);
}
@@ -3174,7 +3182,7 @@
for (x = 1; x <= 1620; x++) {
do {
c = dp_randomize(48, 122);
- } while (!isalnum(c));
+ } while (!isalnum((u_char) c));
sfwrite(k, 1, &c);
}
sfclose(&k);

View File

@@ -0,0 +1,31 @@
$NetBSD: patch-ao,v 1.2 2006/04/21 02:07:54 wulf Exp $
--- box.c.orig 2000-04-27 22:18:52.000000000 +0930
+++ box.c 2006-04-14 11:45:42.000000000 +0930
@@ -2226,7 +2226,7 @@
}
FORLIM1 = strlen(hs);
for (x = 0; x < FORLIM1; x++) {
- if (!(isupper(hs[x]) || isdigit(hs[x]))) hs[x] = ' ';
+ if (!(isupper((u_char)hs[x]) || isdigit((u_char)hs[x]))) hs[x] = ' ';
}
wlnuser(unr, hs);
rset = false;
@@ -3609,7 +3609,7 @@
x = k + 1;
l = strlen(com);
while (x <= l && com[x - 1] == ' ') x++;
- while (x <= l && isdigit(com[x - 1])) {
+ while (x <= l && isdigit((u_char) com[x - 1])) {
sprintf(hs + strlen(hs), "%c", com[x - 1]);
x++;
}
@@ -4297,6 +4297,8 @@
wlnuser(unr, hs);
#ifdef __NetBSD__
sprintf(w, "dpbox (NetBSD) v%s%s", dp_vnr, dp_vnr_sub);
+#elif defined(__DragonFly__)
+ sprintf(w, "dpbox (DragonFly) v%s%s", dp_vnr, dp_vnr_sub);
#else
#ifdef __linux__
sprintf(w, "dpbox (Linux) v%s%s", dp_vnr, dp_vnr_sub);

View File

@@ -0,0 +1,40 @@
$NetBSD: patch-ap,v 1.1 2006/01/24 22:27:07 joerg Exp $
--- main.c.orig 2006-01-24 22:13:19.000000000 +0000
+++ main.c
@@ -22,10 +22,13 @@
#ifdef __NetBSD__
#undef IFACE_DEBUG
#endif
+#ifdef __DragonFly__
+#undef IFACE_DEBUG
+#endif
#define MAIN_G
-#if defined(__linux__) || defined(__NetBSD__)
+#if defined(__linux__) || defined(__NetBSD__) || defined(__DragonFly__)
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
@@ -2921,6 +2924,11 @@ char *argv[];
dp_vnr, dp_vnr_sub, dp_date);
#define __dp_version_done
#endif
+#ifdef __DragonFly__
+ printf("DigiPoint Box v%s%s %s (DragonFly) successfully started\n",
+ dp_vnr, dp_vnr_sub, dp_date);
+#define __dp_version_done
+#endif
#ifdef __linux__
printf("DigiPoint Box v%s%s %s (Linux) successfully started\n",
dp_vnr, dp_vnr_sub, dp_date);
@@ -3082,7 +3090,7 @@ char *argv[];
exit_proc();
if (dpbox_debug == 2)
fclose(error_fp);
-#if defined(__linux__) || defined(__NetBSD__)
+#if defined(__linux__) || defined(__NetBSD__) || defined(__DragonFly__)
delete_dirlist();
unlink(serv_addr.sun_path);
#endif

View File

@@ -0,0 +1,31 @@
$NetBSD: patch-aq,v 1.1 2006/04/21 02:07:54 wulf Exp $
--- box_mem.c.orig 2000-04-27 22:18:53.000000000 +0930
+++ box_mem.c 2006-04-14 12:46:08.000000000 +0930
@@ -334,7 +334,7 @@
boxendbusy();
}
-#undef bsize;
+#undef bsize
static long find_bidhash(char *bid)
{
@@ -846,7 +846,7 @@
while (ct < k) {
ct++;
c = zeile[ct - 1];
- if (!isdigit(c)) {
+ if (!isdigit((u_char) c)) {
if (c == '#') {
if (ct > 6)
return size;
@@ -894,7 +894,7 @@
if (rp1[1] == 'B' && rp1[2] == 'I' && rp1[3] == 'N' && rp1[4] == '#') {
i = 4;
while (++i <= remainder && i < 16) {
- if (!isdigit(rp1[i])) {
+ if (!isdigit((u_char) rp1[i])) {
if (rp1[i] == '#') {
if (i > 5) { /* valid header */
binstart = size; /* this is a fallback in case of truncated input buffer */

View File

@@ -0,0 +1,63 @@
$NetBSD: patch-ar,v 1.1 2006/04/21 02:07:54 wulf Exp $
--- box_scan.c.orig 2006-04-14 12:01:07.000000000 +0930
+++ box_scan.c 2006-04-14 12:03:25.000000000 +0930
@@ -275,17 +275,17 @@
short l;
if (rdate[6] != '/') {
- if (rdate[7] == '/' && rdate[0] == '1' && isdigit(rdate[1]) && isdigit(rdate[2])) { /* fbb 5.15 y2k-bug */
+ if (rdate[7] == '/' && rdate[0] == '1' && isdigit((u_char) rdate[1]) && isdigit((u_char) rdate[2])) { /* fbb 5.15 y2k-bug */
rdate++;
} else {
return false;
}
}
l = strlen(rdate);
- if (l != 11 && (!(l == 12 && isalpha(rdate[11])))) return false;
- if ( !isdigit(rdate[0]) || !isdigit(rdate[1]) || !isdigit(rdate[2]) || !isdigit(rdate[3])
- || !isdigit(rdate[4]) || !isdigit(rdate[5]) || !isdigit(rdate[7]) || !isdigit(rdate[8])
- || !isdigit(rdate[9]) || !isdigit(rdate[10])) return false;
+ if (l != 11 && (!(l == 12 && isalpha((u_char) rdate[11])))) return false;
+ if ( !isdigit((u_char) rdate[0]) || !isdigit((u_char) rdate[1]) || !isdigit((u_char) rdate[2]) || !isdigit((u_char) rdate[3])
+ || !isdigit((u_char) rdate[4]) || !isdigit((u_char) rdate[5]) || !isdigit((u_char) rdate[7]) || !isdigit((u_char) rdate[8])
+ || !isdigit((u_char) rdate[9]) || !isdigit((u_char) rdate[10])) return false;
l = double_val(rdate, 0); /* year */
if (l < 70 && l > 38) return false;
l = double_val(rdate, 2); /* month */
@@ -313,7 +313,7 @@
l = strlen(timestr);
if (l < 10 || !check_rdate(&timestr[2])) return 0;
/* fbb515 y2k bug? */
- if (timestr[2] == '1' && isdigit(timestr[3]) && isdigit(timestr[4])) fbby2kbug = 1;
+ if (timestr[2] == '1' && isdigit((u_char) timestr[3]) && isdigit((u_char) timestr[4])) fbby2kbug = 1;
if ((l > 13+fbby2kbug) && (timestr[13+fbby2kbug] != ' ') && (upcase_(timestr[13+fbby2kbug]) != 'Z'))
only_date = true;
if (!only_date) {
@@ -362,7 +362,7 @@
*para = '\0';
p = strchr(rline, '@');
if (p != NULL) {
- if (p > rline && isdigit(p[-1])) {
+ if (p > rline && isdigit((u_char) p[-1])) {
p++;
nstrcpy(para, p, LEN_MBX);
del_comment(para, ' ');
@@ -405,7 +405,7 @@
char *p;
p = s;
- while (*s) if (isalnum(*s)) *p++ = *s++; else s++;
+ while (*s) if (isalnum((u_char) *s)) *p++ = *s++; else s++;
*p = '\0';
return p == s;
}
@@ -872,7 +872,7 @@
}
}
- if (wprotupdate && isxdigit(hs[0]) && isxdigit(hs[1]) && hs[2] == ' ') {
+ if (wprotupdate && isxdigit((u_char) hs[0]) && isxdigit((u_char) hs[1]) && hs[2] == ' ') {
if (process_wprotline(hs, actwpfilesender, true) == -2) wprotupdate = false;
continue;
}

View File

@@ -0,0 +1,13 @@
$NetBSD: patch-as,v 1.1 2006/04/21 02:07:54 wulf Exp $
--- box_sf.c.orig 2006-04-14 11:49:12.000000000 +0930
+++ box_sf.c 2006-04-14 11:49:40.000000000 +0930
@@ -3575,7 +3575,7 @@
case '!': /* send with resume offset */
w[0] = '\0';
- while (strlen(eingabe) > 1 && isdigit(eingabe[1])) {
+ while (strlen(eingabe) > 1 && isdigit((u_char) eingabe[1])) {
sprintf(w + strlen(w), "%c", eingabe[1]);
strdelete(eingabe, 1, 1);
}

View File

@@ -0,0 +1,56 @@
$NetBSD: patch-at,v 1.1 2006/04/21 02:07:54 wulf Exp $
--- box_sub.c.orig 2006-04-14 11:50:30.000000000 +0930
+++ box_sub.c 2006-04-14 11:52:09.000000000 +0930
@@ -2693,9 +2693,9 @@
notnum = false;
for (x = 0; x < l; x++) {
- if (!(rubrik[x] == '_' || rubrik[x] == '-' || isupper(rubrik[x]) || isdigit(rubrik[x])))
+ if (!(rubrik[x] == '_' || rubrik[x] == '-' || isupper((u_char) rubrik[x]) || isdigit((u_char) rubrik[x])))
return false;
- else if (isupper(rubrik[x]))
+ else if (isupper((u_char) rubrik[x]))
notnum = true;
}
return notnum;
@@ -2781,7 +2781,7 @@
p = rubrik;
p2 = rubrik;
while ((c = upcase_(*p++))) {
- if (c == '_' || c == '-' || isupper(c) || isdigit(c))
+ if (c == '_' || c == '-' || isupper((u_char) c) || isdigit((u_char) c))
*p2++ = c;
}
*p2 = '\0';
@@ -3347,7 +3347,7 @@
case '#':
if ((unsigned long)strlen(inp) < 32 && /* !!!CHECK */
- ((1L << strlen(inp)) & 0x1c) != 0 && isdigit(inp[1])) {
+ ((1L << strlen(inp)) & 0x1c) != 0 && isdigit((u_char) inp[1])) {
strdelete(inp, 1, 1);
strcpy(lt, inp);
return true;
@@ -3692,7 +3692,7 @@
*hs = '\0';
y = x;
y++;
- while (y <= t && eingabe[y - 1] != ' ' && isdigit(eingabe[y - 1])) {
+ while (y <= t && eingabe[y - 1] != ' ' && isdigit((u_char) eingabe[y - 1])) {
sprintf(hs + strlen(hs), "%c", eingabe[y - 1]);
y++;
}
@@ -3746,10 +3746,10 @@
FORLIM = strlen(ein);
for (x = 0; x < FORLIM; x++) {
- if (isdigit(ein[x]))
+ if (isdigit((u_char) ein[x]))
numbers = true;
if (ein[x] == '_' || (ein[x] & 255) == 158 || (ein[x] & 255) == 154 ||
- (ein[x] & 255) == 153 || (ein[x] & 255) == 142 || isupper(ein[x]))
+ (ein[x] & 255) == 153 || (ein[x] & 255) == 142 || isupper((u_char) ein[x]))
alphab = true;
if (ein[x] == '-')
slashct++;

View File

@@ -0,0 +1,31 @@
$NetBSD: patch-au,v 1.1 2006/04/21 02:07:54 wulf Exp $
--- crawler.c.orig 2006-04-14 12:03:52.000000000 +0930
+++ crawler.c 2006-04-14 12:08:40.000000000 +0930
@@ -191,7 +191,7 @@
return (*wlen > 0);
} else {
n = p;
- while ((c = *n++) && isdigit(c));
+ while ((c = *n++) && isdigit((u_char) c));
if (!c) {
strcpy(--outw, p);
*wlen = (--n - *inw) - 1;
@@ -219,7 +219,7 @@
continue;
wlen++;
- c = tolower(c);
+ c = tolower((u_char) c);
switch ((unsigned char)c) {
@@ -259,7 +259,7 @@
*outw++ = c;
ct++;
if (nonum == 0)
- if (!isdigit(c))
+ if (!isdigit((u_char) c))
nonum = 1;
break;
}

View File

@@ -0,0 +1,46 @@
$NetBSD: patch-av,v 1.1 2006/04/21 02:07:54 wulf Exp $
--- dpputlinks.c.orig 2006-04-14 12:10:10.000000000 +0930
+++ dpputlinks.c 2006-04-14 12:11:41.000000000 +0930
@@ -45,11 +45,11 @@
*o = '\0';
l = strlen(s);
if (l > 55 && s[13] == '&' && s[5] == ' ' && s[12] == ' '
- && s[17] == ' ' && s[30] == ' ' && s[56] == ' ' && isdigit(s[55])
- && isdigit(s[29])) {
+ && s[17] == ' ' && s[30] == ' ' && s[56] == ' ' && isdigit((u_char) s[55])
+ && isdigit((u_char) s[29])) {
for (x = 18; x <= 25; x++) {
- if (s[x] != '.') board[x-18] = toupper(s[x]);
+ if (s[x] != '.') board[x-18] = toupper((u_char) s[x]);
else board[x-18] = '\0';
}
board[8] = '\0';
@@ -105,8 +105,8 @@
if (token != NULL) {
token++;token++;
for (x = 1; x < 9; x++) {
- if (isalnum(*token) || *token == '_' || *token == '-' || *token == '/')
- *t2++ = toupper(*token++);
+ if (isalnum((u_char) *token) || *token == '_' || *token == '-' || *token == '/')
+ *t2++ = toupper((u_char) *token++);
else
x = 9;
}
@@ -120,12 +120,12 @@
*o = '\0';
l = strlen(s);
if (l > 33 && s[23] == ':' && s[4] == ' ' && s[11] == ' '
- && s[20] == ' ' && s[26] == ' ' && s[33] == ' ' && isdigit(s[3])
- && isdigit(s[12])) {
+ && s[20] == ' ' && s[26] == ' ' && s[33] == ' ' && isdigit((u_char) s[3])
+ && isdigit((u_char) s[12])) {
token = nums;
for (x = 0; x <= 3; x++) {
- if (isdigit(s[x])) *token++ = s[x];
+ if (isdigit((u_char) s[x])) *token++ = s[x];
}
*token = '\0';
num = atoi(nums);

View File

@@ -0,0 +1,13 @@
$NetBSD: patch-aw,v 1.1 2006/04/21 02:07:54 wulf Exp $
--- yapp.c.orig 2006-04-14 11:54:19.000000000 +0930
+++ yapp.c 2006-04-14 11:54:42.000000000 +0930
@@ -505,7 +505,7 @@
w[0] = '\0';
x = 4;
- while (x <= len && isdigit(yapp->buffer[x])) {
+ while (x <= len && isdigit((u_char) yapp->buffer[x])) {
sprintf(w + strlen(w), "%c", yapp->buffer[x]);
x++;
}

View File

@@ -0,0 +1,24 @@
$NetBSD: patch-ax,v 1.1 2006/04/21 02:07:54 wulf Exp $
--- dpgate.c.orig 2006-04-14 12:12:16.000000000 +0930
+++ dpgate.c 2006-04-14 12:12:45.000000000 +0930
@@ -155,7 +155,7 @@
if (buf[i] == '\r') {
putchar('\n');
}
- else if (isprint(buf[i]))
+ else if (isprint((u_char) buf[i]))
putchar(buf[i]);
else
putchar('.');
@@ -696,8 +696,8 @@
while (*i) {
if (*i == '%' && strlen(i) > 2 && i[1] != '%') {
i++;
- h[0] = toupper(*i++);
- h[1] = toupper(*i++);
+ h[0] = toupper((u_char) *i++);
+ h[1] = toupper((u_char) *i++);
h[2] = '\0';
r = 32;
sscanf(h, "%X", &r);

View File

@@ -0,0 +1,96 @@
$NetBSD: patch-ay,v 1.1 2006/04/21 02:07:54 wulf Exp $
--- box_wp.c.orig 2006-04-14 11:59:04.000000000 +0930
+++ box_wp.c 2006-04-14 12:00:39.000000000 +0930
@@ -100,26 +100,26 @@
get_pquoted(&p, hs); /* version */
s = hs;
- while (*s) if (!isdigit(*s++)) return -1;
+ while (*s) if (!isdigit((u_char) *s++)) return -1;
wpb->version = atol(hs);
if (!valid_wprot_version(wpb->version)) return -1;
get_pquoted(&p, hs); /* timestamp */
s = hs;
- while (*s) if (!isdigit(*s++)) return -1;
+ while (*s) if (!isdigit((u_char) *s++)) return -1;
wpb->timestamp = atol(hs);
if (!valid_wprot_timestamp(wpb->timestamp)) return -1;
get_pquoted(&p, hs); /* hops */
s = hs;
- while (*s) if (!isdigit(*s++)) return -1;
+ while (*s) if (!isdigit((u_char) *s++)) return -1;
wpb->hops = atoi(hs);
if (wpb->hops < 1) return -1;
if (wpb->hops > MAXWPHOPS) return -1;
get_pquoted(&p, hs); /* quality */
s = hs;
- while (*s) if (!isdigit(*s++)) return -1;
+ while (*s) if (!isdigit((u_char) *s++)) return -1;
wpb->quality = atol(hs);
get_pquoted(&p, hs); /* must be empty */
@@ -197,7 +197,7 @@
get_pquoted(&p, hs); /* version */
s = hs;
- while (*s) if (!isdigit(*s++)) return -1;
+ while (*s) if (!isdigit((u_char) *s++)) return -1;
wpb->version = atol(hs);
if (!valid_wprot_version(wpb->version)) return -1;
@@ -205,7 +205,7 @@
if (!strcmp(hs, "?")) wpb->status = 0;
else {
s = hs;
- while (*s) if (!isdigit(*s++)) return -1;
+ while (*s) if (!isdigit((u_char) *s++)) return -1;
wpb->status = atoi(hs);
}
@@ -223,13 +223,13 @@
get_pquoted(&p, hs); /* timestamp */
s = hs;
- while (*s) if (!isdigit(*s++)) return -1;
+ while (*s) if (!isdigit((u_char) *s++)) return -1;
wpb->timestamp = atol(hs);
if (!valid_wprot_timestamp(wpb->timestamp)) return -1;
get_pquoted(&p, hs); /* hops */
s = hs;
- while (*s) if (!isdigit(*s++)) return -1;
+ while (*s) if (!isdigit((u_char) *s++)) return -1;
wpb->hops = atoi(hs);
if (wpb->hops < 1) return -1;
if (wpb->hops > MAXWPHOPS) return -1;
@@ -312,7 +312,7 @@
get_pquoted(&p, hs); /* timestamp */
s = hs;
- while (*s) if (!isdigit(*s++)) {
+ while (*s) if (!isdigit((u_char) *s++)) {
debug(5, -1, 228, "invalid digit in timestamp");
return -1;
}
@@ -332,7 +332,7 @@
get_pquoted(&p, hs); /* hops */
s = hs;
- while (*s) if (!isdigit(*s++)) {
+ while (*s) if (!isdigit((u_char) *s++)) {
debug(5, -1, 228, "invalid digit in hops");
return -1;
}
@@ -435,7 +435,7 @@
get_pquoted(&p, hs); /* hops */
s = hs;
- while (*s) if (!isdigit(*s++)) return -1;
+ while (*s) if (!isdigit((u_char) *s++)) return -1;
wpb->hops = atoi(hs);
if (wpb->hops < 1) return -1;
if (wpb->hops > MAXWPHOPS) return -1;

View File

@@ -0,0 +1,12 @@
$NetBSD: patch-az,v 1.1 2006/04/21 02:07:54 wulf Exp $
--- box_rout.c.orig 2006-04-14 12:46:43.000000000 +0930
+++ box_rout.c 2006-04-14 12:47:09.000000000 +0930
@@ -1837,7 +1837,7 @@
strsub(adesc, hs, i + 1, k - i - 1);
strdelete(hs, 1, k);
get_word(hs, w1);
- if (*w1 != '\0' && isalpha(w1[0]))
+ if (*w1 != '\0' && isalpha((u_char) w1[0]))
sprintf(adesc + strlen(adesc), " %s", w1);
}
}

2
ham/fl_logbook/DESCR Normal file
View File

@@ -0,0 +1,2 @@
FlLogbook is a amateur radio operator log book written using the Fast
Light Toolkit.

25
ham/fl_logbook/Makefile Normal file
View File

@@ -0,0 +1,25 @@
# $NetBSD: Makefile,v 1.10 2013/02/16 11:22:36 wiz Exp $
#
DISTNAME= fl_logbook-2.5
PKGREVISION= 2
CATEGORIES= ham
MASTER_SITES= http://www.w1hkj.com/LinuxApps/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.w1hkj.com/
COMMENT= FLTK-based amateur radio log book
LICENSE= gnu-gpl-v2
USE_LANGUAGES= c++
USE_TOOLS+= gmake
MAKE_FILE= makefile
INSTALLATION_DIRS= bin
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/fl_logbook ${DESTDIR}${PREFIX}/bin
.include "../../x11/fltk13/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

2
ham/fl_logbook/PLIST Normal file
View File

@@ -0,0 +1,2 @@
@comment $NetBSD: PLIST,v 1.1.1.1 2007/01/21 16:49:23 obache Exp $
bin/fl_logbook

9
ham/fl_logbook/distinfo Normal file
View File

@@ -0,0 +1,9 @@
$NetBSD: distinfo,v 1.3 2012/11/16 00:33:36 gdt Exp $
SHA1 (fl_logbook-2.5.tar.gz) = cbe13e21af25f4a7f897974d90b9f41171f0dc1f
RMD160 (fl_logbook-2.5.tar.gz) = 5c7831a712c88c43179e7042cdf7f0d2fbdae4a9
Size (fl_logbook-2.5.tar.gz) = 58672 bytes
SHA1 (patch-aa) = a5648952f486455e9063ec3f6bf679f9842ec3b2
SHA1 (patch-src_date.h) = 20a39aa4ccc7402c7243a77062fb3ec0dfa16e1f
SHA1 (patch-src_qso__db.cpp) = 57fddc1aa5674614a0648f1c5e5d7c2a38bd6d4b
SHA1 (patch-src_qso__db.h) = c355b5ef0f1c73de9c21739b79009c9eb5f76fc5

View File

@@ -0,0 +1,73 @@
$NetBSD: patch-aa,v 1.2 2012/11/16 00:33:36 gdt Exp $
Use $(CXX) to build C++ programs.
--- makefile.orig 2008-01-25 17:02:00.000000000 +0000
+++ makefile
@@ -6,7 +6,6 @@
#
SRC = src/
-CC = g++
CCFLAG = `fltk-config --cxxflags` -I$(SRC) -Wno-deprecated
LIBS = `fltk-config --ldflags`
@@ -16,45 +15,45 @@ LIBS = `fltk-config --ldflags`
all: fl_logbook
adif_io.o: $(SRC)adif_io.cpp
- $(CC) $(CCFLAG) -c $(SRC)adif_io.cpp
+ $(CXX) $(CCFLAG) -c $(SRC)adif_io.cpp
support.o: $(SRC)support.cpp
- $(CC) $(CCFLAG) -c $(SRC)support.cpp
+ $(CXX) $(CCFLAG) -c $(SRC)support.cpp
ipcdata.o: $(SRC)ipcdata.cpp $(SRC)ipcdata.h
- $(CC) $(CCFLAG) -c $(SRC)ipcdata.cpp
+ $(CXX) $(CCFLAG) -c $(SRC)ipcdata.cpp
multipsklog.o: $(SRC)multipsklog.cpp
- $(CC) $(CCFLAG) -c $(SRC)multipsklog.cpp
+ $(CXX) $(CCFLAG) -c $(SRC)multipsklog.cpp
qso_db.o: $(SRC)qso_db.cpp
- $(CC) $(CCFLAG) -c $(SRC)qso_db.cpp
+ $(CXX) $(CCFLAG) -c $(SRC)qso_db.cpp
lgbook.o:$(SRC)lgbook.cpp
- $(CC) $(CCFLAG) -c $(SRC)lgbook.cpp
+ $(CXX) $(CCFLAG) -c $(SRC)lgbook.cpp
calendar.o:$(SRC)calendar.cxx
- $(CC) $(CCFLAG) -c $(SRC)calendar.cxx
+ $(CXX) $(CCFLAG) -c $(SRC)calendar.cxx
combo.o:$(SRC)combo.cxx
- $(CC) $(CCFLAG) -c $(SRC)combo.cxx
+ $(CXX) $(CCFLAG) -c $(SRC)combo.cxx
date.o:$(SRC)date.cxx
- $(CC) $(CCFLAG) -c $(SRC)date.cxx
+ $(CXX) $(CCFLAG) -c $(SRC)date.cxx
table.o:$(SRC)table.cxx
- $(CC) $(CCFLAG) -c $(SRC)table.cxx
+ $(CXX) $(CCFLAG) -c $(SRC)table.cxx
fileio.o:$(SRC)fileio.cpp
- $(CC) $(CCFLAG) -c $(SRC)fileio.cpp
+ $(CXX) $(CCFLAG) -c $(SRC)fileio.cpp
fl_logbook.o: $(SRC)fl_logbook.cpp
- $(CC) $(CCFLAG) -c $(SRC)fl_logbook.cpp
+ $(CXX) $(CCFLAG) -c $(SRC)fl_logbook.cpp
fl_logbook: fl_logbook.o lgbook.o qso_db.o combo.o \
adif_io.o multipsklog.o support.o \
calendar.o date.o table.o fileio.o ipcdata.o
- $(CC) $(CCFLAG) \
+ $(CXX) $(CCFLAG) \
fl_logbook.o lgbook.o qso_db.o combo.o \
adif_io.o multipsklog.o support.o \
calendar.o date.o table.o fileio.o ipcdata.o \

View File

@@ -0,0 +1,22 @@
$NetBSD: patch-src_date.h,v 1.2 2012/11/16 00:33:36 gdt Exp $
--- src/date.h.orig 2006-09-11 15:40:15.000000000 +0000
+++ src/date.h
@@ -25,13 +25,15 @@
#ifndef DATE_H
#define DATE_H
-#include <iostream.h>
-#include <iomanip.h>
+#include <iostream>
+#include <iomanip>
#include <time.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+using namespace std;
+
typedef enum {
SUNDAY,
MONDAY,

View File

@@ -0,0 +1,9 @@
$NetBSD: patch-src_qso__db.cpp,v 1.2 2012/11/16 00:33:36 gdt Exp $
--- src/qso_db.cpp.orig 2007-02-16 20:19:59.000000000 +0000
+++ src/qso_db.cpp
@@ -1,3 +1,4 @@
+#include <cstring>
#include <stdlib.h>
#include <ctype.h>
#include "qso_db.h"

View File

@@ -0,0 +1,24 @@
$NetBSD: patch-src_qso__db.h,v 1.2 2012/11/16 00:33:36 gdt Exp $
--- src/qso_db.h.orig 2005-09-02 10:18:51.000000000 +0000
+++ src/qso_db.h
@@ -1,8 +1,8 @@
#ifndef QSO_DB
#define QSO_DB
-#include <iostream.h>
-#include <fstream.h>
+#include <iostream>
+#include <fstream>
//#include <istream>
//#include <ostream>
//#include <fstream>
@@ -12,6 +12,8 @@
#include "adif_def.h"
//#include "myprofile.h"
+
+using namespace std;
#ifndef TRUE
#define TRUE 1

17
ham/fldigi/DESCR Normal file
View File

@@ -0,0 +1,17 @@
Fldigi is a software modem for Amateur Radio use. It is a sound card based
program that is used for both transmitting and receiving data in any of the
following modes:
BPSK and QPSK 31, 63, 125, 250 (both), and 63F and 500 (BPSK only)
PSKR 125, 250, and 500
CW speeds from 5 to 200 wpm
DominoEX 4, 5, 8, 11, 16 and 22; also with FEC
Hellschreiber Feld Hell, Slow Hell, Hell x5/x9, FSKHell(-105) and Hell 80
MFSK 4, 8, 11, 16, 22, 31, 32 and 64; most with image support
MT63 500, 1000 and 2000
OLIVIA various tones and bandwidths
RTTY various baud rates, shifts, nbr. of data bits, etc.
THOR 4, 5, 8, 11, 16 and 22
Throb and ThrobX 1, 2, and 4
WWV receive only - calibrate your sound card to WWV
Frequency Analysis receive only - measure the frequency of a carrier

68
ham/fldigi/Makefile Normal file
View File

@@ -0,0 +1,68 @@
# $NetBSD: Makefile,v 1.33 2013/05/31 12:41:10 wiz Exp $
#
DISTNAME= fldigi-3.21.70
PKGREVISION= 1
CATEGORIES= ham
MASTER_SITES= http://www.w1hkj.com/downloads/fldigi/
LICENSE= gnu-gpl-v3
MAINTAINER= makoto@ki.nu
HOMEPAGE= http://www.w1hkj.com/Fldigi.html
#HOMEPAGE= http://lists.berlios.de/mailman/listinfo/fldigi-devel
COMMENT= Digital radio modem
USE_TOOLS+= gmake pkg-config
USE_LANGUAGES= c c++
GNU_CONFIGURE= yes
# NetBSD 5.1 fails to find strip - install: exec of strip failed:
CONFIGURE_ENV+= STRIP=${STRIP}
BUILD_DEPENDS+= asciidoc-[0-9]*:../../textproc/asciidoc
SUBST_CLASSES+= perl
SUBST_STAGE.perl= post-configure
SUBST_FILES.perl= scripts/fldigi-shell
SUBST_MESSAGE.perl= Replacing Perl PATH
SUBST_SED.perl= -e s\|/usr/bin/perl\|${PERL5:Q}\|g
SUBST_CLASSES+= asciidoc
SUBST_STAGE.asciidoc= post-configure
SUBST_FILES.asciidoc= doc/Makefile.am doc/Makefile.in doc/Makefile
SUBST_MESSAGE.asciidoc= Replacing asciidoc PATH
SUBST_SED.asciidoc= -e s\|/usr/share\|${PREFIX}/share\|g
SUBST_CLASSES+= brag-os
SUBST_STAGE.brag-os= post-patch
SUBST_FILES.brag-os= src/misc/newinstall.cxx
SUBST_MESSAGE.brag-os= Show OS name correctly with Brag button
SUBST_SED.brag-os= -e s/@@OS@@/${OPSYS}/
# Following binary contains configure parameter, which is OK.
CHECK_WRKREF_SKIP+= bin/flarq
CHECK_WRKREF_SKIP+= bin/fldigi
.include "../../mk/bsd.prefs.mk"
.if ${LOWER_OPSYS} == "netbsd"
CONFIGURE_ENV+= ac_cv_header_execinfo_h=no
.endif
.include "../../mk/compiler.mk"
.if !empty(PKGSRC_COMPILER:Mclang)
CXXFLAGS+= -std=c++11 -Wno-error=c++11-narrowing
.endif
.include "../../audio/libsamplerate/buildlink3.mk"
.include "../../audio/libsndfile/buildlink3.mk"
.include "../../audio/portaudio-devel/buildlink3.mk"
.include "../../audio/pulseaudio/buildlink3.mk"
.include "../../graphics/png/buildlink3.mk"
.include "../../ham/hamlib/buildlink3.mk"
.include "../../mk/oss.buildlink3.mk"
.include "../../textproc/xmlrpc-c/buildlink3.mk"
.include "../../x11/fltk13/buildlink3.mk"
.include "../../sysutils/desktop-file-utils/desktopdb.mk"
.include "../../mk/bsd.pkg.mk"

16
ham/fldigi/PLIST Normal file
View File

@@ -0,0 +1,16 @@
@comment $NetBSD: PLIST,v 1.3 2012/09/28 13:41:30 gdt Exp $
bin/flarq
bin/fldigi
bin/fldigi-shell
man/man1/flarq.1
man/man1/fldigi-shell.1
man/man1/fldigi.1
share/applications/flarq.desktop
share/applications/fldigi.desktop
share/fldigi/NAVTEX_Stations.csv
share/locale/es/LC_MESSAGES/fldigi.mo
share/locale/fr/LC_MESSAGES/fldigi.mo
share/locale/it/LC_MESSAGES/fldigi.mo
share/locale/pl/LC_MESSAGES/fldigi.mo
share/pixmaps/flarq.xpm
share/pixmaps/fldigi.xpm

19
ham/fldigi/distinfo Normal file
View File

@@ -0,0 +1,19 @@
$NetBSD: distinfo,v 1.13 2013/05/09 14:09:13 mef Exp $
SHA1 (fldigi-3.21.70.tar.gz) = 670700583404205990c7b7229eb6e75909698e63
RMD160 (fldigi-3.21.70.tar.gz) = bcbb75218cc79d4662bf4bd07ed206823d9c953e
Size (fldigi-3.21.70.tar.gz) = 2145803 bytes
SHA1 (patch-src_dominoex_dominoex.cxx) = f1f94bb21856f1911c75ee0a138170fba17432b4
SHA1 (patch-src_include_qrunner.h) = 575a142fa935be760e6d440de5b6d965c6259388
SHA1 (patch-src_logbook_logsupport.cxx) = f5540103677064d8a6da61db8f445b792729305c
SHA1 (patch-src_misc_dxcc.cxx) = 05fe507377334dd2787a76395dec21afeacf499a
SHA1 (patch-src_misc_newinstall.cxx) = 2c215e9423d27dd4f4657221b17cf4ed3f12355c
SHA1 (patch-src_misc_re.cxx) = 9daf70fa7844546e6ad761b5bdf924b6de74843c
SHA1 (patch-src_navtex_navtex.cxx) = 13c70ecfa6c7052c0e42bbbc9829d559b6ea2cd3
SHA1 (patch-src_spot_notify.cxx) = e0f2889f1ae2405326b2883f13f618c3d9bfd412
SHA1 (patch-src_spot_pskrep.cxx) = 1ea5838d80224b06fe940802f4f6ee7ac4207a72
SHA1 (patch-src_spot_spot.cxx) = e69b10e9f9e884d3ef3cf5bb18d882cb1a5db5a7
SHA1 (patch-src_thor_thor.cxx) = 7df1c77f79f9746e243440740bb35994a09ac66e
SHA1 (patch-src_xmlrpcpp_XmlRpcClient.cpp) = 5d7aab9e194cd51ca0bd56430e751db1491dd1f7
SHA1 (patch-src_xmlrpcpp_XmlRpcServer.cpp) = 30da72b30c6f66ecaa1e05ac1b53450db9a1c2cc
SHA1 (patch-src_xmlrpcpp_base64.h) = 1f1b27e010c5e4ce0f9d5b0bf4a729eefc7535ac

View File

@@ -0,0 +1,13 @@
$NetBSD: patch-src_dominoex_dominoex.cxx,v 1.1 2013/05/06 14:49:32 joerg Exp $
--- src/dominoex/dominoex.cxx.orig 2013-05-03 14:18:53.000000000 +0000
+++ src/dominoex/dominoex.cxx
@@ -64,7 +64,7 @@ void dominoex::tx_init(SoundBase *sc)
strSecXmtText = progdefaults.secText;
if (strSecXmtText.length() == 0)
- strSecXmtText = "fldigi "PACKAGE_VERSION" ";
+ strSecXmtText = "fldigi " PACKAGE_VERSION " ";
videoText();
}

View File

@@ -0,0 +1,12 @@
$NetBSD: patch-src_include_qrunner.h,v 1.1 2013/05/06 14:49:32 joerg Exp $
--- src/include/qrunner.h.orig 2013-05-03 14:32:45.000000000 +0000
+++ src/include/qrunner.h
@@ -32,6 +32,7 @@
#include <cerrno>
#include <stdexcept>
#include <cstring>
+#include <string>
#if HAVE_STD_BIND
# include <functional>

View File

@@ -0,0 +1,39 @@
$NetBSD: patch-src_logbook_logsupport.cxx,v 1.1 2013/05/06 14:49:32 joerg Exp $
--- src/logbook/logsupport.cxx.orig 2013-05-03 14:19:39.000000000 +0000
+++ src/logbook/logsupport.cxx
@@ -211,7 +211,7 @@ void Export_ADIF()
}
}
string sp = p;
- if (sp.find("."ADIF_SUFFIX) == string::npos) sp.append("."ADIF_SUFFIX);
+ if (sp.find("." ADIF_SUFFIX) == string::npos) sp.append("." ADIF_SUFFIX);
adifFile.writeFile (sp.c_str(), &qsodb);
}
@@ -308,8 +308,8 @@ void cb_mnuSaveLogbook(Fl_Menu_*m, void*
const char* p = FSEL::saveas( title.c_str(), filter.c_str(), logbook_filename.c_str());
if (p) {
logbook_filename = p;
- if (logbook_filename.find("."ADIF_SUFFIX) == string::npos)
- logbook_filename.append("."ADIF_SUFFIX);
+ if (logbook_filename.find("." ADIF_SUFFIX) == string::npos)
+ logbook_filename.append("." ADIF_SUFFIX);
dlgLogbook->label(fl_filename_name(logbook_filename.c_str()));
cQsoDb::reverse = false;
@@ -1542,9 +1542,13 @@ SOAPBOX: \n\n",
return;
}
-
+#if __cplusplus >= 200103L
+#include <unordered_map>
+typedef unordered_map<string, unsigned> dxcc_entity_cache_t;
+#else
#include <tr1/unordered_map>
typedef tr1::unordered_map<string, unsigned> dxcc_entity_cache_t;
+#endif
static dxcc_entity_cache_t dxcc_entity_cache;
static bool dxcc_entity_cache_enabled = false;

View File

@@ -0,0 +1,30 @@
$NetBSD: patch-src_misc_dxcc.cxx,v 1.1 2013/05/06 14:49:32 joerg Exp $
--- src/misc/dxcc.cxx.orig 2013-05-03 14:21:04.000000000 +0000
+++ src/misc/dxcc.cxx
@@ -30,7 +30,6 @@
#include <string>
#include <list>
#include <map>
-#include <tr1/unordered_map>
#include <algorithm>
#include <FL/filename.H>
@@ -43,8 +42,16 @@
#include "confdialog.h"
#include "main.h"
+#if __cplusplus >= 201103L
+#include <unordered_map>
+using std::unordered_map;
+#else
+#include <tr1/unordered_map>
+using std::tr1::unordered_map;
+#endif
+
using namespace std;
-using tr1::unordered_map;
+
dxcc::dxcc(const char* cn, int cq, int itu, const char* ct, float lat, float lon, float tz)

View File

@@ -0,0 +1,15 @@
$NetBSD: patch-src_misc_newinstall.cxx,v 1.2 2013/01/16 02:54:55 mef Exp $
Brag command shows OS:, but it is fixed, see SUBST in Makefile
--- src/misc/newinstall.cxx.orig 2012-09-25 13:22:44.000000000 +0900
+++ src/misc/newinstall.cxx 2012-09-25 13:23:42.000000000 +0900
@@ -83,7 +83,7 @@
Rig: \n\
Pwr: \n\
Ant: \n\
-OS: Linux\n\
+OS: @@OS@@\n\
Soft: <VER>\n\
Web: \n\
Email: ";

View File

@@ -0,0 +1,24 @@
$NetBSD: patch-src_misc_re.cxx,v 1.1 2013/05/06 14:49:32 joerg Exp $
--- src/misc/re.cxx.orig 2013-05-03 14:24:52.000000000 +0000
+++ src/misc/re.cxx
@@ -120,12 +120,17 @@ void re_t::suboff(size_t n, int* start,
}
}
+#if __cplusplus >= 201103L
+#include <functional>
+#else
#include <tr1/functional>
+using tr1::hash;
+#endif
size_t re_t::hash(void) const
{
- size_t h = tr1::hash<string>()(pattern);
- return h ^ (tr1::hash<int>()(cflags) + 0x9e3779b9 + (h << 6) + (h >> 2));
+ size_t h = ::hash<string>()(pattern);
+ return h ^ (::hash<int>()(cflags) + 0x9e3779b9 + (h << 6) + (h >> 2));
}
// ------------------------------------------------------------------------

View File

@@ -0,0 +1,19 @@
$NetBSD: patch-src_navtex_navtex.cxx,v 1.1 2013/05/06 14:49:32 joerg Exp $
--- src/navtex/navtex.cxx.orig 2013-05-03 14:31:34.000000000 +0000
+++ src/navtex/navtex.cxx
@@ -177,12 +177,12 @@ bool read_until_delim( std::istream & is
if( ! std::getline( istrm, parsed_str, delim ) ) return false ;
std::stringstream sstrm( parsed_str );
sstrm >> ref ;
- return sstrm ;
+ return sstrm.good();
}
static bool read_until_delim( std::istream & istrm, std::string & ref )
{
- return std::getline( istrm, ref, delim );
+ return std::getline( istrm, ref, delim ).good();
}
class NavtexRecord

View File

@@ -0,0 +1,16 @@
$NetBSD: patch-src_spot_notify.cxx,v 1.1 2013/05/06 14:49:32 joerg Exp $
--- src/spot/notify.cxx.orig 2013-05-03 14:35:28.000000000 +0000
+++ src/spot/notify.cxx
@@ -33,7 +33,10 @@
#include <cctype>
#include <cstdlib>
-#if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 1)
+#if __cplusplus >= 201103L
+# define MAP_TYPE std::unordered_map
+# include <unordered_map>
+#elif (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 1)
# define MAP_TYPE std::tr1::unordered_map
# include <tr1/unordered_map>
#else

View File

@@ -0,0 +1,17 @@
$NetBSD: patch-src_spot_pskrep.cxx,v 1.1 2013/05/06 14:49:32 joerg Exp $
--- src/spot/pskrep.cxx.orig 2013-05-03 14:36:37.000000000 +0000
+++ src/spot/pskrep.cxx
@@ -50,7 +50,11 @@
#include <algorithm>
#include <fstream>
-#if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 1)
+#if __cplusplus >= 201103L
+# define MAP_TYPE std::unordered_map
+# define HASH_TYPE std::hash
+# include <unordered_map>
+#elif (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 1)
# define MAP_TYPE std::tr1::unordered_map
#define HASH_TYPE std::tr1::hash
# include <tr1/unordered_map>

View File

@@ -0,0 +1,38 @@
$NetBSD: patch-src_spot_spot.cxx,v 1.1 2013/05/06 14:49:32 joerg Exp $
--- src/spot/spot.cxx.orig 2013-05-03 14:37:33.000000000 +0000
+++ src/spot/spot.cxx
@@ -23,7 +23,6 @@
#include <config.h>
#include <list>
-#include <tr1/unordered_map>
#include <functional>
#include "trx.h"
@@ -33,6 +32,13 @@
#include "debug.h"
#include "spot.h"
+#if __cplusplus >= 201103L
+#include <unordered_map>
+#else
+#include <tr1/unordered_map>
+using std::tr1::unordered_map;
+#endif
+
// the number of characters that we match our REs against
#define SEARCHLEN 32
#define DECBUFSIZE 8 * SEARCHLEN
@@ -60,9 +66,9 @@ struct fre_comp : std::unary_function<co
};
typedef list<callback_t*> callback_p_list_t;
-typedef tr1::unordered_map<fre_t*, callback_p_list_t, fre_hash, fre_comp> rcblist_t;
+typedef unordered_map<fre_t*, callback_p_list_t, fre_hash, fre_comp> rcblist_t;
-static tr1::unordered_map<int, string> buffers;
+static unordered_map<int, string> buffers;
static cblist_t cblist;
static rcblist_t rcblist;

View File

@@ -0,0 +1,13 @@
$NetBSD: patch-src_thor_thor.cxx,v 1.1 2013/05/06 14:49:32 joerg Exp $
--- src/thor/thor.cxx.orig 2013-05-03 14:19:08.000000000 +0000
+++ src/thor/thor.cxx
@@ -63,7 +63,7 @@ void thor::tx_init(SoundBase *sc)
videoText();
strSecXmtText = progdefaults.THORsecText;
if (strSecXmtText.length() == 0)
- strSecXmtText = "fldigi "PACKAGE_VERSION" ";
+ strSecXmtText = "fldigi " PACKAGE_VERSION " ";
cptr = 0;
}

View File

@@ -0,0 +1,13 @@
$NetBSD: patch-src_xmlrpcpp_XmlRpcClient.cpp,v 1.1 2013/05/06 14:49:32 joerg Exp $
--- src/xmlrpcpp/XmlRpcClient.cpp.orig 2013-05-03 14:41:57.000000000 +0000
+++ src/xmlrpcpp/XmlRpcClient.cpp
@@ -319,7 +319,7 @@ XmlRpcClient::generateHeader(std::string
header += "Content-Type: text/xml\r\nContent-length: ";
- sprintf(buff,"%"PRIuSZ"\r\n\r\n", body.size());
+ sprintf(buff,"%" PRIuSZ "\r\n\r\n", body.size());
return header + buff;
}

View File

@@ -0,0 +1,13 @@
$NetBSD: patch-src_xmlrpcpp_XmlRpcServer.cpp,v 1.1 2013/05/06 14:49:32 joerg Exp $
--- src/xmlrpcpp/XmlRpcServer.cpp.orig 2013-05-03 14:42:36.000000000 +0000
+++ src/xmlrpcpp/XmlRpcServer.cpp
@@ -481,7 +481,7 @@ XmlRpcServer::generateHeader(std::string
"Content-length: ";
char buffLen[40];
- sprintf(buffLen,"%"PRIuSZ"\r\n\r\n", body.size());
+ sprintf(buffLen,"%" PRIuSZ "\r\n\r\n", body.size());
return header + buffLen;
}

View File

@@ -0,0 +1,12 @@
$NetBSD: patch-src_xmlrpcpp_base64.h,v 1.1 2013/05/06 14:49:32 joerg Exp $
--- src/xmlrpcpp/base64.h.orig 2013-05-03 14:39:47.000000000 +0000
+++ src/xmlrpcpp/base64.h
@@ -10,6 +10,7 @@
#define __BASE64_H_INCLUDED__ 1
#include <iterator>
+#include <ios>
static
int _base64Chars[]= {'A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z',

12
ham/gmfsk/DESCR Normal file
View File

@@ -0,0 +1,12 @@
gMFSK is a multimode HF terminal program for Linux and other unix-like
operating systems. Despite the name, gMFSK can send and receive many digital
conversational modes typically used by radio amateurs on HF. Supported
modes are:
* MFSK (MFSK16 and MFSK8)
* RTTY
* THROB (1, 2 and 4 throbs/sec)
* PSK31 (BPSK and QPSK)
* PSK63
* MT63
* Feldhell

29
ham/gmfsk/Makefile Normal file
View File

@@ -0,0 +1,29 @@
# $NetBSD: Makefile,v 1.54 2013/06/06 12:54:36 wiz Exp $
#
DISTNAME= gmfsk-0.6
PKGREVISION= 38
CATEGORIES= ham
MASTER_SITES= http://gmfsk.connect.fi/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://gmfsk.connect.fi/
COMMENT= Multimode HF terminal program
USE_LANGUAGES= c c++
USE_TOOLS+= gmake pkg-config
GNU_CONFIGURE= yes
GCONF_SCHEMAS+=gmfsk.schemas
CONFIGURE_ARGS+=--enable-hamlib
.include "../../mk/bsd.prefs.mk"
LDFLAGS+= ${LIBOSSAUDIO}
.include "../../devel/GConf/schemas.mk"
.include "../../devel/libgnomeui/buildlink3.mk"
.include "../../math/fftw2/buildlink3.mk"
.include "../../ham/hamlib/buildlink3.mk"
.include "../../mk/omf-scrollkeeper.mk"
.include "../../mk/oss.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

17
ham/gmfsk/PLIST Normal file
View File

@@ -0,0 +1,17 @@
@comment $NetBSD: PLIST,v 1.3 2009/06/14 18:00:33 joerg Exp $
bin/gmfsk
share/gconf/schemas/gmfsk.schemas
share/gnome/help/gmfsk/C/fdl-appendix.xml
share/gnome/help/gmfsk/C/figures/gmfsk_start_window.png
share/gnome/help/gmfsk/C/figures/note.png
share/gnome/help/gmfsk/C/figures/tip.png
share/gnome/help/gmfsk/C/figures/warning.png
share/gnome/help/gmfsk/C/gmfsk.xml
share/gnome/help/gmfsk/C/legal.xml
share/omf/gmfsk/gmfsk-C.omf
share/pixmaps/gmfsk/gnome-screenshot.png
share/pixmaps/gmfsk/mfsk.png
share/pixmaps/gmfsk/pause.xpm
share/pixmaps/gmfsk/rx.xpm
share/pixmaps/gmfsk/tune.xpm
share/pixmaps/gmfsk/tx.xpm

14
ham/gmfsk/distinfo Normal file
View File

@@ -0,0 +1,14 @@
$NetBSD: distinfo,v 1.6 2012/12/24 21:13:28 joerg Exp $
SHA1 (gmfsk-0.6.tar.gz) = 2738bc2b83eb8f2001ed2503c466123ce4b258a5
RMD160 (gmfsk-0.6.tar.gz) = 532d2454ccc7fab36e707002c6fda7f9e2ec14cd
Size (gmfsk-0.6.tar.gz) = 540765 bytes
SHA1 (patch-aa) = 1a919f2ea16f9ed23d490e8f4654dabb19295882
SHA1 (patch-ab) = a40132dddf93e88b166a4d9a5428e1e15dee3ccd
SHA1 (patch-ac) = a936811e68d84ddb286f568519006521c4c5be89
SHA1 (patch-ad) = dbdb75d3c1d617ead1903d6645dd83c930a37a7b
SHA1 (patch-ae) = 57048286392c811170f8519078e95fa89c06f3ee
SHA1 (patch-af) = 5edcf28f17b4255d67d9df103eb70980e7f3e397
SHA1 (patch-src_misc_cmplx.h) = b429594c6eb4d2821030fbea2ab1546aa9a01173
SHA1 (patch-src_misc_filter-i386.h) = 71c7e1092fc9b4680d2c89c0ecdf4d8933abaf14
SHA1 (patch-src_misc_filter.h) = 54acabd541e68e8363a5169f631a1966f8c850ba

146
ham/gmfsk/patches/patch-aa Normal file
View File

@@ -0,0 +1,146 @@
$NetBSD: patch-aa,v 1.2 2012/12/24 21:13:28 joerg Exp $
--- src/misc/misc.h.orig 2004-04-13 12:45:19.000000000 +0000
+++ src/misc/misc.h
@@ -32,7 +32,7 @@
/*
* Hamming weight (number of bits that are ones).
*/
-extern inline unsigned int hweight32(unsigned int w)
+__attribute__((gnu_inline)) extern inline unsigned int hweight32(unsigned int w)
{
w = (w & 0x55555555) + ((w >> 1) & 0x55555555);
w = (w & 0x33333333) + ((w >> 2) & 0x33333333);
@@ -42,7 +42,7 @@ extern inline unsigned int hweight32(uns
return w;
}
-extern inline unsigned int hweight16(unsigned short w)
+__attribute__((gnu_inline)) extern inline unsigned int hweight16(unsigned short w)
{
w = (w & 0x5555) + ((w >> 1) & 0x5555);
w = (w & 0x3333) + ((w >> 2) & 0x3333);
@@ -51,7 +51,7 @@ extern inline unsigned int hweight16(uns
return w;
}
-extern inline unsigned int hweight8(unsigned char w)
+__attribute__((gnu_inline)) extern inline unsigned int hweight8(unsigned char w)
{
w = (w & 0x55) + ((w >> 1) & 0x55);
w = (w & 0x33) + ((w >> 2) & 0x33);
@@ -64,7 +64,7 @@ extern inline unsigned int hweight8(unsi
/*
* Parity function. Return one if `w' has odd number of ones, zero otherwise.
*/
-extern inline int parity(unsigned int w)
+__attribute__((gnu_inline)) extern inline int parity(unsigned int w)
{
return hweight32(w) & 1;
}
@@ -74,7 +74,7 @@ extern inline int parity(unsigned int w)
/*
* Reverse order of bits.
*/
-extern inline unsigned int rbits32(unsigned int w)
+__attribute__((gnu_inline)) extern inline unsigned int rbits32(unsigned int w)
{
w = ((w >> 1) & 0x55555555) | ((w << 1) & 0xAAAAAAAA);
w = ((w >> 2) & 0x33333333) | ((w << 2) & 0xCCCCCCCC);
@@ -84,7 +84,7 @@ extern inline unsigned int rbits32(unsig
return w;
}
-extern inline unsigned short rbits16(unsigned short w)
+__attribute__((gnu_inline)) extern inline unsigned short rbits16(unsigned short w)
{
w = ((w >> 1) & 0x5555) | ((w << 1) & 0xAAAA);
w = ((w >> 2) & 0x3333) | ((w << 2) & 0xCCCC);
@@ -93,7 +93,7 @@ extern inline unsigned short rbits16(uns
return w;
}
-extern inline unsigned char rbits8(unsigned char w)
+__attribute__((gnu_inline)) extern inline unsigned char rbits8(unsigned char w)
{
w = ((w >> 1) & 0x55) | ((w << 1) & 0xFF);
w = ((w >> 2) & 0x33) | ((w << 2) & 0xCC);
@@ -104,28 +104,9 @@ extern inline unsigned char rbits8(unsig
/* ---------------------------------------------------------------------- */
/*
- * Integer base-2 logarithm
- */
-extern inline int log2(unsigned int x)
-{
- int y = 0;
-
- x >>= 1;
-
- while (x) {
- x >>= 1;
- y++;
- }
-
- return y;
-}
-
-/* ---------------------------------------------------------------------- */
-
-/*
* Gray encoding and decoding (8 bit)
*/
-extern inline unsigned char grayencode(unsigned char data)
+__attribute__((gnu_inline)) extern inline unsigned char grayencode(unsigned char data)
{
unsigned char bits = data;
@@ -140,7 +121,7 @@ extern inline unsigned char grayencode(u
return bits;
}
-extern inline unsigned char graydecode(unsigned char data)
+__attribute__((gnu_inline)) extern inline unsigned char graydecode(unsigned char data)
{
return data ^ (data >> 1);
}
@@ -150,7 +131,7 @@ extern inline unsigned char graydecode(u
/*
* Hamming window function
*/
-extern inline double hamming(double x)
+__attribute__((gnu_inline)) extern inline double hamming(double x)
{
return 0.54 - 0.46 * cos(2 * M_PI * x);
}
@@ -160,26 +141,26 @@ extern inline double hamming(double x)
/*
* Sinc etc...
*/
-extern inline double sinc(double x)
+__attribute__((gnu_inline)) extern inline double sinc(double x)
{
return (fabs(x) < 1e-10) ? 1.0 : (sin(M_PI * x) / (M_PI * x));
}
-extern inline double cosc(double x)
+__attribute__((gnu_inline)) extern inline double cosc(double x)
{
return (fabs(x) < 1e-10) ? 0.0 : ((1.0 - cos(M_PI * x)) / (M_PI * x));
}
/* ---------------------------------------------------------------------- */
-extern inline float clamp(float x, float min, float max)
+__attribute__((gnu_inline)) extern inline float clamp(float x, float min, float max)
{
return (x < min) ? min : ((x > max) ? max : x);
}
/* ---------------------------------------------------------------------- */
-extern inline float decayavg(float average, float input, float weight)
+__attribute__((gnu_inline)) extern inline float decayavg(float average, float input, float weight)
{
return input * (1.0 / weight) + average * (1.0 - (1.0 / weight));
}

View File

@@ -0,0 +1,28 @@
$NetBSD: patch-ab,v 1.1 2006/04/26 01:52:18 wulf Exp $
--- src/misc/misc.c.orig 2006-04-26 10:31:03.000000000 +0930
+++ src/misc/misc.c 2006-04-26 10:31:31.000000000 +0930
@@ -102,23 +102,6 @@
/* ---------------------------------------------------------------------- */
-/*
- * Integer base-2 logarithm
- */
-int log2(unsigned int x)
-{
- int y = 0;
-
- x >>= 1;
-
- while (x) {
- x >>= 1;
- y++;
- }
-
- return y;
-}
-
/* ---------------------------------------------------------------------- */
/*

View File

@@ -0,0 +1,13 @@
$NetBSD: patch-ac,v 1.1 2006/04/26 01:52:18 wulf Exp $
--- src/macro.c.orig 2006-04-26 10:38:46.000000000 +0930
+++ src/macro.c 2006-04-26 10:39:00.000000000 +0930
@@ -287,7 +287,7 @@
p++;
break;
default:
- for (p = *ptr; *p && isalnum(*p); p++)
+ for (p = *ptr; *p && isalnum((u_char) *p); p++)
;
break;
}

View File

@@ -0,0 +1,20 @@
$NetBSD: patch-ad,v 1.1 2006/04/26 01:52:18 wulf Exp $
--- src/picture.c.orig 2006-04-26 10:39:13.000000000 +0930
+++ src/picture.c 2006-04-26 10:39:36.000000000 +0930
@@ -48,13 +48,13 @@
p += 4;
- while (isdigit(*p))
+ while (isdigit((u_char) *p))
*w = (*w * 10) + (*p++ - '0');
if (*p++ != 'x')
return FALSE;
- while (isdigit(*p))
+ while (isdigit((u_char) *p))
*h = (*h * 10) + (*p++ - '0');
if (*p == 'C') {

View File

@@ -0,0 +1,13 @@
$NetBSD: patch-ae,v 1.1 2006/04/28 17:44:53 joerg Exp $
--- configure.orig 2006-04-28 17:04:02.000000000 +0000
+++ configure
@@ -6044,7 +6044,7 @@ fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
if test "$ac_cv_search_fftw_create_plan" = no; then
for ac_lib in dfftw fftw; do
- LIBS="-l$ac_lib $ac_func_search_save_LIBS"
+ LIBS="-l$ac_lib -lm $ac_func_search_save_LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h. */

View File

@@ -0,0 +1,23 @@
$NetBSD: patch-af,v 1.1 2006/12/28 11:52:31 wulf Exp $
--- src/mt63/dsp.h.orig 2004-07-09 02:51:26.000000000 +0930
+++ src/mt63/dsp.h 2006-12-28 21:19:05.000000000 +1030
@@ -555,15 +555,15 @@
inline void LowPass2(typeInp Inp, LowPass2elem &Elem,
typeW W1, typeW W2, typeW W5)
{ double Sum, Diff;
- Sum=Elem.Mid+Elem.Out; Diff=Elem.Mid-Elem.Out; Elem.Mid+=W2*Inp-W1*Sum; Out+=W5*Diff; }
+ Sum=Elem.Mid+Elem.Out; Diff=Elem.Mid-Elem.Out; Elem.Mid+=W2*Inp-W1*Sum; Elem.Out+=W5*Diff; }
template <class typeInp>
inline void LowPass2(typeInp Inp, LowPass2elem &Elem, LowPass2weight &Weight)
{ double Sum, Diff;
Sum=Elem.Mid+Elem.Out;
Diff=Elem.Mid-Elem.Out;
- Elem.Mid+=Weight.W2*Inp-Weigth.W1*Sum;
- Out+=Weight.W5*Diff; }
+ Elem.Mid+=Weight.W2*Inp-Weight.W1*Sum;
+ Elem.Out+=Weight.W5*Diff; }
/*
inline void LowPass2(float Inp, double &Mid, double &Out,

View File

@@ -0,0 +1,103 @@
$NetBSD: patch-src_misc_cmplx.h,v 1.1 2012/12/24 21:13:28 joerg Exp $
--- src/misc/cmplx.h.orig 2012-12-23 17:55:27.000000000 +0000
+++ src/misc/cmplx.h
@@ -43,7 +43,7 @@ typedef fftw_complex complex;
/*
* Complex multiplication.
*/
-extern __inline__ complex cmul(complex x, complex y)
+__attribute__((gnu_inline)) extern __inline__ complex cmul(complex x, complex y)
{
complex z;
@@ -56,7 +56,7 @@ extern __inline__ complex cmul(complex x
/*
* Complex addition.
*/
-extern __inline__ complex cadd(complex x, complex y)
+__attribute__((gnu_inline)) extern __inline__ complex cadd(complex x, complex y)
{
complex z;
@@ -69,7 +69,7 @@ extern __inline__ complex cadd(complex x
/*
* Complex subtraction.
*/
-extern __inline__ complex csub(complex x, complex y)
+__attribute__((gnu_inline)) extern __inline__ complex csub(complex x, complex y)
{
complex z;
@@ -82,7 +82,7 @@ extern __inline__ complex csub(complex x
/*
* Complex multiply-accumulate.
*/
-extern __inline__ complex cmac(complex *a, complex *b, int ptr, int len)
+__attribute__((gnu_inline)) extern __inline__ complex cmac(complex *a, complex *b, int ptr, int len)
{
complex z;
int i;
@@ -104,7 +104,7 @@ extern __inline__ complex cmac(complex *
* Complex ... yeah, what??? Returns a complex number that has the
* properties: |z| = |x| * |y| and arg(z) = arg(y) - arg(x)
*/
-extern __inline__ complex ccor(complex x, complex y)
+__attribute__((gnu_inline)) extern __inline__ complex ccor(complex x, complex y)
{
complex z;
@@ -117,7 +117,7 @@ extern __inline__ complex ccor(complex x
/*
* Real part of the complex ???
*/
-extern __inline__ double ccorI(complex x, complex y)
+__attribute__((gnu_inline)) extern __inline__ double ccorI(complex x, complex y)
{
return c_re(x) * c_re(y) + c_im(x) * c_im(y);
}
@@ -125,7 +125,7 @@ extern __inline__ double ccorI(complex x
/*
* Imaginary part of the complex ???
*/
-extern __inline__ double ccorQ(complex x, complex y)
+__attribute__((gnu_inline)) extern __inline__ double ccorQ(complex x, complex y)
{
return c_re(x) * c_im(y) - c_im(x) * c_re(y);
}
@@ -133,7 +133,7 @@ extern __inline__ double ccorQ(complex x
/*
* Modulo (absolute value) of a complex number.
*/
-extern __inline__ double cmod(complex x)
+__attribute__((gnu_inline)) extern __inline__ double cmod(complex x)
{
return sqrt(c_re(x) * c_re(x) + c_im(x) * c_im(x));
}
@@ -141,7 +141,7 @@ extern __inline__ double cmod(complex x)
/*
* Square of the absolute value (power).
*/
-extern __inline__ double cpwr(complex x)
+__attribute__((gnu_inline)) extern __inline__ double cpwr(complex x)
{
return (c_re(x) * c_re(x) + c_im(x) * c_im(x));
}
@@ -149,7 +149,7 @@ extern __inline__ double cpwr(complex x)
/*
* Argument of a complex number.
*/
-extern __inline__ double carg(complex x)
+__attribute__((gnu_inline)) extern __inline__ double carg(complex x)
{
return atan2(c_im(x), c_re(x));
}
@@ -157,7 +157,7 @@ extern __inline__ double carg(complex x)
/*
* Complex square root.
*/
-extern __inline__ complex csqrt(complex x)
+__attribute__((gnu_inline)) extern __inline__ complex csqrt(complex x)
{
complex z;

View File

@@ -0,0 +1,22 @@
$NetBSD: patch-src_misc_filter-i386.h,v 1.1 2012/12/24 21:13:28 joerg Exp $
--- src/misc/filter-i386.h.orig 2012-12-23 17:57:26.000000000 +0000
+++ src/misc/filter-i386.h
@@ -32,7 +32,7 @@
#include <stdio.h>
-extern inline float __mac_g(const float *a, const float *b, unsigned int size)
+__attribute__((gnu_inline)) extern inline float __mac_g(const float *a, const float *b, unsigned int size)
{
float sum = 0;
unsigned int i;
@@ -42,7 +42,7 @@ extern inline float __mac_g(const float
return sum;
}
-extern inline float __mac_c(const float *a, const float *b, unsigned int size)
+__attribute__((gnu_inline)) extern inline float __mac_c(const float *a, const float *b, unsigned int size)
{
float f;

View File

@@ -0,0 +1,13 @@
$NetBSD: patch-src_misc_filter.h,v 1.1 2012/12/24 21:13:28 joerg Exp $
--- src/misc/filter.h.orig 2012-12-23 17:57:04.000000000 +0000
+++ src/misc/filter.h
@@ -39,7 +39,7 @@
#ifndef __HAVE_ARCH_MAC
-extern __inline__ float mac(const float *a, const float *b, unsigned int size)
+__attribute__((gnu_inline)) extern __inline__ float mac(const float *a, const float *b, unsigned int size)
{
float sum = 0;
unsigned int i;

View File

@@ -0,0 +1,7 @@
GNU Radio is a collection of software that when combined with minimal hardware,
allows the construction of radios where the actual waveforms transmitted and
received are defined by software. What this means is that it turns the digital
modulation schemes used in today's high performance wireless devices into
software problems.
This module contains support for JACK, a low latency audio server.

View File

@@ -0,0 +1,17 @@
# $NetBSD: Makefile,v 1.13 2013/02/15 11:54:05 obache Exp $
PKGNAME= gnuradio-audio-jack-${VERSION}
PKGREVISION= 8
COMMENT= GNU Radio module for jack low latency audio server
.include "../../meta-pkgs/gnuradio/Makefile.common"
CONF_FILES+= ${EGDIR}/gr-audio-jack.conf ${PKG_SYSCONFDIR}/gr-audio-jack.conf
CONFIGURE_ARGS+=--enable-gr-audio-jack
CONFIGURE_ARGS+=--with-gnuradio-core --with-omnithread --with-gruel
PYTHON_PATCH_SCRIPTS+= gr-audio-jack/src/python/qa_jack.py
.include "../../audio/jack/buildlink3.mk"
.include "../../ham/gnuradio-core/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

View File

@@ -0,0 +1,11 @@
@comment $NetBSD: PLIST,v 1.3 2010/09/15 09:38:43 markd Exp $
include/gnuradio/audio_jack_sink.h
include/gnuradio/audio_jack_source.h
include/gnuradio/swig/audio_jack.i
lib/libgnuradio-audio-jack.la
lib/pkgconfig/gnuradio-audio-jack.pc
${PYSITELIB}/gnuradio/_audio_jack.la
${PYSITELIB}/gnuradio/audio_jack.py
${PYSITELIB}/gnuradio/audio_jack.pyc
${PYSITELIB}/gnuradio/audio_jack.pyo
share/examples/gnuradio/conf.d/gr-audio-jack.conf

View File

@@ -0,0 +1,7 @@
GNU Radio is a collection of software that when combined with minimal hardware,
allows the construction of radios where the actual waveforms transmitted and
received are defined by software. What this means is that it turns the digital
modulation schemes used in today's high performance wireless devices into
software problems.
This module provides Open Sound System (OSS) support for GNU Radio.

View File

@@ -0,0 +1,19 @@
# $NetBSD: Makefile,v 1.20 2013/02/15 11:54:05 obache Exp $
PKGNAME= gnuradio-audio-oss-${VERSION}
PKGREVISION= 7
COMMENT= Open Sound System support for GNU Radio
.include "../../meta-pkgs/gnuradio/Makefile.common"
CONF_FILES+= ${EGDIR}/gr-audio-oss.conf ${PKG_SYSCONFDIR}/gr-audio-oss.conf
CONFIGURE_ARGS+=--enable-gr-audio-oss
CONFIGURE_ARGS+=--with-gnuradio-core --with-omnithread --with-gruel
PYTHON_PATCH_SCRIPTS+= gr-audio-oss/src/qa_oss.py
#LDFLAGS = -lgnuradio-core ${PTHREAD_LDFLAGS} ${PTHREAD_LIBS}
.include "../../mk/oss.buildlink3.mk"
.include "../../ham/gnuradio-core/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

View File

@@ -0,0 +1,11 @@
@comment $NetBSD: PLIST,v 1.4 2010/09/15 09:38:43 markd Exp $
include/gnuradio/audio_oss_sink.h
include/gnuradio/audio_oss_source.h
include/gnuradio/swig/audio_oss.i
lib/libgnuradio-audio-oss.la
lib/pkgconfig/gnuradio-audio-oss.pc
${PYSITELIB}/gnuradio/_audio_oss.la
${PYSITELIB}/gnuradio/audio_oss.py
${PYSITELIB}/gnuradio/audio_oss.pyc
${PYSITELIB}/gnuradio/audio_oss.pyo
share/examples/gnuradio/conf.d/gr-audio-oss.conf

View File

@@ -0,0 +1,7 @@
GNU Radio is a collection of software that when combined with minimal hardware,
allows the construction of radios where the actual waveforms transmitted and
received are defined by software. What this means is that it turns the digital
modulation schemes used in today's high performance wireless devices into
software problems.
This module provides portaudio support for GNU Radio

View File

@@ -0,0 +1,17 @@
# $NetBSD: Makefile,v 1.11 2013/02/15 11:54:05 obache Exp $
PKGNAME= gnuradio-audio-portaudio-${VERSION}
PKGREVISION= 7
COMMENT= GNU Radio module adding support for portaudio
.include "../../meta-pkgs/gnuradio/Makefile.common"
CONF_FILES+= ${EGDIR}/gr-audio-portaudio.conf ${PKG_SYSCONFDIR}/gr-audio-portaudio.conf
CONFIGURE_ARGS+=--enable-gr-audio-portaudio
CONFIGURE_ARGS+=--with-gnuradio-core --with-omnithread --with-gruel
PYTHON_PATCH_SCRIPTS+= gr-audio-portaudio/src/qa_portaudio.py
.include "../../audio/portaudio-devel/buildlink3.mk"
.include "../../ham/gnuradio-core/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

View File

@@ -0,0 +1,11 @@
@comment $NetBSD: PLIST,v 1.3 2010/09/15 09:38:43 markd Exp $
include/gnuradio/audio_portaudio_sink.h
include/gnuradio/audio_portaudio_source.h
include/gnuradio/swig/audio_portaudio.i
lib/libgnuradio-audio-portaudio.la
lib/pkgconfig/gnuradio-audio-portaudio.pc
${PYSITELIB}/gnuradio/_audio_portaudio.la
${PYSITELIB}/gnuradio/audio_portaudio.py
${PYSITELIB}/gnuradio/audio_portaudio.pyc
${PYSITELIB}/gnuradio/audio_portaudio.pyo
share/examples/gnuradio/conf.d/gr-audio-portaudio.conf

View File

@@ -0,0 +1,7 @@
GNU Radio is a collection of software that when combined with minimal hardware,
allows the construction of radios where the actual waveforms transmitted and
received are defined by software. What this means is that it turns the digital
modulation schemes used in today's high performance wireless devices into
software problems.
This package contains the documentation for the GNU Radio core module.

View File

@@ -0,0 +1,16 @@
# $NetBSD: Makefile,v 1.21 2013/05/23 15:05:07 joerg Exp $
PKGNAME= gnuradio-core-docs-${VERSION}
COMMENT= GNU Radio core module documentation
PKGREVISION= 16
.include "../../meta-pkgs/gnuradio/Makefile.common"
CONFIGURE_ARGS+=--enable-doxygen
BUILD_DEPENDS+=doxygen>=1.8.4:../../devel/doxygen
BUILD_DIRS= docs
.include "../../ham/gnuradio-core/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

11557
ham/gnuradio-core-docs/PLIST Normal file

File diff suppressed because it is too large Load Diff

Some files were not shown because too many files have changed in this diff Show More