summaryrefslogtreecommitdiffstats
path: root/abs
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2010-11-05 16:05:52 (GMT)
committerJames Meyer <james.meyer@operamail.com>2010-11-05 16:05:52 (GMT)
commit441806506e869e1e5a683cc31d91253066f3fc94 (patch)
tree8456cb660e783157bfc06448ec14e74ea8f86bc8 /abs
parent722d2f1503f77e4de673829032c85b729ce07f84 (diff)
downloadlinhes_pkgbuild-441806506e869e1e5a683cc31d91253066f3fc94.zip
linhes_pkgbuild-441806506e869e1e5a683cc31d91253066f3fc94.tar.gz
linhes_pkgbuild-441806506e869e1e5a683cc31d91253066f3fc94.tar.bz2
syslog: missed a few files
Diffstat (limited to 'abs')
-rw-r--r--abs/core/eventlog/ChangeLog10
-rw-r--r--abs/core/syslog-ng/syslog-ng.install10
-rwxr-xr-xabs/core/syslog-ng/syslog-ng.rc39
3 files changed, 59 insertions, 0 deletions
diff --git a/abs/core/eventlog/ChangeLog b/abs/core/eventlog/ChangeLog
new file mode 100644
index 0000000..f2f386d
--- /dev/null
+++ b/abs/core/eventlog/ChangeLog
@@ -0,0 +1,10 @@
+2010-07-10 Dan McGee <dan@archlinux.org>
+
+ * Updated PKGBUILD to be in line with standard style
+ * Upstream update
+
+2009-01-03 Eric Belanger <eric@archlinux.org>
+
+ * eventlog 0.2.9-1
+ * Upstream update
+ * Added ChangeLog
diff --git a/abs/core/syslog-ng/syslog-ng.install b/abs/core/syslog-ng/syslog-ng.install
new file mode 100644
index 0000000..96f5dd8
--- /dev/null
+++ b/abs/core/syslog-ng/syslog-ng.install
@@ -0,0 +1,10 @@
+# arg 1: the new package version
+# arg 2: the old package version
+
+post_upgrade() {
+ if [ "$(vercmp $2 2.1.3-3)" -lt 0 -a -e /etc/syslog-ng.conf.pacnew ]; then
+ echo "Attention syslog-ng update:"
+ echo "Configuration file syntax has changed. Make sure to update /etc/syslog-ng.conf"
+
+ fi
+}
diff --git a/abs/core/syslog-ng/syslog-ng.rc b/abs/core/syslog-ng/syslog-ng.rc
new file mode 100755
index 0000000..f9d14c7
--- /dev/null
+++ b/abs/core/syslog-ng/syslog-ng.rc
@@ -0,0 +1,39 @@
+#!/bin/bash
+
+. /etc/rc.conf
+. /etc/rc.d/functions
+
+PID=`pidof -o %PPID /usr/sbin/syslog-ng`
+case "$1" in
+ start)
+ stat_busy "Starting Syslog-NG"
+ [ -z "$PID" ] && /usr/sbin/syslog-ng
+ if [ $? -gt 0 ]; then
+ stat_fail
+ else
+ add_daemon syslog-ng
+ stat_done
+ fi
+ ;;
+ stop)
+ stat_busy "Stopping Syslog-NG"
+ [ ! -z "$PID" ] && kill $PID &> /dev/null
+ if [ $? -gt 0 ]; then
+ stat_fail
+ else
+ rm -f /var/run/syslog-ng.pid
+# Removing stale syslog-ng.persist file. It's new location, as of 2.0.6-1, is /var/lib/syslog-ng/
+ rm -f /var/syslog-ng.persist
+ rm_daemon syslog-ng
+ stat_done
+ fi
+ ;;
+ restart)
+ $0 stop
+ sleep 1
+ $0 start
+ ;;
+ *)
+ echo "usage: $0 {start|stop|restart}"
+esac
+exit 0