How to produce a new patch package of the TLF logging tool

Aus DL8RDS Wiki
Version vom 12. November 2016, 20:32 Uhr von Dl8rds (Diskussion | Beiträge)
(Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)
Wechseln zu: Navigation, Suche

1 Goal

Problem: The package that comes with the standard minibian / jessie distribution is not up to date. It is still the rather ols 1.1.5-1 version from 2012.

We want to update the famous TLF logger and ensure to have a recent patch available.

The environment is a Minibian / Debian running on a RaspberryPi Version 3.

2 Preparations

Prepare the build environment:

sh -c 'echo "deb-src http://mirrordirector.raspbian.org/raspbian/ jessie main contrib non-free rpi" >> /etc/apt/sources.list'
apt-get update
git clone https://github.com/Tlf/tlf.git
mv tlf tlf-1.2.4.3
cd tlf-1.2.4.3
autoreconf -i
./configure --prefix=/usr --enable-hamlib --enable-fldigi-xmlrpc
make
checkinstall

will result in the following...

3 Build the package

This package will be built according to these values: 

0 -  Maintainer: [ dl8rds@darc.de ]
1 -  Summary: [ TLF Hamradio Contest Logger ]
2 -  Name:    [ tlf ]
3 -  Version: [ 1.2.4.3 ]
4 -  Release: [ 1 ]
5 -  License: [ GPL ]
6 -  Group:   [ checkinstall ]
7 -  Architecture: [ armhf ]
8 -  Source location: [ tlf-1.2.4.3 ]
9 -  Alternate source location: [ https://github.com/Tlf/tlf ]
10 - Requires: [  ]
11 - Provides: [ tlf ]
12 - Conflicts: [  ]
13 - Replaces: [  ]

Enter a number to change any of them or press ENTER to continue: 

Installing with make install...

========================= Installation results ===========================
Making install in doc
make[1]: Entering directory '/root/tlf-1.2.4.3/doc'
make[2]: Entering directory '/root/tlf-1.2.4.3/doc'
make[2]: Nothing to be done for 'install-exec-am'.
 /bin/mkdir -p '/usr/share/doc/tlf'
 /usr/bin/install -c -m 644 FAQ New_Bandmap.txt README README.cabrillo README.ssb README_QTC.txt README_QTC_RTTY.txt README.RTTY '/usr/share/doc/tlf'
make[2]: Leaving directory '/root/tlf-1.2.4.3/doc'
make[1]: Leaving directory '/root/tlf-1.2.4.3/doc'
Making install in rules
make[1]: Entering directory '/root/tlf-1.2.4.3/rules'
make[2]: Entering directory '/root/tlf-1.2.4.3/rules'
make[3]: Entering directory '/root/tlf-1.2.4.3/rules'
make[3]: Nothing to be done for 'install-exec-am'.
 /bin/mkdir -p '/usr/share/tlf/rules'
 /usr/bin/install -c -m 644 arrl10m_dx arrl160m_usa arrldx_dx arrldx_usa arrlfd arrlss contest cqww dxped eusprint focmarathon lzdx pacc_pa pacc_dx qso spdx_dx spdx_sp ssa_mt stewperry template wpx waedc_dx waedc_eu waedc_dx_rtty waedc_eu_rtty aadx_dx aadx_as '/usr/share/tlf/rules'
make[3]: Leaving directory '/root/tlf-1.2.4.3/rules'
make[2]: Leaving directory '/root/tlf-1.2.4.3/rules'
make[1]: Leaving directory '/root/tlf-1.2.4.3/rules'
Making install in src
make[1]: Entering directory '/root/tlf-1.2.4.3/src'
make[2]: Entering directory '/root/tlf-1.2.4.3/src'
 /bin/mkdir -p '/usr/bin'
  /usr/bin/install -c tlf '/usr/bin'
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/root/tlf-1.2.4.3/src'
make[1]: Leaving directory '/root/tlf-1.2.4.3/src'
Making install in share
make[1]: Entering directory '/root/tlf-1.2.4.3/share'
make[2]: Entering directory '/root/tlf-1.2.4.3/share'
make[2]: Nothing to be done for 'install-exec-am'.
 /bin/mkdir -p '/usr/share/tlf'
 /usr/bin/install -c -m 644 cabrillo.fmt callmaster cty.dat logcfg.dat arrl10m_mults arrldx_mults arrlsections ea_sections paccmults spdxmults ssamults help.txt darcmults '/usr/share/tlf'
make[2]: Leaving directory '/root/tlf-1.2.4.3/share'
make[1]: Leaving directory '/root/tlf-1.2.4.3/share'
Making install in scripts
make[1]: Entering directory '/root/tlf-1.2.4.3/scripts'
make[2]: Entering directory '/root/tlf-1.2.4.3/scripts'
 /bin/mkdir -p '/usr/bin'
 /usr/bin/install -c soundlog play_vk '/usr/bin'
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/root/tlf-1.2.4.3/scripts'
make[1]: Leaving directory '/root/tlf-1.2.4.3/scripts'
make[1]: Entering directory '/root/tlf-1.2.4.3'
make[2]: Entering directory '/root/tlf-1.2.4.3'
make[2]: Nothing to be done for 'install-exec-am'.
 /bin/mkdir -p '/usr/share/man/man1'
 /usr/bin/install -c -m 644 tlf.1 '/usr/share/man/man1'
make[2]: Leaving directory '/root/tlf-1.2.4.3'
make[1]: Leaving directory '/root/tlf-1.2.4.3'

======================== Installation successful ==========================

Copying documentation directory...
./
./AUTHORS
./README
./doc/
./doc/README.RTTY
./doc/New_Bandmap.txt
./doc/Makefile.in
./doc/README
./doc/README_QTC_RTTY.txt
./doc/README.ssb
./doc/Makefile
./doc/keynames.txt
./doc/Makefile.am
./doc/README_QTC.txt
./doc/README.cabrillo
./doc/FAQ
./ChangeLog
./NEWS
./INSTALL
./COPYING

Copying files to the temporary directory...OK

Stripping ELF binaries and libraries...OK

Compressing man pages...OK

Building file list...OK

Building Debian package...OK

Installing Debian package...OK

Erasing temporary files...OK

Writing backup package...OK
OK

Deleting temp dir...OK


**********************************************************************

 Done. The new package has been installed and saved to

 /root/tlf-1.2.4.3/tlf_1.2.4.3-1_armhf.deb

 You can remove it from your system anytime using: 

      dpkg -r tlf

**********************************************************************

4 Customizations

4.1 host-wide installation

cd /usr/share/tlf# 
rm cty.dat
wget -nc http://www.country-files.com/cty/old/cty.dat
wget -nv http://www.supercheckpartial.com/MASTER.SCP
mv MASTER.SCP callmaster

4.2 user specific customization