rpms/aprsd/F-7 INIT.TNC, NONE, 1.1 RESTORE.TNC, NONE, 1.1 aprsd-2.2.5-15-compile.patch, NONE, 1.1 aprsd-2.2.5-15-gcc43-port.patch, NONE, 1.1 aprsd-2.2.5-15-sysconfdir.patch, NONE, 1.1 aprsd.conf, NONE, 1.1 aprsd.init, NONE, 1.1 aprsd.spec, NONE, 1.1 user.deny, NONE, 1.1 welcome.txt, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Lucian Langa (lucilanga) fedora-extras-commits at redhat.com
Sat Mar 1 08:02:28 UTC 2008


Author: lucilanga

Update of /cvs/pkgs/rpms/aprsd/F-7
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv16713/F-7

Modified Files:
	.cvsignore sources 
Added Files:
	INIT.TNC RESTORE.TNC aprsd-2.2.5-15-compile.patch 
	aprsd-2.2.5-15-gcc43-port.patch 
	aprsd-2.2.5-15-sysconfdir.patch aprsd.conf aprsd.init 
	aprsd.spec user.deny welcome.txt 
Log Message:

initial import for F-7 branch



--- NEW FILE INIT.TNC ---
# These TNC cmds will be executed each time you start aprsd.
# Modify the MYCALL and BTEXT lines with your data.
# Add/delete any other commands your TNC needs for configuration.
# The last command "K" puts the TNC in communication mode and must be present.
# These sample commands are for a Kantronics KPC-3
# A ctrl-C is sent to the TNC from the server just before these commands are issued.
# Note: The TNCs user interface must have already been set for 9600 baud.
#
#
INTFACE TERMINAL
ECHO OFF
MCOM OFF
MSTAMP OFF
PASSALL OFF
MRPT ON
XMITOK ON
FILTER ON
CD SOFTWARE
NEWMODE OFF
#MYCALL must match MyCall in aprsd.conf
MYCALL KG4IJB-3
#You may turn off BTEXT here and use the "tncbeacon" command in aprsd.conf instead.
#BTEXT _0000.00NI00000.00W& APRS Linux Internet Server 
BEACON EVERY 10
#Note: The "APRS" in the next line will be overwritten by APDxxx where xxx is the version number.
#      So, it matters not what you put there.
UNPROTO APRS VIA WIDE,WIDE
HEADERLN OFF
DIGI OFF
HID OFF
PACLEN 0
SCREENL 0
Monitor ON
K
#
# end of file





--- NEW FILE RESTORE.TNC ---
# Place here any TNC commands you want restored after aprsd quits.
MONITOR OFF
NEWMODE ON
ECHO ON
FLOW ON
BK ON
AX ON


aprsd-2.2.5-15-compile.patch:

--- NEW FILE aprsd-2.2.5-15-compile.patch ---
diff -Naur aprsd-2.2.5-15/aprsd.spec aprsd-compile/aprsd.spec
--- aprsd-2.2.5-15/aprsd.spec	1970-01-01 02:00:00.000000000 +0200
+++ aprsd-compile/aprsd.spec	2008-02-21 19:21:49.000000000 +0200
@@ -0,0 +1,62 @@
+%define rel 15
+Name: aprsd
+Summary: aprsd is a server daemon that provides Internet gateway and client access to amateur radio APRS packet data. 
+Version: 2.2.5
+Release: %{rel}.1%{?dist}
+Group: Applications/Internet
+License: GPLv2+
+Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}-%{rel}.tar.gz
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+URL: http://aprsd.sourceforge.net/
+
+BuildRequires: gettext
+
+%description
+APRSd is an APRS server program that uses amateur radio and internet#
+services to convey GPS mapping, weather, and positional data.
+It has been developed by and for amateur radio enthusiasts to provide
+real-time data in an easy to use package.
+
+%prep
+%setup -q -n %{name}-%{version}-%{rel}
+
+%build
+%configure
+make %{?_smp_mflags}
+
+%install
+rm -rf %{buildroot}
+make install DESTDIR="%{buildroot}"
+find %{buildroot} -name \*\.la -print | xargs rm -f
+%find_lang %{name}
+
+%clean
+rm -rf %{buildroot}
+
+%post
+/sbin/ldconfig
+
+%preun
+/sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+%files -f %{name}.lang
+%defattr(-,root,root,-)
+%{_datadir}/evolution/*/images/spam.gif
+%{_datadir}/evolution/*/images/nspam.gif
+%{_sysconfdir}/gconf/schemas/rspam.schemas
+%{_datadir}/evolution/*/errors/org-gnome-sa-rspam.error
+%{_libdir}/evolution/*/plugins/org-gnome-sa-rspam.eplug
+%{_libdir}/evolution/*/plugins/liborg-gnome-sa-rspam.so
+%doc AUTHORS
+%doc COPYING
+%doc ChangeLog
+%doc NEWS
+%doc README
+%doc TODO
+
+%changelog
+* Thu Feb 21 2008 Lucian Langa <cooly at gnome.eu.org> - 2.2.5-15-1
+- Initial spec file created
+
diff -Naur aprsd-2.2.5-15/src/aprsd.cpp aprsd-compile/src/aprsd.cpp
--- aprsd-2.2.5-15/src/aprsd.cpp	2003-05-29 06:09:39.000000000 +0300
+++ aprsd-compile/src/aprsd.cpp	2008-02-21 19:36:31.000000000 +0200
@@ -53,13 +53,14 @@
 
 #include <fstream>
 #include <iostream>
-#include <strstream>
+//#include <strstream>
 #include <iomanip>
 #include <sstream>
 
 #ifdef linux
 #include <linux/kernel.h>
-#include <linux/sys.h>
+//#include <linux/sys.h>
+//#include <iostream.h>
 #endif
 #include <sys/resource.h>
 
diff -Naur aprsd-2.2.5-15/src/aprsString.h aprsd-compile/src/aprsString.h
--- aprsd-2.2.5-15/src/aprsString.h	2003-10-01 19:58:27.000000000 +0300
+++ aprsd-compile/src/aprsString.h	2008-02-21 19:37:40.000000000 +0200
@@ -196,7 +196,7 @@
    void parseLogon(void);
    bool parseCommand(void);
    bool parsePortFilter(void);
-   void aprsString::getMsgText(string& msg);
+   void getMsgText(string& msg);
    void print(ostream& os);
    string getAX25Source(void);
    string getAX25Dest(void);
diff -Naur aprsd-2.2.5-15/src/servers.cpp aprsd-compile/src/servers.cpp
--- aprsd-2.2.5-15/src/servers.cpp	2003-10-01 19:58:27.000000000 +0300
+++ aprsd-compile/src/servers.cpp	2008-02-22 08:01:57.000000000 +0200
@@ -46,7 +46,7 @@
 
 #ifdef linux
 #include <linux/kernel.h>
-#include <linux/sys.h>
+//#include <linux/sys.h>
 #endif
 #include <sys/resource.h>
 
@@ -3277,7 +3277,7 @@
 
 //----------------------------------------------------------------------
 
-inline string convertUpTime(int dTime)
+string convertUpTime(int dTime)
 {
     std::ostringstream ostr;
     int x;

aprsd-2.2.5-15-gcc43-port.patch:

--- NEW FILE aprsd-2.2.5-15-gcc43-port.patch ---
diff -Naur aprsd-2.2.5-15/src/aprsString.cpp aprsd-gcc-43-port/src/aprsString.cpp
--- aprsd-2.2.5-15/src/aprsString.cpp	2003-05-29 14:26:33.000000000 -0400
+++ aprsd-gcc-43-port/src/aprsString.cpp	2008-02-22 08:22:00.000000000 -0500
@@ -31,6 +31,7 @@
 #include <ctime>
 #include <stdexcept>
 #include <strstream>
+#include <string.h>
 
 #include "aprsString.h"
 #include "aprsd.h"
diff -Naur aprsd-2.2.5-15/src/aprsd.cpp aprsd-gcc-43-port/src/aprsd.cpp
--- aprsd-2.2.5-15/src/aprsd.cpp	2008-02-22 08:34:43.000000000 -0500
+++ aprsd-gcc-43-port/src/aprsd.cpp	2008-02-22 08:13:51.000000000 -0500
@@ -28,6 +28,7 @@
 #include <unistd.h>
 #include <signal.h>
 #include <cassert>
+#include <cstring>
 
 #if TIME_WITH_SYS_TIME
 # include <sys/time.h>
diff -Naur aprsd-2.2.5-15/src/aprsdexception.cpp aprsd-gcc-43-port/src/aprsdexception.cpp
--- aprsd-2.2.5-15/src/aprsdexception.cpp	2003-04-20 14:34:47.000000000 -0400
+++ aprsd-gcc-43-port/src/aprsdexception.cpp	2008-02-22 08:24:53.000000000 -0500
@@ -22,6 +22,7 @@
  * Look at the README for more information on the program.
  */
 
+#include <string.h>
 #include "aprsdexception.h"
 
 namespace aprsd
diff -Naur aprsd-2.2.5-15/src/cpqueue.cpp aprsd-gcc-43-port/src/cpqueue.cpp
--- aprsd-2.2.5-15/src/cpqueue.cpp	2003-03-30 23:47:54.000000000 -0500
+++ aprsd-gcc-43-port/src/cpqueue.cpp	2008-02-22 08:22:56.000000000 -0500
@@ -27,6 +27,7 @@
 #include <unistd.h>
 #include <pthread.h>
 #include <stdio.h>
+#include <string.h>
 #include <fstream>
 #include <iostream>
 #include <strstream>
diff -Naur aprsd-2.2.5-15/src/dupCheck.cpp aprsd-gcc-43-port/src/dupCheck.cpp
--- aprsd-2.2.5-15/src/dupCheck.cpp	2003-03-30 23:48:18.000000000 -0500
+++ aprsd-gcc-43-port/src/dupCheck.cpp	2008-02-22 08:23:15.000000000 -0500
@@ -26,6 +26,7 @@
 #include <ctype.h>
 #include <pthread.h>
 #include <stdio.h>
+#include <string.h>
 #include <fstream>
 #include <iostream>
 #include <strstream>
diff -Naur aprsd-2.2.5-15/src/exceptionguard.cpp aprsd-gcc-43-port/src/exceptionguard.cpp
--- aprsd-2.2.5-15/src/exceptionguard.cpp	2003-03-30 23:48:33.000000000 -0500
+++ aprsd-gcc-43-port/src/exceptionguard.cpp	2008-02-22 08:25:21.000000000 -0500
@@ -22,6 +22,7 @@
  * Look at the README for more information on the program.
  */
 
+#include <string.h>
 #include "exceptionguard.h"
 
 namespace aprsd
diff -Naur aprsd-2.2.5-15/src/history.cpp aprsd-gcc-43-port/src/history.cpp
--- aprsd-2.2.5-15/src/history.cpp	2003-05-29 14:26:33.000000000 -0400
+++ aprsd-gcc-43-port/src/history.cpp	2008-02-22 08:25:44.000000000 -0500
@@ -36,6 +36,7 @@
 //#include <unistd.h>
 #include <cstdlib>
 #include <string>
+#include <string.h>
 #include <ctime>
 #include <sys/socket.h>
 #include <sys/types.h>
diff -Naur aprsd-2.2.5-15/src/httpserver.cpp aprsd-gcc-43-port/src/httpserver.cpp
--- aprsd-2.2.5-15/src/httpserver.cpp	2003-05-11 00:38:34.000000000 -0400
+++ aprsd-gcc-43-port/src/httpserver.cpp	2008-02-22 08:29:13.000000000 -0500
@@ -28,7 +28,9 @@
 #include <unistd.h>             // close()
 #include <cassert>
  
+#include <stdlib.h>
 #include <string>
+#include <string.h>
 #include <list>
 #include <iomanip>
 
diff -Naur aprsd-2.2.5-15/src/mutex.cpp aprsd-gcc-43-port/src/mutex.cpp
--- aprsd-2.2.5-15/src/mutex.cpp	2003-04-20 14:34:47.000000000 -0400
+++ aprsd-gcc-43-port/src/mutex.cpp	2008-02-22 08:29:51.000000000 -0500
@@ -23,6 +23,7 @@
  */
 
 
+#include <string.h>
 #include "aprsdassert.h"
 #include "aprsdexception.h"
 #include "mutex.h"
diff -Naur aprsd-2.2.5-15/src/osdep.h aprsd-gcc-43-port/src/osdep.h
--- aprsd-2.2.5-15/src/osdep.h	2003-04-20 14:34:47.000000000 -0400
+++ aprsd-gcc-43-port/src/osdep.h	2008-02-22 08:30:08.000000000 -0500
@@ -27,6 +27,7 @@
 #define OSDEP_H
 
 #include "config.h"
+#include <string.h>
 #include <string>
 
 extern "C"
diff -Naur aprsd-2.2.5-15/src/validate.cpp aprsd-gcc-43-port/src/validate.cpp
--- aprsd-2.2.5-15/src/validate.cpp	2003-03-30 23:49:41.000000000 -0500
+++ aprsd-gcc-43-port/src/validate.cpp	2008-02-22 08:30:43.000000000 -0500
@@ -34,6 +34,7 @@
 #include <iostream>
 #include <strstream>
 #include <iomanip>
+#include <string.h>
 
 using namespace std;
 

aprsd-2.2.5-15-sysconfdir.patch:

--- NEW FILE aprsd-2.2.5-15-sysconfdir.patch ---
--- aprsd-2.2.5-15/src/aprsd.cpp	2003-05-29 06:09:39.000000000 +0300
+++ aprsd-home/src/aprsd.cpp	2008-02-22 16:25:22.000000000 +0200
@@ -97,7 +97,7 @@
 string szAprsPath;
 int msgsn;
 
-const string HOMEDIR("/home/aprsd2");
+const string HOMEDIR("/etc/aprsd");
 const string CONFPATH("");
 const string CONFFILE("aprsd.conf");
 const string MAINLOG("aprsd.log");


--- NEW FILE aprsd.conf ---
# $Id: aprsd.conf,v 1.15 2003/10/01 16:57:16 kg4ijb Exp $
#aprsd 2.2.5 server configuration file
#
#This file is read ONCE on server startup.
#You must restart aprsd for changes to take effect.
#eg: /etc/rc.d/init.d/aprsd.init stop (then start)
#
#Lines starting with "#" are comments and are ignored
#Key words such as "mycall" and "maxusers" are NOT case sensitive.
#MyCall is the same as mycall.
#
#*** There is no error checking so be careful ******
#
#
#Servercall is the ax25 source call used in packets
#sent from the server to Internet users. (9 chars max)
#Note: Does not go out on the air.
#
servercall testCHO  
#
#MyCall will be over written by the MYCALL string in INIT.TNC
#if "tncport" has been defined.
#
MyCall NOCALL  
#
MyLocation Charlottesville_VA
#
#This email address will be sent in replies to ?IGATE? queries.
# Also, it will be on the status web pages on port 14501.
MyEmail you at yourdomain.com
#
#Set MaxUsers and MaxLoad to values that your Internet connection can support.
# Set MaxLoad in bytes/sec.   If either value is exceeded
# new users can't connect.
MaxUsers 150
MaxLoad 100000000000
#
#
#Define beacon text. The server will supply the ax25 path header.
#The first number after "NetBeacon" is the time interval in minutes.
#Comment out the line or set time interval to 0 to disable beacon.
#The rest of the line can be any aprs protocol conforming packet.
#
NetBeacon 10 !3802.21NI07830.61W& APRS Server
#
#Define the TNC beacon. The TNC will supply the ax25 path header.
#It's optional and you may use the TNC BTEXT in the INIT.TNC file instead.
#
TncBeacon 10 !3802.21N/07830.61W& Linux APRS Server
#
#
#Send 2 extra message acks is addition to each received ack to TNC
#Range 0 to 9
ackrepeats 2
#
#Send extra acks at 5 second intervals
#Range 1 to 30 seconds
ackrepeattime 5
#
#Set history list items to expire in 35 minutes
expire 35
#
#Define the TNC serial port and baud rate.
#Note: This device must have write permissions
#If undefined all TNC related functions are disabled.
#Permissable baud rates are 1200,2400,4800,9600 and 19200.
#
#tncport /dev/ttyS0
#tncport radio
#tncbaud 1200

#Define the path for transmitted packets
#This is only used when using Linux sockets, not the TNC.
#For the TNC, set this in INIT.TNC. Note the format is
#slightly different to the TNC command.
aprspath APRS v WIDE

#
# Allow Internet to RF message passing.
rf-allow no
#
#Set filterNoGate "yes" to block RFONLY and NOGATE packets
filterNoGate yes
#
#Set history-allow to NO if you do not want users to get history dumps.
history-allow no 
#
#TRACE causes the server to append its own callsign to the end
#of the AX25 path of every packet processed.  
#To conserver bandwidth this should only be
#done for short periods to track sources of problems.
#
Trace no
#
#Set this to 'yes' if you want to log ALL PACKETS heard on RF to /home/aprsd2/rf.log
#If 'no' then only packets with your callsign will be logged.
logAllRF no
#
# Allow the insecure aprs passcodes to be used
# Note: "no" means all users need Linux user names and passwords
#       and aprsd must be run as root for that to work.
aprsPass yes
#
#Set the minimum time between TNC transmit packets in milliseconds
TncPktSpacing 1500
#
# Disallow packets transmitted from our own TNC from 
# being igated back to the Internet after being digipeated.
igateMyCall no
#
#This determines if Mic-E packets are converted to classic APRS packets.
#Put 'no' unless you have a very good reason to do conversions. 
#This option must also be enabled in the SOURCE CODE. To turn it on
#you must edit "constant.h" and change CONVERT_MIC_E from FALSE to TRUE.
#then recompile aprsd. 
ConvertMicE no
#
#
#The PASS command.  The callsign supplied in MyCall and this
# passcode allow you to send data to distant servers.
# PASS can be computed from MYCALL with the aprspass program.
# Note: This example is invalid. Use your passcode.
#
pass 99999
#
#-------------------------------
#Server connection definitions
#
#usage: <Server> <host name> < host port> <TYPE-DIR> <optional OmniPort filter command>
#
#The TYPE-DIR field sets the connecton type and data flow.
# TYPE is  either "SERVER" or "HUB"
#  SERVER connections attempts to maintain a connection to the designated host
#  HUB connections maintain a connection to only ONE hub and rotate to the next
#  if the connectin fails.
# DIR is either "RO" or "SR"  RO is Receive Only. SR is Send and Receive.
#Eamples: HUB-RO   HUB-SR  SERVER-RO SERVER-SR
# If you select -SR to send data you must also supply a passcode
# using the "PASS" command. See above.
#
#These commands are NOT case sensitive.
# ** Defaults to Server-RO if TYPE-DIR not specified. **
#
#
#Example send-receive  HUB connections
#Hub is like Server except only ONE hub connection is active at a time.
#If the hub connection fails the next hub is tried in rotation until one accepts a connection.
#
#Server second.aprs.net 23 hub-sr
Server first.aprs.net 23 hub-sr
#Server 128.143.202.191 23 hub-sr
#Server third.aprs.net 23 hub-sr
#Server rotate.aprs.net 23 hub-sr
#
#
#Example Receive-Only HUB connecton
#Server first.aprs.net 23 hub-ro
#
#Example Send-Receive SERVER connection.  The SERVER type maintains a connection to
#the specified server.  No rotation.
#Server first.aprs.net 23 server-sr
#
#Example of OmniPort connection to receive the local stream (tnc).
#Note: OmniPort is currently available only on aprsd 2.1.5
#
#Server atlanta.aprs.net 14600 server-ro portfilter(local)
#
#Receive the full stream.
#Server atlanta.aprs.net 14600 server-ro portfilter(full)
#
#
#These servers are provided as a reference. Some may no longer be active.
#You really only need the two or three HUB connections above unless
# you are doing something unusual.
#
#server second.aprs.net 1313 server-ro
#server third.aprs.net 1313 server-ro
#server socal-igate.aprs.claremont.edu 1313 server-ro
#server first.aprs.net 23 
#server atlanta.aprs.net 1313 server-ro
#server aprsdkw.dyndns.org 1313
#server aprs.k9iu.ampr.org 1313
#server atlanta.aprs.net 1313
#server baltimore.aprs.net 1313
#server calgary.aprs.net 1313
#server concord.aprs.net 1313
#server cosprings.aprs.net 1313
#server dayton.aprs.net 14439
#server elansing.aprs.net 1313
#server gw.officine.it 1313
#server hamgate.cs.usu.edu 1313
#server kb2ear.aprs.net 1313
#server kd6wxd.dynip.com 10148
#server marconi.ece.cmu.edu 14579
#server michigan.aprs.net 1313
#server milwaukee.aprs.net 1313
#server montreal.aprs.net 1313 
#server mulvey.dyndns.com 1313
#server netherlands.aprs.net 1313
#server newyork.aprs.net 1313
#server ontario.aprs.net 1313
#server orlando.aprs.net 1313
#server radio.artsfac.csuohio.edu 1313
#server radio-active.net.au 1313
#server sandiego.aprs.net 1313
#server santabarbara.aprs.net 1313
#server saopaulo.aprs.net 1313
#server swiss.aprs.net 14579
#server temple.aprs.net 1313
#server tucson.aprs.net 1313
#server wv.aprs.net 1313
#---------------------------------
#
#Define server listen ports
#Read ports.html for more info.
#
rawtncport 14580
localport 14579
mainport 10151
mainport-nh 10152
linkport 1313
msgport 1314
udpport 1315
sysopPort 14500
httpport 14501
ipwatchport 14502
errorport 14503
omniport 14600
#
#define trusted users of the UDP port.
#usage: trust <ip address> <subnet mask>
#trust 208.148.145.151
#trust 208.148.145.144 255.255.255.240
#
#Selected call signs which are always gated to RF
#if they are not seen locally. All packets from
#these are gated in real time. Do not use unless
#you really need real time data.  Consider posit2rf below.
#They are case sensitive! Use upper case. Up to 64 may be defined.
#As of version 2.1.5 the * wild card character is supported.
#All characters beyond the * are ignored.
#ie: WA4* would match ALL call signs beginning with "WA4"
#
# This has been enhanced in 2.2.5-15 to include
#
#   Instead of only having "*" you can use
#
#   $  for one single alpha character
#   #  for one single numeric character
#   .  for one single punctation character
#   ?  for one single alphanumeric character
#   *  for any number and kind of characters (like before)
#
#   Example:
#   Patterns like  "D$#$*" only allow german callsigns (starting with D,
#   followed by 1 alpha, 1 num, 1 alpha and anything else) but it does not
#   match "DALLAS" or something like that which occurs without this change
#   when configuring just "D*"
#
#gate2rf K4HG-8 N4NEQ*
#
#Call signs of stations whose posits are gated
#to RF every 15 minutes.  Only posit packets are
#gated.  Posits are taken from the history list.
#They are case sensitive! Use upper case.
#
#posit2rf K4HG-8
#
#Define a list of message destination call signs or aliases 
#to gate to RF full time.  Note: the CQGA example 
#below is CQ GA (Georgia). Edit to suite your locale.
#Up to 64 of these may be defined. They are case sensitive.
#
msgdest2rf SCOUTS KIDS CQGA
#
#end





--- NEW FILE aprsd.init ---
#!/bin/bash
#
# aprsd.init for version 2.2.5.  starts or stops aprsd server.
# This file should be placed in /etc/rc.d/init.d/
#
# chkconfig: - 60 50
# description: APRSd is an APRS server program that uses amateur radio and internet#
#		services to convey GPS mapping, weather, and positional data.
#		It has been developed by and for amateur radio enthusiasts to provide
#		real-time data in an easy to use package.
# processname: aprsd
# config: /etc/aprsd/aprsd.conf

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0

[ -x /usr/bin/aprsd ] || exit 0

RETVAL=0
prog="aprsd"

start() {
        # Start daemons.

        if [ -d /etc/aprsd ] ; then
                        echo -n $"Starting $prog: "
                        daemon /usr/bin/aprsd -d
                        RETVAL=$?
                        [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
                        echo
        else
                RETVAL=1
        fi
        return $RETVAL
}

stop() {
        # Stop daemons.
        echo -n $"Shutting down $prog: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
        return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart|reload)
        stop
        start
        RETVAL=$?
        ;;
  condrestart)
        if [ -f /var/lock/subsys/$prog ]; then
            stop
            start
            RETVAL=$?
        fi
        ;;
  status)
        status $prog
        RETVAL=$?
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|status}"
        exit 1
esac

exit $RETVAL


--- NEW FILE aprsd.spec ---
%define uprel 15
Name: aprsd
Summary: Internet gateway and client access to amateur radio APRS packet data
Version: 2.2.5
Release: %{uprel}.2%{?dist}
Group: Applications/Internet
License: GPLv2+
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}-%{uprel}.tar.gz
Source1: aprsd.conf
Source2: aprsd.init
Source3: INIT.TNC
Source4: user.deny
Source5: welcome.txt
Source6: RESTORE.TNC
Patch0: aprsd-2.2.5-15-compile.patch
Patch1: aprsd-2.2.5-15-gcc43-port.patch
Patch2: aprsd-2.2.5-15-sysconfdir.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
URL: http://sourceforge.net/projects/aprsd/
Requires (preun): /sbin/chkconfig
Requires (preun): /sbin/service
Requires (post): /sbin/chkconfig

%description
APRSd is an APRS server program that uses amateur radio and internet
services to convey GPS mapping, weather, and positional data.
It has been developed by and for amateur radio enthusiasts to provide
real-time data in an easy to use package.

%prep
%setup -q -n %{name}-%{version}-%{uprel}
%patch0 -p1 -b compile
%patch1 -p1 -b gccport
%patch2 -p1 -b sysconfdir

%build
%configure
make %{?_smp_mflags}

%install
rm -rf %{buildroot}
make install DESTDIR="%{buildroot}" INSTALL="install -p"
mkdir -p %{buildroot}%{_sysconfdir}
mkdir -p %{buildroot}%{_sysconfdir}/{aprsd,rc.d/init.d}
install -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/aprsd/aprsd.conf
install -m 755 %{SOURCE2} %{buildroot}%{_sysconfdir}/rc.d/init.d/aprsd
install -m 644 %{SOURCE3} %{buildroot}%{_sysconfdir}/aprsd/INIT.TNC
install -m 644 %{SOURCE4} %{buildroot}%{_sysconfdir}/aprsd/user.deny
install -m 644 %{SOURCE5} %{buildroot}%{_sysconfdir}/aprsd/welcome.txt
install -m 644 %{SOURCE6} %{buildroot}%{_sysconfdir}/aprsd/RESTORE.TNC

%clean
rm -rf %{buildroot}

%post
/sbin/chkconfig --add aprsd

%preun
if [ $1 = 0 ]; then
 /sbin/service aprsd stop > /dev/null 2>&1
 /sbin/chkconfig --del aprsd
fi

%files
%defattr(-,root,root,-)
%{_bindir}/aprsd
%{_bindir}/aprspass
%{_sysconfdir}/rc.d/init.d/aprsd
%dir %{_sysconfdir}/aprsd
%config(noreplace) %{_sysconfdir}/aprsd/*
%doc AUTHORS
%doc COPYING
%doc ChangeLog
%doc README
%doc doc/aprsddoc.html
%doc doc/ports.html
%doc doc/q.html
%doc doc/qalgorithm.html

%changelog
* Fri Feb 22 2008 Lucian Langa <cooly at gnome.eu.org> - 2.2.5-15.2
- Patched homedir to obey default sysconfdir
- Patched to compile for gcc-4.3
- Misc cleanups

* Thu Feb 21 2008 Lucian Langa <cooly at gnome.eu.org> - 2.2.5-15.1
- Initial spec file created



--- NEW FILE user.deny ---
#user.deny
#format: user R|L
#use "L" to deny login and RF access
#use "R" to deny RF access but allow login
#ssid is ignored, eg: W4EVIL and W4EVIL-7 are the same.
N0CALL L



--- NEW FILE welcome.txt ---
# Welcome to first.aprs.net (aprs core server).
# Direct comments to cbyam at virginia.edu . Type ctrl-D to disconnect.



Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/aprsd/F-7/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	28 Feb 2008 19:55:25 -0000	1.1
+++ .cvsignore	1 Mar 2008 08:01:50 -0000	1.2
@@ -0,0 +1 @@
+aprsd-2.2.5-15.tar.gz


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/aprsd/F-7/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	28 Feb 2008 19:55:25 -0000	1.1
+++ sources	1 Mar 2008 08:01:50 -0000	1.2
@@ -0,0 +1 @@
+c380ecc57c573f1db79ced0b73e0d644  aprsd-2.2.5-15.tar.gz




More information about the fedora-extras-commits mailing list