From: Michael Tremer Date: Tue, 4 Sep 2012 11:21:57 +0000 (+0200) Subject: collecty: New package. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=18de51335d7da99c32d3daae73c44b7f95e76a85;p=ipfire-3.x.git collecty: New package. --- diff --git a/collecty/collecty.nm b/collecty/collecty.nm new file mode 100644 index 000000000..deb7fb4de --- /dev/null +++ b/collecty/collecty.nm @@ -0,0 +1,40 @@ +############################################################################### +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # +############################################################################### + +name = collecty +version = 0.0.2 +release = 1 + +maintainer = Michael Tremer +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 index 000000000..cc5cac28d --- /dev/null +++ b/collecty/patches/0001-Install-daemon-to-usr-sbin.patch @@ -0,0 +1,49 @@ +From 82c136f87bb13aea4f27b669ee98ff7e798ad8b3 Mon Sep 17 00:00:00 2001 +From: Michael Tremer +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 +