Hello community,

here is the log from the commit of package netdata for openSUSE:Factory checked 
in at 2017-05-03 15:56:27
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/netdata (Old)
 and      /work/SRC/openSUSE:Factory/.netdata.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "netdata"

Wed May  3 15:56:27 2017 rev:1 rq:490182 version:1.6.0

Changes:
--------
New Changes file:

--- /dev/null   2017-03-01 00:40:19.279048016 +0100
+++ /work/SRC/openSUSE:Factory/.netdata.new/netdata.changes     2017-05-03 
15:56:30.006070790 +0200
@@ -0,0 +1,36 @@
+-------------------------------------------------------------------
+Mon Apr 24 00:56:31 UTC 2017 - [email protected]
+
+- Do not suppress errors from user/group creation.
+- Trim sensationalist wording from description.
+  Replace -exec rm by just -delete.
+
+-------------------------------------------------------------------
+Fri Apr 21 12:08:57 CEST 2017 - [email protected]
+
+- Add netdata-rpmlintrc for spec file.
+- Fix url and source link.
+
+-------------------------------------------------------------------
+Thu Apr 20 22:39:33 UTC 2017 - [email protected]
+
+- Update to version 1.6.0
+- Add systemd unit, init script and logrotate config from netdata git repo
+
+-------------------------------------------------------------------
+Tue Jan 24 16:30:57 UTC 2017 - [email protected]
+
+- Update to version 1.5.0 (see included ChangeLog)
+- Added netdata-rpmlintrc
+- Spec cleanup
+
+-------------------------------------------------------------------
+Fri Jun 17 16:22:05 UTC 2016 - [email protected]
+
+- Upgraded to 1.2.0 
+
+-------------------------------------------------------------------
+Fri Apr  1 14:19:18 UTC 2016 - [email protected]
+
+- Initial package, version: 1.0.1 
+

New:
----
  netdata-1.6.0.tar.gz
  netdata-rpmlintrc
  netdata.changes
  netdata.init
  netdata.logrotate
  netdata.service
  netdata.spec

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ netdata.spec ++++++
#
# spec file for package netdata
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

%if 0%{?suse_version} > 1220
%bcond_without systemd
%else
%bcond_with    systemd
%endif

%define netdata_user    netdata
%define netdata_group   netdata
Name:           netdata
Version:        1.6.0
Release:        1
Summary:        Real-time performance monitoring
# netdata is GPL-3.0+ other licenses refer to included third-party software 
(see LICENSE.md)
License:        GPL-3.0+ and MIT and BSD-2-Clause and BSD-3-Clause and LGPL-2.1 
and OFL-1.1 and CC0-1.0
Group:          System/Monitoring
Url:            http://my-netdata.io/
Source0:        
https://github.com/firehol/netdata/releases/download/v%{version}/netdata-%{version}.tar.gz
Source1:        netdata.service
Source2:        netdata.init
Source3:        netdata.logrotate
Source4:        netdata-rpmlintrc
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  dos2unix
BuildRequires:  fdupes
BuildRequires:  libmnl-devel
BuildRequires:  libnetfilter_acct-devel
BuildRequires:  libuuid-devel
BuildRequires:  zlib-devel
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Requires(pre):  shadow

%description
netdata is a highly optimized Linux daemon providing real-time performance 
monitoring for Linux systems, Applications, SNMP devices, over the web!

%prep
%setup -q
dos2unix web/lib/tableExport-1.6.0.min.js

%build
autoreconf -fi
%configure \
        --docdir="%{_docdir}/%{name}-%{version}" \
        --enable-plugin-nfacct \
        --with-zlib \
        --with-math \
        --with-user=netdata \
        %{?conf}
make %{?_smp_mflags}

%install
%make_install
find %{buildroot} -name .keep -delete
%fdupes -s %{buildroot}
%if %{with systemd}
install -D -m 0644 %{SOURCE1} %{buildroot}%{_unitdir}/%{name}.service
ln -s -f %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name}
%else
install -D -m 0755 %{SOURCE2} %{buildroot}%{_sysconfdir}/init.d/%{name}
ln -s -f %{_sysconfdir}/init.d/%{name} %{buildroot}%{_sbindir}/rc%{name}
%endif
install -D -m 0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/logrotate.d/%{name}

%pre
getent group %{netdata_group} >/dev/null || \
        %{_sbindir}/groupadd -r %{netdata_group}
getent passwd %{netdata_user} >/dev/null || \
        %{_sbindir}/useradd -r -g %{netdata_group} -s /bin/false \
        -c "netdata daemon user" -d %{_localstatedir}/lib/empty %{netdata_user}
%{_sbindir}/usermod -g %{netdata_group} %{netdata_user} >/dev/null
%if %{with systemd}
%service_add_pre %{name}.service
%endif

%post
%if %{with systemd}
%service_add_post %{name}.service
%else
%fillup_and_insserv %{name}
%endif

%preun
%if %{with systemd}
%service_del_preun %{name}.service
%else
%stop_on_removal %{name}
%endif

%postun
%if %{with systemd}
%service_del_postun %{name}.service
%else
%restart_on_update %{name}
%insserv_cleanup
%endif

%files
%defattr(-,root,root)
%doc ChangeLog COPYING LICENSE.md README.md
%attr(750, %{netdata_user},root ) %dir %{_localstatedir}/cache/%{name}/
%attr(750, %{netdata_user},root ) %dir %{_localstatedir}/log/%{name}/
%attr(750, root,%{netdata_group} ) %dir %{_sysconfdir}/%{name}/
%attr(755, root,%{netdata_group} ) %dir %{_datadir}/%{name}
%attr(755, root,%{netdata_group} ) %dir %{_datadir}/%{name}/*
%attr(755, root,%{netdata_group} ) %dir %{_datadir}/%{name}/web/*
%attr(644, root,%{netdata_group} ) %{_datadir}/%{name}/web/*
%attr(644, root,%{netdata_group} ) %{_datadir}/%{name}/web/*/*
%config(noreplace) %{_sysconfdir}/%{name}/*
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
%{_sbindir}/%{name}
%{_sbindir}/rc%{name}
%{_datadir}/%{name}/
%{_libexecdir}/%{name}/
%if %{with systemd}
%{_unitdir}/%{name}.service
%else
%{_sysconfdir}/init.d/%{name}
%endif
%{_datadir}/%{name}/

%changelog
++++++ netdata-rpmlintrc ++++++
addFilter("script-without-shebang")

++++++ netdata.init ++++++
#!/bin/sh
#
# netdata       Real-time performance monitoring, done right
# chkconfig: 345 99 01
# description:  Netdata is a daemon that collects data in real-time (per second)
#               and presents a web site to view and analyze them. The 
presentation
#               is also real-time and full of interactive charts that precisely
#               render all collected values.
# processname:  netdata

# Source functions
. /etc/rc.d/init.d/functions

DAEMON="netdata"
DAEMON_PATH=/usr/sbin/netdata
PIDFILE=/run/$DAEMON.pid
DAEMONOPTS="-P $PIDFILE"
STOP_TIMEOUT="10"

[ -e /etc/sysconfig/$DAEMON ] && . /etc/sysconfig/$DAEMON

LOCKFILE=/var/lock/subsys/$DAEMON

service_start()
{
        [ -x $DAEMON_PATH ] || exit 5
        echo -n "Starting $DAEMON..."
        daemon $DAEMON_PATH/$DAEMON $DAEMONOPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $LOCKFILE
        return $RETVAL
}

service_stop()
{
        printf "%-50s" "Stopping $DAEMON..."
        killproc -p ${PIDFILE} -d ${STOP_TIMEOUT} $DAEMON
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f ${PIDFILE} ${LOCKFILE}
        return $RETVAL
}

condrestart()
{
        if ! service_status > /dev/null; then
                RETVAL=$1
                return $RETVAL
        fi

        service_stop
        service_start
}

service_status()
{
        status -p ${PIDFILE} $DAEMON_PATH/$DAEMON
}

service_status_quiet()
{
        status -p ${PIDFILE} $DAEMON_PATH/$DAEMON >/dev/null 2>&1
}

case "$1" in
start)
        service_status_quiet && exit 0
        service_start
;;
stop)
        service_status_quiet || exit 0
        service_stop
;;
restart)
        service_stop
        service_start
;;
try-restart)
        condrestart 0
        ;;
force-reload)
        condrestart 7
;;
status)
        service_status
;;
*)
        echo "Usage: $0 {start|stop|restart|try-restart|force-reload|status}"
        exit 3
esac
++++++ netdata.logrotate ++++++
/var/log/netdata/*.log {
        daily
        missingok
        rotate 14
        compress
        delaycompress
        notifempty
        sharedscripts
        postrotate
                /bin/kill -HUP `pidof netdata 2>/dev/null` 2>/dev/null || true
        endscript
}
++++++ netdata.service ++++++
[Unit]
Description=Real time performance monitoring
After=network.target apache2.service squid.service nfs-server.service 
mysql.service named.service postfix.service

[Service]
Type=simple
User=netdata
Group=netdata
ExecStart=/usr/sbin/netdata -D

# saving a big db on slow disks may need some time
TimeoutStopSec=60

[Install]
WantedBy=multi-user.target

Reply via email to