Revision | 31ddc71ba39f5cb3dca87e6a246a7c18ea37e95e (tree) |
---|---|
Time | 2013-07-12 17:14:45 |
Author | Hiroaki Nakano <nakano.hiroaki@nttc...> |
Commiter | Hiroaki Nakano |
configure.inおよびMakefile.amよりFull Path指定を
排除。prefix等の組み込みconfigure, makeオプションが
反映されるようにした。
その結果、make installでインストールする場合、configure
でオプションを指定しなければすべて/usr/local配下に
インストールされるようになった。
上記修正のうえ、sample.crmおよびmanがrpmでインストールされない
問題を修正した。
Signed-off-by: Hiroaki Nakano <nakano.hiroaki@nttcom.co.jp>
@@ -51,27 +51,27 @@ AC_FUNC_STRFTIME | ||
51 | 51 | AC_CHECK_FUNCS([gethostname localtime_r memset]) |
52 | 52 | |
53 | 53 | # application-specific option |
54 | -if test `uname -m` == "x86_64"; then | |
55 | - AC_SUBST( libdir, [/usr/lib64] ) | |
56 | -else | |
57 | - AC_SUBST( libdir, [/usr/lib] ) | |
58 | - AC_SUBST( CXXFLAGS, -march=i686 ) | |
59 | -fi | |
60 | -AC_SUBST( includedir, [/usr/include] ) | |
54 | +#if test `uname -m` == "x86_64"; then | |
55 | +# AC_SUBST( libdir, [/usr/lib64] ) | |
56 | +#else | |
57 | +# AC_SUBST( libdir, [/usr/lib] ) | |
58 | +# AC_SUBST( CXXFLAGS, -march=i686 ) | |
59 | +#fi | |
60 | +#AC_SUBST( includedir, [${prefix}/include] ) | |
61 | 61 | |
62 | 62 | AC_ARG_WITH( |
63 | 63 | l7vs-moddir, |
64 | 64 | [ --with-l7vs-moddir=DIR l7vs module is to be installed in DIR. |
65 | - [default=LIBDIR/l7vs] ], | |
65 | + [default=${libdir}/l7vs] ], | |
66 | 66 | [ l7vs_moddir="$withval" ], |
67 | 67 | [ l7vs_moddir="${libdir}/l7vs" ] |
68 | 68 | ) |
69 | 69 | |
70 | 70 | AC_ARG_WITH( |
71 | 71 | l7vs-includedir, |
72 | - [ --with-l7vs-includedir=DIR l7vs headerfile is to be installed in DIR. | |
72 | + [ --with-l7vs-includedir=DIR l7vs headerfile is to be installed in DIR. | |
73 | 73 | |
74 | - [default=INCLUDEDIR/l7vs] | |
74 | + [default=${includedir}/l7vs] | |
75 | 75 | ], |
76 | 76 | [ l7vs_includedir="$withval" ], |
77 | 77 | [ l7vs_includedir="${includedir}/l7vs" ] |
@@ -80,9 +80,9 @@ AC_ARG_WITH( | ||
80 | 80 | AC_ARG_WITH( |
81 | 81 | l7vsadm-sockdir, |
82 | 82 | [ --with-l7vsadm-sockdir=DIR l7vsadm sockfile PATH. |
83 | - [default=/var/run/l7vs] ], | |
83 | + [default=${localstatedir}/run/l7vs] ], | |
84 | 84 | [ l7vsadm_sockdir="$withval" ], |
85 | - [ l7vsadm_sockdir="/var/run/l7vs" ] | |
85 | + [ l7vsadm_sockdir="${localstatedir}/run/l7vs" ] | |
86 | 86 | ) |
87 | 87 | |
88 | 88 | AC_ARG_WITH( |
@@ -96,13 +96,13 @@ AC_ARG_WITH( | ||
96 | 96 | AC_ARG_WITH( |
97 | 97 | l7vs-config-dir, |
98 | 98 | [ --with-l7vs-config-dir=DIR l7vs configfile PATH. |
99 | - [default=/etc/l7vs/l7vs.cf] ], | |
99 | + [default=${sysconfdir}/l7vs] ], | |
100 | 100 | [ l7vs_config="$withval" ], |
101 | - [ l7vs_config="/etc/l7vs/l7vs.cf" ] | |
101 | + [ l7vs_config="${sysconfdir}/l7vs" ] | |
102 | 102 | ) |
103 | 103 | |
104 | 104 | AC_SUBST(CC,g++) |
105 | -AC_SUBST(exec_prefix, [/usr] ) | |
105 | +#AC_SUBST(exec_prefix, [/usr] ) | |
106 | 106 | AC_SUBST(l7vsadm_sockdir) |
107 | 107 | AC_SUBST(l7vs_moddir) |
108 | 108 | AC_SUBST(l7vs_includedir) |
@@ -1,12 +1,12 @@ | ||
1 | 1 | AUTOMAKE_OPTIONS = foreign |
2 | 2 | |
3 | 3 | L7VS_CONF_DIR = @l7vs_config@ |
4 | -L7DIRECTORD_CONFDIR = /etc/ha.d/conf | |
5 | -L7VS_SSL_CONFDIR = /etc/l7vs/sslproxy | |
6 | -L7DIRECTORD_LOGROTATEDIR = /etc/logrotate.d | |
4 | +L7DIRECTORD_CONFDIR = @sysconfdir@/ha.d/conf | |
5 | +L7VS_SSL_CONFDIR = @sysconfdir@/l7vs/sslproxy | |
6 | +L7DIRECTORD_LOGROTATEDIR = @sysconfdir@/logrotate.d | |
7 | 7 | |
8 | 8 | install: |
9 | - $(INSTALL) -b -m 644 -D ./l7vs.cf $(L7VS_CONF_DIR) | |
9 | + $(INSTALL) -b -m 644 -D ./l7vs.cf $(L7VS_CONF_DIR)/l7vs.cf | |
10 | 10 | $(INSTALL) -m 644 -D ./l7directord.cf.sample $(L7DIRECTORD_CONFDIR)/l7directord.cf.sample |
11 | 11 | $(INSTALL) -b -m 644 -D ./sslproxy.target.cf $(L7VS_SSL_CONFDIR)/sslproxy.target.cf |
12 | 12 | $(INSTALL) -m 644 -D ./l7directord $(L7DIRECTORD_LOGROTATEDIR)/l7directord |
@@ -1,7 +1,7 @@ | ||
1 | 1 | AUTOMAKE_OPTIONS = foreign |
2 | 2 | |
3 | 3 | UML7_VERSION = @ultramonkeyl7_version@ |
4 | -HB2_TEMPDIR = /usr/share/doc/$(UML7_VERSION)/heartbeat-ra | |
4 | +HB2_TEMPDIR = @prefix@/share/doc/$(UML7_VERSION)/heartbeat-ra | |
5 | 5 | |
6 | 6 | install: |
7 | 7 | $(INSTALL) -b -m 644 -D ./logd.cf $(HB2_TEMPDIR)/logd.cf |
@@ -37,34 +37,34 @@ group grpUltraMonkey \ | ||
37 | 37 | ### Primitive Configuration ### |
38 | 38 | primitive prmVIPcheck ocf:heartbeat:VIPcheck \ |
39 | 39 | params \ |
40 | - target_ip="" \ | |
40 | + target_ip="MODIFY_TARGET_VIP" \ | |
41 | 41 | count="1" \ |
42 | 42 | wait="10" \ |
43 | - op start interval="0s" timeout="90s" on-fail="restart" start_delay="4s“ | |
43 | + op start interval="0s" timeout="90s" on-fail="restart" start_delay="4s" | |
44 | 44 | |
45 | -primitive prmVIP1 ocf:heartbeat:IPaddr2 \ | |
45 | +primitive prmVIP ocf:heartbeat:IPaddr2 \ | |
46 | 46 | params \ |
47 | - ip="" \ | |
48 | - nic="" \ | |
49 | - cidr_netmask="" \ | |
47 | + ip="MODIFY_VIP_IP" \ | |
48 | + nic="MODIFY_VIP_NIC" \ | |
49 | + cidr_netmask="MODIFY_VIP_NETMASK" \ | |
50 | 50 | op start interval="0s" timeout="60s" on-fail="restart" \ |
51 | 51 | op monitor interval="10s" timeout="60s" on-fail="restart" \ |
52 | - op stop interval="0s" timeout="60s" on-fail="fence" | |
52 | + op stop interval="0s" timeout="60s" on-fail="block" | |
53 | 53 | |
54 | 54 | primitive prmL7directord ocf:heartbeat:L7directord \ |
55 | 55 | op start interval="0s" timeout="60s" on-fail="restart" \ |
56 | 56 | op monitor interval="10s" timeout="60s" on-fail="restart" \ |
57 | - op stop interval="0s" timeout="60s" on-fail="fence" | |
57 | + op stop interval="0s" timeout="60s" on-fail="block" | |
58 | 58 | |
59 | 59 | primitive prmL7vsd ocf:heartbeat:L7vsd \ |
60 | 60 | op start interval="0s" timeout="60s" on-fail="restart" \ |
61 | 61 | op monitor interval="10s" timeout="60s" on-fail="restart" \ |
62 | - op stop interval="0s" timeout="60s" on-fail="fence" | |
62 | + op stop interval="0s" timeout="60s" on-fail="block" | |
63 | 63 | |
64 | 64 | primitive prmPingd ocf:pacemaker:pingd \ |
65 | 65 | params \ |
66 | 66 | name="default_ping_set" \ |
67 | - host_list="" \ | |
67 | + host_list="MODIFY_PING_TARGET_IP" \ | |
68 | 68 | multiplier="100" \ |
69 | 69 | op start interval="0s" timeout="60s" on-fail="restart" \ |
70 | 70 | op monitor interval="10s" timeout="60s" on-fail="restart" \ |
@@ -73,7 +73,7 @@ primitive prmPingd ocf:pacemaker:pingd \ | ||
73 | 73 | primitive prmDiskd ocf:pacemaker:diskd \ |
74 | 74 | params \ |
75 | 75 | name="diskcheck_status_internal" \ |
76 | - device="" \ | |
76 | + device="MODIFY_TARGET_DISK_DEV" \ | |
77 | 77 | interval="10" \ |
78 | 78 | op start interval="0s" timeout="60s" on-fail="restart" \ |
79 | 79 | op monitor interval="10s" timeout="60s" on-fail="restart" \ |
@@ -83,8 +83,8 @@ primitive prmDiskd ocf:pacemaker:diskd \ | ||
83 | 83 | # params \ |
84 | 84 | # priority="1" \ |
85 | 85 | # stonith-timeout="40s" \ |
86 | -# hostlist="" \ | |
87 | -# dead_check_target="" \ | |
86 | +# hostlist="MODIFY_PRYMARY_HOST" \ | |
87 | +# dead_check_target="MODIFY_TARGET_IP MODIFY_TARGET_IP ..." \ | |
88 | 88 | # standby_check_command="/usr/sbin/crm_resource -r prmVIP -W | grep -q `hostname`" \ |
89 | 89 | # op start interval="0s" timeout="60s" \ |
90 | 90 | # op monitor interval="10s" timeout="60s" \ |
@@ -92,12 +92,12 @@ primitive prmDiskd ocf:pacemaker:diskd \ | ||
92 | 92 | |
93 | 93 | #primitive prmStonith1-2 stonith:external/ipmi \ |
94 | 94 | # params \ |
95 | -# passwd="" \ | |
96 | -# ipaddr="" \ | |
95 | +# passwd="MODIFY_IPMI_PASSWORD" \ | |
96 | +# ipaddr="MODIFY_IPMI_IP" \ | |
97 | 97 | # priority="2" \ |
98 | -# userid="" \ | |
99 | -# hostname="" \ | |
100 | -# interface="" \ | |
98 | +# userid="MODIFY_IPMI_USER" \ | |
99 | +# hostname="MODIFY_PRYMARY_HOST" \ | |
100 | +# interface="MODIFY_IPMI_INTERFACE" \ | |
101 | 101 | # stonith-timeout="60s" \ |
102 | 102 | # op start interval="0s" timeout="60s" \ |
103 | 103 | # op monitor interval="3600s" timeout="60s" \ |
@@ -107,7 +107,7 @@ primitive prmDiskd ocf:pacemaker:diskd \ | ||
107 | 107 | # params \ |
108 | 108 | # priority="3" \ |
109 | 109 | # stonith-timeout="600s" \ |
110 | -# hostlist="" \ | |
110 | +# hostlist="MODIFY_PRYMARY_HOST" \ | |
111 | 111 | # op start interval="0s" timeout="60s" \ |
112 | 112 | # op monitor interval="3600s" timeout="60s" \ |
113 | 113 | # op stop interval="0s" timeout="60s" |
@@ -116,8 +116,8 @@ primitive prmDiskd ocf:pacemaker:diskd \ | ||
116 | 116 | # params \ |
117 | 117 | # priority="1" \ |
118 | 118 | # stonith-timeout="40s" \ |
119 | -# hostlist="" \ | |
120 | -# dead_check_target="" \ | |
119 | +# hostlist="MODIFY_SECONDARY_HOST" \ | |
120 | +# dead_check_target="MODIFY_TARGET_IP MODIFY_TARGET_IP ..." \ | |
121 | 121 | # standby_check_command="/usr/sbin/crm_resource -r prmVIP -W | grep -q `hostname`" \ |
122 | 122 | # op start interval="0s" timeout="60s" \ |
123 | 123 | # op monitor interval="10s" timeout="60s" \ |
@@ -125,12 +125,12 @@ primitive prmDiskd ocf:pacemaker:diskd \ | ||
125 | 125 | |
126 | 126 | #primitive prmStonith2-2 stonith:external/ipmi \ |
127 | 127 | # params \ |
128 | -# passwd="" \ | |
129 | -# ipaddr="" \ | |
128 | +# passwd="MODIFY_IPMI_PASSWORD" \ | |
129 | +# ipaddr="MODIFY_IPMI_IP" \ | |
130 | 130 | # priority="2" \ |
131 | -# userid="" \ | |
132 | -# hostname="" \ | |
133 | -# interface="" \ | |
131 | +# userid="MODIFY_IPMI_USER" \ | |
132 | +# hostname="MODIFY_SECONDARY_HOST" \ | |
133 | +# interface="MODIFY_IPMI_INTERFACE" \ | |
134 | 134 | # stonith-timeout="60s" \ |
135 | 135 | # op start interval="0s" timeout="60s" \ |
136 | 136 | # op monitor interval="3600s" timeout="60s" \ |
@@ -140,21 +140,21 @@ primitive prmDiskd ocf:pacemaker:diskd \ | ||
140 | 140 | # params \ |
141 | 141 | # priority="3" \ |
142 | 142 | # stonith-timeout="600s" \ |
143 | -# hostlist="" \ | |
143 | +# hostlist="MODIFY_SECONDARY_HOST" \ | |
144 | 144 | # op start interval="0s" timeout="60s" \ |
145 | 145 | # op monitor interval="3600s" timeout="60s" \ |
146 | 146 | # op stop interval="0s" timeout="60s" |
147 | 147 | |
148 | 148 | ### Resource Location ### |
149 | 149 | location rsc_location-grpUltraMonkey-1 grpUltraMonkey \ |
150 | - rule 200: #uname eq \ | |
151 | - rule 100: #uname eq \ | |
150 | + rule 200: #uname eq MODIFY_PRYMARY_HOST \ | |
151 | + rule 100: #uname eq MODIFY_SECONDARY_HOST \ | |
152 | 152 | rule -INFINITY: not_defined default_ping_set or default_ping_set lt 100 \ |
153 | 153 | rule -INFINITY: not_defined diskcheck_status_internal or diskcheck_status_internal eq ERROR |
154 | 154 | #location rsc_location-grpStonith1-2 grpStonith1 \ |
155 | -# rule -INFINITY: #uname eq | |
155 | +# rule -INFINITY: #uname eq MODIFY_PRYMARY_HOST | |
156 | 156 | #location rsc_location-grpStonith2-3 grpStonith2 \ |
157 | -# rule -INFINITY: #uname eq | |
157 | +# rule -INFINITY: #uname eq MODIFY_SECONDARY_HOST | |
158 | 158 | |
159 | 159 | ### Resource Colocation ### |
160 | 160 | colocation rsc_colocation-grpUltraMonkey-clnPingd-1 INFINITY: grpUltraMonkey clnPingd |
@@ -1,7 +1,7 @@ | ||
1 | 1 | AUTOMAKE_OPTIONS = foreign |
2 | 2 | |
3 | 3 | UML7_VERSION = @ultramonkeyl7_version@ |
4 | -L7VS_SNMP_MIBSDIR= /usr/share/doc/$(UML7_VERSION)/mibs | |
4 | +L7VS_SNMP_MIBSDIR= @prefix@/share/doc/$(UML7_VERSION)/mibs | |
5 | 5 | |
6 | 6 | install: |
7 | 7 | $(INSTALL) -b -m 644 -D ./ULTRAMONKEY-L7-MIB.txt $(L7VS_SNMP_MIBSDIR)/ULTRAMONKEY-L7-MIB.txt |
@@ -1,6 +1,6 @@ | ||
1 | 1 | AUTOMAKE_OPTIONS = foreign |
2 | 2 | |
3 | -L7VS_SSL_CONFDIR = /etc/l7vs/sslproxy | |
3 | +L7VS_SSL_CONFDIR = @sysconfdir@/l7vs/sslproxy | |
4 | 4 | |
5 | 5 | install: |
6 | 6 | $(INSTALL) -b -m 644 -D ./root.pem $(L7VS_SSL_CONFDIR)/root.pem |
@@ -1,7 +1,7 @@ | ||
1 | 1 | AUTOMAKE_OPTIONS = foreign |
2 | 2 | |
3 | 3 | SBINDIR = @sbindir@ |
4 | -RCDIR = /etc/init.d | |
4 | +RCDIR = @sysconfdir@/init.d | |
5 | 5 | |
6 | 6 | install: |
7 | 7 | $(INSTALL) -m 755 -D ./l7directord $(SBINDIR)/l7directord |
@@ -1,4 +1,4 @@ | ||
1 | 1 | AUTOMAKE_OPTIONS = foreign |
2 | 2 | |
3 | 3 | install: |
4 | - $(INSTALL) -m 755 -D ./l7vsd /etc/init.d/l7vsd | |
4 | + $(INSTALL) -m 755 -D ./l7vsd @sysconfdir@/init.d/l7vsd |