Skip to content
Snippets Groups Projects
Commit ed2748c6 authored by Robert Read's avatar Robert Read
Browse files

* change --with-portalslib to require the full path and also use the

  --with-portals arg as the base dir for the default
* remove old config scripts and put examples in /usr/lib/lustre/examples
parent cdbad74d
No related branches found
No related tags found
No related merge requests found
...@@ -54,10 +54,13 @@ AC_ARG_ENABLE(portalsdir, [ --enable-portalsdir=[path] (deprecated) set path to ...@@ -54,10 +54,13 @@ AC_ARG_ENABLE(portalsdir, [ --enable-portalsdir=[path] (deprecated) set path to
PORTALS=$enable_portalsdir PORTALS=$enable_portalsdir
AC_SUBST(PORTALS) AC_SUBST(PORTALS)
portalslib_def='$(top_srcdir)/../portals'
AC_ARG_WITH(portalslib, [ --with-portalslib=[path] set path to Portals library (default=../portals/linux/utils)], enable_portalslib=$withval) AC_ARG_WITH(portalslib, [ --with-portalslib=[path] set path to Portals library (default=../portals/linux/utils)], enable_portalslib=$withval)
AC_ARG_ENABLE(portalslib, [ --enable-portalslib=[path] (deprecated) set path to Portals lib (default=../portals/linux/utils)],, enable_portalslib=$portalslib_def) AC_ARG_ENABLE(portalslib, [ --enable-portalslib=[path] (deprecated) set path to Portals lib (default=../portals/linux/utils)],, enable_portalslib='')
PORTALSLIB=$enable_portalslib/linux/utils if test -z "$enable_portalslib"; then
PORTALSLIB=${PORTALS}/linux/utils
else
PORTALSLIB=${enable_portalslib}
fi
AC_SUBST(PORTALSLIB) AC_SUBST(PORTALSLIB)
AC_MSG_CHECKING(if make dep has been run in kernel source) AC_MSG_CHECKING(if make dep has been run in kernel source)
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
%define kversion @RELEASE@ %define kversion @RELEASE@
%define linuxdir @LINUX@ %define linuxdir @LINUX@
%define portalsdir @PORTALS@ %define portalsdir @PORTALS@
%define portalslibdir @PORTALSLIB@
Release: 0208282230chaos Release: 0208282230chaos
Summary: Lustre Lite File System Summary: Lustre Lite File System
...@@ -49,7 +50,7 @@ Documentation and sample configuration files for Lustre ...@@ -49,7 +50,7 @@ Documentation and sample configuration files for Lustre
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
# Set an explicit path to our Linux tree, if we can. # Set an explicit path to our Linux tree, if we can.
./configure --enable-linuxdir='%{linuxdir}' --enable-portalsdir='%{portalsdir}' ./configure --with-linux='%{linuxdir}' --with-portals='%{portalsdir}' --with-portalslib='%{portalslibdir}'
make make
%install %install
...@@ -65,11 +66,12 @@ make distdir distdir=lustre-source/lustre-%{version} ...@@ -65,11 +66,12 @@ make distdir distdir=lustre-source/lustre-%{version}
%attr(-, root, root) /usr/sbin/lmc %attr(-, root, root) /usr/sbin/lmc
%attr(-, root, root) /usr/sbin/lctl %attr(-, root, root) /usr/sbin/lctl
%attr(-, root, root) /usr/sbin/lconf %attr(-, root, root) /usr/sbin/lconf
%attr(-, root, root) /usr/sbin/llsetup.sh %attr(-, root, root) /usr/lib/lustre/examples/llmount.sh
%attr(-, root, root) /usr/sbin/llrsetup.sh %attr(-, root, root) /usr/lib/lustre/examples/llmountcleanup.sh
%attr(-, root, root) /usr/sbin/llcleanup.sh %attr(-, root, root) /usr/lib/lustre/examples/llecho.sh
%attr(-, root, root) /lib/lustre/common.sh %attr(-, root, root) /usr/lib/lustre/examples/local.sh
%attr(-, root, root) /etc/lustre/lustre.cfg %attr(-, root, root) /usr/lib/lustre/examples/uml.sh
%attr(-, root, root) /usr/lib/lustre/examples/lov.sh
%attr(-, root, root) /etc/init.d/lustre %attr(-, root, root) /etc/init.d/lustre
%files -n lustre-doc %files -n lustre-doc
......
...@@ -4,25 +4,23 @@ CPPFLAGS = -I. -I$(PORTALS)/include -I$(top_srcdir)/include -D_LARGEFILE64_SOURC ...@@ -4,25 +4,23 @@ CPPFLAGS = -I. -I$(PORTALS)/include -I$(top_srcdir)/include -D_LARGEFILE64_SOURC
CFLAGS := -g -Wall CFLAGS := -g -Wall
# LDADD = -lldap # LDADD = -lldap
# LDADD := -lreadline -ltermcap # -lefence # LDADD := -lreadline -ltermcap # -lefence
pkglibdir = @libdir@/$(PACKAGE) EXTRA_DIST = $(pkgexample_SCRIPTS) $(noinst_SCRIPTS) $(noinst_DATA) \
pkgcfgdir = @sysconfdir@/$(PACKAGE)
EXTRA_DIST = $(sbin_SCRIPTS) $(noinst_SCRIPTS) $(noinst_DATA) \
common.sh lustre.cfg \ common.sh lustre.cfg \
client-echo.cfg elan-server.cfg net-client.cfg obdecho.cfg \ client-echo.cfg elan-server.cfg net-client.cfg obdecho.cfg \
client-mount.cfg ldlm.cfg net-local.cfg obdfilter.cfg \ client-mount.cfg ldlm.cfg net-local.cfg obdfilter.cfg \
client-mount2.cfg lustre.cfg net-server.cfg \ client-mount2.cfg lustre.cfg net-server.cfg \
elan-client.cfg mds.cfg trivial.sh elan-client.cfg mds.cfg trivial.sh
sbin_SCRIPTS = llsetup.sh llrsetup.sh llcleanup.sh pkgexampledir = '${exec_prefix}/usr/lib/$(PACKAGE)/examples'
noinst_DATA = ext2_10000.gz ext2_25000.gz ext3_10000.gz lov.xml pkgexample_SCRIPTS = llmount.sh llmountcleanup.sh llecho.sh local.sh uml.sh lov.sh
noinst_SCRIPTS = llsetup.sh llrsetup.sh llcleanup.sh
noinst_DATA = ext2_10000.gz ext2_25000.gz ext3_10000.gz lov.xml lustre.cfg
noinst_SCRIPTS = fs.sh intent-test.sh intent-test2.sh leak_finder.pl \ noinst_SCRIPTS = fs.sh intent-test.sh intent-test2.sh leak_finder.pl \
lldlm.sh llecho.sh llext3.sh llmodules.sh llmount-client.sh \ lldlm.sh llecho.sh llext3.sh llmodules.sh llmount-client.sh \
llmount-server.sh llmount.sh llmountcleanup.sh llrext3.sh \ llmount-server.sh llmount.sh llmountcleanup.sh llrext3.sh \
llrmount.sh llsimple.sh mdcreq.sh mdcreqcleanup.sh \ llrmount.sh llsimple.sh mdcreq.sh mdcreqcleanup.sh \
ostreq.sh runfailure-client-mds-recover.sh runfailure-mds \ ostreq.sh runfailure-client-mds-recover.sh runfailure-mds \
runfailure-net runfailure-ost runiozone runregression-net.sh \ runfailure-net runfailure-ost runiozone runregression-net.sh \
runtests runvmstat snaprun.sh tbox.sh runtests runvmstat snaprun.sh tbox.sh common.sh
pkglib_SCRIPTS = common.sh
pkgcfg_DATA = lustre.cfg
noinst_PROGRAMS = openunlink testreq truncate directio openme writeme mcreate noinst_PROGRAMS = openunlink testreq truncate directio openme writeme mcreate
noinst_PROGRAMS += munlink tchmod toexcl fsx test_brw openclose createdestroy noinst_PROGRAMS += munlink tchmod toexcl fsx test_brw openclose createdestroy
noinst_PROGRAMS += lovstripe # ldaptest noinst_PROGRAMS += lovstripe # ldaptest
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment