4 pkgdesc="A new cron system designed with secure operations in mind"
6 url="http://www.untroubled.org/bcron/"
8 depends=('glibc' 'runit' 'freedt')
11 replaces=('dcron' 'cron')
12 provides=('cron' 'dcron')
14 source=(http://www.untroubled.org/bcron/$pkgname-$pkgver.tar.gz root.crontab \
15 bcron-ucspi-ipc.patch bcron-services.tar.gz)
17 md5sums=('55348c1509ce3362a392ebd8e210c5eb' '7fcc06b13708ebd667711b1fbf62ee6e'\
18 '1468f28b5ab2c3516438c1870989943c' 'a52883e03a9eb1e2f9c65b74d556e57a')
21 cd $startdir/src/$pkgname-$pkgver
22 patch -p1 < ../bcron-ucspi-ipc.patch || exit 1
23 echo "/usr/lib/bglibs/include" > conf-bgincs
24 echo "/usr/lib/bglibs/lib" > conf-bglibs
25 echo "$startdir/pkg/usr/bin" > conf-bin
28 install -d $startdir/pkg/usr/man/man8
29 install -d $startdir/pkg/usr/man/man5
31 install -m0644 *.8 $startdir/pkg/usr/man/man8
32 install -m0644 *.5 $startdir/pkg/usr/man/man5
34 install -d $startdir/pkg/usr/bin
36 install -m0755 bcron-exec $startdir/pkg/usr/bin
37 install -m0755 bcron-sched $startdir/pkg/usr/bin
38 install -m0755 bcron-spool $startdir/pkg/usr/bin
39 install -m0755 bcron-start $startdir/pkg/usr/bin
40 install -m0755 bcron-update $startdir/pkg/usr/bin
41 install -m0755 bcrontab $startdir/pkg/usr/bin
43 install -d $startdir/pkg/var/spool/cron/crontabs
44 install -d $startdir/pkg/var/spool/cron/tmp
45 mkfifo $startdir/pkg/var/spool/cron/trigger
46 install -d $startdir/pkg/etc/bcron
48 install -d $startdir/pkg/etc/{cron.hourly,cron.daily,cron.weekly,cron.monthly}
49 install -d $startdir/pkg/etc/cron.d
51 install -D -m0600 ../root.crontab $startdir/pkg/var/spool/cron/crontabs/root
52 touch $startdir/pkg/etc/crontab
53 chmod 700 $startdir/pkg/etc/crontab
55 ln -s bcrontab $startdir/pkg/usr/bin/crontab
57 install -d $startdir/pkg/etc/sv
59 cp -Rpv * $startdir/pkg/etc/sv