FAQ: Mention hairpinning under actions=in_port.
[sliver-openvswitch.git] / rhel / automake.mk
1 # Copyright (C) 2009, 2010, 2011, 2012 Nicira, Inc.
2 #
3 # Copying and distribution of this file, with or without modification,
4 # are permitted in any medium without royalty provided the copyright
5 # notice and this notice are preserved.  This file is offered as-is,
6 # without warranty of any kind.
7
8 EXTRA_DIST += \
9         rhel/README.RHEL \
10         rhel/automake.mk \
11         rhel/etc_init.d_openvswitch \
12         rhel/etc_logrotate.d_openvswitch \
13         rhel/etc_sysconfig_network-scripts_ifdown-ovs \
14         rhel/etc_sysconfig_network-scripts_ifup-ovs \
15         rhel/openvswitch-kmod-rhel6.spec \
16         rhel/openvswitch-kmod-rhel6.spec.in \
17         rhel/openvswitch-kmod.files \
18         rhel/openvswitch-kmod-fedora.spec \
19         rhel/openvswitch-kmod-fedora.spec.in \
20         rhel/openvswitch.spec \
21         rhel/openvswitch.spec.in \
22         rhel/openvswitch-fedora.spec \
23         rhel/openvswitch-fedora.spec.in \
24         rhel/usr_share_openvswitch_scripts_sysconfig.template \
25         rhel/usr_share_openvswitch_scripts_systemd_sysconfig.template \
26         rhel/usr_lib_systemd_system_openvswitch.service \
27         rhel/usr_lib_systemd_system_openvswitch-nonetwork.service
28
29 update_rhel_spec = \
30   ($(ro_shell) && sed -e 's,[@]VERSION[@],$(VERSION),g') \
31     < $(srcdir)/rhel/$(@F).in > $(@F).tmp || exit 1; \
32   if cmp -s $(@F).tmp $@; then touch $@; rm $(@F).tmp; else mv $(@F).tmp $@; fi
33
34 $(srcdir)/rhel/openvswitch-kmod-rhel6.spec: rhel/openvswitch-kmod-rhel6.spec.in $(top_builddir)/config.status
35         $(update_rhel_spec)
36
37 $(srcdir)/rhel/openvswitch-kmod-fedora.spec: rhel/openvswitch-kmod-fedora.spec.in $(top_builddir)/config.status
38         $(update_rhel_spec)
39
40 $(srcdir)/rhel/openvswitch.spec: rhel/openvswitch.spec.in $(top_builddir)/config.status
41         $(update_rhel_spec)
42
43 $(srcdir)/rhel/openvswitch-fedora.spec: rhel/openvswitch-fedora.spec.in $(top_builddir)/config.status
44         $(update_rhel_spec)