blob: 9a24303a2807feb07488a0742f79ab5ce0d8d63b (
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net>
pkgname=dcron
pkgver=4.5
pkgrel=1
pkgdesc="dillon's lightweight cron daemon"
url="http://www.jimpryor.net/linux/dcron.html"
arch="all"
license="GPL"
depends=""
depends_dev=""
makedepends="$depends_dev"
install=""
subpackages="$pkgname-doc"
source="http://www.jimpryor.net/linux/releases/${pkgname}-${pkgver}.tar.gz
$pkgname.initd
$pkgname.confd
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 -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 -Dm644 CHANGELOG "$pkgdir"/usr/share/doc/$pkgname/CHANGELOG || return 1
install -Dm644 README "$pkgdir"/usr/share/doc/$pkgname/README || return 1
}
md5sums="078833f3281f96944fc30392b1888326 dcron-4.5.tar.gz
de35e12d93a9164e0ad3bfb8796f11eb dcron.initd
a9f3fdab61f1646cbc074e6d59364303 dcron.confd
1e40cbf27604072f147ec8b131988eaf pidfile.patch
646b16f31abbea4c215512f58f421abc ldflags.patch"
sha256sums="9e50edb6f5bd8153b16bad05087d985e5153ce45cc01ae77e7f842213fb4a824 dcron-4.5.tar.gz
d75d3e577501890b860b915dc43baeddabd8b932275af12c955e8e57eef56157 dcron.initd
1e273164865bb8f05d97ef1479c285b86f4104951ac294af883eb65ce100ccd0 dcron.confd
4272467e432eab948f6770ea639f38817123eac2c87fc76f3fcb2b2d4cecbbb6 pidfile.patch
69b907a89d22bcff5ded7ebd749c4e8df87106e290c75110630031e75631ee3a ldflags.patch"
sha512sums="08521391d16ba5adf80278ec2a734319c26c48841fd94b119c0b27d744c2cfb3562b1a3630135a03d1c43b1668d49262713abb20ff5f7ecd397a2a19a2f6105a dcron-4.5.tar.gz
d6647647a0c815b5aa2d0e602f6a209aa286d7807ecc4a24c0e37fb0eb6e35a1cf1d9de5b0159d45febc242e8adc13d642a08a9b9af22090187e80198545bfb3 dcron.initd
05b4a7aeb9d994aa3a37a0f2efa0f560a4eb6dd1fc77d67c85be3397f077bc92a0d647140164a96d48e49b486eef021aef5c3410704d457eda5eb894b46d26fb dcron.confd
08bd8d7445b597a5c7d66d3e768c943388db44e0ae43a0cec2be3b0c83c510f00f808b02d52b86cb663e79ea66584b16f92eaa02d40489e5f4124206ae17378d pidfile.patch
8a07ccfae80468a555e8f5ea60f88dd444a3aacb6baa6f747a6a02bcdce78baaa8aaf799ae9d2684a518bfff537dc0cdcf0b53bb6fc0017fa52228f1f0a16e49 ldflags.patch"
|