]> git.somenet.org - somenet/munin.git/blob - portage_sync
LICENCE.txt (gpl v3)
[somenet/munin.git] / portage_sync
1 #!/bin/sh
2
3 if [ "$1" = "autoconf" ]; then
4         echo "yes"
5         exit 0
6 fi
7
8 if [ "$1" = "config" ]; then
9     echo "graph_title portage sync"
10     echo "graph_info This graph shows the count of added and removed ebuilds and packages by the last sync operation"
11     echo "graph_category portage"
12     echo "graph_order pkgremoved pkgadded ebremoved ebadded"
13     echo "graph_scale no"
14     echo "pkgremoved.label packages del"
15     echo "pkgremoved.draw LINE2"
16     echo "pkgremoved.graph no"
17     echo "pkgadded.label packages"
18     echo "pkgadded.draw LINE2"
19     echo "pkgadded.negative pkgremoved"
20     echo "ebremoved.label ebuilds del"
21     echo "ebremoved.draw LINE2"
22     echo "ebremoved.graph no"
23     echo "ebadded.label ebuilds"
24     echo "ebadded.draw LINE2"
25     echo "ebadded.negative ebremoved"
26     exit 0
27 fi
28
29 cat /tmp/munin_portage/packages_added.stat
30 cat /tmp/munin_portage/packages_removed.stat
31 cat /tmp/munin_portage/ebuilds_added.stat
32 cat /tmp/munin_portage/ebuilds_removed.stat
33
34 exit 0
35