Skip to content
Snippets Groups Projects
Commit 364960fb authored by Andreas Dilger's avatar Andreas Dilger
Browse files

RPM build fixes.

parent 2de13382
No related branches found
No related tags found
No related merge requests found
# lustre.spec # lustre.spec
%define version b_devel %define version HEAD
%define kversion @LINUXRELEASE@ %define kversion @LINUXRELEASE@
%define linuxdir @LINUX@ %define linuxdir @LINUX@
...@@ -101,10 +101,11 @@ mkdir -p $RPM_BUILD_ROOT/var/lib/ldap/lustre ...@@ -101,10 +101,11 @@ mkdir -p $RPM_BUILD_ROOT/var/lib/ldap/lustre
%attr(-, root, root) /usr/sbin/lconf %attr(-, root, root) /usr/sbin/lconf
%attr(-, root, root) /usr/sbin/lactive %attr(-, root, root) /usr/sbin/lactive
%attr(-, root, root) /usr/sbin/llanalyze %attr(-, root, root) /usr/sbin/llanalyze
%attr(-, root, root) /usr/sbin/lfind %attr(-, root, root) /usr/bin/lfind
%attr(-, root, root) /usr/sbin/lstripe %attr(-, root, root) /usr/bin/lstripe
%attr(-, root, root) /usr/sbin/mcreate %attr(-, root, root) /usr/bin/mcreate
%attr(-, root, root) /usr/sbin/mkdirmany %attr(-, root, root) /usr/bin/munlink
%attr(-, root, root) /usr/bin/mkdirmany
%attr(-, root, root) /usr/sbin/llstat.pl %attr(-, root, root) /usr/sbin/llstat.pl
%attr(-, root, root) /usr/sbin/llobdstat.pl %attr(-, root, root) /usr/sbin/llobdstat.pl
%attr(-, root, root) /usr/sbin/load_ldap.sh %attr(-, root, root) /usr/sbin/load_ldap.sh
......
...@@ -9,13 +9,27 @@ use Time::Local; ...@@ -9,13 +9,27 @@ use Time::Local;
my $pristine = 1; my $pristine = 1;
my $kernver; my $kernver;
# Use the CVS tag first otherwise use the portals version
sub get_tag() sub get_tag()
{ {
my $tag; my $tag;
my $line;
my $tagfile = new IO::File; my $tagfile = new IO::File;
if (!$tagfile->open("CVS/Tag")) { if (!$tagfile->open("CVS/Tag")) {
return "HEAD"; my $verfile = new IO::File;
if (!$verfile->open("portals/include/config.h")) {
return "UNKNOWN";
}
while(defined($line = <$verfile>)) {
$line =~ /\#define VERSION "(.*)"/;
if ($1) {
$tag = $1;
last;
}
}
$verfile->close();
return $tag
} else { } else {
my $tmp = <$tagfile>; my $tmp = <$tagfile>;
$tagfile->close(); $tagfile->close();
......
...@@ -20,7 +20,7 @@ noinst_PROGRAMS += opendirunlink opendevunlink unlinkmany fchdir_test checkstat ...@@ -20,7 +20,7 @@ noinst_PROGRAMS += opendirunlink opendevunlink unlinkmany fchdir_test checkstat
noinst_PROGRAMS += wantedi statone runas openfile getdents mkdirdeep o_directory noinst_PROGRAMS += wantedi statone runas openfile getdents mkdirdeep o_directory
noinst_PROGRAMS += small_write noinst_PROGRAMS += small_write
# noinst_PROGRAMS += ldaptest # noinst_PROGRAMS += ldaptest
sbin_PROGRAMS = mcreate munlink mkdirmany bin_PROGRAMS = mcreate munlink mkdirmany
# ldaptest_SOURCES = ldaptest.c # ldaptest_SOURCES = ldaptest.c
tchmod_SOURCES = tchmod.c tchmod_SOURCES = tchmod.c
......
...@@ -7,7 +7,8 @@ KFLAGS:= ...@@ -7,7 +7,8 @@ KFLAGS:=
CPPFLAGS = $(HAVE_LIBREADLINE) CPPFLAGS = $(HAVE_LIBREADLINE)
lctl_LDADD := $(LIBREADLINE) -lptlctl lctl_LDADD := $(LIBREADLINE) -lptlctl
lload_LDADD := -lptlctl lload_LDADD := -lptlctl
sbin_PROGRAMS = lctl lfind lstripe obdio obdbarrier lload wirecheck bin_PROGRAMS = lfind lstripe
sbin_PROGRAMS = lctl obdio obdbarrier lload wirecheck
sbin_SCRIPTS = lconf lmc llanalyze llstat.pl llobdstat.pl lactive load_ldap.sh sbin_SCRIPTS = lconf lmc llanalyze llstat.pl llobdstat.pl lactive load_ldap.sh
wirecheck_SOURCES = wirecheck.c wirecheck_SOURCES = wirecheck.c
lctl_SOURCES = parser.c obd.c lctl.c parser.h obdctl.h lctl_SOURCES = parser.c obd.c lctl.c parser.h obdctl.h
......
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