aboutsummaryrefslogtreecommitdiffstats
path: root/testing/dcron/APKBUILD
blob: 458bcd474cccc7e7ff267ff266d5ccb36989e1d2 (plain) (blame)
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
53
54
55
56
57
58
59
60
61
62
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net>
pkgname=dcron
pkgver=4.5
pkgrel=2
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
prepare() {
	cd "$_builddir"
	local i
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1 ;;
		esac
	done
}

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
7e0075315366e5312221f68de4de6961  dcron.initd
1e40cbf27604072f147ec8b131988eaf  pidfile.patch
646b16f31abbea4c215512f58f421abc  ldflags.patch"
sha256sums="9e50edb6f5bd8153b16bad05087d985e5153ce45cc01ae77e7f842213fb4a824  dcron-4.5.tar.gz
a1a58b4ab6c570244f4eb3db3cc0414ee183a7b2627e26f43fd43061c4caf3c2  dcron.initd
4272467e432eab948f6770ea639f38817123eac2c87fc76f3fcb2b2d4cecbbb6  pidfile.patch
69b907a89d22bcff5ded7ebd749c4e8df87106e290c75110630031e75631ee3a  ldflags.patch"
sha512sums="08521391d16ba5adf80278ec2a734319c26c48841fd94b119c0b27d744c2cfb3562b1a3630135a03d1c43b1668d49262713abb20ff5f7ecd397a2a19a2f6105a  dcron-4.5.tar.gz
cad27486519f812dfffbf0c463f7f0d25ddaf5ce517fb48445d23b8eee1cb480fa3a2d4ee1ef2df9efc65a8f58ddf683db21ef7503367cc1d6c2c8e60fd3a911  dcron.initd
08bd8d7445b597a5c7d66d3e768c943388db44e0ae43a0cec2be3b0c83c510f00f808b02d52b86cb663e79ea66584b16f92eaa02d40489e5f4124206ae17378d  pidfile.patch
8a07ccfae80468a555e8f5ea60f88dd444a3aacb6baa6f747a6a02bcdce78baaa8aaf799ae9d2684a518bfff537dc0cdcf0b53bb6fc0017fa52228f1f0a16e49  ldflags.patch"