blob: 6ea5daa399520ecb492f920eaf2031880058843f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/bin/sh -e
#
# Install cron scripts into the appropriate places.
PATH=debian:$PATH:/usr/lib/debhelper
. dh_lib
for PACKAGE in $DH_DOPACKAGES; do
TMP=`tmpdir $PACKAGE`
EXT=`pkgext $PACKAGE`
for type in daily weekly monthly; do
if [ -e debian/${EXT}cron.$type ]; then
if [ ! -d $TMP/etc/cron.$type ]; then
doit "install -o root -g root -d $TMP/etc/cron.$type"
fi
doit "install debian/${EXT}cron.$type $TMP/etc/cron.$type/$PACKAGE"
fi
done
done
|