From 343e603d1126233ab3cfe89a75ba6c965e4acb58 Mon Sep 17 00:00:00 2001 From: db Date: Fri, 18 Apr 2014 00:19:41 +0000 Subject: aprsc (pronounced a-purrs-c) is a plain APRS-IS server intended to be used on the core and Tier2 APRS-IS servers. It is written in the C language, and it runs on Linux and Unix servers. If you need igate or other radio-interfacing features, aprsc is not for you. - toyo toyokun@gmail.com WWW: http://he.fi/aprsc PR: ports/188539 Submitted by: toyokun@gmail.com --- net/Makefile | 1 + net/aprsc/Makefile | 27 +++++++++++++++++++++++++++ net/aprsc/distinfo | 2 ++ net/aprsc/files/patch-Makefile.in | 36 ++++++++++++++++++++++++++++++++++++ net/aprsc/pkg-descr | 10 ++++++++++ net/aprsc/pkg-plist | 17 +++++++++++++++++ 6 files changed, 93 insertions(+) create mode 100644 net/aprsc/Makefile create mode 100644 net/aprsc/distinfo create mode 100644 net/aprsc/files/patch-Makefile.in create mode 100644 net/aprsc/pkg-descr create mode 100644 net/aprsc/pkg-plist (limited to 'net') diff --git a/net/Makefile b/net/Makefile index 82449a5307b5..ef3b41cc3cf7 100644 --- a/net/Makefile +++ b/net/Makefile @@ -20,6 +20,7 @@ SUBDIR += aoe SUBDIR += apinger SUBDIR += appkonference + SUBDIR += aprsc SUBDIR += arp-scan SUBDIR += arp-sk SUBDIR += arpdig diff --git a/net/aprsc/Makefile b/net/aprsc/Makefile new file mode 100644 index 000000000000..7f2c45a2d612 --- /dev/null +++ b/net/aprsc/Makefile @@ -0,0 +1,27 @@ +# $FreeBSD$ + +PORTNAME= aprsc +PORTVERSION= 2.0.14 +DISTVERSIONSUFFIX= .g28c5a6a +CATEGORIES= net hamradio +MASTER_SITES= http://he.fi/aprsc/down/ \ + ${MASTER_SITE_LOCAL} +MASTER_SITE_SUBDIR= db + +MAINTAINER= toyokun@gmail.com +COMMENT= A plain APRS-IS server + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +LIB_DEPENDS= event2/libevent-2.0.so:${PORTSDIR}/devel/libevent2 + +CPPFLAGS+= -I${LOCALBASE}/include +LDFLAGS+= -L${LOCALBASE}/lib/event2 +MAKEFILE= GNUmakefile + +WRKSRC= ${WRKDIR}/${DISTNAME}/src +GNU_CONFIGURE= yes +USES= perl5 gmake + +.include diff --git a/net/aprsc/distinfo b/net/aprsc/distinfo new file mode 100644 index 000000000000..e7fff379175d --- /dev/null +++ b/net/aprsc/distinfo @@ -0,0 +1,2 @@ +SHA256 (aprsc-2.0.14.g28c5a6a.tar.gz) = e434aa1292ff8db93e10018402f2368461dd56efc58a01e680cde72c10fd1ffb +SIZE (aprsc-2.0.14.g28c5a6a.tar.gz) = 1074567 diff --git a/net/aprsc/files/patch-Makefile.in b/net/aprsc/files/patch-Makefile.in new file mode 100644 index 000000000000..b3f98a2f89a1 --- /dev/null +++ b/net/aprsc/files/patch-Makefile.in @@ -0,0 +1,36 @@ +--- Makefile.in.orig 2014-02-18 11:34:25.000000000 -0500 ++++ Makefile.in 2014-04-16 12:45:51.000000000 -0500 +@@ -7,11 +7,8 @@ + + VARRUN= /opt/aprsc/logs # directory for aprsc.state and pid-file + VARLOG= /opt/aprsc/logs # directory for direct logfiles +-CFGFILE= @sysconfdir@/aprsc.conf # default configuration file + SBINDIR= @sbindir@ # installation path for programs + MANDIR= @mandir@ # installation path for manual pages +-SBINDIR= /opt/aprsc/sbin +-CFGFILE= /opt/aprsc/etc/aprsc.conf + + # generate version strings + VERSION:=$(shell cat VERSION) +@@ -196,16 +193,13 @@ + + .PHONY: install install-deb + install: all +- $(INSTALL_DIR) $(DESTDIR)/opt/aprsc/etc +- $(INSTALL_DIR) $(DESTDIR)/opt/aprsc/logs +- $(INSTALL_DIR) $(DESTDIR)/opt/aprsc/data +- $(INSTALL_DIR) $(DESTDIR)/opt/aprsc/web +- $(INSTALL_PROGRAM) aprsc $(DESTDIR)$(SBINDIR)/aprsc +- $(INSTALL_PROGRAM) aprsc_munin $(DESTDIR)$(SBINDIR)/aprsc_munin ++ $(INSTALL_DIR) $(DESTDIR)$(PREFIX)/etc/aprsc/web ++ $(INSTALL_PROGRAM) aprsc $(DESTDIR)$(PREFIX)$(SBINDIR)/aprsc ++ $(INSTALL_PROGRAM) aprsc_munin $(DESTDIR)$(PREFIX)$(SBINDIR)/aprsc_munin + $(INSTALL_DATA) aprsc.8 $(DESTDIR)$(MANDIR)/man8/aprsc.8 +- $(INSTALL_DATA) $(subst src/,,$(WEBFILES)) $(DESTDIR)/opt/aprsc/web ++ $(INSTALL_DATA) $(subst src/,,$(WEBFILES)) $(DESTDIR)$(PREFIX)/etc/aprsc/web + if [ ! -f $(DESTDIR)$(CFGFILE) ] ; then \ +- $(INSTALL_DATA) aprsc.conf $(DESTDIR)$(CFGFILE) ; \ ++ $(INSTALL_DATA) aprsc.conf $(DESTDIR)$(PREFIX)/etc/aprsc/aprsc.conf.example ; \ + else true ; fi + + # -------------------------------------------------------------------- # diff --git a/net/aprsc/pkg-descr b/net/aprsc/pkg-descr new file mode 100644 index 000000000000..1677a6496d2f --- /dev/null +++ b/net/aprsc/pkg-descr @@ -0,0 +1,10 @@ +aprsc (pronounced a-purrs-c) is a plain APRS-IS server intended to be used +on the core and Tier2 APRS-IS servers. It is written in the C language, +and it runs on Linux and Unix servers. + +If you need igate or other radio-interfacing features, aprsc is not for you. + +- toyo +toyokun@gmail.com + +WWW: http://he.fi/aprsc diff --git a/net/aprsc/pkg-plist b/net/aprsc/pkg-plist new file mode 100644 index 000000000000..4b9e7e710584 --- /dev/null +++ b/net/aprsc/pkg-plist @@ -0,0 +1,17 @@ +etc/aprsc/web/aprsc.css +etc/aprsc/web/aprsc.js +etc/aprsc/web/index.html +etc/aprsc/web/favicon.ico +etc/aprsc/web/aprsc-logo.png +etc/aprsc/web/aprsc-joulukissa.jpg +etc/aprsc/web/excanvas.min.js +etc/aprsc/web/jquery.flot.min.js +etc/aprsc/web/jquery.flot.selection.min.js +@unexec if cmp -s %D/etc/aprsc/aprsc.conf %D/etc/aprsc/aprsc.conf.example ; then rm -f %D/etc/aprsc/aprsc.conf ; fi +etc/aprsc/aprsc.conf.example +@exec if [ ! -f %D/etc/aprsc/aprsc.conf ]; then cp -p %D/%F %B/aprsc/aprscs.conf; fi +man/man8/aprsc.8.gz +sbin/aprsc +sbin/aprsc_munin +@dirrm etc/aprsc/web +@dirrm etc/aprsc -- cgit