From c428acb9f1cbd2456543d9aa7fe21f088eaf1fb2 Mon Sep 17 00:00:00 2001 From: Pav Lucistnik Date: Sat, 21 Aug 2004 22:07:26 +0000 Subject: [PATCH] Add TrustedQSL, an Amateur Radio Station electronic trusted logbook The mission of the Trusted QSL Group is to keep eQSL an open and free activity for amateur radio operators by promoting the Digital Signature Standard (DSS). PR: ports/70643 Submitted by: Diane Bruce --- comms/Makefile | 1 + comms/trustedqsl/Makefile | 51 +++++++++++++ comms/trustedqsl/distinfo | 4 + comms/trustedqsl/files/Makefile | 9 +++ comms/trustedqsl/files/Makefile.tqsllib | 49 ++++++++++++ comms/trustedqsl/files/Makefile.tqsllib-apps | 56 ++++++++++++++ .../files/patch-tqsllib_sysconfig.h | 31 ++++++++ comms/trustedqsl/pkg-descr | 10 +++ comms/trustedqsl/pkg-plist | 74 +++++++++++++++++++ 9 files changed, 285 insertions(+) create mode 100644 comms/trustedqsl/Makefile create mode 100644 comms/trustedqsl/distinfo create mode 100644 comms/trustedqsl/files/Makefile create mode 100644 comms/trustedqsl/files/Makefile.tqsllib create mode 100644 comms/trustedqsl/files/Makefile.tqsllib-apps create mode 100644 comms/trustedqsl/files/patch-tqsllib_sysconfig.h create mode 100644 comms/trustedqsl/pkg-descr create mode 100644 comms/trustedqsl/pkg-plist diff --git a/comms/Makefile b/comms/Makefile index cd248bab446b..8354bcd97e8e 100644 --- a/comms/Makefile +++ b/comms/Makefile @@ -82,6 +82,7 @@ SUBDIR += tits SUBDIR += tkhylafax SUBDIR += tkscanfax + SUBDIR += trustedqsl SUBDIR += viewfax SUBDIR += vpb2 SUBDIR += vrflash diff --git a/comms/trustedqsl/Makefile b/comms/trustedqsl/Makefile new file mode 100644 index 000000000000..ca65420e697a --- /dev/null +++ b/comms/trustedqsl/Makefile @@ -0,0 +1,51 @@ +# New ports collection makefile for: TrustedQSL +# Date created: 20th July 2004 +# Whom: Diane Bruce +# +# $FreeBSD$ +# + +PORTNAME= trustedqsl +PORTVERSION= 1.10 +CATEGORIES= comms +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= trustedqsl +DISTFILES= tqsllib-1.4.tar.gz TrustedQSL-1.10.tar.gz + +MAINTAINER= db@db.net +COMMENT= Amateur Radio Station electronic trusted logbook + +LIB_DEPENDS= expat.5:${PORTSDIR}/textproc/expat2 \ + wx_gtk2-2.4.0:${PORTSDIR}/x11-toolkits/wxgtk2 + +USE_GETOPT_LONG= yes +USE_REINPLACE= yes +MAKE_ENV= INCDIR="-I${LOCALBASE}/include" LDFLAGS="-L${LOCALBASE}/lib" + +WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} + +post-patch: + ${CP} ${FILESDIR}/Makefile ${WRKSRC} + ${CP} ${FILESDIR}/Makefile.tqsllib ${WRKSRC}/tqsllib/Makefile + ${CP} ${FILESDIR}/Makefile.tqsllib-apps ${WRKSRC}/tqsllib-apps/Makefile + +do-extract: + @${RM} -rf ${WRKDIR} + @${MKDIR} ${WRKDIR} + @${MKDIR} ${WRKSRC} + @for file in ${EXTRACT_ONLY}; do \ + if ! (cd ${WRKSRC} && ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${_DISTDIR}/$$file ${EXTRACT_AFTER_ARGS});\ + then \ + exit 1; \ + fi \ + done + +post-install: +.if !defined(NOPORTDOCS) + @${MKDIR} ${PREFIX}/share/doc/tqslcert + @${MKDIR} ${PREFIX}/share/doc/tqslapp + @${CP} ${WRKSRC}/tqsllib-apps/tqslcert_help/* ${PREFIX}/share/doc/tqslcert/ + @${CP} ${WRKSRC}/tqsllib-apps/tqsl_help/* ${PREFIX}/share/doc/tqslapp/ +.endif + +.include diff --git a/comms/trustedqsl/distinfo b/comms/trustedqsl/distinfo new file mode 100644 index 000000000000..a1a1a632c487 --- /dev/null +++ b/comms/trustedqsl/distinfo @@ -0,0 +1,4 @@ +MD5 (tqsllib-1.4.tar.gz) = 008705afbf39f52e0984e195d32e8378 +SIZE (tqsllib-1.4.tar.gz) = 160585 +MD5 (TrustedQSL-1.10.tar.gz) = c0b8108c744d574204649cd375474982 +SIZE (TrustedQSL-1.10.tar.gz) = 223927 diff --git a/comms/trustedqsl/files/Makefile b/comms/trustedqsl/files/Makefile new file mode 100644 index 000000000000..ba304dc4ce5e --- /dev/null +++ b/comms/trustedqsl/files/Makefile @@ -0,0 +1,9 @@ +# $FreeBSD$ + +all: + (cd tqsllib;make) + (cd tqsllib-apps;make) + +install: + (cd tqsllib;make install) + (cd tqsllib-apps;make install) diff --git a/comms/trustedqsl/files/Makefile.tqsllib b/comms/trustedqsl/files/Makefile.tqsllib new file mode 100644 index 000000000000..509c68f152b4 --- /dev/null +++ b/comms/trustedqsl/files/Makefile.tqsllib @@ -0,0 +1,49 @@ +CXX = g++ +CC ?= gcc +LIBS=-lcrypto -lexpat +CXXFLAGS += -I. $(INCDIR) -DHAVE_CONFIG_H +LDFLAGS += -L. $(LIBS) -lstdc++ +TARGETS = gen_crq load_cert station_loc dumptqsldata converter +ZLIB=z +MYLIB=tqsllib + +OBJS= tqsllib.o openssl_cert.o adif.o xml.o\ + location.o tqslconvert.o cabrillo.o + +all: $(TARGETS) + +gen_crq: gen_crq.o lib$(MYLIB).a + ${CXX} -o gen_crq gen_crq.o -l$(MYLIB) $(LDFLAGS) -l$(ZLIB) + +load_cert: load_cert.o lib$(MYLIB).a + ${CXX} -o load_cert load_cert.o -l$(MYLIB) $(LDFLAGS) -l$(ZLIB) + +converter: converter.o lib$(MYLIB).a + ${CXX} -o converter converter.o -l$(MYLIB) $(LDFLAGS) -l$(ZLIB) + +station_loc: station_loc.o lib$(MYLIB).a + ${CXX} -o station_loc station_loc.o -l$(MYLIB) $(LDFLAGS) -l$(ZLIB) + +dumptqsldata: dumptqsldata.o lib$(MYLIB).a + ${CXX} -o dumptqsldata dumptqsldata.o -l$(MYLIB) $(LDFLAGS) -l$(ZLIB) + +include tqsllib.depends + +libtqsllib.a: $(OBJS) + ${AR} qc libtqsllib.a ${OBJS} + +install: + ${INSTALL} gen_crq ${PREFIX}/bin + ${INSTALL} load_cert ${PREFIX}/bin + ${INSTALL} converter ${PREFIX}/bin + ${INSTALL} station_loc ${PREFIX}/bin + ${INSTALL} dumptqsldata ${PREFIX}/bin + +clean: + rm -f converter dumptqsldata gen_crq load_cert station_loc + rm -f *.o *.lo *.a *.la *~ xxx.* *.a + rm -rf .libs + +%.o: %.cpp + ${CXX} ${CXXFLAGS} -c -o $@ $*.cpp + diff --git a/comms/trustedqsl/files/Makefile.tqsllib-apps b/comms/trustedqsl/files/Makefile.tqsllib-apps new file mode 100644 index 000000000000..b622fd2e6f2a --- /dev/null +++ b/comms/trustedqsl/files/Makefile.tqsllib-apps @@ -0,0 +1,56 @@ +TQSLLIB=../tqsllib +TQSLINC=../tqsllib +OPENSSL=/usr +LIBS=-lz -lexpat -lcrypto +INCDIR = -I$(TQSLINC) +BUILD=unofficial +WXFLAGS=`wx-config --cflags` +WXLIBS=`wx-config --libs` +CXXFLAGS += $(INCDIR) -DHAVE_LIBCRYPTO=1 -DSTDC_HEADERS=1 -DHAVE_MKDIR=1 -DHAVE_STRERROR=1 $(WXFLAGS) +LDLIBS = -L$(OPENSSL)/lib -L$(TQSLLIB) -ltqsllib $(LIBS) $(WXLIBS) +TQSLLIBFILE=$(TQSLLIB)/libtqsllib.a + +BINDIR=${PREFIX}/bin +DOCDIR=${PREFIX}/share/doc +ETCDIR=${PREFIX}/etc + +TARGETS = tqslcert tqsl + +all: $(TARGETS) + +TQSLCERT_OBJ = tqslcert.o crqwiz.o dxcc.o certtree.o tqslcert_prefs.o \ + getpassword.o extwizard.o loadcertwiz.o wxutil.o + +TQSL_OBJ = tqsl.o extwizard.o tqslwiz.o dxcc.o stationdial.o qsodatadialog.o \ + tqslvalidator.o tqsl_prefs.o wxutil.o + +tqslcert: $(TQSLCERT_OBJ) $(TQSLLIBFILE) + $(CC) $(CXXFLAGS) $(LDFLAGS) -o $@ $(TQSLCERT_OBJ) $(LDLIBS) -lstdc++ + +tqsl: $(TQSL_OBJ) $(TQSLLIBFILE) + $(CC) $(CXXFLAGS) $(LDFLAGS) -o $@ $(TQSL_OBJ) $(LDLIBS) -lstdc++ + +include apps.depends + +tqslcertbuild.h: buildskel.h + cp buildskel.h tqslcertbuild.h + +tqslcert.o: + ${CXX} $(CXXFLAGS) -c -o $@ $*.cpp + +tqslbuild.h: buildskel.h + cp buildskel.h tqslbuild.h + +tqsl.o: + ${CXX} $(CXXFLAGS) -c -o $@ $*.cpp + +%.o: %.cpp + ${CXX} $(CXXFLAGS) -c -o $@ $*.cpp + +clean: + rm -f $(TARGETS) *.o *.a *~ xxx.* + +install: + ${INSTALL} -d $(BINDIR) $(ETCDIR)/tqsl + ${INSTALL} -C $(TARGETS) $(BINDIR) + ${INSTALL} -C ../tqsllib/config.xml $(ETCDIR)/tqsl diff --git a/comms/trustedqsl/files/patch-tqsllib_sysconfig.h b/comms/trustedqsl/files/patch-tqsllib_sysconfig.h new file mode 100644 index 000000000000..a801e4e3e78c --- /dev/null +++ b/comms/trustedqsl/files/patch-tqsllib_sysconfig.h @@ -0,0 +1,31 @@ +--- tqsllib/sysconfig.h.orig Wed Jul 21 11:51:59 2004 ++++ tqsllib/sysconfig.h Wed Jul 21 11:54:05 2004 +@@ -14,7 +14,7 @@ + /* #undef TM_IN_SYS_TIME */ + + /* Defined if this is LOTW server code */ +-#define LOTW_SERVER 1 ++#undef LOTW_SERVER + + /* Define if you have the mkdir function. */ + #define HAVE_MKDIR 1 +@@ -29,7 +29,7 @@ + #define HAVE_UNISTD_H 1 + + /* Define if you have the header file. */ +-/* #undef HAVE_GETOPT_H */ ++#define HAVE_GETOPT_H + + /* Define if you have the crypto library (-lcrypto). */ + #define HAVE_LIBCRYPTO 1 +@@ -38,8 +38,8 @@ + #define HAVE_LIBDL 1 + + /* Define if you have the pcrl library (-lpcrl). */ +-#define HAVE_LIBPCRL 1 ++#undef HAVE_LIBPCRL + + /* Define if you have the sqlca library (-lsqlca). */ +-#define HAVE_LIBSQLCA 1 ++#undef HAVE_LIBSQLCA + diff --git a/comms/trustedqsl/pkg-descr b/comms/trustedqsl/pkg-descr new file mode 100644 index 000000000000..488b5a2272ca --- /dev/null +++ b/comms/trustedqsl/pkg-descr @@ -0,0 +1,10 @@ +TrustedQSL + +The mission of the Trusted QSL Group is to keep eQSL an open and free +activity for amateur radio operators by promoting the +Digital Signature Standard (DSS). + +WWW: http://www.trustedqsl.org + +- Diane +db@db.net diff --git a/comms/trustedqsl/pkg-plist b/comms/trustedqsl/pkg-plist new file mode 100644 index 000000000000..f8810b394a9f --- /dev/null +++ b/comms/trustedqsl/pkg-plist @@ -0,0 +1,74 @@ +bin/converter +bin/dumptqsldata +bin/gen_crq +bin/load_cert +bin/station_loc +bin/tqsl +bin/tqslcert +etc/tqsl/config.xml +%%PORTDOCS%%share/doc/tqslapp/addcont.bmp +%%PORTDOCS%%share/doc/tqslapp/addstnl.bmp +%%PORTDOCS%%share/doc/tqslapp/addstnl0.bmp +%%PORTDOCS%%share/doc/tqslapp/adifdial.bmp +%%PORTDOCS%%share/doc/tqslapp/cmdline.htm +%%PORTDOCS%%share/doc/tqslapp/contents.hhc +%%PORTDOCS%%share/doc/tqslapp/daterng.bmp +%%PORTDOCS%%share/doc/tqslapp/daterng.htm +%%PORTDOCS%%share/doc/tqslapp/glossary.htm +%%PORTDOCS%%share/doc/tqslapp/main.htm +%%PORTDOCS%%share/doc/tqslapp/pref-adi.bmp +%%PORTDOCS%%share/doc/tqslapp/pref-adi.htm +%%PORTDOCS%%share/doc/tqslapp/pref-cab.bmp +%%PORTDOCS%%share/doc/tqslapp/pref-cab.htm +%%PORTDOCS%%share/doc/tqslapp/pref-opt.bmp +%%PORTDOCS%%share/doc/tqslapp/pref-opt.htm +%%PORTDOCS%%share/doc/tqslapp/pref.htm +%%PORTDOCS%%share/doc/tqslapp/qsodata.bmp +%%PORTDOCS%%share/doc/tqslapp/qsodata.htm +%%PORTDOCS%%share/doc/tqslapp/savestnl.bmp +%%PORTDOCS%%share/doc/tqslapp/signconf.bmp +%%PORTDOCS%%share/doc/tqslapp/signdone.bmp +%%PORTDOCS%%share/doc/tqslapp/signing.htm +%%PORTDOCS%%share/doc/tqslapp/stnloc.bmp +%%PORTDOCS%%share/doc/tqslapp/stnloc.htm +%%PORTDOCS%%share/doc/tqslapp/stnloc1.htm +%%PORTDOCS%%share/doc/tqslapp/stnloc2.htm +%%PORTDOCS%%share/doc/tqslapp/tqsl.htm +%%PORTDOCS%%share/doc/tqslapp/tqslapp.hhp +%%PORTDOCS%%share/doc/tqslcert/broken-cert.bmp +%%PORTDOCS%%share/doc/tqslcert/contents.hhc +%%PORTDOCS%%share/doc/tqslcert/crq.bmp +%%PORTDOCS%%share/doc/tqslcert/crq.htm +%%PORTDOCS%%share/doc/tqslcert/crq0.bmp +%%PORTDOCS%%share/doc/tqslcert/crq0.htm +%%PORTDOCS%%share/doc/tqslcert/crq1.bmp +%%PORTDOCS%%share/doc/tqslcert/crq1.htm +%%PORTDOCS%%share/doc/tqslcert/crq2.bmp +%%PORTDOCS%%share/doc/tqslcert/crq2.htm +%%PORTDOCS%%share/doc/tqslcert/crq3.bmp +%%PORTDOCS%%share/doc/tqslcert/crq3.htm +%%PORTDOCS%%share/doc/tqslcert/crq4.bmp +%%PORTDOCS%%share/doc/tqslcert/crq4.htm +%%PORTDOCS%%share/doc/tqslcert/crqsend.htm +%%PORTDOCS%%share/doc/tqslcert/glossary.htm +%%PORTDOCS%%share/doc/tqslcert/lcf.bmp +%%PORTDOCS%%share/doc/tqslcert/lcf0.bmp +%%PORTDOCS%%share/doc/tqslcert/lcf0.htm +%%PORTDOCS%%share/doc/tqslcert/lcf1.bmp +%%PORTDOCS%%share/doc/tqslcert/lcf1.htm +%%PORTDOCS%%share/doc/tqslcert/lcf2.htm +%%PORTDOCS%%share/doc/tqslcert/loadcert.htm +%%PORTDOCS%%share/doc/tqslcert/main.htm +%%PORTDOCS%%share/doc/tqslcert/newp12pw.bmp +%%PORTDOCS%%share/doc/tqslcert/newpw.bmp +%%PORTDOCS%%share/doc/tqslcert/nocert.bmp +%%PORTDOCS%%share/doc/tqslcert/props.bmp +%%PORTDOCS%%share/doc/tqslcert/save.htm +%%PORTDOCS%%share/doc/tqslcert/tqsl.htm +%%PORTDOCS%%share/doc/tqslcert/tqslcert.bmp +%%PORTDOCS%%share/doc/tqslcert/tqslcert.hhp +%%PORTDOCS%%share/doc/tqslcert/unlock.bmp +%%PORTDOCS%%share/doc/tqslcert/unlock.htm +%%PORTDOCS%%@dirrm share/doc/tqslcert +%%PORTDOCS%%@dirrm share/doc/tqslapp +@dirrm etc/tqsl