[arch-commits] Commit in atop/repos/community-x86_64 (6 files)

Ike Devolder idevolder at archlinux.org
Wed Feb 6 21:32:53 UTC 2019


    Date: Wednesday, February 6, 2019 @ 21:32:53
  Author: idevolder
Revision: 429772

archrelease: copy trunk to community-x86_64

Added:
  atop/repos/community-x86_64/PKGBUILD
    (from rev 429771, atop/trunk/PKGBUILD)
  atop/repos/community-x86_64/atop.default
    (from rev 429771, atop/trunk/atop.default)
Deleted:
  atop/repos/community-x86_64/96287919c311a17ff3c5e3d4b5ebb4507a8ddadf.patch
  atop/repos/community-x86_64/PKGBUILD
  atop/repos/community-x86_64/a88a54107142d057e36be15285c972031a0e8c0a.patch
  atop/repos/community-x86_64/atop.default

------------------------------------------------+
 96287919c311a17ff3c5e3d4b5ebb4507a8ddadf.patch |  172 -----------------------
 PKGBUILD                                       |   64 ++++----
 a88a54107142d057e36be15285c972031a0e8c0a.patch |   39 -----
 atop.default                                   |    6 
 4 files changed, 35 insertions(+), 246 deletions(-)

Deleted: 96287919c311a17ff3c5e3d4b5ebb4507a8ddadf.patch
===================================================================
--- 96287919c311a17ff3c5e3d4b5ebb4507a8ddadf.patch	2019-02-06 21:32:46 UTC (rev 429771)
+++ 96287919c311a17ff3c5e3d4b5ebb4507a8ddadf.patch	2019-02-06 21:32:53 UTC (rev 429772)
@@ -1,172 +0,0 @@
-From 96287919c311a17ff3c5e3d4b5ebb4507a8ddadf Mon Sep 17 00:00:00 2001
-From: Gerlof Langeveld <gerlof.langeveld at atoptool.nl>
-Date: Sat, 9 Jun 2018 12:06:49 +0200
-Subject: [PATCH] Modify default values in atop.daily script Add possibility to
- override all necessary default values in the atop.daily script, i.e. variable
- LOGOPTS, LOGINTERVAL and LOGGENERATIONS.
-
----
- atop.daily | 47 ++++++++++++++++++++++++++++++++---------------
- man/atop.1 | 51 ++++++++++++++++++++++++++++++++++++++++++++-------
- 2 files changed, 76 insertions(+), 22 deletions(-)
-
-diff --git a/atop.daily b/atop.daily
-index 3539e62..57a9507 100755
---- a/atop.daily
-+++ b/atop.daily
-@@ -1,21 +1,42 @@
- #!/bin/bash
- 
-+LOGOPTS="-R"				# default options
-+LOGINTERVAL=600				# default interval in seconds
-+LOGGENERATIONS=28			# default number of days
-+
-+# allow administrator to overrule the variables
-+# defined above
-+#
-+DEFAULTSFILE=/etc/default/atop		# possibility to overrule vars
-+
-+if [ -e "$DEFAULTSFILE" ]
-+then
-+	. "$DEFAULTSFILE"
-+
-+	# validate overruled variables
-+	# (LOGOPTS and LOGINTERVAL are implicitly by atop)
-+	#
-+ 	case "$LOGGENERATIONS" in
-+	    ''|*[!0-9]*)
-+		echo non-numerical value for LOGGENERATIONS >&2
-+		exit 1;;
-+	esac
-+fi
-+
- CURDAY=`date +%Y%m%d`
- LOGPATH=/var/log/atop
- BINPATH=/usr/bin
- PIDFILE=/var/run/atop.pid
--DEFAULTSFILE=/etc/default/atop
--INTERVAL=600				# interval 10 minutes
- 
- # verify if atop still runs for daily logging
- #
--if [ -e $PIDFILE ] && ps -p `cat $PIDFILE` | grep 'atop$' > /dev/null
-+if [ -e "$PIDFILE" ] && ps -p `cat "$PIDFILE"` | grep 'atop$' > /dev/null
- then
--	kill -USR2 `cat $PIDFILE`       # final sample and terminate
-+	kill -USR2 `cat "$PIDFILE"`       # final sample and terminate
- 
- 	CNT=0
- 
--	while ps -p `cat $PIDFILE` > /dev/null
-+	while ps -p `cat "$PIDFILE"` > /dev/null
- 	do
- 		let CNT+=1
- 
-@@ -27,21 +48,17 @@ then
- 		sleep 1
- 	done
- 
--	rm $PIDFILE
--fi
--
--ATOPOPTS="-R"
--if [ -e "$DEFAULTSFILE" ]; then
--	. "$DEFAULTSFILE"
-+	rm "$PIDFILE"
- fi
- 
--# delete logfiles older than four weeks
-+# delete logfiles older than N days (configurable)
- # start a child shell that activates another child shell in
- # the background to avoid a zombie
- #
--( (sleep 3; find $LOGPATH -name 'atop_*' -mtime +28 -exec rm {} \;)& )
-+( (sleep 3; find "$LOGPATH" -name 'atop_*' -mtime +"$LOGGENERATIONS" -exec rm {} \;)& )
- 
--# activate atop with interval of 10 minutes, replacing the current shell
-+# activate atop with an interval of S seconds (configurable),
-+# replacing the current shell
- #
- echo $$ > $PIDFILE
--exec $BINPATH/atop $ATOPOPTS -w $LOGPATH/atop_$CURDAY $INTERVAL > $LOGPATH/daily.log 2>&1
-+exec $BINPATH/atop $LOGOPTS -w "$LOGPATH"/atop_"$CURDAY" "$LOGINTERVAL" > "$LOGPATH/daily.log" 2>&1
-diff --git a/man/atop.1 b/man/atop.1
-index 17ad69f..7866e49 100644
---- a/man/atop.1
-+++ b/man/atop.1
-@@ -1,4 +1,4 @@
--.TH ATOP 1 "March 2017" "Linux"
-+.TH ATOP 1 "June 2018" "Linux"
- .SH NAME
- .B atop 
- - Advanced System & Process Monitor
-@@ -859,11 +859,29 @@ This scripts takes care that
- .B atop
- is activated every day at midnight to write compressed binary data to the file
- .BI /var/log/atop/atop_ YYYYMMDD
--with an interval of 10 minutes.
--.br
--Furthermore the script removes all raw files which are older than four weeks.
--.br
--The script is activated via the
-+with an interval of 10 minutes by default. The
-+.B -R
-+flag is passed by default to gather information about the proportional
-+set size of every process.
-+.br
-+Furthermore the script removes all raw files which are by default
-+older than 28 days.
-+.br
-+The mentioned default values can be overruled by creating the file
-+.B /etc/default/atop
-+that might contain other values for
-+.B LOGOPTS
-+(by default the
-+.B -R
-+flag), 
-+.B LOGINTERVAL
-+(in seconds, by default 600), and
-+.B LOGGENERATIONS
-+(in days, by default 28).
-+.PP
-+The
-+.B atop.daily
-+script is activated via the
- .B cron
- daemon using the file
- .I /etc/cron.d/atop
-@@ -2092,6 +2110,25 @@ Configuration file containing personal default values.
- See related man-page.
- .PP
- .TP 5
-+.B /etc/default/atop
-+Configuration file to overrule the settings of
-+.I atop
-+that runs in the background to create the daily logfile.
-+This file is not created or overwritten when
-+.I atop
-+is installed, so it has to be created manually to override
-+the default settings.
-+The default settings are:
-+.TP 8
-+\ 
-+.br
-+LOGOPTS="-R"
-+.br
-+LOGINTERVAL=600
-+.br
-+LOGGENERATIONS=28
-+.PP
-+.TP 5
- .BI /var/log/atop/atop_ YYYYMMDD
- Raw file, where
- .I YYYYMMDD
-@@ -2123,7 +2160,7 @@ after reading the standard process accounting records.
- .B netatopd(8),
- .B logrotate(8)
- .br
--.B http://www.atoptool.nl
-+.B https://www.atoptool.nl
- .SH AUTHOR
- Gerlof Langeveld (gerlof.langeveld at atoptool.nl)
- .br

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2019-02-06 21:32:46 UTC (rev 429771)
+++ PKGBUILD	2019-02-06 21:32:53 UTC (rev 429772)
@@ -1,32 +0,0 @@
-# Maintainer: BlackIkeEagle <ike DOT devolder AT gmail DOT com>
-# Contributor: Sergej Pupykin <pupykin.s+arch at gmail.com>
-# Contributor: John Gerritse <john.gerritse at gmail.com>
-
-pkgname=atop
-pkgver=2.4.0
-pkgrel=1
-pkgdesc='A system and process level monitor'
-arch=('x86_64')
-url='http://www.atoptool.nl/'
-license=('GPL')
-depends=('ncurses' 'sh' 'zlib' 'cron')
-backup=('etc/default/atop')
-source=("https://www.atoptool.nl/download/atop-${pkgver/_/-}.tar.gz"
-        'atop.default')
-sha512sums=('2d0bbecc13bd64427263372b50f50d3278d1e0401e7f2eefe6ff20a874da6315271c885cef3492cde60a2955d1c8db4d8522c3374edcedf1a6992b8fa97c8f18'
-            '472a43abfe4bab9169ffce0f365547d646c6a4edb43b4092e893541d6641832cabcf9d8c9ab0332018854d9de5cf2d88a66cdcc5aaa75702cffd83ccb917fc34')
-
-#prepare() {
-    #cd "$pkgname-$pkgver"
-#}
-
-build() {
-    cd "$pkgname-$pkgver"
-    make
-}
-
-package() {
-    cd "$pkgname-$pkgver"
-    make DESTDIR="$pkgdir" systemdinstall SBINPATH=/usr/bin
-    install -Dm644 "$srcdir/atop.default" "$pkgdir/etc/default/atop"
-}

Copied: atop/repos/community-x86_64/PKGBUILD (from rev 429771, atop/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2019-02-06 21:32:53 UTC (rev 429772)
@@ -0,0 +1,32 @@
+# Maintainer: BlackIkeEagle <ike DOT devolder AT gmail DOT com>
+# Contributor: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Contributor: John Gerritse <john.gerritse at gmail.com>
+
+pkgname=atop
+pkgver=2.4.0
+pkgrel=2
+pkgdesc='A system and process level monitor'
+arch=('x86_64')
+url='https://www.atoptool.nl/'
+license=('GPL')
+depends=('ncurses' 'sh' 'zlib' 'cron')
+backup=('etc/default/atop')
+source=("https://www.atoptool.nl/download/atop-${pkgver/_/-}.tar.gz"
+        'atop.default')
+sha512sums=('2d0bbecc13bd64427263372b50f50d3278d1e0401e7f2eefe6ff20a874da6315271c885cef3492cde60a2955d1c8db4d8522c3374edcedf1a6992b8fa97c8f18'
+            '472a43abfe4bab9169ffce0f365547d646c6a4edb43b4092e893541d6641832cabcf9d8c9ab0332018854d9de5cf2d88a66cdcc5aaa75702cffd83ccb917fc34')
+
+#prepare() {
+    #cd "$pkgname-$pkgver"
+#}
+
+build() {
+    cd "$pkgname-$pkgver"
+    make
+}
+
+package() {
+    cd "$pkgname-$pkgver"
+    make DESTDIR="$pkgdir" systemdinstall SBINPATH=/usr/bin
+    install -Dm644 "$srcdir/atop.default" "$pkgdir/etc/default/atop"
+}

Deleted: a88a54107142d057e36be15285c972031a0e8c0a.patch
===================================================================
--- a88a54107142d057e36be15285c972031a0e8c0a.patch	2019-02-06 21:32:46 UTC (rev 429771)
+++ a88a54107142d057e36be15285c972031a0e8c0a.patch	2019-02-06 21:32:53 UTC (rev 429772)
@@ -1,39 +0,0 @@
-From a88a54107142d057e36be15285c972031a0e8c0a Mon Sep 17 00:00:00 2001
-From: Marc Haber <mh+mr-git at zugschlus.de>
-Date: Tue, 24 Apr 2018 11:42:53 +0200
-Subject: [PATCH] make atop options configurable, introduce config file
-
----
- atop.daily | 8 +++++++-
- 1 file changed, 7 insertions(+), 1 deletion(-)
-
-diff --git a/atop.daily b/atop.daily
-index 32a94d8..3539e62 100755
---- a/atop.daily
-+++ b/atop.daily
-@@ -4,6 +4,7 @@ CURDAY=`date +%Y%m%d`
- LOGPATH=/var/log/atop
- BINPATH=/usr/bin
- PIDFILE=/var/run/atop.pid
-+DEFAULTSFILE=/etc/default/atop
- INTERVAL=600				# interval 10 minutes
- 
- # verify if atop still runs for daily logging
-@@ -29,6 +30,11 @@ then
- 	rm $PIDFILE
- fi
- 
-+ATOPOPTS="-R"
-+if [ -e "$DEFAULTSFILE" ]; then
-+	. "$DEFAULTSFILE"
-+fi
-+
- # delete logfiles older than four weeks
- # start a child shell that activates another child shell in
- # the background to avoid a zombie
-@@ -38,4 +44,4 @@ fi
- # activate atop with interval of 10 minutes, replacing the current shell
- #
- echo $$ > $PIDFILE
--exec $BINPATH/atop -R -w $LOGPATH/atop_$CURDAY $INTERVAL > $LOGPATH/daily.log 2>&1
-+exec $BINPATH/atop $ATOPOPTS -w $LOGPATH/atop_$CURDAY $INTERVAL > $LOGPATH/daily.log 2>&1

Deleted: atop.default
===================================================================
--- atop.default	2019-02-06 21:32:46 UTC (rev 429771)
+++ atop.default	2019-02-06 21:32:53 UTC (rev 429772)
@@ -1,3 +0,0 @@
-#LOGOPTS="-R"      # default options
-#LOGINTERVAL=600   # default interval in seconds
-#LOGGENERATIONS=28 # default number of days

Copied: atop/repos/community-x86_64/atop.default (from rev 429771, atop/trunk/atop.default)
===================================================================
--- atop.default	                        (rev 0)
+++ atop.default	2019-02-06 21:32:53 UTC (rev 429772)
@@ -0,0 +1,3 @@
+#LOGOPTS="-R"      # default options
+#LOGINTERVAL=600   # default interval in seconds
+#LOGGENERATIONS=28 # default number of days



More information about the arch-commits mailing list