aboutsummaryrefslogtreecommitdiffstats
path: root/community/dcron/APKBUILD
blob: 9ff0d964b3000ed4a1c4a48b89dd639aa5a3d6e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net>
pkgname=dcron
pkgver=4.5
pkgrel=3
pkgdesc="dillon's lightweight cron daemon"
url="http://www.jimpryor.net/linux/dcron.html"
arch="all"
license="GPL"
depends=""
depends_dev=""
makedepends=""
install=""
subpackages="$pkgname-doc"
source="http://www.jimpryor.net/linux/releases/${pkgname}-${pkgver}.tar.gz
	$pkgname.initd
	pidfile.patch
	ldflags.patch"

_builddir="$srcdir"/$pkgname-$pkgver
build() {
	cd "$_builddir"
	make PREFIX=/usr \
		CRONTAB_GROUP=wheel \
		CRONTABS=/etc/crontabs \
		CRONSTAMPS=/var/spool/cron/cronstamps \
		SCRONTABS=/etc/periodic || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	install -Dm755 "$srcdir"/$pkgname.initd \
		"$pkgdir"/etc/init.d/$pkgname || 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
36fb725b46f815dc6692a269ef22dc47  dcron.initd
c6761a07945edbeecc5726bb0ba92d40  pidfile.patch
646b16f31abbea4c215512f58f421abc  ldflags.patch"
sha256sums="9e50edb6f5bd8153b16bad05087d985e5153ce45cc01ae77e7f842213fb4a824  dcron-4.5.tar.gz
dd36b83cd4fa2694119fe046a2432b702ce42c8dc0e87a252cae25a904560acf  dcron.initd
f6c5adf109350eee543549ea63e03d1ac4ca8131d8c8ac1ac7074b222883cfa0  pidfile.patch
69b907a89d22bcff5ded7ebd749c4e8df87106e290c75110630031e75631ee3a  ldflags.patch"
sha512sums="08521391d16ba5adf80278ec2a734319c26c48841fd94b119c0b27d744c2cfb3562b1a3630135a03d1c43b1668d49262713abb20ff5f7ecd397a2a19a2f6105a  dcron-4.5.tar.gz
0513fc6795988c68f2d552c7754383c6db1f51507686c25cf5205a8491679626118a4bab22c8d5e58017f58cc01ab21af8931fdef806a80f3d27cba2f53831cd  dcron.initd
04fdd3059d6b1df8132944e2eefa932e640db8b4a5ac85dd1ca833adf1d0013ad33f40021624e12a4203b08003d6c79f0a5da4e29b057004fb849f388c7178f2  pidfile.patch
8a07ccfae80468a555e8f5ea60f88dd444a3aacb6baa6f747a6a02bcdce78baaa8aaf799ae9d2684a518bfff537dc0cdcf0b53bb6fc0017fa52228f1f0a16e49  ldflags.patch"