aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorSören Tempel <soeren+git@soeren-tempel.net>2016-02-15 17:21:35 +0100
committerSören Tempel <soeren+git@soeren-tempel.net>2016-02-15 17:24:47 +0100
commit9b1914641d2c38ee02e8de2b9e8fa489ece14218 (patch)
tree148a460c67904d3fc3de96e80b9e67d3b9d1f4dd /testing
parent6eeb5be5d811904026eb5e614e6dede4d37f319c (diff)
downloadaports-9b1914641d2c38ee02e8de2b9e8fa489ece14218.tar.bz2
aports-9b1914641d2c38ee02e8de2b9e8fa489ece14218.tar.xz
testing/dcron: simplify OpenRC service
Diffstat (limited to 'testing')
-rw-r--r--testing/dcron/APKBUILD26
-rw-r--r--testing/dcron/dcron.confd5
-rw-r--r--testing/dcron/dcron.initd22
3 files changed, 14 insertions, 39 deletions
diff --git a/testing/dcron/APKBUILD b/testing/dcron/APKBUILD
index 9a24303a28..458bcd474c 100644
--- a/testing/dcron/APKBUILD
+++ b/testing/dcron/APKBUILD
@@ -2,19 +2,18 @@
# Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net>
pkgname=dcron
pkgver=4.5
-pkgrel=1
+pkgrel=2
pkgdesc="dillon's lightweight cron daemon"
url="http://www.jimpryor.net/linux/dcron.html"
arch="all"
license="GPL"
depends=""
depends_dev=""
-makedepends="$depends_dev"
+makedepends=""
install=""
subpackages="$pkgname-doc"
source="http://www.jimpryor.net/linux/releases/${pkgname}-${pkgver}.tar.gz
$pkgname.initd
- $pkgname.confd
pidfile.patch
ldflags.patch"
@@ -40,29 +39,24 @@ build() {
package() {
cd "$_builddir"
-
make DESTDIR="$pkgdir" install || return 1
- install -Dm644 extra/crond.logrotate "$pkgdir"/etc/logrotate.d/$pkgname || return 1
-
- install -Dm755 "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname || return 1
- install -Dm644 "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname || return 1
+ install -Dm755 "$srcdir"/$pkgname.initd \
+ "$pkgdir"/etc/init.d/$pkgname || return 1
- install -Dm644 CHANGELOG "$pkgdir"/usr/share/doc/$pkgname/CHANGELOG || return 1
- install -Dm644 README "$pkgdir"/usr/share/doc/$pkgname/README || return 1
+ mkdir -p "$pkgdir"/usr/share/doc/$pkgname/
+ install -Dm644 README CHANGELOG \
+ "$pkgdir"/usr/share/doc/$pkgname/ || return 1
}
md5sums="078833f3281f96944fc30392b1888326 dcron-4.5.tar.gz
-de35e12d93a9164e0ad3bfb8796f11eb dcron.initd
-a9f3fdab61f1646cbc074e6d59364303 dcron.confd
+7e0075315366e5312221f68de4de6961 dcron.initd
1e40cbf27604072f147ec8b131988eaf pidfile.patch
646b16f31abbea4c215512f58f421abc ldflags.patch"
sha256sums="9e50edb6f5bd8153b16bad05087d985e5153ce45cc01ae77e7f842213fb4a824 dcron-4.5.tar.gz
-d75d3e577501890b860b915dc43baeddabd8b932275af12c955e8e57eef56157 dcron.initd
-1e273164865bb8f05d97ef1479c285b86f4104951ac294af883eb65ce100ccd0 dcron.confd
+a1a58b4ab6c570244f4eb3db3cc0414ee183a7b2627e26f43fd43061c4caf3c2 dcron.initd
4272467e432eab948f6770ea639f38817123eac2c87fc76f3fcb2b2d4cecbbb6 pidfile.patch
69b907a89d22bcff5ded7ebd749c4e8df87106e290c75110630031e75631ee3a ldflags.patch"
sha512sums="08521391d16ba5adf80278ec2a734319c26c48841fd94b119c0b27d744c2cfb3562b1a3630135a03d1c43b1668d49262713abb20ff5f7ecd397a2a19a2f6105a dcron-4.5.tar.gz
-d6647647a0c815b5aa2d0e602f6a209aa286d7807ecc4a24c0e37fb0eb6e35a1cf1d9de5b0159d45febc242e8adc13d642a08a9b9af22090187e80198545bfb3 dcron.initd
-05b4a7aeb9d994aa3a37a0f2efa0f560a4eb6dd1fc77d67c85be3397f077bc92a0d647140164a96d48e49b486eef021aef5c3410704d457eda5eb894b46d26fb dcron.confd
+cad27486519f812dfffbf0c463f7f0d25ddaf5ce517fb48445d23b8eee1cb480fa3a2d4ee1ef2df9efc65a8f58ddf683db21ef7503367cc1d6c2c8e60fd3a911 dcron.initd
08bd8d7445b597a5c7d66d3e768c943388db44e0ae43a0cec2be3b0c83c510f00f808b02d52b86cb663e79ea66584b16f92eaa02d40489e5f4124206ae17378d pidfile.patch
8a07ccfae80468a555e8f5ea60f88dd444a3aacb6baa6f747a6a02bcdce78baaa8aaf799ae9d2684a518bfff537dc0cdcf0b53bb6fc0017fa52228f1f0a16e49 ldflags.patch"
diff --git a/testing/dcron/dcron.confd b/testing/dcron/dcron.confd
deleted file mode 100644
index 61cdf12b43..0000000000
--- a/testing/dcron/dcron.confd
+++ /dev/null
@@ -1,5 +0,0 @@
-# /etc/conf.d/dcron
-
-# Options to pass to dcron at startup.
-# Default logging is via syslog; use -L to send to file.
-DCRON_OPTS=""
diff --git a/testing/dcron/dcron.initd b/testing/dcron/dcron.initd
index cdc70c084c..5639a666d0 100644
--- a/testing/dcron/dcron.initd
+++ b/testing/dcron/dcron.initd
@@ -1,26 +1,12 @@
#!/sbin/openrc-run
-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-process/dcron/files/dcron.init-4.5,v 1.1 2011/05/16 20:28:54 vapier Exp $
+name="$SVCNAME"
+command="/usr/sbin/crond"
+command_args="$DCRON_OPTS"
+pidfile="/var/run/crond.pid"
description="Dillon's lightweight cron daemon"
depend() {
use logger clock hostname
provide cron
}
-
-start() {
- ebegin "Starting ${SVCNAME}"
- /usr/sbin/crond ${DCRON_OPTS}
- eend $?
-}
-
-stop() {
- ebegin "Stopping ${SVCNAME}"
- start-stop-daemon --stop --quiet \
- --pidfile /var/run/crond.pid --exec /usr/sbin/crond
- local ret=$?
- rm -f /var/run/crond.pid
- eend ${ret}
-}