]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
collecty: New package.
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 4 Sep 2012 11:21:57 +0000 (13:21 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 4 Sep 2012 11:21:57 +0000 (13:21 +0200)
collecty/collecty.nm [new file with mode: 0644]
collecty/patches/0001-Install-daemon-to-usr-sbin.patch [new file with mode: 0644]

diff --git a/collecty/collecty.nm b/collecty/collecty.nm
new file mode 100644 (file)
index 0000000..deb7fb4
--- /dev/null
@@ -0,0 +1,40 @@
+###############################################################################
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
+###############################################################################
+
+name       = collecty
+version    = 0.0.2
+release    = 1
+
+maintainer = Michael Tremer <michael.tremer@ipfire.org>
+groups     = System/Monitoring
+url        = http://git.ipfire.org/?p=oddments/collecty.git;a=summary
+license    = GPLv3+
+summary    = A system data collecting daemon.
+
+description
+       collecty is a daemon which collects data from the
+       system like CPU usage and many more.
+       It has been designed with power efficiency in mind.
+end
+
+source_dl  = http://source.ipfire.org/releases/collecty/
+
+build
+       requires
+               gettext
+               python
+       end
+
+       install
+               mkdir -pv %{BUILDROOT}%{bindir}
+               make install DESTDIR=%{BUILDROOT}
+       end
+end
+
+packages
+       package %{name}
+               groups += Base
+       end
+end
diff --git a/collecty/patches/0001-Install-daemon-to-usr-sbin.patch b/collecty/patches/0001-Install-daemon-to-usr-sbin.patch
new file mode 100644 (file)
index 0000000..cc5cac2
--- /dev/null
@@ -0,0 +1,49 @@
+From 82c136f87bb13aea4f27b669ee98ff7e798ad8b3 Mon Sep 17 00:00:00 2001
+From: Michael Tremer <michael.tremer@ipfire.org>
+Date: Sat, 1 Sep 2012 18:56:19 +0000
+Subject: [PATCH] Install daemon to /usr/sbin.
+
+---
+ Makefile         |    5 ++++-
+ collecty.service |    2 +-
+ 2 files changed, 5 insertions(+), 2 deletions(-)
+
+diff --git a/Makefile b/Makefile
+index 7d679af..6fcc787 100644
+--- a/Makefile
++++ b/Makefile
+@@ -24,6 +24,7 @@ PACKAGE_VERSION = 0.0.2
+ DESTDIR    =
+ PREFIX     = /usr
+ BINDIR     = $(PREFIX)/bin
++SBINDIR    = $(PREFIX)/sbin
+ LOCALEDIR  = $(PREFIX)/share/locale
+ UNITDIR    = $(PREFIX)/lib/systemd/system
+@@ -55,7 +56,9 @@ dist:
+ install: $(MO_FILES)
+       -mkdir -pv $(PYTHON_DIR)
+       cp -rvf collecty $(PYTHON_DIR)
+-      install -v -m 755 collectyd $(DESTDIR)$(BINDIR)
++
++      -mkdir -pv $(DESTDIR)$(SBINDIR)
++      install -v -m 755 collectyd $(DESTDIR)$(SBINDIR)
+       # Install configuration
+       -mkdir -pv $(DESTDIR)/etc/$(PACKAGE_NAME)
+diff --git a/collecty.service b/collecty.service
+index ac4a893..78bd26e 100644
+--- a/collecty.service
++++ b/collecty.service
+@@ -2,7 +2,7 @@
+ Description=collecty - A system data collecting daemon
+ [Service]
+-ExecStart=/usr/bin/collectyd
++ExecStart=/usr/sbin/collectyd
+ ExecReload=/bin/kill -HUP $MAINPID
+ [Install]
+-- 
+1.7.8.2
+