* [git.ipfire.org] IPFire 3.x development tree branch, master, updated. 59ee75fd70f786e472b059db96d6c4d988940af1
@ 2015-05-28 10:53 git
0 siblings, 0 replies; only message in thread
From: git @ 2015-05-28 10:53 UTC (permalink / raw)
To: ipfire-scm
[-- Attachment #1: Type: text/plain, Size: 4621 bytes --]
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "IPFire 3.x development tree".
The branch, master has been updated
via 59ee75fd70f786e472b059db96d6c4d988940af1 (commit)
from b6159043c0aa625206070ea194259fc5ab105960 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 59ee75fd70f786e472b059db96d6c4d988940af1
Author: Michael Tremer <michael.tremer(a)ipfire.org>
Date: Wed May 27 12:59:40 2015 +0000
collecty: Update to version 002
-----------------------------------------------------------------------
Summary of changes:
collecty/collecty.nm | 47 ++++++++++++++++++---
.../patches/0001-Install-daemon-to-usr-sbin.patch | 49 ----------------------
2 files changed, 42 insertions(+), 54 deletions(-)
delete mode 100644 collecty/patches/0001-Install-daemon-to-usr-sbin.patch
Difference in files:
diff --git a/collecty/collecty.nm b/collecty/collecty.nm
index deb7fb4..9c46acc 100644
--- a/collecty/collecty.nm
+++ b/collecty/collecty.nm
@@ -4,7 +4,7 @@
###############################################################################
name = collecty
-version = 0.0.2
+version = 002
release = 1
maintainer = Michael Tremer <michael.tremer(a)ipfire.org>
@@ -23,18 +23,55 @@ source_dl = http://source.ipfire.org/releases/collecty/
build
requires
- gettext
+ autoconf
+ automake
+ docbook-utils
+ docbook-xsl
+ gettext-devel
+ intltool
+ libtool-devel
+ libxslt
python
+ systemd-devel
end
- install
- mkdir -pv %{BUILDROOT}%{bindir}
- make install DESTDIR=%{BUILDROOT}
+ prepare_cmds
+ [ -e "configure" ] || ./autogen.sh
end
end
packages
package %{name}
groups += Base
+
+ requires
+ pygobject2
+ python-dbus
+ python-rrdtool
+ end
+
+ script postin
+ systemctl daemon-reload >/dev/null 2>&1 || :
+
+ # The collecty service should be started on default.
+ systemctl enable collecty.service > /dev/null 2>&1 || :
+ end
+
+ # Disable the service that is to be removed and stop it if it is still running.
+ script preun
+ systemctl --no-reload disable collecty.service >/dev/null 2>&1 || :
+ systemctl stop collecty.service >/dev/null 2>&1 || :
+ end
+
+ # Just tell systemd that unitfiles have been removed.
+ script postun
+ systemctl daemon-reload >/dev/null 2>&1 || :
+ end
+
+ # Try to restart the service if it is running.
+ script postup
+ systemctl daemon-reload >/dev/null 2>&1 || :
+ systemctl try-restart collecty.service >/dev/null 2>&1 || :
+ end
end
end
diff --git a/collecty/patches/0001-Install-daemon-to-usr-sbin.patch b/collecty/patches/0001-Install-daemon-to-usr-sbin.patch
deleted file mode 100644
index cc5cac2..0000000
--- a/collecty/patches/0001-Install-daemon-to-usr-sbin.patch
+++ /dev/null
@@ -1,49 +0,0 @@
-From 82c136f87bb13aea4f27b669ee98ff7e798ad8b3 Mon Sep 17 00:00:00 2001
-From: Michael Tremer <michael.tremer(a)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
-
hooks/post-receive
--
IPFire 3.x development tree
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-05-28 10:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-28 10:53 [git.ipfire.org] IPFire 3.x development tree branch, master, updated. 59ee75fd70f786e472b059db96d6c4d988940af1 git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox