Skip to content
Snippets Groups Projects
Commit 2771950f authored by Ruud Overeem's avatar Ruud Overeem
Browse files

BugID: 827

Moved deployment stuff from LOFAR_DATA/* and LCS/Common to MAC/Deployment.
parent 8ca77c33
No related branches found
No related tags found
No related merge requests found
Showing
with 637 additions and 0 deletions
# -*- Mode:rpm-spec -*-
# Deployment.spec.in
#
##############################################################################
#
# Preamble
#
##############################################################################
Summary: Deployments contains all deployment-related issues and nameconventions.
%define release @RPM_RELEASE@
%define version @VERSION@
%define pkgname @PACKAGE@
%define pkgdir %{pkgname}-%{version}
%define prefix /opt/lofar
%define configure_args @RPM_CONFIGURE_ARGS@
##define build_kernel_version @BUILD_KERNEL_VERSION@
Name: %{pkgname}
Version: %{version}
Release: %{release}
Copyright: LGPL
Group: Application/System
Source: %{pkgname}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{pkgdir}-root
URL: http://www.astron.nl
Prefix: %{prefix}
BuildArchitectures: i386 # Target platforms, i.e., i586
Packager: %{packager}
Distribution: The LOFAR project
Vendor: ASTRON
AutoReqProv: no
%description
Deployments contains all deployment-related issues and nameconventions.
##############################################################################
#
# prep
#
##############################################################################
%prep
# create the build directory, untar the source
%setup
##############################################################################
#
# build
#
##############################################################################
%build
./configure %{configure_args} --prefix=%{prefix} && make
##############################################################################
#
# install
#
##############################################################################
%install
# To make things work with BUILDROOT
if [ "$RPM_BUILD_ROOT" != "%{_tmppath}/%{pkgdir}-root" ]
then
echo
echo @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
echo @ @
echo @ RPM_BUILD_ROOT is not what I expected. Please clean it yourself. @
echo @ @
echo @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
echo
else
echo Cleaning RPM_BUILD_ROOT: "$RPM_BUILD_ROOT"
rm -rf "$RPM_BUILD_ROOT"
fi
mkdir -p $RPM_BUILD_ROOT%{prefix}
make DESTDIR="$RPM_BUILD_ROOT" install
#uninstall
##############################################################################
#
# verify
#
##############################################################################
#verify
##############################################################################
#
# clean
#
##############################################################################
%clean
# Call me paranoid, but I do not want to be responsible for nuking
# someone's harddrive!
if [ "$RPM_BUILD_ROOT" != "%{_tmppath}/%{pkgdir}-root" ]
then
echo
echo @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
echo @ @
echo @ RPM_BUILD_ROOT is not what I expected. Please clean it yourself. @
echo @ @
echo @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
echo
else
echo Cleaning RPM_BUILD_ROOT: "$RPM_BUILD_ROOT"
rm -rf "$RPM_BUILD_ROOT"
fi
##############################################################################
#
# files
#
##############################################################################
# empty 'files' means all distributed files
%files
%defattr(-, root, root)
%{prefix}
# Your application file list goes here
# %{prefix}/lib/lib*.so*
# Documentation
# doc COPYING ChangeLog README AUTHORS NEWS
# doc doc/*
# link the module to the correct path
%post
# before uninstall
%preun
# after uninstall
%postun
##############################################################################
#
# package devel
#
##############################################################################
#package devel
#Summary: Development files for %{pkgname}
#Group: Applications/System
#description devel
#Development files for %{pkgname}.
#files devel
# Your development files go here
# Programmers documentation goes here
#doc doc
# end of file
SUBDIRS=src test include data
EXTRA_DIST = \
Makefile.common \
Deployment.spec \
autoconf_share/compiletool
include $(top_srcdir)/Makefile.common
#!/bin/sh
../../autoconf_share/bootstrap ../../autoconf_share
dnl
dnl Process this file with autoconf to produce a configure script.
dnl
AC_INIT
dnl AC_CONFIG_AUX_DIR(config)
dnl AM_CONFIG_HEADER(config/config.h)
AM_CONFIG_HEADER(config.h)
AM_INIT_AUTOMAKE(Deployment, 0.1, no-define)
dnl Initialize for LOFAR (may set compilers)
lofar_INIT
dnl Checks for programs.
AC_PROG_AWK
AC_PROG_YACC
AC_PROG_CC
AC_PROG_CXX
AM_PROG_LEX
AC_PROG_INSTALL
AC_PROG_LN_S
AC_DISABLE_SHARED
AC_PROG_LIBTOOL
dnl Checks for libraries.
dnl dnl Replace `main' with a function in -lfl:
dnl AC_CHECK_LIB(fl, main)
dnl dnl Replace `main' with a function in -lcosev_r:
dnl AC_CHECK_LIB(cosev_r, main)
dnl dnl Replace `main' with a function in -lcosnm_r:
dnl AC_CHECK_LIB(cosnm_r, main)
dnl dnl Replace `main' with a function in -lorb_r:
dnl AC_CHECK_LIB(orb_r, main)
dnl dnl Replace `main' with a function in -lpthread:
dnl AC_CHECK_LIB(pthread, main)
dnl dnl Replace `main' with a function in -lvport_r:
dnl AC_CHECK_LIB(vport_r, main)
dnl Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS(unistd.h)
dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_TYPE_SIZE_T
dnl Checks for library functions.
AC_FUNC_VPRINTF
dnl
dnl Check for LOFAR general things
dnl
lofar_GENERAL
lofar_INTERNAL(LCS/Common,Common,,1,Common/LofarTypedefs.h,,)
lofar_INTERNAL(SAS/OTDB,OTDB,,1,OTDB/OTDBtypes.h,,)
lofar_EXTERNAL(boost,1.32,boost/date_time/date.hpp, boost_date_time-gcc)
lofar_EXTERNAL(pqxx,2.5.5,pqxx/pqxx, pqxx)
lofar_EXTERNAL(pq,,libpq-fe.h, pq, /usr/local/pgsql)
dnl
dnl Output Makefiles
dnl
AC_OUTPUT(
Makefile
src/Makefile
test/Makefile
data/Makefile
data/bin/Makefile
include/Makefile
include/Deployment/Makefile
Deployment.spec
)
SUBDIRS = bin
include $(top_srcdir)/Makefile.common
# -- BBS --
#
# $Id$
#
# -- BBS BBDB Settings
#
# name vers qual constr. descr.
#--------------------------------------------------------------------------------------------------------
node BBDB 1.0.0 development 'node constraint' 'BBS Blackboard Database'
# name dir. type unit prun. vm value constr. descr.
#--------------------------------------------------------------------------------------------------------
par _hostname I text - 10 0 'IMG002' - 'host on which BBS will be started, value is determined by the scheduler'
par Host I text - 10 0 '127.0.0.1' - 'Host on which the Blackboard database resides'
par Port I int - 10 0 '12345' - 'Port on which the Blackboard database is listening'
par DBName I text - 10 0 'blackboard' - 'Database name with the Black Board tables'
par UserName I text - 10 0 'postgres' - 'Username of the Blackboard database'
par PassWord I text - 10 0 '' - 'Password of the Blackboard database'
# -- BBS ParmDB Settings
#
# name vers qual constr. descr.
#--------------------------------------------------------------------------------------------------------
node ParmDB 1.0.0 development 'node constraint' 'BBS ParmDB identifiers'
# name dir. type unit prun. vm value constr. descr.
#--------------------------------------------------------------------------------------------------------
par Instrument I text - 10 0 'test.mep' - 'name of the AIPS++ table containing the instrument parameters'
par LocalSky I text - 10 0 'test.gsm' - 'name of the AIPS++ table containing the local sky parameters'
# -- BBS Correlation Settings
#
# name vers qual constr. descr.
#--------------------------------------------------------------------------------------------------------
node Correlation 1.0.0 development 'node constraint' 'BBS Correlation settings'
# name dir. type unit prun. vm value constr. descr.
#--------------------------------------------------------------------------------------------------------
par Selection I text - 10 0 'ALL' - 'one of AUTO,CROSS,ALL'
par Type I text - 10 0 '["XX","YY"]' - 'which (auto)correlations to use'
# -- BBS Work Domain Size Settings
#
# name vers qual constr. descr.
#--------------------------------------------------------------------------------------------------------
node WorkDomainSize 1.0.0 development 'node constraint' 'BBS WorkDomainSize settings'
# name dir. type unit prun. vm value constr. descr.
#--------------------------------------------------------------------------------------------------------
par Freq I text - 10 0 '1' - 'work domain size frequency'
par Time I text - 10 0 '0.1' - 'work domain size time'
# -- BBS Integration Settings
#
# name vers qual constr. descr.
#--------------------------------------------------------------------------------------------------------
node Integration 1.0.0 development 'node constraint' 'BBS Integration settings'
# name dir. type unit prun. vm value constr. descr.
#--------------------------------------------------------------------------------------------------------
par Freq I text - 10 0 '1' - 'integration interval frequency'
par Time I text - 10 0 '0.1' - 'integration interval time'
# -- BBS Strategy Settings
#
# name vers qual constr. descr.
#--------------------------------------------------------------------------------------------------------
node Strategy 1.0.0 development 'node constraint' 'BBS Strategy'
# name dir. type unit prun. vm value constr. descr.
#--------------------------------------------------------------------------------------------------------
par Steps I text - 10 0 '["xyz1","xyz2"]' - 'The steps contained in this BBS Strategy'
par Stations I text - 10 0 '[0,1,2,3]' - 'Identifiers/names of the stations to be used'
par InputData I text - 10 0 'INDATA' - 'Measurement Set input data column'
# name vers qual constr. descr.
#--------------------------------------------------------------------------------------------------------
uses Correlation 1.0.0 development 1 'BBS Correlation for this strategy'
uses WorkDomainSize 1.0.0 development 1 'BBS Work Domain Size for this strategy'
uses Integration 1.0.0 development 1 'BBS Integration attributes for this strategy'
#
#
#
# --BBS Global--
# name vers qual constr. descr.
#--------------------------------------------------------------------------------------------------------
node BBS 1.0.0 development 'node constraint' "BBS"
# name dir. type unit prun. vm value constr. descr.
#--------------------------------------------------------------------------------------------------------
par DataSet I text - 10 0 'test.ms' - 'Name of the measurement set'
# name vers qual constr. descr.
#--------------------------------------------------------------------------------------------------------
uses BBDB 1.0.0 development 1 'Blackboard database for BBS'
uses ParmDB 1.0.0 development 1 'ParmDB settings for BBS'
uses Strategy 1.0.0 development 1 'Strategy to be used by BBS'
# -- BGL --
#
# $Id$
#
# name vers qual constr. descr.
#--------------------------------------------------------------------------------------------------------
node BGL 1.0.0 development 'node constraint' "BGL Node Settings"
# name vers qual constr. descr.
#--------------------------------------------------------------------------------------------------------
uses @BGLNode@ 1.0.0 development 1 "BGL Node @BGLNode@"
# -- BGL node --
#
# $Id$
#
# name vers qual constr. descr.
#--------------------------------------------------------------------------------------------------------
node @BGLNode@ 1.0.0 development 'node constraint' "BGL Node Settings"
# name dir. type unit prun. vm value constr. descr.
#--------------------------------------------------------------------------------------------------------
par IPAddress I text - 10 0 @IPaddress@ - 'Ip number for this node'
BGL000
BGL001
BGL002
BGL003
BGL004
BGL005
BGL006
BGL007
BGL008
BGL009
BGL010
BGL011
BGL012
BGL013
BGL014
BGL015
BGL016
BGL017
BGL018
BGL019
BGL020
BGL021
BGL022
BGL023
BGL024
BGL025
BGL026
BGL027
BGL028
BGL029
BGL030
BGL031
BGL032
BGL033
BGL034
BGL035
BGL036
BGL037
BGL038
BGL039
BGL040
BGL041
BGL042
BGL043
BGL044
BGL045
BGL046
BGL047
BGL048
BGL049
BGL050
BGL051
BGL052
BGL053
BGL054
BGL055
BGL056
BGL057
BGL058
BGL059
BGL060
BGL061
BGL062
BGL063
# -- BeamControl --
#
# Component description of the BeamController
#
# $Id$
#
# name name of the node
# version version of this node specification
# quality stable | test | development
# constraint python script to check multiparameter constrains
# may return OK, NotOK, Unknown
# description What this module does.
#
# Note 1: to seperate the parameterlines from the Node lines each node line
# begins with the label 'Node'.
# Note 2: To define dependancies between nodes the label 'Uses' is used.
# A + sign may be added to the versionnr to indicate that the given
# versionnr is the minimal version the module schould have. (NOT YET IMPLEMENTED)
#
#########################################################################################################
# -- Station Operations --
# name vers qual constr. descr.
#--------------------------------------------------------------------------------------------------------
node BeamControl 1.0.0 development 'node constraint' "Station BeamControl"
#
# name name of the parameter
# direction I: input only; O: changes will be logged during runtime; IO: both
# type parametertype: should exist in param_type table of OTDB (= ParamTypeConv)
# unit name of unit of parameter (should exist in unit table (= UnitConv)
# pruninglevel when parameter values are thrown away from the database. (NOT YET USED)
# validationMoment moment the parameter values is validated (NOT YET USED)
# value value(range) of the parameter.
# constraint script to run to check its value
# description what the parameter manages.
#--------------------------------------------------------------------------------------------------------
# name dir. type unit prun. vm value constr. descr.
#--------------------------------------------------------------------------------------------------------
par instanceNr I uint - 10 0 0 - 'BeamController instancenumber'
par startTime I uint - 10 0 >>Observation.startTime - 'Starttime of observation'
par stopTime I uint - 10 0 >>Observation.stopTime - 'Stoptime of observation'
par subarrayName I text - 10 0 0 - 'Unique name of the subarray'
par subbands I vuint - 10 0 0 - 'Subbands in the subarray'
par beamlets I vuint - 10 0 0 - 'The beamlets allocated on the subarray'
par sourceTimes I vuint - 10 0 0 - 'Relative time (to starttime) when to activate the declination and rightAscentions'
par declination I vdbl - 10 0 0 - 'Declination(s) of the source(s)'
par rightAscention I vdbl - 10 0 0 - 'rightAscention(s) of the source(s)'
par directionType I text - 10 0 0 - 'Coord.system used for sources'
# -- Clock--
#
# $Id$
#
# name vers qual constr. descr.
#--------------------------------------------------------------------------------------------------------
node Clock160 1.0.0 development 'node constraint' "160Mhz Clock"
# name dir. type unit prun. vm value constr. descr.
#--------------------------------------------------------------------------------------------------------
par systemClock I dbl MHz 10 0 160 - 'System Clock Frequency'
par samplesPerSecond I int - 10 0 0 - 'Samples per second'
par subbandWidth I dbl kHz 10 0 156.250 - ''
par channelWidth I dbl Hz 10 0 610.3515625 - ''
# name vers qual constr. descr.
#--------------------------------------------------------------------------------------------------------
node Clock200 1.0.0 development 'node constraint' "200Mhz Clock"
# name dir. type unit prun. vm value constr. descr.
#--------------------------------------------------------------------------------------------------------
par systemClock I dbl MHz 10 0 200 - 'System Clock Frequency'
par samplesPerSecond I int - 10 0 0 - 'Samples per second'
par subbandWidth I dbl kHz 10 0 195.3125 - ''
par channelWidth I dbl Hz 10 0 762.939453125 - ''
# -- Cluster--
#
# $Id$
#
# name vers qual constr. descr.
#--------------------------------------------------------------------------------------------------------
node Cluster 1.0.0 development 'node constraint' "Cluster Settings"
# name vers qual constr. descr.
#--------------------------------------------------------------------------------------------------------
uses Input 1.0.0 development 1 "Input Nodes"
uses BGL 1.0.0 development 1 "BGL Nodes"
uses Storage 1.0.0 development 1 "Storage Nodes"
uses Imaging 1.0.0 development 1 "Imaging Nodes"
# -- ControlSW --
#
# $Id$
#
# name vers qual constr. descr.
#--------------------------------------------------------------------------------------------------------
node ControlSW 1.0.0 development 'node constraint' "Control Software"
uses BeamControl 1.0.0 development 1 "BeamController for this Station"
# -- Imaging --
#
# $Id$
#
# name vers qual constr. descr.
#--------------------------------------------------------------------------------------------------------
node Imaging 1.0.0 development 'node constraint' "Imaging Node Settings"
# name vers qual constr. descr.
#--------------------------------------------------------------------------------------------------------
uses @ImagingNode@ 1.0.0 development 1 "Imaging Node @ImagingNode@"
# -- @ImagingNode@ --
#
# $Id$
#
# name vers qual constr. descr.
#--------------------------------------------------------------------------------------------------------
node @ImagingNode@ 1.0.0 development 'node constraint' "Imaging Node Settings"
# name dir. type unit prun. vm value constr. descr.
#--------------------------------------------------------------------------------------------------------
par IPAddress I text - 10 0 @IPaddress@ - 'Ip number for this node'
par RAM I int RAM 10 0 2048 - 'RAM space on this node'
par Storage I int DISK 10 0 256 - 'Storage space on this node'
IMG000
IMG001
IMG002
IMG003
IMG004
IMG005
IMG006
IMG007
IMG008
IMG009
IMG010
IMG011
IMG012
IMG013
IMG014
IMG015
IMG016
IMG017
IMG018
IMG019
# -- Input --
#
# $Id$
#
# name vers qual constr. descr.
#--------------------------------------------------------------------------------------------------------
node Input 1.0.0 development 'node constraint' "Input Node Settings"
# name vers qual constr. descr.
#--------------------------------------------------------------------------------------------------------
uses @InputNode@ 1.0.0 development 1 "Input Node @InputNode@"
# -- @InputNode@ --
#
# $Id$
#
# name vers qual constr. descr.
#--------------------------------------------------------------------------------------------------------
node @InputNode@ 1.0.0 development 'node constraint' "Cluster Node Settings"
# name dir. type unit prun. vm value constr. descr.
#--------------------------------------------------------------------------------------------------------
par IPAddress I text - 10 0 @IPaddress@ - 'Ip number for this node'
par MACAddress I text - 10 0 @clusternodeMAC@ - 'MAC address from this node'
par RAM I int RAM 10 0 1024 - 'RAM space on this node'
par Storage I int DISK 10 0 256 - 'Storage space on this node'
INP000
INP001
INP002
INP003
INP004
INP005
INP006
INP007
INP008
INP009
INP010
INP011
# -- LOFAR--
#
# $Id$
#
# name vers qual constr. descr.
#--------------------------------------------------------------------------------------------------------
node LOFAR 1.0.0 development 'node constraint' "LOFAR Main"
uses PermSW 1.0.0 development 1 "Permanent Software"
uses ObsSW 1.0.0 development 1 "Observation Software"
uses PIC 1.0.0 development 1 "Physical Instrument Components"
uses Clock160 1.0.0 development 1 "160MHz System Clock"
uses Clock200 1.0.0 development 1 "200MHz System Clock"
uses Cluster 1.0.0 development 1 "The central cluster"
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