diff -Nru forkstat-0.02.10/debian/changelog forkstat-0.02.11/debian/changelog --- forkstat-0.02.10/debian/changelog 2019-07-06 21:38:22.000000000 +0000 +++ forkstat-0.02.11/debian/changelog 2019-08-12 13:15:16.000000000 +0000 @@ -1,3 +1,12 @@ +forkstat (0.02.11-1) unstable; urgency=medium + + * Makefile: bump version + * Debian: update compat to 12 + * fix off-by-one end of string strncpy bug in tty name copying + * snapcraft: make versioning automatic + + -- Colin King Mon, 12 Aug 2019 14:15:16 +0100 + forkstat (0.02.10-1) unstable; urgency=medium * Makefile: bump version diff -Nru forkstat-0.02.10/debian/compat forkstat-0.02.11/debian/compat --- forkstat-0.02.10/debian/compat 2019-07-06 21:38:22.000000000 +0000 +++ forkstat-0.02.11/debian/compat 2019-08-12 13:15:16.000000000 +0000 @@ -1 +1 @@ -11 +12 diff -Nru forkstat-0.02.10/debian/control forkstat-0.02.11/debian/control --- forkstat-0.02.10/debian/control 2019-07-06 21:38:22.000000000 +0000 +++ forkstat-0.02.11/debian/control 2019-08-12 13:15:16.000000000 +0000 @@ -4,7 +4,7 @@ Maintainer: Colin King Uploaders: Kamal Mostafa Standards-Version: 4.1.2 -Build-Depends: debhelper (>= 11) +Build-Depends: debhelper (>= 12) Homepage: http://kernel.ubuntu.com/~cking/forkstat Package: forkstat diff -Nru forkstat-0.02.10/forkstat.c forkstat-0.02.11/forkstat.c --- forkstat-0.02.10/forkstat.c 2019-07-06 21:39:08.000000000 +0000 +++ forkstat-0.02.11/forkstat.c 2019-08-12 15:07:36.000000000 +0000 @@ -421,7 +421,7 @@ if (!tni) return tty; - (void)strncpy(tni->tty_name, tty, sizeof(tni->tty_name) - 1); + (void)strncpy(tni->tty_name, tty, sizeof(tni->tty_name)); tni->dev = dev; tni->next = tty_name_info[hash]; tty_name_info[hash] = tni; diff -Nru forkstat-0.02.10/Makefile forkstat-0.02.11/Makefile --- forkstat-0.02.10/Makefile 2019-07-06 21:39:08.000000000 +0000 +++ forkstat-0.02.11/Makefile 2019-08-12 15:07:36.000000000 +0000 @@ -16,7 +16,7 @@ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # -VERSION=0.02.10 +VERSION=0.02.11 # # Version "Perspicacious Process Peeker" # diff -Nru forkstat-0.02.10/snap/Makefile forkstat-0.02.11/snap/Makefile --- forkstat-0.02.10/snap/Makefile 2019-07-06 21:39:08.000000000 +0000 +++ forkstat-0.02.11/snap/Makefile 2019-08-12 15:07:36.000000000 +0000 @@ -1,26 +1,6 @@ -VERSION=$(shell git tag | tail -1 | cut -c2-) -COMMITS=$(shell git log --oneline | wc -l) -SHA=$(shell git log -1 --oneline | cut -d' ' -f1) -DATE=$(shell date +'%Y%m%d') -V=$(VERSION)-$(DATE)-$(COMMITS)-$(SHA) - -all: get_icon set_version +all: snapcraft -set_version: - cat snapcraft.yaml | sed 's/version: .*/version: $(V)/' > snapcraft-tmp.yaml - mv snapcraft-tmp.yaml snapcraft.yaml - -get_icon: - @if [ ! -e setup/gui/icon.svg ]; \ - then \ - echo copying icon.svg; \ - mkdir -p setup/gui; \ - cp ../mascot/forkstat.svg setup/gui/icon.svg; \ - fi; - clean: rm -rf setup *.snap snapcraft clean - cat snapcraft.yaml | sed 's/version: .*/version: 0/' > snapcraft-tmp.yaml - mv snapcraft-tmp.yaml snapcraft.yaml diff -Nru forkstat-0.02.10/snap/snapcraft.yaml forkstat-0.02.11/snap/snapcraft.yaml --- forkstat-0.02.10/snap/snapcraft.yaml 2019-07-06 21:39:08.000000000 +0000 +++ forkstat-0.02.11/snap/snapcraft.yaml 2019-08-12 15:07:36.000000000 +0000 @@ -1,5 +1,7 @@ name: forkstat -version: 0 +version: git +version-script: | + echo $(git describe --tags) summary: process fork/exec/exit monitoring tool description: Forkstat monitors process fork(), exec() and exit() activity. It is useful for monitoring system behaviour and to track down rogue processes that are spawning off processes and potentially abusing the system. confinement: strict