Geoffroy,

I've ported my maui-oscar-3.3.1 (working fine on CentOS5.5) to SL6.

Everything seems ok.

Can you set it up into oscar fileservers?

1/ generate 
http://www.csm.ornl.gov/srt/downloads/oscar/maui-oscar-3.3.1-1.src.rpm from
maui-3.3.1.tar.gz ,  maui-oscar-extra.tar.gz and attached maui-oscar-3.3.1.spec

2/ install http://www.csm.ornl.gov/srt/downloads/oscar/maui-3.3.1.tar.gz from 
http://www.adaptivecomputing.com/download/maui/maui-3.3.1.tar.gz

3/ install the new attached spec file and remove the old one.

4/ Commit (after reviewing it the attached patch)


Many thanks in advance.


Olivier.

-- 
   Olivier LAHAYE
   Responsable calcul scientifique
   CEA DRT/LIST
   +33 1 69 08 13 25

Index: opkg/maui/trunk/Makefile
===================================================================
--- opkg/maui/trunk/Makefile	(révision 9434)
+++ opkg/maui/trunk/Makefile	(copie de travail)
@@ -4,6 +4,6 @@
 	@echo "Debian package(s) not yet available"
 
 rpm: clean
-	/usr/bin/build_package --type rpm --output $(PKGDEST) --url http://www.csm.ornl.gov/srt/downloads/oscar/maui-3.2.6p19.tar.gz --package-name maui --verbose
+	/usr/bin/build_package --type rpm --output $(PKGDEST) --url http://www.csm.ornl.gov/srt/downloads/oscar/maui-3.3.1.tar.gz --package-name maui --verbose
 
 clean:
Index: opkg/maui/trunk/build.cfg
===================================================================
--- opkg/maui/trunk/build.cfg	(révision 9434)
+++ opkg/maui/trunk/build.cfg	(copie de travail)
@@ -1,3 +1,3 @@
 [*:*:*]
-requires: torque:torque-2 torque:torque-server torque:torque-client torque:torque-devel
+requires: torque:torque-server torque:torque-client torque:torque-devel
 maui-oscar
Index: opkg/maui/trunk/maui-oscar.cfg
===================================================================
--- opkg/maui/trunk/maui-oscar.cfg	(révision 9434)
+++ opkg/maui/trunk/maui-oscar.cfg	(copie de travail)
@@ -1 +1 @@
-source = wget, http://www.csm.ornl.gov/srt/downloads/oscar/maui-oscar-3.2.6p19-8.src.rpm
+source = wget, http://www.csm.ornl.gov/srt/downloads/oscar/maui-oscar-3.3.1-1.src.rpm
# Name of package
%define name maui-oscar

# Version of maui
%define version 3.3.1

# Maui installation directory
%define maui_prefix /opt/maui

# Do we want to use PBS as the resource manager (1=yes 0=no)
%define yes_pbs 1

# Installation directory base prefix
%define pbs_prefix /opt/pbs

# Execution home/spool directory for PBS
%define pbs_server_home /var/spool/pbs

# Name of file that contains the default server for clients to use
%define server_name_file server_name

# Default server name
%define default_server pbs_oscar

#==============================================================

# Options for Maui version:
# rpm -ba|--rebuild --define "pbs 1"
%{?pbs:%define yes_pbs 1}
%{?nopbs:%define yes_pbs 0}

#==============================================================

Summary: OSCARified Maui Scheduler
Name: %{name}
Version: %{version}
Release: 1
Packager: Bernard Li <b...@bcgsc.ca>
URL: http://www.clusterresources.com/pages/products/maui-cluster-scheduler.php
Source0: maui-%{version}.tar.gz
%define untarring_directory maui-%{version}
Source1: maui-oscar-extra.tgz

License: Maui Scheduler General Public License
Group: Applications/batch
Obsoletes: maui
BuildRequires: rpm >= 3.0.5
# pbs/torque client
Buildrequires: /opt/pbs/bin/qalter
# pbs/torque server
%if %{?suse_version:1}0
BuildRequires: /etc/init.d/pbs_server
Requires: /etc/init.d/pbs_server
%else
BuildRequires: /etc/rc.d/init.d/pbs_server
Requires: /etc/rc.d/init.d/pbs_server
%endif
# pbs/torque 
BuildRequires: /var/spool/pbs/pbs_environment
#BuildPreReq: glibc >= 2.2.4
AutoReqProv: no
Requires: rpm >= 3.0.5
# pbs/torque client
Requires: /opt/pbs/bin/qalter
# pbs/torque 
Requires: /var/spool/pbs/pbs_environment
Requires: glibc >= 2.2.4
BuildRoot: %{_tmppath}/%{name}-buildroot

#==============================================================

%description
Maui is an advanced job scheduler for use on clusters and supercomputers.
It is a highly configurable tool capable of supporting a large array of
fairness policies, dynamic priorities, extensive reservations, and fairshare.
It is currently in use at many of the leading government and academic labs
throughtout the US and around the world.  It is running on machines ranging
from clusters of a few processors to multi-teraflop supercomputers.

This version of Maui has been modified slightly to be usable under the
OSCAR cluster software system.

#==============================================================

%prep

%setup -q -n %{untarring_directory}
%setup -a 1 -n %{untarring_directory}
#%patch0 -p1

%build

./configure --prefix=%{maui_prefix} --with-spooldir=%{maui_prefix} --with-key=21303 --with-pbs=%{pbs_prefix}
%__make

%install
make BUILDROOT=${RPM_BUILD_ROOT} install
install -m 0755 -d ${RPM_BUILD_ROOT}/etc/init.d
if [ -d ${RPM_BUILD_ROOT}/etc/init.d ] ; then
%if %{?suse_version:1}0
	cp -p maui.SuSE ${RPM_BUILD_ROOT}/etc/init.d/maui
%else
	cp -p maui ${RPM_BUILD_ROOT}/etc/init.d
%endif
fi
install -m 0755 -d ${RPM_BUILD_ROOT}%{maui_prefix}/traces/
#cp $RPM_BUILD_DIR/%{untarring_directory}/traces/* ${RPM_BUILD_ROOT}%{maui_prefix}/traces/
%__make BUILDROOT=${RPM_BUILD_ROOT} setup
cp -f LICENSE LICENSE.mcompat CHANGELOG ${RPM_BUILD_ROOT}%{maui_prefix}


%post
if [ -e /sbin/chkconfig ] ; then
	/sbin/chkconfig --add maui
fi
perl -pi -e "s~SERVERHOST.*~SERVERHOST\t\t`hostname`~" %{maui_prefix}/maui.cfg
perl -pi -e "s~RMPOLLINTERVAL.*~RMPOLLINTERVAL\t00:00:10~" %{maui_prefix}/maui.cfg
perl -pi -e "s~BACKFILLPOLICY.*~BACKFILLPOLICY\tON~" %{maui_prefix}/maui.cfg
perl -pi -e "s~RMCFG\[.*\]~RMCFG[$HOSTNAME]~" %{maui_prefix}/maui.cfg
perl -pi -e 's~\@RMNMHOST@~~' %{maui_prefix}/maui.cfg
perl -pi -e "s~ADMIN1.*~ADMIN1\t\t\troot~" %{maui_prefix}/maui.cfg
echo "NODEACCESSPOLICY	DEDICATED" >> %{maui_prefix}/maui.cfg

%clean
rm -rf ${RPM_BUILD_ROOT}

#==============================================================

%preun
if [ -e /etc/init.d/maui ] ; then
  /etc/init.d/maui stop
fi
if [ "$1" = 0 ] ; then
  if [ -e /sbin/chkconfig ] ; then
    /sbin/chkconfig --del maui
  fi
fi

#==============================================================

%files

%{maui_prefix}/bin
%{maui_prefix}/include
%{maui_prefix}/lib
%{maui_prefix}/log
%{maui_prefix}/sbin
%{maui_prefix}/spool
%{maui_prefix}/stats
%{maui_prefix}/tools
%{maui_prefix}/traces
%{maui_prefix}/CHANGELOG
%{maui_prefix}/LICENSE
%{maui_prefix}/LICENSE.mcompat
%config %{maui_prefix}/maui.cfg
%config %{maui_prefix}/maui-private.cfg
/etc/init.d/maui

#==============================================================

%changelog
* Thu Apr 22 2010 Olivier Lahaye 3.3.1-1
- New release.
* Mon Feb 05 2007 Erich Focht 3.2.6p18.5
- Using maui-3.2.6p19-snap.1169758944 snapshot of p19. According to the
  mailing lists the bugs seen in 3.2.6p18 should be fixed here. As this
  is not yet the official p19 release, I called it p18.5.
* Tue Jan 30 2007 Erich Focht 3.2.6p18-4nec
- Updated to 3.2.6p18 : fixes issue with building with newer torque
- Removed patch for BUILD_ROOT added by BLi, the version already has support
  for that
- Added ifdefs for suse/non-suse in order to deal with /etc/init.d/pbs_server
  location
* Fri Jun 23 2006 Bernard Li <b...@bcgsc.ca> 3.2.6p14-4
- Substitute RMCFG from buildhost's hostname to the hostname of the
  machine that RPM is being installed on
- Hardcode ADMIN1 to be the root user

* Thu Jun 15 2006 Bernard Li <b...@bcgsc.ca>
- Added "status" for SUSE init script

* Wed Jun 14 2006 Bernard Li <b...@bcgsc.ca> 3.2.6p14-3
- Added SUSE init script (adapted from Moab script by Martin Siegert)
- Removed src/ and maui.cfg.old from maui-oscar-extra.tgz

* Wed Oct 26 2005 Bernard Li <b...@bcgsc.ca>
- Update to 3.2.6p13
- Removed expect script

* Thu Oct 28 2004 David N. Lombard <d...@speakeasy.net>
- Use canonical /etc/init.d path; use RPM_BUILD_ROOT, not live system!!!
- Updated to 3.2.5p2-9

* Thu Sep 2 2004 Benoit des Ligneris <benoit.des.ligne...@revolutionlinux.com>
- Remove the dependency on openpbs for building and install

* Thu Apr 17 2003 Jason Brechin <brec...@ncsa.uiuc.edu>
- Updated to "new" 3.2.5p2

* Wed Mar 05 2003 Jason Brechin <brec...@ncsa.uiuc.edu>
- Updated to 3.2.5p2 and added an expect script to do configure

* Wed Jul 25 2002 Jeremy Enos <je...@ncsa.uiuc.edu>
- Changed maui.cfg so NODEACCESSPOLICY is DEDICATED.

* Thu Jul 25 2002 Jason Brechin <brec...@ncsa.uiuc.edu>
- Minor updates and spec file changes.

* Fri Jun 14 2002 Jason Brechin <brec...@ncsa.uiuc.edu>
- Updated to 3.0.7p8

* Thu Aug 23 2001 Neil Gorsuch <ngors...@ncsa.uiuc.edu>
- Initial RPMification
------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
Oscar-devel mailing list
Oscar-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oscar-devel

Reply via email to