Commit 324e13fa authored by Philipp's avatar Philipp

added raspbian buster patches

parent f921946f
......@@ -48,7 +48,7 @@ lsb=$( lsb_release -a 2>&1 )
if [ ! -z "$2" ]
then
os="$2"
elif [ $( echo "$lsb" |grep 'Distributor ID'| grep -c 'Rasbian' ) -gt 0 ]
elif [ $( echo "$lsb" |grep 'Distributor ID'| grep -c 'Raspbian' ) -gt 0 ]
then
os="raspbian"
elif [ $( echo "$lsb" |grep 'Distributor ID'| grep -c 'Debian' ) -gt 0 ]
......@@ -69,33 +69,34 @@ echo " - OS version: ${osversion}"
if [ -f "$1" ]
then
usversion=$( echo "$1" |sed 's/.*-\([0-9]\+\).tgz/\1/' )
echo " - Upstream version: ${usversion}"
echo ""
printtitle "Creating .orig.tar.gz files" "="
printtitle "Extracting upstream sources" "-"
tar -zxf "$1"
if [ -d "origs" ]
then
printtitle "Deleting old origs folder" "-"
rm -rf origs
fi
printtitle "Creating new origs folder" "-"
mkdir origs
cd origs
printtitle "Building .orig.tar.gz files" "-"
for p in ${PACKETS}
do
o=$( echo ${p} |sed 's/\[.*\]//g' )
n=$( echo ${p} |tr -d '[]' )
t=$( ls -1 ../patches/${os}/${n}_*~${osversion}*.patch |cut -d'/' -f4 |cut -d'+' -f1 |sed 's/\(.*\)-.$/\1/' )
echo " - husky/${o} -> origs/${n}"
mv "../husky/${o}" "./${t}"
rm -rf "${t}/debian"
tar -czf "${t}.orig.tar.gz" "${t}/"
rm -rf "${t}"
done
cd ..
printtitle "Using existing origs" "-"
else
usversion=$( echo "$1" |sed 's/.*-\([0-9]\+\).tgz/\1/' )
echo " - Upstream version: ${usversion}"
echo ""
printtitle "Creating .orig.tar.gz files" "="
printtitle "Extracting upstream sources" "-"
tar -zxf "$1"
printtitle "Creating new origs folder" "-"
mkdir origs
cd origs
printtitle "Building .orig.tar.gz files" "-"
for p in ${PACKETS}
do
o=$( echo ${p} |sed 's/\[.*\]//g' )
n=$( echo ${p} |tr -d '[]' )
t=$( ls -1 ../patches/${os}/${n}[_-]*~${osversion}*.patch |cut -d'/' -f4 |cut -d'+' -f1 |sed 's/\(.*\)-.$/\1/' |sed 's/_/-/' )
to=$( ls -1 ../patches/${os}/${n}[_-]*~${osversion}*.patch |cut -d'/' -f4 |cut -d'+' -f1 |sed 's/\(.*\)-.$/\1/' )
echo " - husky/${o} -> origs/${n}"
mv "../husky/${o}" "./${t}"
rm -rf "${t}/debian"
tar -czf "${to}.orig.tar.gz" "${t}/"
rm -rf "${t}"
done
cd ..
fi
fi
printtitle "Starting build" "="
......@@ -119,20 +120,22 @@ cd build
printtitle "Extracting original source packages" "-"
find . -type f -name '*.orig.tar.gz' -exec tar -zxf "{}" \;
printtitle "Applying patches" "-"
for i in *.patch
do
echo " - ${i}"
patch -p0 <${i}
done
#printtitle "Applying patches" "-"
#for i in *.patch
#do
# echo " - ${i}"
# patch -p0 <${i}
#done
printtitle "Building packages" "-"
for p in ${PACKETS}
do
n=$( echo ${p} |tr -d '[]' )
t=$( ls -1 ../patches/${os}/${n}_*~${osversion}*.patch |cut -d'/' -f4 |cut -d'+' -f1 |sed 's/\(.*\)-.$/\1/' )
t=$( ls -1 ../patches/${os}/${n}[_-]*~${osversion}*.patch |cut -d'/' -f4 |cut -d'+' -f1 |sed 's/\(.*\)-.$/\1/' |sed 's/_/-/' )
echo " - ${t}"
cd "${t}"
p=$( ls -1 ../../patches/${os}/${n}[_-]*~${osversion}*.patch )
patch -p1 <${p}
debuild -us -uc -sa
cd ..
for i in $( cat "${t}/debian/control" |grep 'Package:' |sed 's/Package: //g' |sort )
......
diff -Naur areafix_1.9-20170406.orig/debian/changelog areafix-1.9-20170406/debian/changelog
--- areafix_1.9-20170406.orig/debian/changelog 1970-01-01 01:00:00.000000000 +0100
+++ areafix_1.9-20170406/debian/changelog 2017-11-03 16:15:53.000000000 +0100
@@ -0,0 +1,37 @@
+areafix (1.9-20170406-2+nmu1~buster1) stable; urgency=low
+
+ * Non-maintainer upload for personal debian repository.
+ * Represent dist in version string for cross compatibility.
+ * Added source patches to debianization process.
+ * Removed debianization from original sources for cross compatibility.
+
+ -- Philipp Giebel <stimpy@kuehlbox.wtf> Fri, 3 Nov 2017 16:15:31 +0100
+
+areafix (1.9-20170406-1+nmu1) stable; urgency=low
+
+ * Non-maintainer upload for personal debian repository.
+ * Updated upstream sources to 20170406
+
+ -- Philipp Giebel <stimpy@kuehlbox.wtf> Wed, 17 May 2017 10:09:31 +0100
+
+areafix (1.9-20160628-1+nmu1) stable; urgency=low
+
+ * Non-maintainer upload for personal debian repository.
+ * This isn't any more stable than 1.9-20090324-1,
+ I just call it stable for my convenience..
+ * Updated build system to debuild 9 and fixed all warnings
+
+ -- Philipp Giebel <stimpy@kuehlbox.wtf> Tue, 25 Apr 2017 16:00:56 +0100
+
+areafix (1.9-20090324-1) unstable; urgency=low
+
+ * New CVS version
+
+ -- Stas Degteff <stas_degteff@users.sourceforge.net> Tue, 24 Mar 2009 00:47:36 +0500
+
+areafix (1.9-20070915-1) unstable; urgency=low
+
+ * Initial release.
+
+ -- Stanislav Maslovski <stanislav.maslovski@gmail.com> Sat, 15 Sep 2007 21:34:38 +0400
+
diff -Naur areafix_1.9-20170406.orig/debian/compat areafix-1.9-20170406/debian/compat
--- areafix_1.9-20170406.orig/debian/compat 1970-01-01 01:00:00.000000000 +0100
+++ areafix_1.9-20170406/debian/compat 2017-11-03 13:24:35.000000000 +0100
@@ -0,0 +1 @@
+9
diff -Naur areafix_1.9-20170406.orig/debian/control areafix-1.9-20170406/debian/control
--- areafix_1.9-20170406.orig/debian/control 1970-01-01 01:00:00.000000000 +0100
+++ areafix_1.9-20170406/debian/control 2017-11-03 15:52:57.000000000 +0100
@@ -0,0 +1,20 @@
+Source: areafix
+Priority: extra
+Maintainer: Stanislav Maslovski <stanislav.maslovski@gmail.com>
+Build-Depends: debhelper (>= 9), libhusky-dev (>> 1.9), libsmapi2cur-dev (>> 2.5), libfidoconf1-dev (>> 1.9), quilt (>= 0.6)
+Standards-Version: 3.9.8
+Section: libs
+
+Package: libareafix-dev
+Section: libdevel
+Architecture: any
+Depends: ${misc:Depends}, libareafix1 (= ${binary:Version}), libhusky-dev (>> 1.9), libsmapi2cur-dev (>> 2.5), libfidoconf1-dev (>> 1.9)
+Description: areafix development files
+ This library is a part of HUSKY Portable Fidosoft Project.
+
+Package: libareafix1
+Section: libs
+Architecture: any
+Depends: ${misc:Depends}, ${shlibs:Depends}
+Description: areafix library
+ This library is a part of HUSKY Portable Fidosoft Project.
diff -Naur areafix_1.9-20170406.orig/debian/copyright areafix-1.9-20170406/debian/copyright
--- areafix_1.9-20170406.orig/debian/copyright 1970-01-01 01:00:00.000000000 +0100
+++ areafix_1.9-20170406/debian/copyright 2017-11-03 13:24:35.000000000 +0100
@@ -0,0 +1,37 @@
+Copyright 1998-2017 Husky Team <stanislav.maslovski@gmail.com>
+
+This package was debianized by Stanislav Maslovski <stanislav.maslovski@gmail.com> on
+Sat, 15 Sep 2007 21:34:38 +0400.
+Updated to debuild 9 by Philipp Giebel (stimpy) <stimpy@kuehlbox.wtf>
+on Mon, 15 Mar 2017 16:02:03 +0200.
+
+It was downloaded from http://husky.sourceforge.net/
+
+Upstream Authors: The Husky Team. Look at the Web-Page at
+http://husky.sourceforge.net/team.html
+
+Copyright:
+
+This Software is Copyright of the Husky Team.
+
+License:
+
+ This package is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This package is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this package; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+
+On Debian systems, the complete text of the GNU General
+Public License can be found in `/usr/share/common-licenses/GPL'.
+
+The Debian packaging is (C) 2007, Stanislav Maslovski <stanislav.maslovski@gmail.com> and
+is licensed under the GPL, see above.
diff -Naur areafix_1.9-20170406.orig/debian/docs areafix-1.9-20170406/debian/docs
--- areafix_1.9-20170406.orig/debian/docs 1970-01-01 01:00:00.000000000 +0100
+++ areafix_1.9-20170406/debian/docs 2008-01-06 23:30:14.000000000 +0100
@@ -0,0 +1 @@
+TODO
diff -Naur areafix_1.9-20170406.orig/debian/libareafix1.install areafix-1.9-20170406/debian/libareafix1.install
--- areafix_1.9-20170406.orig/debian/libareafix1.install 1970-01-01 01:00:00.000000000 +0100
+++ areafix_1.9-20170406/debian/libareafix1.install 2008-01-06 23:30:15.000000000 +0100
@@ -0,0 +1 @@
+usr/lib/lib*.so.*
diff -Naur areafix_1.9-20170406.orig/debian/libareafix-dev.install areafix-1.9-20170406/debian/libareafix-dev.install
--- areafix_1.9-20170406.orig/debian/libareafix-dev.install 1970-01-01 01:00:00.000000000 +0100
+++ areafix_1.9-20170406/debian/libareafix-dev.install 2008-01-06 23:30:15.000000000 +0100
@@ -0,0 +1,3 @@
+usr/include/areafix/*.h
+usr/lib/lib*.a
+usr/lib/lib*.so
diff -Naur areafix_1.9-20170406.orig/debian/libareafix-dev.links areafix-1.9-20170406/debian/libareafix-dev.links
--- areafix_1.9-20170406.orig/debian/libareafix-dev.links 1970-01-01 01:00:00.000000000 +0100
+++ areafix_1.9-20170406/debian/libareafix-dev.links 2008-01-06 23:30:15.000000000 +0100
@@ -0,0 +1 @@
+usr/share/doc/libareafix1 usr/share/doc/libareafix-dev
diff -Naur areafix_1.9-20170406.orig/debian/patches/01_makefile.patch areafix-1.9-20170406/debian/patches/01_makefile.patch
--- areafix_1.9-20170406.orig/debian/patches/01_makefile.patch 1970-01-01 01:00:00.000000000 +0100
+++ areafix_1.9-20170406/debian/patches/01_makefile.patch 2017-11-03 14:58:58.000000000 +0100
@@ -0,0 +1,48 @@
+--- areafix_1.9-20170406.orig/Makefile 2012-02-25 16:44:13.000000000 +0100
++++ areafix_1.9-20170406/Makefile 2017-11-03 13:24:35.000000000 +0100
+@@ -11,6 +11,11 @@
+ include ../huskymak.cfg
+ endif
+
++ifeq ($(DEBIAN), 1)
++ DPKG_EXPORT_BUILDFLAGS = 1
++ include /usr/share/dpkg/buildflags.mk
++endif
++
+ ifeq ($(OSTYPE), UNIX)
+ LIBPREFIX=lib
+ DLLPREFIX=lib
+@@ -19,11 +24,11 @@
+ include make/makefile.inc
+
+ ifeq ($(DEBUG), 1)
+- CFLAGS=$(WARNFLAGS) $(DEBCFLAGS)
+- LFLAGS=$(DEBLFLAGS)
++ CFLAGS+=$(WARNFLAGS) $(DEBCFLAGS)
++ LFLAGS+=$(DEBLFLAGS)
+ else
+- CFLAGS=$(WARNFLAGS) $(OPTCFLAGS)
+- LFLAGS=$(OPTLFLAGS)
++ CFLAGS+=$(WARNFLAGS) $(OPTCFLAGS)
++ LFLAGS+=$(OPTLFLAGS)
+ endif
+
+ LFLAGS+=-L$(LIBDIR)
+@@ -44,7 +49,7 @@
+
+
+ %$(_OBJ): $(SRC_DIR)%.c
+- $(CC) $(CFLAGS) $(CDEFS) $(SRC_DIR)$*.c
++ $(CC) $(CFLAGS) $(LDFLAGS) $(CDEFS) $(SRC_DIR)$*.c
+
+ $(TARGETLIB): $(OBJS)
+ $(AR) $(AR_R) $(TARGETLIB) $?
+@@ -58,7 +63,7 @@
+ $(LD) $(LFLAGS) -o $(TARGETDLL).$(VER) $(OBJS) $(LIBS)
+ else
+ $(TARGETDLL).$(VER): $(OBJS)
+- $(CC) $(LFLAGS) -shared -Wl,-soname,$(TARGETDLL).$(VERH) \
++ $(CC) $(LFLAGS) $(LDFLAGS) -shared -Wl,-soname,$(TARGETDLL).$(VERH) \
+ -o $(TARGETDLL).$(VER) $(OBJS) $(LIBS)
+ endif
+
diff -Naur areafix_1.9-20170406.orig/debian/patches/series areafix-1.9-20170406/debian/patches/series
--- areafix_1.9-20170406.orig/debian/patches/series 1970-01-01 01:00:00.000000000 +0100
+++ areafix_1.9-20170406/debian/patches/seriesa 2017-11-03 16:13:48.000000000 +0100
@@ -0,0 +1 @@
+01_makefile.patch
diff -Naur areafix_1.9-20170406.orig/debian/README.source areafix-1.9-20170406/debian/README.source
--- areafix_1.9-20170406.orig/debian/README.source 1970-01-01 01:00:00.000000000 +0100
+++ areafix_1.9-20170406/debian/README.source 2017-11-03 16:19:35.000000000 +0100
@@ -0,0 +1,2 @@
+No special Requirements.
+Please read /usr/share/doc/quilt/README.source
diff -Naur areafix_1.9-20170406.orig/debian/rules areafix-1.9-20170406/debian/rules
--- areafix_1.9-20170406.orig/debian/rules 1970-01-01 01:00:00.000000000 +0100
+++ areafix_1.9-20170406/debian/rules 2017-11-03 18:31:43.000000000 +0100
@@ -0,0 +1,98 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+# Sample debian/rules that uses debhelper.
+# This file was originally written by Joey Hess and Craig Small.
+# As a special exception, when this file is copied by dh-make into a
+# dh-make output file, you may use that output file without restriction.
+# This special exception was added by Craig Small in version 0.37 of dh-make.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+export DEBIAN=1
+
+CFLAGS = -Wall -g
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+ CFLAGS += -O0
+else
+ CFLAGS += -O2
+endif
+
+# shared library versions, option 1
+version=1.9
+major=1
+# option 2, assuming the library is created as src/.libs/libfoo.so.2.0.5 or so
+#version=`ls src/.libs/lib*.so.* | \
+# awk '{if (match($$0,/[0-9]+\.[0-9]+\.[0-9]+$$/)) print substr($$0,RSTART)}'`
+#major=`ls src/.libs/lib*.so.* | \
+# awk '{if (match($$0,/\.so\.[0-9]+$$/)) print substr($$0,RSTART+4)}'`
+
+build-arch: build
+build-indep: build
+configure: configure-stamp
+configure-stamp:
+ dh_testdir
+ # Add here commands to configure the package.
+
+ touch configure-stamp
+
+
+build: build-stamp
+build-stamp: configure-stamp
+ dh_quilt_patch
+ dh_testdir
+
+ # Add here commands to compile the package.
+ $(MAKE)
+
+ touch $@
+
+clean:
+ dh_testdir
+ dh_testroot
+ rm -f build-stamp configure-stamp
+
+ # Add here commands to clean up after the build process.
+ #-$(MAKE) distclean
+ [ ! -f Makefile ] || $(MAKE) distclean
+
+ dh_quilt_unpatch
+ dh_clean
+
+install: build
+ dh_testdir
+ dh_testroot
+ #dh_clean -k
+ dh_prep
+ dh_installdirs
+
+ # Add here commands to install the package into debian/tmp
+ $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install
+
+
+# Build architecture-independent files here.
+binary-indep: build install
+# We have nothing to do by default.
+
+# Build architecture-dependent files here.
+binary-arch: build install
+ dh_testdir
+ dh_testroot
+ dh_installchangelogs ChangeLog
+ dh_installdocs
+ dh_install --sourcedir=debian/tmp
+ rm -rf debian/libareafix-dev/usr/share/doc/libareafix-dev
+ dh_link
+ dh_strip
+ dh_compress
+ dh_fixperms
+ dh_makeshlibs
+ dh_installdeb
+ dh_shlibdeps
+ dh_gencontrol
+ dh_md5sums
+ dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install configure
diff -Naur areafix_1.9-20170406.orig/debian/source/format areafix-1.9-20170406/debian/source/format
--- areafix_1.9-20170406.orig/debian/source/format 1970-01-01 01:00:00.000000000 +0100
+++ areafix_1.9-20170406/debian/source/format 2017-11-03 16:15:53.000000000 +0100
@@ -0,0 +1 @@
+3.0 (quilt)
diff -Naur areastat_1.4.0.orig/debian/changelog areastat-1.4.0/debian/changelog
--- areastat_1.4.0.orig/debian/changelog 1970-01-01 01:00:00.000000000 +0100
+++ areastat_1.4.0/debian/changelog 2017-11-03 16:21:21.000000000 +0100
@@ -0,0 +1,40 @@
+areastat (1.4.0-4+nmu1~buster1) stable; urgency=low
+
+ * Non-maintainer upload for personal debian repository.
+ * Represent dist in version string for cross compatibility.
+ * Added source patches to debianization process.
+ * Removed debianization from original sources for cross compatibility.
+
+ -- Philipp Giebel <stimpy@kuehlbox.wtf> Fri, 3 Nov 2017 16:21:31 +0100
+
+areastat (1.4.0-3+nmu1) stable; urgency=low
+
+ * Non-maintainer upload for personal debian repository.
+ * Updated upstream sources to 20170406
+
+ -- Philipp Giebel <stimpy@kuehlbox.wtf> Wed, 17 May 2017 10:10:31 +0100
+
+areastat (1.4.0-2+nmu1) stable; urgency=low
+
+ * Updated build system to debuild 9 and fixed all warnings
+
+ -- Philipp Giebel <stimpy@kuehlbox.wtf> Mon, 15 May 2017 16:11:48 +0100
+
+areastat (1.4.0-1) stable; urgency=low
+
+ * Rename module 'estt' -> 'areastat'
+ * Insert into The Husky project
+ * Fix compilation with news library structure
+ * Other small fixes
+
+ -- Dmitry Rusov <rusov94@main.ru> Mon, 27 Nov 2004 20:11:16 +0600
+
+areastat (1.0.6-1) stable; urgency=low
+
+ * MSG and JAM message base support
+ * For message bases access now used SMAPI library of HUSKY project
+ * Programm now distributed with GNU license
+ * No use squish.cfg file
+ * Some changes in configuration file
+
+ -- Dmitry Rusov <rusov94@main.ru> Mon, 13 Jan 2004 21:55:16 +0600
diff -Naur areastat_1.4.0.orig/debian/compat areastat-1.4.0/debian/compat
--- areastat_1.4.0.orig/debian/compat 1970-01-01 01:00:00.000000000 +0100
+++ areastat_1.4.0/debian/compat 2017-11-03 13:25:00.000000000 +0100
@@ -0,0 +1 @@
+9
diff -Naur areastat_1.4.0.orig/debian/control areastat-1.4.0/debian/control
--- areastat_1.4.0.orig/debian/control 1970-01-01 01:00:00.000000000 +0100
+++ areastat_1.4.0/debian/control 2017-11-03 16:23:46.000000000 +0100
@@ -0,0 +1,17 @@
+Source: areastat
+Section: contrib/mail
+Priority: optional
+Maintainer: Philipp Giebel <stimpy@kuehlbox.wtf>
+Build-Depends: debhelper (>> 9.0.0), libsmapi2cur-dev (>=2.5), libfidoconf1-dev (>= 1.9), libhusky-dev (>= 1.9), quilt (>= 0.6)
+Standards-Version: 3.9.8
+
+Package: areastat
+Architecture: any
+Depends: ${misc:Depends}, ${shlibs:Depends}
+Description: FTN message statistics
+ Areastat 1.4 multiplatform. *FAST* FTN message statistics for OPUS,
+ Squish and JAM message areas.
+ Generates 12 types of statistics.
+ Creates reports in TXT or PKT.
+ Easy portable for all platforms.
+ Part of HUSKY FTN software project.
diff -Naur areastat_1.4.0.orig/debian/copyright areastat-1.4.0/debian/copyright
--- areastat_1.4.0.orig/debian/copyright 1970-01-01 01:00:00.000000000 +0100
+++ areastat_1.4.0/debian/copyright 2017-11-03 13:25:00.000000000 +0100
@@ -0,0 +1,21 @@
+Copyright 1998-2017 Husky Team <pavel@collage.etel.ru>
+
+This package was debianized by Philipp Giebel (stimpy) <stimpy@kuehlbox.wtf> on
+Sun, 14 May 2017 02:09:02 +0200.
+
+It was downloaded from http://husky.sourceforge.net/
+
+Upstream Authors: The Husky Team. Look at the Web-Page at
+http://husky.sourceforge.net/team.html
+
+First Maintainer: Joerg Jaspert (JJ) <joerg@goliathbbs.dnsalias.net>
+Since 1 Aug 2002 new Maintainer is Pavel Andreew <pavel@collage.etel.ru>.
+
+Copyright:
+
+This Software is Copyright of the Husky Team.
+
+You are free to distribute this software under the terms of
+the GNU General Public License.
+On Debian systems, the complete text of the GNU General Public
+License can be found in /usr/share/common-licenses/GPL file.
diff -Naur areastat_1.4.0.orig/debian/dirs areastat-1.4.0/debian/dirs
--- areastat_1.4.0.orig/debian/dirs 1970-01-01 01:00:00.000000000 +0100
+++ areastat_1.4.0/debian/dirs 2017-11-03 13:25:00.000000000 +0100
@@ -0,0 +1,2 @@
+etc/husky
+usr/bin
diff -Naur areastat_1.4.0.orig/debian/docs areastat-1.4.0/debian/docs
--- areastat_1.4.0.orig/debian/docs 1970-01-01 01:00:00.000000000 +0100
+++ areastat_1.4.0/debian/docs 2017-11-03 13:25:00.000000000 +0100
@@ -0,0 +1,2 @@
+README
+ChangeLog
diff -Naur areastat_1.4.0.orig/debian/fidoconf2areastat areastat-1.4.0/debian/fidoconf2areastat
--- areastat_1.4.0.orig/debian/fidoconf2areastat 1970-01-01 01:00:00.000000000 +0100
+++ areastat_1.4.0/debian/fidoconf2areastat 2017-11-03 13:25:00.000000000 +0100
@@ -0,0 +1,21 @@
+#!/bin/bash
+if [ -z "$1" ]
+then
+ echo "Usage: $0 <fidoconf.areas> [</path/to/stats/files>]"
+ echo " eg: $0 /etc/husky/areas /var/spool/ftn/stats/"
+ exit 1
+fi
+shopt -s nocasematch
+while IFS='' read -r line || [[ -n "$line" ]]
+do
+ if [ $( echo "$line" |grep -ci 'echoarea' ) -gt 0 ]
+ then
+ echotag=$(echo "$line" |sed 's/\s\+/ /g' |cut -d' ' -f2)
+ echofile=$(echo "$line" |sed 's/\s\+/ /g' |cut -d' ' -f3)
+ echotype=$(echo "$line" |sed 's/\s\+/ /g' |sed 's/.* -b *\([[:alnum:]]\+\) .*/\1/')
+ if [[ "$echotype" == "jam" ]] || [[ "$echotype" == "squish" ]] || [[ "$echotype" == "msg" ]]
+ then
+ echo "Area $echotag $echotype $echofile ${2}${echotag}.stt"
+ fi
+ fi
+done < "$1"
diff -Naur areastat_1.4.0.orig/debian/manpages areastat-1.4.0/debian/manpages
--- areastat_1.4.0.orig/debian/manpages 1970-01-01 01:00:00.000000000 +0100
+++ areastat_1.4.0/debian/manpages 2017-11-03 13:25:00.000000000 +0100
@@ -0,0 +1,2 @@
+man/*.1
+man/*.5
diff -Naur areastat_1.4.0.orig/debian/patches/01_makefile.patch areastat-1.4.0/debian/patches/01_makefile.patch
--- areastat_1.4.0.orig/debian/patches/01_makefile.patch 1970-01-01 01:00:00.000000000 +0100
+++ areastat_1.4.0/debian/patches/01_makefile.patch 2017-11-03 15:04:02.000000000 +0100
@@ -0,0 +1,117 @@
+--- areastat_1.4.0.orig/Makefile 2012-02-25 17:57:00.000000000 +0100
++++ areastat_1.4.0/Makefile 2017-11-03 13:25:00.000000000 +0100
+@@ -11,12 +11,17 @@
+ include ../huskymak.cfg
+ endif
+
++ifeq ($(DEBIAN), 1)
++ DPKG_EXPORT_BUILDFLAGS = 1
++ include /usr/share/dpkg/buildflags.mk
++endif
++
+ ifeq ($(DEBUG), 1)
+- CFLAGS = -I$(INCDIR) -Ih $(DEBCFLAGS) $(WARNFLAGS)
+- LFLAGS = $(DEBLFLAGS)
++ CFLAGS += -I$(INCDIR) -Ih $(DEBCFLAGS) $(WARNFLAGS)
++ LFLAGS += $(DEBLFLAGS)
+ else
+- CFLAGS = -I$(INCDIR) -Ih $(OPTCFLAGS) $(WARNFLAGS)
+- LFLAGS = $(OPTLFLAGS)
++ CFLAGS += -I$(INCDIR) -Ih $(OPTCFLAGS) $(WARNFLAGS)
++ LFLAGS += $(OPTLFLAGS)
+ endif
+
+ ifneq ($(DYNLIBS), 1)
+@@ -24,9 +29,9 @@
+ endif
+
+ ifeq ($(SHORTNAME), 1)
+- LIBS = -L$(LIBDIR) -lfidoconf -lsmapi
++ LIBS = -L$(LIBDIR) -lfidoconf -lsmapi -lhusky
+ else
+- LIBS = -L$(LIBDIR) -lfidoconfig -lsmapi
++ LIBS = -L$(LIBDIR) -lfidoconfig -lsmapi -lhusky
+ endif
+
+ CDEFS=-D$(OSTYPE) -DUNAME=\"$(UNAME)\" $(ADDCDEFS)
+@@ -37,17 +42,17 @@
+ MANS= man/areastat.1 man/areastat.conf.5
+
+ areastat: $(OBJS)
+- $(CC) $(OBJS) $(LFLAGS) $(LIBS) -o areastat
++ $(CC) $(OBJS) $(LFLAGS) $(LDFLAGS) $(LIBS) -o areastat
+
+
+ %.o: $(SRC_DIR)%.c
+- $(CC) $(CFLAGS) $(CDEFS) -c $<
++ $(CC) $(CFLAGS) $(LDFLAGS) $(CDEFS) -c $<
+
+ info:
+- makeinfo --no-split areastat.texi
++# makeinfo --no-split areastat.texi
+
+ html:
+- export LC_ALL=C; makeinfo --html --no-split areastat.texi
++# export LC_ALL=C; makeinfo --html --no-split areastat.texi
+
+ docs: #info html
+
+@@ -62,36 +67,36 @@
+
+ distclean: clean
+ -$(RM) $(RMOPT) areastat
+- -$(RM) $(RMOPT) areastat.info
+- -$(RM) $(RMOPT) areastat.html
+- -for m in $(MANS); do $(RM) $(RMOPT) $$m ; done
++# -$(RM) $(RMOPT) areastat.info
++# -$(RM) $(RMOPT) areastat.html
++ -for m in $(MANS); do $(RM) $(RMOPT) $$m.gz ; done
+
+ all: areastat docs man
+
+ install: all
+ $(INSTALL) $(IBOPT) areastat $(BINDIR)
+-ifdef INFODIR
+- -$(MKDIR) $(MKDIROPT) $(INFODIR)
+- $(INSTALL) $(IMOPT) areastat.info $(INFODIR)
+- -install-info --info-dir=$(INFODIR) $(INFODIR)$(DIRSEP)areastat.info
+-endif
+-ifdef HTMLDIR
+- -$(MKDIR) $(MKDIROPT) $(HTMLDIR)
+- $(INSTALL) $(IMOPT) areastat*html $(HTMLDIR)
+-endif
+-ifdef MANDIR
+- -$(MKDIR) $(MKDIROPT) $(MANDIR)$(DIRSEP)man1
+- for m in $(MANS); do $(INSTALL) $(IMOPT) $$m.gz $(MANDIR)$(DIRSEP)man`echo $$m | sed s/.*\\.//`/; done
+-endif
++#ifdef INFODIR
++# -$(MKDIR) $(MKDIROPT) $(INFODIR)
++# $(INSTALL) $(IMOPT) areastat.info $(INFODIR)
++# -install-info --info-dir=$(INFODIR) $(INFODIR)$(DIRSEP)areastat.info
++#endif