summaryrefslogtreecommitdiff
path: root/debian/rules
blob: 0e8172f82062a10beb131a91c81cd51ee07ed43b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/make -f
%:
	dh $@

override_dh_auto_configure:
	ln mailgraph.pl mailgraph
	cp -f -a mailgraph.cgi mailgraph.cgi.orig
	sed -e 's/^<link rel="stylesheet" href="mailgraph.css" type="text\/css" \/>$/<style type="text\/css\">/' \
	    -e '/<style type="text\/css">/r mailgraph.css' \
	    -e '/<\/head>/i <\/style>' mailgraph.cgi

override_dh_auto_clean:
	rm -f mailgraph
	mv -f mailgraph.cgi.orig mailgraph.cgi
	dh_auto_clean