aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@gmail.com>2010-03-05 13:59:07 +0000
committerLeonardo Arena <rnalrd@gmail.com>2010-03-05 13:59:07 +0000
commitcd8f1d3141e88c3b0e72d3f240f8c17dd297ae28 (patch)
tree3566487f93123518deb62704a24785a3e2999957 /main
parentf75969afaa87c8f99a8a8586dfa30f55f31984c5 (diff)
downloadaports-cd8f1d3141e88c3b0e72d3f240f8c17dd297ae28.tar.bz2
aports-cd8f1d3141e88c3b0e72d3f240f8c17dd297ae28.tar.xz
main/sysklogd: automatic configure of service runlevels added
Diffstat (limited to 'main')
-rw-r--r--main/sysklogd/APKBUILD3
-rw-r--r--main/sysklogd/sysklogd.post-install5
-rw-r--r--main/sysklogd/sysklogd.pre-deinstall5
3 files changed, 12 insertions, 1 deletions
diff --git a/main/sysklogd/APKBUILD b/main/sysklogd/APKBUILD
index d7c83423dc..33dde41e43 100644
--- a/main/sysklogd/APKBUILD
+++ b/main/sysklogd/APKBUILD
@@ -1,13 +1,14 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=sysklogd
pkgver=1.5
-pkgrel=3
+pkgrel=4
pkgdesc="System and kernel log daemons"
url="http://www.infodrom.org/projects/sysklogd/"
license="GPL BSD"
subpackages="$pkgname-doc"
depends=
makedepends=""
+install="sysklogd.post-install sysklogd.pre-deinstall"
source="http://www.infodrom.org/projects/$pkgname/download/$pkgname-$pkgver.tar.gz
sysklogd.logrotate
sysklogd.daily
diff --git a/main/sysklogd/sysklogd.post-install b/main/sysklogd/sysklogd.post-install
new file mode 100644
index 0000000000..498880c53f
--- /dev/null
+++ b/main/sysklogd/sysklogd.post-install
@@ -0,0 +1,5 @@
+#!/bin/sh
+INIT=syslog
+RUNLEVEL=`rc-update show | grep $INIT | awk '{ print $3 }'`
+rc-update del $INIT $RUNLEVEL
+rc-update add sysklogd $RUNLEVEL
diff --git a/main/sysklogd/sysklogd.pre-deinstall b/main/sysklogd/sysklogd.pre-deinstall
new file mode 100644
index 0000000000..4ed8f79f15
--- /dev/null
+++ b/main/sysklogd/sysklogd.pre-deinstall
@@ -0,0 +1,5 @@
+#!/bin/sh
+INIT=sysklogd
+RUNLEVEL=`rc-update show | grep $INIT | awk '{ print $3 }'`
+rc-update del $INIT $RUNLEVEL
+rc-update add syslog $RUNLEVEL