File: mindeps

package info (click to toggle)
dkim-rotate 1.1
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 196 kB
  • sloc: perl: 832; sh: 324; makefile: 55
file content (33 lines) | stat: -rw-r--r-- 809 bytes parent folder | download | duplicates (2)
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
#!/bin/bash
set -ex
set -o pipefail

tmp=$AUTOPKGTEST_TMP
var=/var/lib/dkim-rotate/example

: :::::::::::::::::::: CONTROL UP TO DATE ::::::::::::::::::::

diff -u debian/tests/control <(debian/tests/control.in)

: :::::::::::::::::::: NEW ::::::::::::::::::::

cp /usr/share/doc/dkim-rotate/examples/example.zone /etc/dkim-rotate/
cat >>/etc/dkim-rotate/example.zone <<END
! mta_group mail
! dns_reload touch $tmp/DNS-RELOADED
! mta_reload touch $tmp/MTA-RELOADED
END
egrep . /etc/dkim-rotate/example.zone

dkim-rotate --new

egrep . $var/{state,exim,zone}
ls -l $tmp/{DNS,MTA}-RELOADED

grep '^selector: ' $var/exim
keyfile=$(sed -n 's/^privkey: //p' $var/exim)
wc -c $keyfile

find $var/priv/ -maxdepth 0 -user root -group mail -perm 750 -ls | egrep .

: :::::::::::::::::::: COMPLETE ::::::::::::::::::::