summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorNekmo2016-06-12 17:20:02 +0200
committerNekmo2016-06-12 17:20:02 +0200
commit4c85b71eb48451be93170d3cd41349aa60a5af6a (patch)
treebcb82aaa2bff1de12695902df61cc66d44a2616b
downloadaur-simple-monitor-alert.tar.gz
Auto: Updated
-rw-r--r--.SRCINFO22
-rw-r--r--PKGBUILD57
-rw-r--r--simple-monitor-alert.install4
3 files changed, 83 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..1ad89df31d4
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,22 @@
+pkgbase = simple-monitor-alert
+ pkgdesc = A simple monitor with alerts for Unix/Linux under the KISS philosophy.
+ pkgver = 0.2.5
+ pkgrel = 1
+ install = simple-monitor-alert.install
+ arch = any
+ license = MIT
+ depends = python
+ depends = python-dateutil
+ depends = python-future
+ depends = python-requests
+ depends = python-six
+ depends = python-pip
+ depends = python-colorclass-git
+ depends = python-humanize
+ depends = python-terminaltables
+ options = !emptydirs
+ source = simple_monitor_alert::git+https://github.com/Nekmo/simple-monitor-alert.git#branch=v0.2.5
+ md5sums = SKIP
+
+pkgname = simple-monitor-alert
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..245b9576ca8
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,57 @@
+# This is an example PKGBUILD file. Use this as a start to creating your own,
+# and remove these comments. For more information, see 'man PKGBUILD'.
+# NOTE: Please fill out the license field for your package! If it is unknown,
+# then please put 'unknown'.
+
+# See http://wiki.archlinux.org/index.php/Python_Package_Guidelines for more
+# information on Python packaging.
+
+# Maintainer: Nekmo <contacto@nekmo.com>
+pkgname=simple-monitor-alert
+pkgver=0.2.5
+pkgrel=1
+pkgdesc="A simple monitor with alerts for Unix/Linux under the KISS philosophy."
+arch=("any")
+url=""
+license=('MIT')
+groups=()
+depends=('python' 'python-dateutil' 'python-future' 'python-requests' 'python-six'
+ 'python-pip' 'python-colorclass-git' 'python-humanize' 'python-terminaltables')
+makedepends=()
+provides=()
+conflicts=()
+replaces=()
+backup=()
+options=(!emptydirs)
+install=simple-monitor-alert.install
+source=("simple_monitor_alert::git+https://github.com/Nekmo/simple-monitor-alert.git#branch=v0.2.5")
+md5sums=("SKIP")
+#source=()
+#md5sums=()
+
+package() {
+ cd "$srcdir/simple_monitor_alert"
+ python setup.py install --root="$pkgdir/" --optimize=1 --manual-install
+ cd $pkgdir
+ # Create directories
+ mkdir -p usr/lib/simple-monitor-alert
+ mkdir -p usr/lib/systemd/system
+ mkdir -p etc/simple-monitor-alert/monitors-enabled
+ # Move directories
+ ls -l usr
+ mv usr/alerts usr/lib/simple-monitor-alert/alerts
+ mv usr/monitors usr/lib/simple-monitor-alert/monitors
+ # Config file
+ mv usr/sma-template.ini etc/simple-monitor-alert/sma.ini
+ # Service
+ mv usr/services/sma.service usr/lib/systemd/system
+ # Create symlinks
+ cd "$srcdir/simple_monitor_alert"
+ BASE_DIR=$pkgdir python -m simple_monitor_alert.install create-symlinks
+ BASE_DIR=$pkgdir python -m simple_monitor_alert.install enable-default-monitors
+ # Clean
+ cd $pkgdir
+ rm -rf usr/services
+}
+
+# vim:set ts=2 sw=2 et: \ No newline at end of file
diff --git a/simple-monitor-alert.install b/simple-monitor-alert.install
new file mode 100644
index 00000000000..dd03f0b5529
--- /dev/null
+++ b/simple-monitor-alert.install
@@ -0,0 +1,4 @@
+function post_install(){
+ python -m simple_monitor_alert.install create-user-group
+ python -m simple_monitor_alert.install var-directory
+}