Adding upstream version 0.3.2.
This commit is contained in:
parent
114474d0e5
commit
750bcde893
4
AUTHORS
4
AUTHORS
@ -5,7 +5,7 @@ Upstream Authors:
|
||||
|
||||
Copyright:
|
||||
Copyright (c) 2012 Razor team
|
||||
Copyright (c) 2012-2014 LXQt team
|
||||
Copyright (c) 2012-2016 LXQt team
|
||||
|
||||
License: GPL-2 and LGPL-2.1+
|
||||
License: LGPL-2.1+
|
||||
The full text of the licenses can be found in the 'COPYING' file.
|
||||
|
74
CHANGELOG
Normal file
74
CHANGELOG
Normal file
@ -0,0 +1,74 @@
|
||||
|
||||
libsysstat-0.3.2 / 2016-09-17
|
||||
=============================
|
||||
|
||||
* Bump version to 0.3.2
|
||||
* Add README.md
|
||||
* fixes lxde/libsysstat/issues/11
|
||||
* Bump year and change listed licenses
|
||||
* Fix rare file descriptor leak in readAllFile()
|
||||
|
||||
0.3.1 / 2015-10-31
|
||||
==================
|
||||
|
||||
* Release 0.3.1
|
||||
* Remove duplicate LICENSE file
|
||||
* Remove leftover translation comments
|
||||
* Fix license file
|
||||
* Add release script
|
||||
* Handles CMake policy CMP0063
|
||||
* Uses a local copy of LXQCompilerSettings
|
||||
* CMake: Adds Runtime and Devel install COMPONENTs
|
||||
* Use target_compile_definitions()
|
||||
* Use CMAKE_INCLUDE_CURRENT_DIR
|
||||
* Use GNUInstallDirs
|
||||
* Coding style cleanups
|
||||
* Disables translations support
|
||||
* Use CMAKE_AUTOMOC, drops qt5_wrap_cpp()
|
||||
* Adapts the buildsystem to use CMake Targets
|
||||
* Fix warnings about using uninitialized variables
|
||||
* - Bump missing versioning
|
||||
|
||||
0.3.0 / 2014-10-21
|
||||
==================
|
||||
|
||||
* Adds the Requires field to the .pc confile file
|
||||
* Generate .pc file with the proper version value
|
||||
* Clean up CMakeLists.txt, drop Qt4 support
|
||||
|
||||
0.2.0 / 2014-10-19
|
||||
==================
|
||||
|
||||
* Release 0.2.0
|
||||
* simplify QT switching, use ENV
|
||||
* Use QString::fromLatin1() instead of QString::fromAscii()
|
||||
* Adapt the build system to handle Qt4 and Qt5
|
||||
* Improve FreeBSD support
|
||||
|
||||
0.1.0 / 2014-04-29
|
||||
==================
|
||||
|
||||
* Update AUTHORS and COPYING
|
||||
* Add CPack rules for creating tarball
|
||||
* Don't append library suffix to library install path, but use it by default
|
||||
* Allow installation path configuration with standard CMake X_INSTALL_DIR
|
||||
* Retain old CMAKE_CXX_FLAGS while setting visibility.
|
||||
* Install cmake files.
|
||||
* Use gcc visibility to avoid unecessary symbol exports.
|
||||
* Make the lib buildable independently. Fix AUTHORS file.
|
||||
* Add COPYING and AUTHORS files
|
||||
* libraries: Removes unneeded include(RazorLibSuffix)
|
||||
* libraries: Removes unneeded cmake_minimum_required(VERSION 2.6)
|
||||
* libraries: Removes unneeded find_package(Qt4)
|
||||
* Style follows the Coding Standard
|
||||
* Sysstat lib: version number functions renamed to avoid conflicts
|
||||
* SysStat: license updated & unused files removed
|
||||
* Time zone list built from ICU
|
||||
* SysStat lib: Better CPU stat handling (possible fix for issue #480)
|
||||
* Revert "Sysstat lib: default c-tors fixed (issue #480)"
|
||||
* Sysstat lib: default c-tors fixed (issue #480)
|
||||
* Relicensing again
|
||||
* Parent folder added for inclusion
|
||||
* Relicensing
|
||||
* code style is up to Coding Standards
|
||||
* SysStat library and plugin
|
@ -4,7 +4,7 @@ project(libsysstat)
|
||||
|
||||
set(MAJOR_VERSION 0)
|
||||
set(MINOR_VERSION 3)
|
||||
set(PATCH_VERSION 1)
|
||||
set(PATCH_VERSION 2)
|
||||
set(SYSSTAT_VERSION "${MAJOR_VERSION}.${MINOR_VERSION}.${PATCH_VERSION}")
|
||||
|
||||
# additional cmake files
|
||||
@ -161,7 +161,7 @@ configure_package_config_file(
|
||||
# cmake version config file
|
||||
write_basic_package_version_file(
|
||||
"${CMAKE_BINARY_DIR}/${SYSSTAT_LIBRARY_NAME}-config-version.cmake"
|
||||
VERSION ${MAJOR}.${MINOR}.${PATCH}
|
||||
VERSION ${MAJOR_VERSION}.${MINOR_VERSION}.${PATCH_VERSION}
|
||||
COMPATIBILITY AnyNewerVersion
|
||||
)
|
||||
|
||||
|
24
README.md
Normal file
24
README.md
Normal file
@ -0,0 +1,24 @@
|
||||
# libsysstat
|
||||
|
||||
## Overview
|
||||
|
||||
libsysstat is a library to query system information like CPU and memory usage or network traffic. Conceptually it's roughly similar to [libstatgrab](https://www.i-scream.org/libstatgrab), a third-party library used by LXQt as well.
|
||||
|
||||
It is maintained by the LXQt project but can be used independently from this desktop environment, too. As for LXQt libsysstat is used by plugin-sysstat of lxqt-panel and hence an optional dependency of the latter.
|
||||
|
||||
Note replacing both libsysstat and libstatgrab in LXQt by KDE Frameworks components is being considered but a final decision hasn't been made yet, see https://github.com/lxde/lxqt/issues/704.
|
||||
|
||||
## Installation
|
||||
|
||||
### Sources
|
||||
|
||||
The only runtime dependency is qtbase. To build CMake is needed in addition, as well as optionally Git to pull latest VCS checkouts.
|
||||
|
||||
Code configuration is handled by CMake. CMake variable `CMAKE_INSTALL_PREFIX` will normally have to be set to `/usr`, depending on the way library paths are dealt with on 64bit systems variables like `CMAKE_INSTALL_LIBDIR` may have to be set as well.
|
||||
|
||||
To build run `make`, to install `make install` which accepts variable `DESTDIR` as usual.
|
||||
|
||||
### Binary packages
|
||||
|
||||
The library is provided by all major Linux distributions like Arch Linux, Debian, Fedora and openSUSE.
|
||||
Just use the distributions' package managers to search for string `libsysstat`.
|
@ -122,7 +122,7 @@ QString BaseStatPrivate::readAllFile(const char *filename)
|
||||
static char buffer[bufferSize];
|
||||
|
||||
int fd = ::open(filename, O_RDONLY);
|
||||
if (fd > 0)
|
||||
if (fd > -1)
|
||||
{
|
||||
ssize_t size = ::read(fd, buffer, bufferSize);
|
||||
::close(fd);
|
||||
|
Loading…
x
Reference in New Issue
Block a user