From 2287c483f244811ed7dc683efa2120db1c304cd1 Mon Sep 17 00:00:00 2001
From: Pawel Pekala <pawel@FreeBSD.org>
Date: Sat, 16 Sep 2017 17:31:59 +0000
Subject: [PATCH] Update to version 1.1.0

Changelog:
- New Statistics, Temperature Log, Error Recovery, Physical and Directory tabs.
- General tab shows non-SMART device settings as well.
- Attributes tab shows entries in "brief" format.
- Error Log tab shows Extended error log by default (if supported).
- Self-Test Log tab now shows Extended self-test log by default (if supported).
- GSmartControl now uses "-x" equivalent for retrieving data
  (as opposed to "-a"); loading "-x" outputs as virtual
  drives is also supported.
- A new ability to copy rows in CSV format from Attribute,
  Statistics and Self-Test Log tables.
- New "Update Drive Database" functionality.
- Windows: Drive letters are shown for each drive.
- Scan time is shown under virtual drive icons.
- Polkit is supported with gsmartcontrol-root script now.
- Pcrecpp is no longer bundled, use system-installed one instead.
- Smartmontools version 5.43 is required at runtime.
- Other minor improvements and fixes.
---
 sysutils/gsmartcontrol/Makefile                | 3 +--
 sysutils/gsmartcontrol/distinfo                | 6 +++---
 sysutils/gsmartcontrol/files/patch-Makefile.in | 8 +++-----
 sysutils/gsmartcontrol/pkg-plist               | 3 ++-
 4 files changed, 9 insertions(+), 11 deletions(-)

diff --git a/sysutils/gsmartcontrol/Makefile b/sysutils/gsmartcontrol/Makefile
index 076ff82e506f..605a28deb745 100644
--- a/sysutils/gsmartcontrol/Makefile
+++ b/sysutils/gsmartcontrol/Makefile
@@ -2,8 +2,7 @@
 # $FreeBSD$
 
 PORTNAME=	gsmartcontrol
-PORTVERSION=	1.0.2
-PORTREVISION=	1
+PORTVERSION=	1.1.0
 CATEGORIES=	sysutils
 MASTER_SITES=	SF/${PORTNAME}/${PORTVERSION}
 
diff --git a/sysutils/gsmartcontrol/distinfo b/sysutils/gsmartcontrol/distinfo
index 541e8e95eab8..ebd3b21d97e4 100644
--- a/sysutils/gsmartcontrol/distinfo
+++ b/sysutils/gsmartcontrol/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1500920848
-SHA256 (gsmartcontrol-1.0.2.tar.bz2) = 4f70451c359d95edc974498b860696b698f19b187340dc7207b4b38cbaf5e207
-SIZE (gsmartcontrol-1.0.2.tar.bz2) = 695445
+TIMESTAMP = 1505555026
+SHA256 (gsmartcontrol-1.1.0.tar.bz2) = 90c9ead852255f5e1a74a3ff6c265d1cbcba19ad2fc77059c60737c13a3cd2c8
+SIZE (gsmartcontrol-1.1.0.tar.bz2) = 683898
diff --git a/sysutils/gsmartcontrol/files/patch-Makefile.in b/sysutils/gsmartcontrol/files/patch-Makefile.in
index 508d88d0789a..2dac78d53c6b 100644
--- a/sysutils/gsmartcontrol/files/patch-Makefile.in
+++ b/sysutils/gsmartcontrol/files/patch-Makefile.in
@@ -1,4 +1,4 @@
---- Makefile.in.orig	2017-06-15 21:00:10 UTC
+--- Makefile.in.orig	2017-09-07 12:42:44 UTC
 +++ Makefile.in
 @@ -84,7 +84,7 @@ DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile
  	$(top_srcdir)/configure $(am__configure_deps) \
@@ -9,7 +9,7 @@
  	INSTALL NEWS TODO ar-lib config.guess config.sub depcomp \
  	install-sh missing
  ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-@@ -375,17 +375,7 @@ noinst_DATA = AUTHORS.txt LICENSE_gsmartcontrol.txt RE
+@@ -375,15 +375,7 @@ noinst_DATA = AUTHORS.txt LICENSE_gsmartcontrol.txt RE
  # These will be installed into docdir.
  # Some of these files are actually needed for compilation (see src/res/Makefile.am).
  dist_doc_DATA = AUTHORS.txt ChangeLog NEWS README.txt \
@@ -20,11 +20,9 @@
 -	LICENSE_gpl3.txt \
 -	LICENSE_gsmartcontrol.txt \
 -	LICENSE_hz.txt \
--	LICENSE_pcrecpp.txt \
 -	LICENSE_unlicense.txt \
 -	LICENSE_zlib.txt
--
 +	LICENSE_gsmartcontrol.txt
  
+ 
  # nobase_ preserves their directory names.
- nobase_dist_doc_DATA = contrib/cron-based_noadmin/README \
diff --git a/sysutils/gsmartcontrol/pkg-plist b/sysutils/gsmartcontrol/pkg-plist
index cf14e9beba93..0b9787b1ef14 100644
--- a/sysutils/gsmartcontrol/pkg-plist
+++ b/sysutils/gsmartcontrol/pkg-plist
@@ -1,7 +1,7 @@
-bin/gsmartcontrol
 bin/gsmartcontrol-root
 man/man1/gsmartcontrol-root.1.gz
 man/man1/gsmartcontrol.1.gz
+sbin/gsmartcontrol
 share/applications/gsmartcontrol.desktop
 %%PORTDOCS%%%%DOCSDIR%%/AUTHORS.txt
 %%PORTDOCS%%%%DOCSDIR%%/ChangeLog
@@ -25,3 +25,4 @@ share/icons/hicolor/64x64/apps/gsmartcontrol.png
 share/metainfo/gsmartcontrol.appdata.xml
 share/pixmaps/gsmartcontrol.png
 share/pixmaps/gsmartcontrol.xpm
+share/polkit-1/actions/org.gsmartcontrol.policy