initial import
[fence-agents-pve.git] / debian / rules
1 #!/usr/bin/make -f
2
3 # Uncomment this to turn on verbose mode.
4 #export DH_VERBOSE=1
5
6 # This has to be exported to make some magic below work.
7 export DH_OPTIONS
8
9 AGENTS=         \
10 alom            \
11 apc             \
12 apc_snmp        \
13 baytech         \
14 bladecenter     \
15 brocade         \
16 bullpap         \
17 cisco_mds       \
18 cisco_ucs       \
19 cpint           \
20 drac            \
21 drac5           \
22 eaton_snmp      \
23 egenera         \
24 eps             \
25 ibmblade        \
26 ifmib           \
27 ilo             \
28 ilo_mp          \
29 intelmodular    \
30 ipmilan         \
31 ldom            \
32 lib             \
33 lpar            \
34 manual          \
35 mcdata          \
36 node_assassin   \
37 nss_wrapper     \
38 rackswitch      \
39 rsa             \
40 rsb             \
41 sanbox2         \
42 scsi            \
43 vixel           \
44 wti             \
45 xcat            \
46 zvm             
47
48 DESTDIR=debian/fence-agents-pve/
49
50 %:
51         dh $@ 
52
53 override_dh_auto_configure:
54         ./configure                                             \
55                 --prefix=/usr                                   \
56                 --localstatedir=/var                            \
57                 --sysconfdir=/etc                               \
58                 --docdir=/usr/share/doc/fence-agents-pve        \
59                 --with-agents="${AGENTS}"
60
61
62 override_dh_install:
63         dh_install
64         rmdir ${DESTDIR}/var/run/cluster
65         rmdir ${DESTDIR}/var/run
66         rm ${DESTDIR}/usr/share/doc/fence-agents-pve/COPYING.applications       
67         rm ${DESTDIR}/usr/share/doc/fence-agents-pve/COPYING.libraries
68         rm ${DESTDIR}/usr/share/doc/fence-agents-pve/README.licence
69         rm ${DESTDIR}/usr/share/doc/fence-agents-pve/COPYRIGHT