debian: Add support for GRE-over-IPsec
[sliver-openvswitch.git] / debian / automake.mk
1 EXTRA_DIST += \
2         debian/changelog \
3         debian/compat \
4         debian/control \
5         debian/control.modules.in \
6         debian/copyright \
7         debian/copyright.in \
8         debian/corekeeper.cron.daily \
9         debian/corekeeper.init \
10         debian/corekeeper.override \
11         debian/dirs \
12         debian/openvswitch-common.dirs \
13         debian/openvswitch-common.install \
14         debian/openvswitch-common.manpages \
15         debian/openvswitch-controller.README.Debian \
16         debian/openvswitch-controller.default \
17         debian/openvswitch-controller.dirs \
18         debian/openvswitch-controller.init \
19         debian/openvswitch-controller.install \
20         debian/openvswitch-controller.manpages \
21         debian/openvswitch-controller.postinst \
22         debian/openvswitch-datapath-module-_KVERS_.postinst.modules.in \
23         debian/openvswitch-datapath-source.README.Debian \
24         debian/openvswitch-datapath-source.copyright \
25         debian/openvswitch-datapath-source.dirs \
26         debian/openvswitch-datapath-source.install \
27         debian/openvswitch-ipsec.dirs \
28         debian/openvswitch-ipsec.init \
29         debian/openvswitch-ipsec.install \
30         debian/openvswitch-pki-server.apache2 \
31         debian/openvswitch-pki-server.dirs \
32         debian/openvswitch-pki-server.install \
33         debian/openvswitch-pki-server.postinst \
34         debian/openvswitch-pki.postinst \
35         debian/openvswitch-switch.README.Debian \
36         debian/openvswitch-switch.dirs \
37         debian/openvswitch-switch.init \
38         debian/openvswitch-switch.install \
39         debian/openvswitch-switch.logrotate \
40         debian/openvswitch-switch.manpages \
41         debian/openvswitch-switch.postinst \
42         debian/openvswitch-switch.postrm \
43         debian/openvswitch-switch.template \
44         debian/ovs-bugtool \
45         debian/ovs-monitor-ipsec \
46         debian/python-openvswitch.dirs \
47         debian/python-openvswitch.install \
48         debian/rules \
49         debian/rules.modules
50
51 check-debian-changelog-version:
52         @if $(FGREP) '($(VERSION))' $(srcdir)/debian/changelog >/dev/null; \
53         then                                                               \
54           :;                                                               \
55         else                                                               \
56           echo "Update debian/changelog to mention version $(VERSION)";    \
57           exit 1;                                                          \
58         fi
59 ALL_LOCAL += check-debian-changelog-version
60 DIST_HOOKS += check-debian-changelog-version
61
62 $(srcdir)/debian/copyright: AUTHORS debian/copyright.in
63         { sed -n -e '/%AUTHORS%/q' -e p < $(srcdir)/debian/copyright.in;   \
64           sed '1,/^$$/d' $(srcdir)/AUTHORS |                               \
65                 sed -n -e '/^$$/q' -e 's/^/  /p';                          \
66           sed -e '1,/%AUTHORS%/d' $(srcdir)/debian/copyright.in;           \
67         } > $@
68
69 DISTCLEANFILES += debian/copyright