~serge-hallyn/ubuntu/raring/libvirt/libvirt-hugepages

« back to all changes in this revision

Viewing changes to .pc/9002-better_default_uri_virsh.patch/tools/Makefile.am

  • Committer: Package Import Robot
  • Author(s): Chuck Short
  • Date: 2012-05-13 15:44:12 UTC
  • mfrom: (1.2.13)
  • Revision ID: package-import@ubuntu.com-20120513154412-fgmn5sxqdzgnzlx3
Tags: 0.9.12-0ubuntu1
* New upstream version:
  * Synchronize with debian packaging:
    - debian/control: Update build depends.
    - debian/libvirt-bin.postrm: Cleanup /var/log/libvirt
      on purge.
    - Bump standards verson (no changes).
    - debian/patches/Don-t-fail-if-we-can-t-setup-avahi.patch: Added
  * Dropped patches:
    - debian/patches/Debianize-libvirt-guests.patch
    - debian/patches/rewrite-lxc-controller-eof-handling-yet-again
    - debian/patches/ubuntu/libnl13.patch
    - debian/patches/ubuntu/fix-lxc-startup-error.patch
    - debian/patches/ubuntu/fix-bridge-fd.patch
    - debian/patches/ubuntu/skip-labelling-network-disks.patch
    - debian/patches/ubuntu/xen-xend-shutdown-detection.patch
    - debian/patches/ubuntu/xen-config-no-vfb-for-hvm.patch
    - debian/patches/debian/Disable-daemon-start-test.patch
    - debian/patches/debian/Disable-gnulib-s-test-nonplocking-pipe.sh.patch
    - debian/patches/ubuntu/9006-default-config-test-case.patch
    - debian/patches/fix-block-migration.patch
    - debian/patches/ubuntu/9022-qemu-unescape-HMP-commands-before-converting-them-to.patch
    - debian/patches/ubuntu/9023-qemu-change-rbd-auth_supported-separation-character-.patch
    - debian/patches/ubuntu/9024-qemu-allow-snapshotting-of-sheepdog-and-rbd-disks.patch
    - debian/patches/9025-qemu-change-rbd-auth_supported-separation-character-.patch
    - debian/patches/ubuntu/arm-gcc-workaround.patch
  * Rediffed:
    - debian/patches/Allow-libvirt-group-to-access-the-socket.patch
    - debian/patches/Disable-failing-virnetsockettest.patch
    - debian/patches/dnsmasq-as-priv-user
    - debian/patches/9002-better_default_uri_virsh.patch
  * debian/control: Add libnl-route-3-dev ass a build depends.
  * debian/patches/libnl3-build-fix.patch: Fix build with libnl3.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
## Copyright (C) 2005-2012 Red Hat, Inc.
 
2
## See COPYING.LIB for the License of this software
 
3
 
 
4
INCLUDES = \
 
5
        -I$(top_builddir)/include -I$(top_srcdir)/include       \
 
6
        -I$(top_builddir)/gnulib/lib -I$(top_srcdir)/gnulib/lib \
 
7
        -I$(top_builddir)/src -I$(top_srcdir)/src               \
 
8
        -I$(top_srcdir)/src/util                                \
 
9
        -I$(top_srcdir)                                         \
 
10
        $(GETTEXT_CPPFLAGS)
 
11
 
 
12
POD2MAN = pod2man -c "Virtualization Support" -r "$(PACKAGE)-$(VERSION)"
 
13
 
 
14
ICON_FILES = \
 
15
        libvirt_win_icon_16x16.ico \
 
16
        libvirt_win_icon_32x32.ico \
 
17
        libvirt_win_icon_48x48.ico \
 
18
        libvirt_win_icon_64x64.ico \
 
19
        virsh_win_icon.rc
 
20
 
 
21
EXTRA_DIST = \
 
22
        $(ICON_FILES)                                   \
 
23
        virt-xml-validate.in                            \
 
24
        virt-pki-validate.in                            \
 
25
        virt-sanlock-cleanup.in                         \
 
26
        virt-sanlock-cleanup.8                          \
 
27
        virsh.pod                                       \
 
28
        libvirt-guests.sysconf
 
29
 
 
30
DISTCLEANFILES =
 
31
 
 
32
bin_SCRIPTS = virt-xml-validate virt-pki-validate
 
33
bin_PROGRAMS = virsh virt-host-validate
 
34
 
 
35
if HAVE_SANLOCK
 
36
sbin_SCRIPTS = virt-sanlock-cleanup
 
37
DISTCLEANFILES += virt-sanlock-cleanup
 
38
endif
 
39
 
 
40
dist_man1_MANS = \
 
41
                virt-host-validate.1 \
 
42
                virt-pki-validate.1 \
 
43
                virt-xml-validate.1 \
 
44
                virsh.1
 
45
if HAVE_SANLOCK
 
46
dist_man8_MANS = virt-sanlock-cleanup.8
 
47
endif
 
48
 
 
49
virt-xml-validate: virt-xml-validate.in Makefile
 
50
        $(AM_V_GEN)sed -e 's,[@]SCHEMADIR@,$(pkgdatadir)/schemas,' < $< > $@ \
 
51
            || (rm $@ && exit 1) && chmod +x $@
 
52
 
 
53
virt-xml-validate.1: virt-xml-validate.in
 
54
        $(AM_V_GEN)$(POD2MAN) $< $(srcdir)/$@
 
55
 
 
56
virt-pki-validate: virt-pki-validate.in Makefile
 
57
        $(AM_V_GEN)sed -e 's,[@]SYSCONFDIR@,$(sysconfdir),' < $< > $@ \
 
58
            || (rm $@ && exit 1) && chmod +x $@
 
59
 
 
60
virt-pki-validate.1: virt-pki-validate.in
 
61
        $(AM_V_GEN)$(POD2MAN) $< $(srcdir)/$@
 
62
 
 
63
virt-host-validate.1: virt-host-validate.c
 
64
        $(AM_V_GEN)$(POD2MAN) $< $(srcdir)/$@
 
65
 
 
66
virt-sanlock-cleanup: virt-sanlock-cleanup.in Makefile
 
67
        $(AM_V_GEN)sed -e 's,[@]SYSCONFDIR@,$(sysconfdir),' \
 
68
            -e 's,[@]LOCALSTATEDIR@,$(localstatedir),' < $< > $@ \
 
69
            || (rm $@ && exit 1) && chmod +x $@
 
70
 
 
71
virt-sanlock-cleanup.8: virt-sanlock-cleanup.in
 
72
        $(AM_V_GEN)$(POD2MAN) $< $(srcdir)/$@
 
73
 
 
74
virt_host_validate_SOURCES = \
 
75
                virt-host-validate.c \
 
76
                virt-host-validate-common.c virt-host-validate-common.h \
 
77
                virt-host-validate-qemu.c virt-host-validate-qemu.h \
 
78
                virt-host-validate-lxc.c virt-host-validate-lxc.h \
 
79
                $(NULL)
 
80
 
 
81
virt_host_validate_LDFLAGS = \
 
82
                $(WARN_LDFLAGS) \
 
83
                $(COVERAGE_LDFLAGS) \
 
84
                $(NULL)
 
85
 
 
86
virt_host_validate_LDADD = \
 
87
                ../src/libvirt.la                               \
 
88
                ../gnulib/lib/libgnu.la                         \
 
89
                $(NULL)
 
90
 
 
91
virt_host_validate_CFLAGS = \
 
92
                $(WARN_CFLAGS)                                  \
 
93
                $(COVERAGE_CFLAGS)                              \
 
94
                $(NULL)
 
95
 
 
96
virsh_SOURCES =                                                 \
 
97
                console.c console.h                             \
 
98
                virsh.c
 
99
 
 
100
virsh_LDFLAGS = $(WARN_LDFLAGS) $(COVERAGE_LDFLAGS)
 
101
virsh_LDADD =                                                   \
 
102
                $(STATIC_BINARIES)                              \
 
103
                $(WARN_CFLAGS)                                  \
 
104
                ../src/libvirt.la                               \
 
105
                ../src/libvirt-qemu.la                          \
 
106
                ../gnulib/lib/libgnu.la                         \
 
107
                $(LIBXML_LIBS)                                  \
 
108
                $(VIRSH_LIBS)
 
109
virsh_CFLAGS =                                                  \
 
110
                $(WARN_CFLAGS)                                  \
 
111
                $(COVERAGE_CFLAGS)                              \
 
112
                $(LIBXML_CFLAGS)                                \
 
113
                $(READLINE_CFLAGS)
 
114
BUILT_SOURCES = virsh-net-edit.c virsh-pool-edit.c
 
115
 
 
116
virsh-net-edit.c: virsh.c Makefile.am
 
117
        $(AM_V_GEN)rm -f $@-tmp && \
 
118
        echo '/* Automatically generated from: $^ */' > $@-tmp && \
 
119
        echo 'static bool' >> $@-tmp && \
 
120
        awk '/^cmdEdit/, /^}/' $< \
 
121
          | sed -e 's/domain/network/g' \
 
122
              -e 's/Domain/Network/g' \
 
123
              -e 's/cmdEdit/cmdNetworkEdit/g' \
 
124
              -e 's/dom/network/g' \
 
125
              -e 's/int flags.*/int flags = 0;/g' \
 
126
        >> $@-tmp && \
 
127
        chmod a-w $@-tmp && \
 
128
        rm -f $@ && \
 
129
        mv $@-tmp $@
 
130
 
 
131
virsh-pool-edit.c: virsh.c Makefile.am
 
132
        $(AM_V_GEN)rm -f $@-tmp && \
 
133
        echo '/* Automatically generated from: $^ */' > $@-tmp && \
 
134
        echo 'static bool' >> $@-tmp && \
 
135
        awk '/^cmdEdit/, /^}/' $< \
 
136
          | sed -e 's/domain/pool/g' \
 
137
              -e 's/vshCommandOptDomain/vshCommandOptPool/g' \
 
138
              -e 's/Domain %s/Pool %s/g' \
 
139
              -e 's/(ctl, cmd, NULL);/(ctl, cmd, "pool", NULL);/' \
 
140
              -e 's/Domain/StoragePool/g' \
 
141
              -e 's/cmdEdit/cmdPoolEdit/g' \
 
142
              -e 's/\(virStoragePoolDefineXML.*\));/\1, 0);/' \
 
143
              -e 's/dom/pool/g' \
 
144
              -e 's/int flags.*/int flags = 0;/g' \
 
145
        >> $@-tmp && \
 
146
        chmod a-w $@-tmp && \
 
147
        rm -f $@ && \
 
148
        mv $@-tmp $@
 
149
 
 
150
 
 
151
if WITH_WIN_ICON
 
152
virsh_LDADD += virsh_win_icon.$(OBJEXT)
 
153
 
 
154
# Before you edit virsh_win_icon.rc, please note the following
 
155
# limitations of the resource file format:
 
156
#
 
157
# (1) '..' is not permitted in the icon filename field.
 
158
# (2) '-' is not permitted in the icon filename field.
 
159
# (3) Comments are not permitted in the file.
 
160
#
 
161
# Windows appears to choose the first <= 32x32 icon it finds
 
162
# in the resource file.  Therefore you should list the available
 
163
# icons from largest to smallest, and make sure that the 32x32
 
164
# icon is the most legible.
 
165
#
 
166
# Windows .ICO is a special MS-only format.  GIMP and other
 
167
# tools can write it.  However there are several variations,
 
168
# and Windows seems to do its own colour quantization.  More
 
169
# information is needed in this area.
 
170
 
 
171
virsh_win_icon.$(OBJEXT): virsh_win_icon.rc
 
172
        $(AM_V_GEN)$(WINDRES) \
 
173
          --input-format rc --input $< \
 
174
          --output-format coff --output $@
 
175
endif
 
176
 
 
177
virsh.1: virsh.pod
 
178
        $(AM_V_GEN)$(POD2MAN) $< $(srcdir)/$@
 
179
 
 
180
install-data-local: install-init install-systemd
 
181
 
 
182
uninstall-local: uninstall-init uninstall-systemd
 
183
 
 
184
install-sysconfig:
 
185
        $(MKDIR_P) $(DESTDIR)$(sysconfdir)/sysconfig
 
186
        $(INSTALL_DATA) $(srcdir)/libvirt-guests.sysconf \
 
187
          $(DESTDIR)$(sysconfdir)/sysconfig/libvirt-guests
 
188
 
 
189
uninstall-sysconfig:
 
190
        rm -f $(DESTDIR)$(sysconfdir)/sysconfig/libvirt-guests
 
191
        rmdir $(DESTDIR)$(sysconfdir)/sysconfig ||:
 
192
 
 
193
EXTRA_DIST += libvirt-guests.init.sh
 
194
 
 
195
install-initscript: libvirt-guests.init
 
196
        $(MKDIR_P) $(DESTDIR)$(sysconfdir)/rc.d/init.d
 
197
        $(INSTALL_SCRIPT) libvirt-guests.init \
 
198
          $(DESTDIR)$(sysconfdir)/rc.d/init.d/libvirt-guests
 
199
 
 
200
uninstall-initscript:
 
201
        rm -f $(DESTDIR)$(sysconfdir)/rc.d/init.d/libvirt-guests
 
202
        rmdir $(DESTDIR)$(sysconfdir)/rc.d/init.d ||:
 
203
 
 
204
 
 
205
if LIBVIRT_INIT_SCRIPT_RED_HAT
 
206
BUILT_SOURCES += libvirt-guests.init
 
207
install-init: install-sysconfig install-initscript
 
208
uninstall-init: uninstall-sysconfig uninstall-initscript
 
209
else
 
210
install-init:
 
211
uninstall-init:
 
212
endif # LIBVIRT_INIT_SCRIPT_RED_HAT
 
213
 
 
214
libvirt-guests.init: libvirt-guests.init.sh $(top_builddir)/config.status
 
215
        $(AM_V_GEN)sed                                  \
 
216
            -e 's!\@PACKAGE\@!$(PACKAGE)!g'             \
 
217
            -e 's!\@bindir\@!$(bindir)!g'               \
 
218
            -e 's!\@localedir\@!$(localedir)!g'         \
 
219
            -e 's!\@localstatedir\@!$(localstatedir)!g' \
 
220
            -e 's!\@sbindir\@!$(sbindir)!g'             \
 
221
            -e 's!\@sysconfdir\@!$(sysconfdir)!g'       \
 
222
            < $< > $@-t &&                              \
 
223
            chmod a+x $@-t &&                           \
 
224
            mv $@-t $@
 
225
 
 
226
 
 
227
 
 
228
EXTRA_DIST += libvirt-guests.service.in
 
229
 
 
230
SYSTEMD_UNIT_DIR = /lib/systemd/system
 
231
 
 
232
if LIBVIRT_INIT_SCRIPT_SYSTEMD
 
233
install-systemd: libvirt-guests.service install-initscript install-sysconfig
 
234
        $(MKDIR_P) $(DESTDIR)$(SYSTEMD_UNIT_DIR)
 
235
        $(INSTALL_SCRIPT) libvirt-guests.service \
 
236
          $(DESTDIR)$(SYSTEMD_UNIT_DIR)/libvirt-guests.service
 
237
 
 
238
uninstall-systemd: uninstall-initscript uninstall-sysconfig
 
239
        rm -f $(DESTDIR)$(SYSTEMD_UNIT_DIR)/libvirt-guests.service
 
240
        rmdir $(DESTDIR)$(SYSTEMD_UNIT_DIR) ||:
 
241
 
 
242
BUILT_SOURCES += libvirt-guests.service
 
243
 
 
244
else
 
245
install-systemd:
 
246
uninstall-systemd:
 
247
endif # LIBVIRT_INIT_SCRIPT_SYSTEMD
 
248
 
 
249
libvirt-guests.service: libvirt-guests.service.in $(top_builddir)/config.status
 
250
        $(AM_V_GEN)sed                                  \
 
251
            -e 's!\@PACKAGE\@!$(PACKAGE)!g'             \
 
252
            -e 's!\@bindir\@!$(bindir)!g'               \
 
253
            -e 's!\@localedir\@!$(localedir)!g'         \
 
254
            -e 's!\@localstatedir\@!$(localstatedir)!g' \
 
255
            -e 's!\@sbindir\@!$(sbindir)!g'             \
 
256
            -e 's!\@sysconfdir\@!$(sysconfdir)!g'       \
 
257
            < $< > $@-t &&                              \
 
258
            chmod a+x $@-t &&                           \
 
259
            mv $@-t $@
 
260
 
 
261
 
 
262
CLEANFILES = $(bin_SCRIPTS)
 
263
CLEANFILES += *.gcov .libs/*.gcda .libs/*.gcno *.gcno *.gcda *.i *.s
 
264
MAINTAINERCLEANFILES = $(dist_man1_MANS)
 
265
 
 
266
DISTCLEANFILES += $(BUILT_SOURCES)