• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Révision24ff53c5bd698c5e68e4ab663b1081540e494df7 (tree)
l'heure2013-07-31 11:43:20
AuteurHiroaki Nakano <nakano.hiroaki@nttc...>
CommiterHiroaki Nakano

Message de Log

#31802 l7vs.cfが読み込めずにFATALエラーになる

l7vs.cfが指定のディレクトリに存在するにも関わらず、
/etc/init.d/l7vsd startを行うとFATALエラーになる。
ディレクトリ名を設定ファイルとして読み込むようになっていたので、
設定ファイル名 l7vs.cf を Makefile.am で補完した。

rpmbuildエラー対処

Change Summary

Modification

--- a/configure.in
+++ b/configure.in
@@ -50,15 +50,6 @@ AC_FUNC_MKTIME
5050 AC_FUNC_STRFTIME
5151 AC_CHECK_FUNCS([gethostname localtime_r memset])
5252
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-
6253 AC_ARG_WITH(
6354 l7vs-moddir,
6455 [ --with-l7vs-moddir=DIR l7vs module is to be installed in DIR.
@@ -102,7 +93,6 @@ AC_ARG_WITH(
10293 )
10394
10495 AC_SUBST(CC,g++)
105-#AC_SUBST(exec_prefix, [/usr] )
10696 AC_SUBST(l7vsadm_sockdir)
10797 AC_SUBST(l7vs_moddir)
10898 AC_SUBST(l7vs_includedir)
--- a/doc/conf/Makefile.am
+++ b/doc/conf/Makefile.am
@@ -1,9 +1,9 @@
11 AUTOMAKE_OPTIONS = foreign
22
33 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
77
88 install:
99 $(INSTALL) -b -m 644 -D ./l7vs.cf $(L7VS_CONF_DIR)/l7vs.cf
--- a/doc/heartbeat-ra/Makefile.am
+++ b/doc/heartbeat-ra/Makefile.am
@@ -1,7 +1,7 @@
11 AUTOMAKE_OPTIONS = foreign
22
33 UML7_VERSION = @ultramonkeyl7_version@
4-HB2_TEMPDIR = @prefix@/share/doc/$(UML7_VERSION)/heartbeat-ra
4+HB2_TEMPDIR = ${prefix}/share/doc/$(UML7_VERSION)/heartbeat-ra
55
66 install:
77 $(INSTALL) -b -m 644 -D ./logd.cf $(HB2_TEMPDIR)/logd.cf
--- a/doc/mibs/Makefile.am
+++ b/doc/mibs/Makefile.am
@@ -1,7 +1,7 @@
11 AUTOMAKE_OPTIONS = foreign
22
33 UML7_VERSION = @ultramonkeyl7_version@
4-L7VS_SNMP_MIBSDIR= @prefix@/share/doc/$(UML7_VERSION)/mibs
4+L7VS_SNMP_MIBSDIR= ${prefix}/share/doc/$(UML7_VERSION)/mibs
55
66 install:
77 $(INSTALL) -b -m 644 -D ./ULTRAMONKEY-L7-MIB.txt $(L7VS_SNMP_MIBSDIR)/ULTRAMONKEY-L7-MIB.txt
--- a/doc/moduledevel/sample/protocol/Makefile.am
+++ b/doc/moduledevel/sample/protocol/Makefile.am
@@ -1,7 +1,7 @@
11 AUTOMAKE_OPTIONS = foreign
22
33 UML7_VERSION = @ultramonkeyl7_version@
4-MODDEV_TEMPDIR = @prefix@/share/doc/${UML7_VERSION}/moduledevel
4+MODDEV_TEMPDIR = ${prefix}/share/doc/${UML7_VERSION}/moduledevel
55
66 install:
77 install -c -m 644 -D ./README ${MODDEV_TEMPDIR}/sample/protocol/README
--- a/doc/moduledevel/sample/schedule/Makefile.am
+++ b/doc/moduledevel/sample/schedule/Makefile.am
@@ -1,7 +1,7 @@
11 AUTOMAKE_OPTIONS = foreign
22
33 UML7_VERSION = @ultramonkeyl7_version@
4-MODDEV_TEMPDIR = @prefix@/share/doc/${UML7_VERSION}/moduledevel
4+MODDEV_TEMPDIR = ${prefix}/share/doc/${UML7_VERSION}/moduledevel
55
66 install:
77 install -c -m 644 -D ./README ${MODDEV_TEMPDIR}/sample/schedule/README
--- a/doc/sslfiles/Makefile.am
+++ b/doc/sslfiles/Makefile.am
@@ -1,6 +1,6 @@
11 AUTOMAKE_OPTIONS = foreign
22
3-L7VS_SSL_CONFDIR = @sysconfdir@/l7vs/sslproxy
3+L7VS_SSL_CONFDIR = ${sysconfdir}/l7vs/sslproxy
44
55 install:
66 $(INSTALL) -b -m 644 -D ./root.pem $(L7VS_SSL_CONFDIR)/root.pem
--- a/l7directord/Makefile.am
+++ b/l7directord/Makefile.am
@@ -1,9 +1,8 @@
11 AUTOMAKE_OPTIONS = foreign
22
33 SBINDIR = @sbindir@
4-RCDIR = @sysconfdir@/init.d
54
65 install:
76 $(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
98
--- a/l7vsd/init.d/Makefile.am
+++ b/l7vsd/init.d/Makefile.am
@@ -1,4 +1,4 @@
11 AUTOMAKE_OPTIONS = foreign
22
33 install:
4- $(INSTALL) -m 755 -D ./l7vsd @sysconfdir@/init.d/l7vsd
4+ $(INSTALL) -m 755 -D ./l7vsd ${sysconfdir}/init.d/l7vsd
--- a/l7vsd/src/Makefile.am
+++ b/l7vsd/src/Makefile.am
@@ -6,7 +6,7 @@ noinst_LIBRARIES = \
66 libl7vsd_logger.a \
77 libl7vsadm_logger.a
88
9-PARAMETER_FILE = @l7vs_config@
9+PARAMETER_FILE = @l7vs_config@/l7vs.cf
1010
1111 libl7vsd_parameter_a_SOURCES = \
1212 ../include/parameter_enum.h \
--- a/ultramonkeyl7.spec
+++ b/ultramonkeyl7.spec
@@ -48,14 +48,11 @@ for UltraMonkeyl7's module.
4848 %setup -q
4949
5050 %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}
5956
6057 make %{?_smp_mflags}
6158
@@ -76,7 +73,9 @@ mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man8
7673 mkdir -p ${RPM_BUILD_ROOT}%{moduledevel_tempdir}
7774 mkdir -p ${RPM_BUILD_ROOT}%{_includedir}
7875
79-make install
76+%makeinstall \
77+ L7VS_CONF_DIR=${RPM_BUILD_ROOT}%{_sysconfdir}/l7vs \
78+ L7VS_MODDIR=${RPM_BUILD_ROOT}%{l7vs_moddir}
8079
8180 %clean
8281 rm -rf $RPM_BUILD_ROOT