Revision | 24ff53c5bd698c5e68e4ab663b1081540e494df7 (tree) |
---|---|
Time | 2013-07-31 11:43:20 |
Author | Hiroaki Nakano <nakano.hiroaki@nttc...> |
Commiter | Hiroaki Nakano |
#31802 l7vs.cfが読み込めずにFATALエラーになる
rpmbuildエラー対処
@@ -50,15 +50,6 @@ AC_FUNC_MKTIME | ||
50 | 50 | AC_FUNC_STRFTIME |
51 | 51 | AC_CHECK_FUNCS([gethostname localtime_r memset]) |
52 | 52 | |
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, [${prefix}/include] ) | |
61 | - | |
62 | 53 | AC_ARG_WITH( |
63 | 54 | l7vs-moddir, |
64 | 55 | [ --with-l7vs-moddir=DIR l7vs module is to be installed in DIR. |
@@ -102,7 +93,6 @@ AC_ARG_WITH( | ||
102 | 93 | ) |
103 | 94 | |
104 | 95 | AC_SUBST(CC,g++) |
105 | -#AC_SUBST(exec_prefix, [/usr] ) | |
106 | 96 | AC_SUBST(l7vsadm_sockdir) |
107 | 97 | AC_SUBST(l7vs_moddir) |
108 | 98 | AC_SUBST(l7vs_includedir) |
@@ -1,9 +1,9 @@ | ||
1 | 1 | AUTOMAKE_OPTIONS = foreign |
2 | 2 | |
3 | 3 | L7VS_CONF_DIR = @l7vs_config@ |
4 | -L7DIRECTORD_CONFDIR = @sysconfdir@/ha.d/conf | |
5 | -L7VS_SSL_CONFDIR = @sysconfdir@/l7vs/sslproxy | |
6 | -L7DIRECTORD_LOGROTATEDIR = @sysconfdir@/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 | 9 | $(INSTALL) -b -m 644 -D ./l7vs.cf $(L7VS_CONF_DIR)/l7vs.cf |
@@ -1,7 +1,7 @@ | ||
1 | 1 | AUTOMAKE_OPTIONS = foreign |
2 | 2 | |
3 | 3 | UML7_VERSION = @ultramonkeyl7_version@ |
4 | -HB2_TEMPDIR = @prefix@/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 |
@@ -1,7 +1,7 @@ | ||
1 | 1 | AUTOMAKE_OPTIONS = foreign |
2 | 2 | |
3 | 3 | UML7_VERSION = @ultramonkeyl7_version@ |
4 | -L7VS_SNMP_MIBSDIR= @prefix@/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,7 +1,7 @@ | ||
1 | 1 | AUTOMAKE_OPTIONS = foreign |
2 | 2 | |
3 | 3 | UML7_VERSION = @ultramonkeyl7_version@ |
4 | -MODDEV_TEMPDIR = @prefix@/share/doc/${UML7_VERSION}/moduledevel | |
4 | +MODDEV_TEMPDIR = ${prefix}/share/doc/${UML7_VERSION}/moduledevel | |
5 | 5 | |
6 | 6 | install: |
7 | 7 | install -c -m 644 -D ./README ${MODDEV_TEMPDIR}/sample/protocol/README |
@@ -1,7 +1,7 @@ | ||
1 | 1 | AUTOMAKE_OPTIONS = foreign |
2 | 2 | |
3 | 3 | UML7_VERSION = @ultramonkeyl7_version@ |
4 | -MODDEV_TEMPDIR = @prefix@/share/doc/${UML7_VERSION}/moduledevel | |
4 | +MODDEV_TEMPDIR = ${prefix}/share/doc/${UML7_VERSION}/moduledevel | |
5 | 5 | |
6 | 6 | install: |
7 | 7 | install -c -m 644 -D ./README ${MODDEV_TEMPDIR}/sample/schedule/README |
@@ -1,6 +1,6 @@ | ||
1 | 1 | AUTOMAKE_OPTIONS = foreign |
2 | 2 | |
3 | -L7VS_SSL_CONFDIR = @sysconfdir@/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,9 +1,8 @@ | ||
1 | 1 | AUTOMAKE_OPTIONS = foreign |
2 | 2 | |
3 | 3 | SBINDIR = @sbindir@ |
4 | -RCDIR = @sysconfdir@/init.d | |
5 | 4 | |
6 | 5 | install: |
7 | 6 | $(INSTALL) -m 755 -D ./l7directord $(SBINDIR)/l7directord |
8 | - $(INSTALL) -m 755 -D ./init.d/l7directord $(RCDIR)/l7directord | |
7 | + $(INSTALL) -m 755 -D ./init.d/l7directord ${sysconfdir}/init.d/l7directord | |
9 | 8 |
@@ -1,4 +1,4 @@ | ||
1 | 1 | AUTOMAKE_OPTIONS = foreign |
2 | 2 | |
3 | 3 | install: |
4 | - $(INSTALL) -m 755 -D ./l7vsd @sysconfdir@/init.d/l7vsd | |
4 | + $(INSTALL) -m 755 -D ./l7vsd ${sysconfdir}/init.d/l7vsd |
@@ -6,7 +6,7 @@ noinst_LIBRARIES = \ | ||
6 | 6 | libl7vsd_logger.a \ |
7 | 7 | libl7vsadm_logger.a |
8 | 8 | |
9 | -PARAMETER_FILE = @l7vs_config@ | |
9 | +PARAMETER_FILE = @l7vs_config@/l7vs.cf | |
10 | 10 | |
11 | 11 | libl7vsd_parameter_a_SOURCES = \ |
12 | 12 | ../include/parameter_enum.h \ |
@@ -48,14 +48,11 @@ for UltraMonkeyl7's module. | ||
48 | 48 | %setup -q |
49 | 49 | |
50 | 50 | %build |
51 | -%configure \ | |
52 | - --prefix=${RPM_BUILD_ROOT}%{_prefix} \ | |
53 | - --sbindir=${RPM_BUILD_ROOT}%{_sbindir} \ | |
54 | - --sysconfdir=${RPM_BUILD_ROOT}%{_sysconfdir} \ | |
55 | - --localstatedir=${RPM_BUILD_ROOT}%{_localstatedir} \ | |
56 | - --mandir=${RPM_BUILD_ROOT}%{_mandir} \ | |
57 | - --includedir=${RPM_BUILD_ROOT}%{_includedir} \ | |
58 | - --libdir=${RPM_BUILD_ROOT}%{_libdir} | |
51 | +./configure \ | |
52 | + --prefix=%{_prefix} \ | |
53 | + --sysconfdir=%{_sysconfdir} \ | |
54 | + --localstatedir=%{_localstatedir} \ | |
55 | + --libdir=%{_libdir} | |
59 | 56 | |
60 | 57 | make %{?_smp_mflags} |
61 | 58 |
@@ -76,7 +73,9 @@ mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man8 | ||
76 | 73 | mkdir -p ${RPM_BUILD_ROOT}%{moduledevel_tempdir} |
77 | 74 | mkdir -p ${RPM_BUILD_ROOT}%{_includedir} |
78 | 75 | |
79 | -make install | |
76 | +%makeinstall \ | |
77 | + L7VS_CONF_DIR=${RPM_BUILD_ROOT}%{_sysconfdir}/l7vs \ | |
78 | + L7VS_MODDIR=${RPM_BUILD_ROOT}%{l7vs_moddir} | |
80 | 79 | |
81 | 80 | %clean |
82 | 81 | rm -rf $RPM_BUILD_ROOT |