Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
d7d4a5f0
Commit
d7d4a5f0
authored
Jan 02, 2006
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
New rpm-package
parent
3e67ab9c
Changes
11
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
995 additions
and
0 deletions
+995
-0
src/tools/pkg/rpm/pwrrt/build.sh
src/tools/pkg/rpm/pwrrt/build.sh
+115
-0
src/tools/pkg/rpm/pwrrt/changelog
src/tools/pkg/rpm/pwrrt/changelog
+1
-0
src/tools/pkg/rpm/pwrrt/copyright
src/tools/pkg/rpm/pwrrt/copyright
+8
-0
src/tools/pkg/rpm/pwrrt/proview.cnf
src/tools/pkg/rpm/pwrrt/proview.cnf
+14
-0
src/tools/pkg/rpm/pwrrt/pwr
src/tools/pkg/rpm/pwrrt/pwr
+116
-0
src/tools/pkg/rpm/pwrrt/pwr.1
src/tools/pkg/rpm/pwrrt/pwr.1
+41
-0
src/tools/pkg/rpm/pwrrt/pwrp_profile
src/tools/pkg/rpm/pwrrt/pwrp_profile
+54
-0
src/tools/pkg/rpm/pwrrt/pwrrt.spec
src/tools/pkg/rpm/pwrrt/pwrrt.spec
+442
-0
src/tools/pkg/rpm/pwrrt/rt_ini.1
src/tools/pkg/rpm/pwrrt/rt_ini.1
+98
-0
src/tools/pkg/rpm/pwrrt/rt_rtt.1
src/tools/pkg/rpm/pwrrt/rt_rtt.1
+40
-0
src/tools/pkg/rpm/pwrrt/rt_xtt.1
src/tools/pkg/rpm/pwrrt/rt_xtt.1
+66
-0
No files found.
src/tools/pkg/rpm/pwrrt/build.sh
0 → 100755
View file @
d7d4a5f0
#!/bin/bash
# Get version
if
[
-e
$pwr_inc
/pwr_version.h
]
;
then
ver
=
`
eval cat
$pwr_inc
/pwr_version.h |
grep
"
\b
pwrv_cWbdbVersionShortStr
\b
"
|
awk
'{print $3}'
`
if
[
-z
$ver
]
;
then
echo
"Unable to get pwr version"
ver
=
"V00"
fi
ver
=
${
ver
:2:2
}
fi
if
[
"
$1
"
==
"-v"
]
;
then
exit
fi
pkgroot
=
$pwre_broot
/
$pwre_target
/bld/pkg/pwrrt
pkgsrc
=
$pwre_sroot
/tools/pkg/rpm/pwrrt
# Create directories
echo
"-- Create package tree"
mkdir
-p
$pkgroot
/rpm/BUILD
mkdir
-p
$pkgroot
/rpm/RPMS
mkdir
-p
$pkgroot
/rpm/SPECS
mkdir
-p
$pkgroot
/rpm/SOURCES
mkdir
-p
$pkgroot
/rpm/SRPMS
mkdir
-p
$pkgroot
/usr/share/doc/pwrrt
mkdir
-p
$pkgroot
/etc/init.d
find
$pkgroot
-type
d | xargs
chmod
755
# copyright
cp
$pkgsrc
/copyright
$pkgroot
/usr/share/doc/pwrrt
# changelog
cp
$pkgsrc
/changelog
$pkgroot
/usr/share/doc/pwrrt
gzip
-fq
--best
$pkgroot
/usr/share/doc/pwrrt/changelog
# Startup files
cp
$pkgsrc
/pwrp_profile
$pkgroot
/etc
chmod
a+x
$pkgroot
/etc/pwrp_profile
cp
$pkgsrc
/pwr
$pkgroot
/etc/init.d
chmod
a+x
$pkgroot
/etc/init.d/pwr
# Man pages
mkdir
-p
$pkgroot
/usr/share/man/man1
cp
$pkgsrc
/pwr.1
$pkgroot
/usr/share/man/man1/pwr.1
gzip
-fq
--best
$pkgroot
/usr/share/man/man1/pwr.1
cp
$pkgsrc
/rt_ini.1
$pkgroot
/usr/share/man/man1/rt_ini.1
gzip
-fq
--best
$pkgroot
/usr/share/man/man1/rt_ini.1
cp
$pkgsrc
/rt_xtt.1
$pkgroot
/usr/share/man/man1/rt_xtt.1
gzip
-fq
--best
$pkgroot
/usr/share/man/man1/rt_xtt.1
cp
$pkgsrc
/rt_rtt.1
$pkgroot
/usr/share/man/man1/rt_rtt.1
gzip
-fq
--best
$pkgroot
/usr/share/man/man1/rt_rtt.1
# Copy proview
mkdir
$pkgroot
/usr/pwrrt
currentdir
=
"
`
eval pwd
`
"
tarfile
=
$pwre_broot
/
$pwre_target
/bld/pkg/pwrtmp.tar
cd
$pwre_broot
/
$pwre_target
/exp
echo
"-- Copy release to package tree"
tar
-cf
$tarfile
*
cd
$pkgroot
/usr/pwrrt
tar
-xf
$tarfile
rm
$tarfile
rm
-r
$pkgroot
/usr/pwrrt/lib/
*
.a
rm
-r
$pkgroot
/usr/pwrrt/exe/wb
*
cp
$pwr_exe
/wb_distr_keepboot.sh
$pkgroot
/usr/pwrrt/exe
cd
$currentdir
# Copy configuration files to cnf
cp
$pkgsrc
/proview.cnf
$pkgroot
/usr/pwrrt/cnf
# Copy op to cnf
mkdir
$pkgroot
/usr/pwrrt/cnf/op
cp
$pwre_sroot
/tools/pkg/deb/op/.bashrc
$pkgroot
/usr/pwrrt/cnf/op
cp
$pwre_sroot
/tools/pkg/deb/op/.bash_profile
$pkgroot
/usr/pwrrt/cnf/op
cp
$pwre_sroot
/tools/pkg/deb/op/.mwmrc
$pkgroot
/usr/pwrrt/cnf/op
cp
$pwre_sroot
/tools/pkg/deb/op/.rtt_start
$pkgroot
/usr/pwrrt/cnf/op
cp
$pwre_sroot
/tools/pkg/deb/op/.xtt_start
$pkgroot
/usr/pwrrt/cnf/op
cp
$pwre_sroot
/tools/pkg/deb/op/.xsession
$pkgroot
/usr/pwrrt/cnf/op
# Copy user to cnf
mkdir
$pkgroot
/usr/pwrrt/cnf/user
cp
$pwre_sroot
/tools/pkg/deb/user/.bashrc
$pkgroot
/usr/pwrrt/cnf/user
cp
$pwre_sroot
/tools/pkg/deb/user/.bash_profile
$pkgroot
/usr/pwrrt/cnf/user
cp
$pwre_sroot
/tools/pkg/deb/user/.mwmrc
$pkgroot
/usr/pwrrt/cnf/user
cp
$pwre_sroot
/tools/pkg/deb/user/.rtt_start
$pkgroot
/usr/pwrrt/cnf/user
cp
$pwre_sroot
/tools/pkg/deb/user/.xtt_start
$pkgroot
/usr/pwrrt/cnf/user
cp
$pwre_sroot
/tools/pkg/deb/user/.xsession
$pkgroot
/usr/pwrrt/cnf/user
# Create package
echo
"-- Building package"
rpmbuild
-bb
--quiet
\
--define
"_topdir
$pkgroot
/rpm"
\
--buildroot
$pkgroot
$pkgsrc
/pwrrt.spec
>
/dev/null 2>&1
mv
$pkgroot
/rpm/RPMS/i586/
*
.rpm
$pwre_broot
/
$pwre_target
/bld/pkg/.
rm
-r
$pkgroot
src/tools/pkg/rpm/pwrrt/changelog
0 → 100644
View file @
d7d4a5f0
Proview V3.4b (3.4.1-1)
\ No newline at end of file
src/tools/pkg/rpm/pwrrt/copyright
0 → 100644
View file @
d7d4a5f0
Proview
Copyright: SSAB Oxelsund AB <ssabox.com>
2003-11-21
The home page of Proview is at:
http://www.proview.se
src/tools/pkg/rpm/pwrrt/proview.cnf
0 → 100644
View file @
d7d4a5f0
#
# Configuration file for Proview
#
# Default QCOM Bus Id
#
qcomBusId 517
#
# Web directory
#
webDirectory /pwrp/common/web
src/tools/pkg/rpm/pwrrt/pwr
0 → 100755
View file @
d7d4a5f0
#!/bin/bash
#
# Startscript fr PWR av Ulf Ljungdahl
#
PATH
=
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
.
/etc/pwrp_profile
pwr_start
()
{
$pwr_exe
/rt_ini &
}
pwr_stop
()
{
rt_ini
-s
sleep
5
kill
-9
`
ps ax |
grep
"rt_neth_acp"
|
awk
'{ print $1}'
`
kill
-9
`
ps ax |
grep
"rt_neth"
|
awk
'{ print $1}'
`
kill
-9
`
ps ax |
grep
"rt_qmon"
|
awk
'{ print $1}'
`
kill
-9
`
ps ax |
grep
"rt_emon"
|
awk
'{ print $1}'
`
kill
-9
`
ps ax |
grep
"rt_tmon"
|
awk
'{ print $1}'
`
kill
-9
`
ps ax |
grep
"rt_
\|
/pwr/exe/rs"
|
awk
'{ print $1}'
`
kill
-9
`
ps ax |
grep
"
\[
rt_"
|
awk
'{ print $1}'
`
kill
-9
`
ps ax |
grep
"plc_"
|
awk
'{ print $1}'
`
kill
-9
`
ps ax |
grep
"jpwr.rt"
|
awk
'{ print $1}'
`
kill
-9
`
ps ax |
grep
"rs_nmps"
|
awk
'{ print $1}'
`
kill
-9
`
ps ax |
grep
"rs_remote"
|
awk
'{ print $1}'
`
if
[
-u
$pwr_exe
/rt_ini
]
;
then
user
=
`
ls
-al
$pwr_exe
/rt_ini |
awk
'{ print $3}'
`
else
user
=
$USER
fi
echo
"User
$user
"
eval
`
ipcs
-s
|grep ^0x|grep
"[
\t
]
$user
[
\t
]"
|awk
'{printf "ipcrm sem %s;", $2
}'
`
# remove message queues
eval
`
ipcs
-q
|grep ^0x|grep
"[
\t
]
$user
[
\t
]"
|awk
'{printf "ipcrm msg %s;", $2
}'
`
# remove shared memory
eval
`
ipcs
-m
|grep ^0x|grep
"[
\t
]
$user
[
\t
]"
|awk
'{printf "ipcrm shm %s;", $2
}'
`
if
[
-e
$pwrp_exe
/pwrp_stop.sh
]
;
then
source
$pwrp_exe
/pwrp_stop.sh
fi
rm
/tmp/pwr
*
$PWR_BUS_ID
#rm -f /tmp/pwr*
#id=`ipcs -s | grep $user | awk '{print $2}'`
#id1=`echo $id | awk '{print $1}'`
#id2=`echo $id | awk '{print $2}'`
#id3=`echo $id | awk '{print $3}'`
#ipcrm sem $id1
#ipcrm sem $id2
#ipcrm sem $id3
#id=`ipcs -q | grep $user | awk '{print $2}'`
#id1=`echo $id | awk '{print $1}'`
#id2=`echo $id | awk '{print $2}'`
#id3=`echo $id | awk '{print $3}'`
#ipcrm msg $id1
#ipcrm msg $id2
#ipcrm msg $id3
}
case
"
$1
"
in
start
)
echo
"Startar PWR..."
#if [ 'test -x ps aux | grep plc | grep -v grep' ]
# then
# echo "PWR kr, stoppar det frst.."
# pwr_stop
# fi
pwr_start
echo
"Klar."
;;
stop
)
echo
"Stoppar PWR..."
pwr_stop
# if [ "${SAVEONCE}" != "yes" ]
# then
# save
# echo -n "ipchains-save"
# else
# echo -n "Clearing IP chains:"
# fi
echo
"Klar"
;;
restart
)
echo
"Startar om PWR."
echo
"Stoppar det frst."
pwr_stop
sleep
1
echo
"Startar igen."
pwr_start
echo
"Klar."
;;
*
)
echo
"Usage:{start|stop|restart}"
>
&2
#echo "Ingen parameter angiven, startar PWR"
#$0 start
exit
1
;;
esac
exit
0
src/tools/pkg/rpm/pwrrt/pwr.1
0 → 100644
View file @
d7d4a5f0
.TH pwr "1" "April 2005" "Proview" "Proview Manual"
.SH NAME
pwr - start and stop Proview runtime environment
.SH SYNOPSIS
.B pwr
[start][stop][restart]
.SH DESCRIPTION
Start and stop command for Proview runtime environment.
.SH OPTIONS
.HP
\fBstart\fR
.IP
Start Proview runtime environment.
.HP
\fBstop\fR
.IP
Stop Proview runtime environment.
.HP
\fBrestart\fR
.IP
First stop and then start the Proview runtime environment.
.SH FILES
/etc/pwrp_profile
The Proview system wide configuration file.
.SH ENVIRONMENT
.HP
PWR_BUS_ID
.IP
QCOM bus identity.
.SH AUTHOR
Written by UL.
.SH "SEE ALSO"
.BR rt_ini(1)
src/tools/pkg/rpm/pwrrt/pwrp_profile
0 → 100644
View file @
d7d4a5f0
bus_id=""
if [ -e /etc/proview.cnf ]; then
bus_id=`eval cat /etc/proview.cnf | grep "\\bqcomBusId\\b" | awk '{print $2}'`
fi
if [ -e /etc/proview.cnf ]; then
web_dir=`eval cat /etc/proview.cnf | grep "\\bwebDirectory\\b" | awk '{print $2}'`
fi
export PWR_BUS_ID=$bus_id
export pwrb_root=/usr/pwrrt
export pwrp_root=/pwrp
export pwr_exe=$pwrb_root/exe
export pwr_lib=$pwrb_root/lib
export pwr_obj=$pwrb_root/obj
export pwr_inc=$pwrb_root/inc
export pwr_load=$pwrb_root/load
export pwr_lis=$pwrb_root/lis
export pwrp_exe=$pwrp_root/x86_linux/exe
export pwrp_lib=$pwrp_root/x86_linux/lib
export pwrp_obj=$pwrp_root/x86_linux/obj
export pwrp_lis=$pwrp_root/x86_linux/lis
export pwrp_inc=$pwrp_root/common/inc
export pwrp_load=$pwrp_root/common/load
export pwrp_log=$pwrp_root/common/log
export pwrp_db=$pwrp_root/common/db
export pwrp_web=$web_dir
export pwra_db=/usr/pwrp/adm/db
jdk=`eval ls /usr/local | grep j2re`
export jdk_home=/usr/local/$jdk/bin
PATH=$PATH:$pwr_exe:$pwrp_exe:$jdk_home
#Set display to remote computer
export DISPLAY=$REMOTEHOST:0.0
#symbols to define start/stop commands for PWR
alias pwr_stop='/etc/init.d/pwr stop'
alias pwr_stop.sh="/etc/init.d/pwr stop"
alias pwr_start="/etc/init.d/pwr start"
alias pwr="/etc/init.d/pwr"
alias boot="/usr/bin/sudo /sbin/reboot"
if [ -e $pwrp_exe/profile ]; then
source $pwrp_exe/profile
fi
src/tools/pkg/rpm/pwrrt/pwrrt.spec
0 → 100644
View file @
d7d4a5f0
This diff is collapsed.
Click to expand it.
src/tools/pkg/rpm/pwrrt/rt_ini.1
0 → 100644
View file @
d7d4a5f0
.TH rt_ini "1" "April 2005" "Proview" "Proview Manual"
.SH NAME
rt_ini - start, restart or stop the Proview runtime environment
.SH SYNOPSIS
.B rt_ini
[\fIOPTION\fR]
.SH DESCRIPTION
Startup process for the Proview runtime environment.
.SH OPTIONS
.HP
\fB\-a\fR
.IP
Application file. The application file defines the application processes for
the node. The default name is $pwrp_load/ld_appl_'node'_'busid'.txt, where node is
the nodename and busid is the QCOM bus id, for example
$pwrp_load/ld_appl_vwxn1t_507.txt
.HP
\fB\-b\fR
.IP
Boot file. The default bootfile is $pwrp_load/ld_boot_'node'_'busid'.txt, where node
is the nodename and busid the QCOM bus id, for example
$pwrp_load/ld_appl_vwxn1t_0507.txt
.HP
\fB\-c\fR
.IP
Console file. The output of log messages to the console device can be redirected with
the -c option.
.HP
\fB\-d\fR
.IP
Load file directory. Default is $pwrp_load.
.HP
\fB\-e\fR
.IP
Ignore errors.
.HP
\fB\-f\fR
.IP
Ignore fatal errors.
.HP
\fB\-h\fR
.IP
Print help.
.HP
\fB\-i\fR
.IP
Interactive. Print error messages to terminal.
.HP
\fB\-n\fR
.IP
Node name.
.HP
\fB\-p\fR
.IP
Plc file. Default is $pwrp_exe/plc_'node'_'busid' where node id the node name and busid
the QCOM bus id.
.HP
\fB\-q\fR
.IP
QCOM bus id.
.HP
\fB\-r\fR
.IP
Soft restart.
.HP
\fB\-s\fR
.IP
Stop Proview.
.HP
\fB\-v\fR
.IP
Verbose.
.HP
\fB\-w\fR
.IP
Ignore warnings.
.HP
\fB\-A\fR
.IP
Alias file. Default is $pwrp_load/pwrp_alias.dat
.HP
\fB\-?\fR
.IP
Print help.
.SH FILES
/etc/pwrp_profile
The Proview system wide configuration file.
.SH "SEE ALSO"
.BR pwr(1)
src/tools/pkg/rpm/pwrrt/rt_rtt.1
0 → 100644
View file @
d7d4a5f0
.TH rt_rtt "1" "April 2005" "Proview" "Proview Manual"
.SH NAME
rt_rtt - Proview Runtime Terminal Tool
.SH SYNOPSIS
.B rt_rtt
[user] [script] [configuration]
.SH DESCRIPTION
Examine and navigate in the realtime database from a VT100 terminal.
.SH OPTIONS
.HP
\fBuser\fR
.IP
The user of the session. OP for operator, SYS for system manager.
.HP
\fBscript\fR
.IP
A rtt script file.
.HP
\fBconfiguration\fR
.IP
A RttConfig object that configures the session.
.SH AUTHOR
Written by cs.
.SH "SEE ALSO"
.BR rt_xtt(1)
src/tools/pkg/rpm/pwrrt/rt_xtt.1
0 → 100644
View file @
d7d4a5f0
.TH rt_xtt "1" "April 2005" "Proview" "Proview Manual"
.SH NAME
rt_xtt - Proview Operator Environment
.SH SYNOPSIS
.B rt_xtt
[\fIOPTION\fR] [opplace]
.SH DESCRIPTION
The Proview Operator Environment contains a set of utitlities to display information
about the process and the Proview system:
.RS
\- Operator window.
.RE
.RS
\- Process Graphics drawn in the Ge editor.
.RE
.RS
\- Trends and fastcurves.
.RE
.RS
\- Helptexts.
.RE
.RS
\- Navigator for the realtime database.
.RE
.RS
\- Alarms and events.
.RE
.SH OPTIONS
.HP
\fBopplace\fR
.IP
The name of the OpPlace object for the operator place.
.HP
\fB\-l\fR
.IP
Language.
.RS
en_us English
.RE
.RS
sv_se Swedish.
.RE
.RS
en_us is default.
.RE
.HP
\fB\-u\fR
.IP
Use opplace object with the same name as the current user.
.SH AUTHOR
Written by cs.
.SH "SEE ALSO"
.BR pwr(1),
.BR rt_ini(1)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment