1
#! /bin/sh /usr/share/dpatch/dpatch-run
2
## 15_clean_makefile.dpatch by Niko Tyni <ntyni@iki.fi>
4
## All lines beginning with `## DP:' are a description of the patch.
5
## DP: remove unneeded and potentially unsecure include paths
8
diff -urNad smokeping-2.0.9~/Makefile smokeping-2.0.9/Makefile
9
--- smokeping-2.0.9~/Makefile 2006-07-14 14:17:47.000000000 +0300
10
+++ smokeping-2.0.9/Makefile 2006-10-25 23:17:47.000000000 +0300
12
# pod2html apparently needs to be in the target directory to get L<> links right
13
POD2HTML= cd $(dir $@); top="$(shell echo $(dir $@)|sed -e 's,doc/,,' -e 's,[^/]*/,../,g' -e 's,/$$,,')"; top=$${top:-.}; pod2html --infile=$(CURDIR)/$< --noindex --htmlroot=. --podroot=. --podpath=$${top} --title=$* | $${top}/../util/fix-pod2html.pl > $(notdir $@)
14
# we go to this trouble to ensure that MAKEPOD only uses modules in the installation directory
15
-MAKEPOD= perl -I/home/oetiker/lib/fake-perl/ -Ilib -I/usr/pack/rrdtool-1.2svn-to/lib/perl -mSmokeping -e 'Smokeping::main()' -- --makepod
16
-GENEX= perl -I/home/oetiker/lib/fake-perl/ -Ilib -I/usr/pack/rrdtool-1.2svn-to/lib/perl -mSmokeping -e 'Smokeping::main()' -- --gen-examples
17
+MAKEPOD= perl -Ilib -mSmokeping -e 'Smokeping::main()' -- --makepod
18
+GENEX= perl -Ilib -mSmokeping -e 'Smokeping::main()' -- --gen-examples
21
$(POD2MAN) --section 7 > $@