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
a7a1c313
Commit
a7a1c313
authored
Feb 16, 2014
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Package files for rasbian added
parent
988e4ad8
Changes
67
Hide whitespace changes
Inline
Side-by-side
Showing
67 changed files
with
4315 additions
and
0 deletions
+4315
-0
src/tools/pkg/raspbian/adm/proview_icon.png
src/tools/pkg/raspbian/adm/proview_icon.png
+0
-0
src/tools/pkg/raspbian/adm/pwr_setup.sh
src/tools/pkg/raspbian/adm/pwr_setup.sh
+13
-0
src/tools/pkg/raspbian/adm/pwr_user2.dat
src/tools/pkg/raspbian/adm/pwr_user2.dat
+66
-0
src/tools/pkg/raspbian/adm/pwr_volumelist.dat
src/tools/pkg/raspbian/adm/pwr_volumelist.dat
+18
-0
src/tools/pkg/raspbian/adm/pwra_env.sh
src/tools/pkg/raspbian/adm/pwra_env.sh
+168
-0
src/tools/pkg/raspbian/adm/pwra_env.sh_openbsd
src/tools/pkg/raspbian/adm/pwra_env.sh_openbsd
+160
-0
src/tools/pkg/raspbian/op/.bash_profile
src/tools/pkg/raspbian/op/.bash_profile
+19
-0
src/tools/pkg/raspbian/op/.bashrc
src/tools/pkg/raspbian/op/.bashrc
+31
-0
src/tools/pkg/raspbian/op/.mwmrc
src/tools/pkg/raspbian/op/.mwmrc
+257
-0
src/tools/pkg/raspbian/op/.rtt_start
src/tools/pkg/raspbian/op/.rtt_start
+3
-0
src/tools/pkg/raspbian/op/.xsession
src/tools/pkg/raspbian/op/.xsession
+5
-0
src/tools/pkg/raspbian/op/.xtt_start
src/tools/pkg/raspbian/op/.xtt_start
+3
-0
src/tools/pkg/raspbian/pwr/build.sh
src/tools/pkg/raspbian/pwr/build.sh
+214
-0
src/tools/pkg/raspbian/pwr/changelog
src/tools/pkg/raspbian/pwr/changelog
+1
-0
src/tools/pkg/raspbian/pwr/changelog.Debian
src/tools/pkg/raspbian/pwr/changelog.Debian
+1
-0
src/tools/pkg/raspbian/pwr/control
src/tools/pkg/raspbian/pwr/control
+11
-0
src/tools/pkg/raspbian/pwr/copyright
src/tools/pkg/raspbian/pwr/copyright
+8
-0
src/tools/pkg/raspbian/pwr/postinst
src/tools/pkg/raspbian/pwr/postinst
+128
-0
src/tools/pkg/raspbian/pwr/prerm
src/tools/pkg/raspbian/pwr/prerm
+8
-0
src/tools/pkg/raspbian/pwr/proview.cnf
src/tools/pkg/raspbian/pwr/proview.cnf
+18
-0
src/tools/pkg/raspbian/pwr/pwr.1
src/tools/pkg/raspbian/pwr/pwr.1
+28
-0
src/tools/pkg/raspbian/pwr/pwrp_profile
src/tools/pkg/raspbian/pwr/pwrp_profile
+55
-0
src/tools/pkg/raspbian/pwrdemo/build.sh
src/tools/pkg/raspbian/pwrdemo/build.sh
+102
-0
src/tools/pkg/raspbian/pwrdemo/changelog
src/tools/pkg/raspbian/pwrdemo/changelog
+1
-0
src/tools/pkg/raspbian/pwrdemo/changelog.Debian
src/tools/pkg/raspbian/pwrdemo/changelog.Debian
+1
-0
src/tools/pkg/raspbian/pwrdemo/control
src/tools/pkg/raspbian/pwrdemo/control
+10
-0
src/tools/pkg/raspbian/pwrdemo/copyright
src/tools/pkg/raspbian/pwrdemo/copyright
+8
-0
src/tools/pkg/raspbian/pwrdemo/postinst
src/tools/pkg/raspbian/pwrdemo/postinst
+84
-0
src/tools/pkg/raspbian/pwrdemo/prerm
src/tools/pkg/raspbian/pwrdemo/prerm
+15
-0
src/tools/pkg/raspbian/pwrrt/build.sh
src/tools/pkg/raspbian/pwrrt/build.sh
+189
-0
src/tools/pkg/raspbian/pwrrt/changelog
src/tools/pkg/raspbian/pwrrt/changelog
+1
-0
src/tools/pkg/raspbian/pwrrt/changelog.Debian
src/tools/pkg/raspbian/pwrrt/changelog.Debian
+1
-0
src/tools/pkg/raspbian/pwrrt/control
src/tools/pkg/raspbian/pwrrt/control
+11
-0
src/tools/pkg/raspbian/pwrrt/copyright
src/tools/pkg/raspbian/pwrrt/copyright
+8
-0
src/tools/pkg/raspbian/pwrrt/gdhserver
src/tools/pkg/raspbian/pwrrt/gdhserver
+67
-0
src/tools/pkg/raspbian/pwrrt/postinst
src/tools/pkg/raspbian/pwrrt/postinst
+387
-0
src/tools/pkg/raspbian/pwrrt/prerm
src/tools/pkg/raspbian/pwrrt/prerm
+126
-0
src/tools/pkg/raspbian/pwrrt/proview.cnf
src/tools/pkg/raspbian/pwrrt/proview.cnf
+18
-0
src/tools/pkg/raspbian/pwrrt/pwr
src/tools/pkg/raspbian/pwrrt/pwr
+167
-0
src/tools/pkg/raspbian/pwrrt/pwr.1
src/tools/pkg/raspbian/pwrrt/pwr.1
+51
-0
src/tools/pkg/raspbian/pwrrt/pwrp_profile
src/tools/pkg/raspbian/pwrrt/pwrp_profile
+55
-0
src/tools/pkg/raspbian/pwrrt/rt_ini.1
src/tools/pkg/raspbian/pwrrt/rt_ini.1
+98
-0
src/tools/pkg/raspbian/pwrrt/rt_rtt.1
src/tools/pkg/raspbian/pwrrt/rt_rtt.1
+40
-0
src/tools/pkg/raspbian/pwrrt/rt_xtt.1
src/tools/pkg/raspbian/pwrrt/rt_xtt.1
+81
-0
src/tools/pkg/raspbian/pwrsev/build.sh
src/tools/pkg/raspbian/pwrsev/build.sh
+183
-0
src/tools/pkg/raspbian/pwrsev/changelog
src/tools/pkg/raspbian/pwrsev/changelog
+1
-0
src/tools/pkg/raspbian/pwrsev/changelog.Debian
src/tools/pkg/raspbian/pwrsev/changelog.Debian
+1
-0
src/tools/pkg/raspbian/pwrsev/control
src/tools/pkg/raspbian/pwrsev/control
+11
-0
src/tools/pkg/raspbian/pwrsev/copyright
src/tools/pkg/raspbian/pwrsev/copyright
+8
-0
src/tools/pkg/raspbian/pwrsev/postinst
src/tools/pkg/raspbian/pwrsev/postinst
+276
-0
src/tools/pkg/raspbian/pwrsev/prerm
src/tools/pkg/raspbian/pwrsev/prerm
+126
-0
src/tools/pkg/raspbian/pwrsev/proview.cnf
src/tools/pkg/raspbian/pwrsev/proview.cnf
+16
-0
src/tools/pkg/raspbian/pwrsev/pwrp_profile
src/tools/pkg/raspbian/pwrsev/pwrp_profile
+56
-0
src/tools/pkg/raspbian/pwrsev/pwrsev
src/tools/pkg/raspbian/pwrsev/pwrsev
+152
-0
src/tools/pkg/raspbian/pwrsev/pwrsev.1
src/tools/pkg/raspbian/pwrsev/pwrsev.1
+46
-0
src/tools/pkg/raspbian/pwrsev/sev_ini.1
src/tools/pkg/raspbian/pwrsev/sev_ini.1
+77
-0
src/tools/pkg/raspbian/pwrsev/sev_xtt.1
src/tools/pkg/raspbian/pwrsev/sev_xtt.1
+50
-0
src/tools/pkg/raspbian/src/os_templ/hw_templ/makefile
src/tools/pkg/raspbian/src/os_templ/hw_templ/makefile
+64
-0
src/tools/pkg/raspbian/src/pwr
src/tools/pkg/raspbian/src/pwr
+130
-0
src/tools/pkg/raspbian/user/.bash_profile
src/tools/pkg/raspbian/user/.bash_profile
+19
-0
src/tools/pkg/raspbian/user/.bashrc
src/tools/pkg/raspbian/user/.bashrc
+31
-0
src/tools/pkg/raspbian/user/.mwmrc
src/tools/pkg/raspbian/user/.mwmrc
+259
-0
src/tools/pkg/raspbian/user/.rtt_start
src/tools/pkg/raspbian/user/.rtt_start
+3
-0
src/tools/pkg/raspbian/user/.xsession
src/tools/pkg/raspbian/user/.xsession
+5
-0
src/tools/pkg/raspbian/user/.xtt_start
src/tools/pkg/raspbian/user/.xtt_start
+3
-0
src/tools/pkg/raspbian/user/wtt_init.pwr_com
src/tools/pkg/raspbian/user/wtt_init.pwr_com
+31
-0
src/tools/pkg/raspbian/user/wtt_init1.pwr_com
src/tools/pkg/raspbian/user/wtt_init1.pwr_com
+31
-0
No files found.
src/tools/pkg/raspbian/adm/proview_icon.png
0 → 100644
View file @
a7a1c313
2.91 KB
src/tools/pkg/raspbian/adm/pwr_setup.sh
0 → 100755
View file @
a7a1c313
if
[
"
$pwra_db
"
==
""
]
;
then
source
/etc/pwrp_profile
fi
pwrp
()
{
source
$pwra_db
/pwra_env.sh
$@
}
alias
sdf
=
"source
$pwra_db
/pwra_env.sh set project"
alias
pwrc
=
"wb_cmd"
alias
pwrs
=
"wb_start.sh pwrp pwrp"
alias
pwra
=
"wb -p pwrp pwrp"
src/tools/pkg/raspbian/adm/pwr_user2.dat
0 → 100644
View file @
a7a1c313
1
100 V2.0.0
101 24
2
200 common
201 0
202 1
203 15
204
3
300 pwrp
301 aaupl/kQs1p3U
302 4129168825
303 16
305
304 Proview project user
307
306
308
99
3
300 op1
301 aa.d10HWuKdCo
302 4294843775
303 17
305
304 Operator with Operator1 privilege
307
306
308
99
3
300 op2
301 aa.d10HWuKdCo
302 4294843711
303 18
305
304 Operator with Operator2 privilege
307
306
308
99
3
300 op3
301 aa.d10HWuKdCo
302 4294843583
303 19
305
304 Operator with Operator3 privilege
307
306
308
99
3
300 op4
301 aa.d10HWuKdCo
302 4294843327
303 20
305
304 Operator with Operator4 privilege
307
306
308
99
99
99
src/tools/pkg/raspbian/adm/pwr_volumelist.dat
0 → 100644
View file @
a7a1c313
!**Menu ClassVolumes { //
!**Menu BaseClasses { //
NMps 0.0.1.1 PwrBase
TLog 0.0.1.2 PwrBase
SSAB 0.0.1.3 PwrBase
Remote 0.0.1.4 PwrBase
Miscellaneous 0.0.0.9 PwrBase
BaseComponent 0.0.0.10 PwrBase
Profibus 0.0.250.7 PwrBase
OtherManufacturer 0.0.250.1 PwrBase
ABB 0.0.250.2 PwrBase
Siemens 0.0.250.3 PwrBase
Telemecanique 0.0.250.4 PwrBase
SsabOx 0.0.250.5 PwrBase
KlocknerMoeller 0.0.250.6 PwrBase
Inor 0.0.250.8 PwrBase
!**}
!**}
src/tools/pkg/raspbian/adm/pwra_env.sh
0 → 100755
View file @
a7a1c313
#! /bin/bash
#
#
#
pwra_set_func
()
{
local
cmd
local
baseroot
local
project
if
[
-z
$1
]
;
then
echo
"Qualifier is missing"
return
fi
cmd
=
"base"
if
[
$1
=
$cmd
]
||
[
${
cmd
#
$1
}
!=
$cmd
]
;
then
# Command is "set base"
basename
=
$2
basename
=
${
basename
//\./\\.
}
baseroot
=
`
eval cat
$pwra_db
/pwr_projectlist.dat |
grep
"
\s
"
$basename
"
\s
"
|
grep
"^"
%base
"
\s
"
|
awk
'{print $3}'
`
if
[
-z
$baseroot
]
;
then
echo
"Unable to find base '
$2
'"
return
fi
baseroot
=
${
baseroot
%/
}
if
[
!
-e
"
$baseroot
"
]
;
then
echo
"Base
$baseroot
doesn't exist"
elif
[
"
$3
"
!=
"cross"
]
;
then
if
[
!
-e
$baseroot
/
$os
/
$hw
/exp/exe/pwrp_env.sh
]
;
then
echo
"Not a base directory:
$baseroot
"
return
fi
source
$baseroot
/
$os
/
$hw
/exp/exe/pwrp_env.sh
set
baseroot
$baseroot
fi
return
fi
cmd
=
"baseroot"
if
[
$1
=
$cmd
]
||
[
${
cmd
#
$1
}
!=
$cmd
]
;
then
# Command is "set baseroot"
baseroot
=
$2
baseroot
=
${
baseroot
%/
}
if
[
!
-e
"
$baseroot
"
]
;
then
echo
"Base
$baseroot
doesn't exist"
else
if
[
!
-e
$baseroot
/
$os
/
$hw
/exp/exe/pwrp_env.sh
]
;
then
echo
"Not a base directory:
$baseroot
"
return
fi
source
$baseroot
/
$os
/
$hw
/exp/exe/pwrp_env.sh
set
baseroot
$baseroot
fi
return
fi
cmd
=
"project"
if
[
$1
=
$cmd
]
||
[
${
cmd
#
$1
}
!=
$cmd
]
;
then
# Command is "set project"
project
=
$2
basename
=
`
eval cat
$pwra_db
/pwr_projectlist.dat |
grep
"^"
$project
"
\b
"
|
awk
'{print $2}'
`
basename
=
${
basename
//\./\\.
}
if
[
-z
$basename
]
;
then
echo
"Unable to find project '
$2
'"
return
fi
baseroot
=
`
eval cat
$pwra_db
/pwr_projectlist.dat |
grep
"
\s
"
$basename
"
\s
"
|
grep
"^"
%base
"
\s
"
|
awk
'{print $3}'
`
if
[
-z
$baseroot
]
;
then
echo
"Unable to find base '
$2
'"
return
fi
baseroot
=
${
baseroot
%/
}
if
[
!
-e
"
$baseroot
"
]
;
then
echo
"Base
$baseroot
doesn't exist"
else
if
[
!
-e
$baseroot
/
$os
/
$hw
/exp/exe/pwrp_env.sh
]
;
then
echo
"Not a base directory:
$baseroot
"
return
fi
source
$baseroot
/
$os
/
$hw
/exp/exe/pwrp_env.sh
set
baseroot
$baseroot
source
$baseroot
/
$os
/
$hw
/exp/exe/pwrp_env.sh
set
project
$project
export
PS1
=
'\u@\h/$pwrp_projectname/-.\W> '
fi
return
fi
if
[
-z
$pwr_exe
]
;
then
echo
"No project is defined"
return
fi
source
$pwr_exe
/pwrp_env.sh
set
$1
$2
$3
}
pwra_help_func
()
{
source
$pwr_exe
/pwrp_env.sh
$@
cat
<<
EOF
pwra_env.sh - Utilities for pwr project environment
help - Display help
set base 'distribution' - Setup environment to proview base distribution
set baseroot 'root' - Setup environment to proview base distribution
EOF
}
pwra_parse
()
{
unamestr
=
`
eval uname
`
onamestr
=
`
eval uname
-o
`
machine
=
`
eval uname
-m
`
if
[
$unamestr
==
"Darwin"
]
;
then
os
=
"os_macos"
hw
=
"hw_x86_64"
elif
[
$unamestr
==
"FreeBSD"
]
;
then
os
=
"os_freebsd"
hw
=
"hw_x86_64"
elif
[
$unamestr
==
"OpenBSD"
]
;
then
os
=
"os_openbsd"
hw
=
"hw_x86_64"
elif
[
$onamestr
==
"Cygwin"
]
;
then
os
=
"os_cygwin"
hw
=
"hw_x86"
else
if
[
$machine
==
"x86_64"
]
;
then
machine
=
"x86_64"
elif
[
${
machine
:0:3
}
==
"arm"
]
;
then
machine
=
"arm"
else
machine
=
"x86"
fi
os
=
"os_linux"
hw
=
"hw_"
$machine
fi
local
cmd
cmd
=
"help"
if
[
-z
$1
]
||
[
$1
=
$cmd
]
||
[
${
cmd
#
$1
}
!=
$cmd
]
;
then
pwra_help_func
$2
$3
return
fi
cmd
=
"set"
if
[
$1
=
$cmd
]
||
[
${
cmd
#
$1
}
!=
$cmd
]
;
then
pwra_set_func
$2
$3
return
fi
if
[
-z
$pwr_exe
]
;
then
echo
"No project is defined"
return
fi
source
$pwr_exe
/pwrp_env.sh
$@
}
pwra_parse
$@
src/tools/pkg/raspbian/adm/pwra_env.sh_openbsd
0 → 100755
View file @
a7a1c313
#! /bin/bash
#
#
#
pwra_set_func
()
{
local
cmd
local
baseroot
local
project
if
[
-z
$1
]
;
then
echo
"Qualifier is missing"
return
fi
cmd
=
"base"
if
[
$1
=
$cmd
]
||
[
${
cmd
#
$1
}
!=
$cmd
]
;
then
# Command is "set base"
basename
=
$2
basename
=
${
basename
//\./\\.
}
baseroot
=
`
eval cat
$pwra_db
/pwr_projectlist.dat |
grep
"[[:<:]]"
$basename
"[[:>:]]"
|
grep
"^"
%base
"[[:>:]]"
|
awk
'{print $3}'
`
if
[
-z
$baseroot
]
;
then
echo
"Unable to find base '
$2
'"
return
fi
baseroot
=
${
baseroot
%/
}
if
[
!
-e
"
$baseroot
"
]
;
then
echo
"Base
$baseroot
doesn't exist"
elif
[
"
$3
"
!=
"cross"
]
;
then
if
[
!
-e
$baseroot
/
$os
/
$hw
/exp/exe/pwrp_env.sh
]
;
then
echo
"Not a base directory:
$baseroot
"
return
fi
source
$baseroot
/
$os
/
$hw
/exp/exe/pwrp_env.sh
set
baseroot
$baseroot
fi
return
fi
cmd
=
"baseroot"
if
[
$1
=
$cmd
]
||
[
${
cmd
#
$1
}
!=
$cmd
]
;
then
# Command is "set baseroot"
baseroot
=
$2
baseroot
=
${
baseroot
%/
}
if
[
!
-e
"
$baseroot
"
]
;
then
echo
"Base
$baseroot
doesn't exist"
else
if
[
!
-e
$baseroot
/
$os
/
$hw
/exp/exe/pwrp_env.sh
]
;
then
echo
"Not a base directory:
$baseroot
"
return
fi
source
$baseroot
/
$os
/
$hw
/exp/exe/pwrp_env.sh
set
baseroot
$baseroot
fi
return
fi
cmd
=
"project"
if
[
$1
=
$cmd
]
||
[
${
cmd
#
$1
}
!=
$cmd
]
;
then
# Command is "set project"
project
=
$2
basename
=
`
eval cat
$pwra_db
/pwr_projectlist.dat |
grep
"^"
$project
"[[:>:]]"
|
awk
'{print $2}'
`
basename
=
${
basename
//\./\\.
}
if
[
-z
$basename
]
;
then
echo
"Unable to find project '
$2
'"
return
fi
baseroot
=
`
eval cat
$pwra_db
/pwr_projectlist.dat |
grep
"[[:<:]]"
$basename
"[[:>:]]"
|
grep
"^"
%base
"[[:>:]]"
|
awk
'{print $3}'
`
if
[
-z
$baseroot
]
;
then
echo
"Unable to find base '
$2
'"
return
fi
baseroot
=
${
baseroot
%/
}
if
[
!
-e
"
$baseroot
"
]
;
then
echo
"Base
$baseroot
doesn't exist"
else
if
[
!
-e
$baseroot
/
$os
/
$hw
/exp/exe/pwrp_env.sh
]
;
then
echo
"Not a base directory:
$baseroot
"
return
fi
source
$baseroot
/
$os
/
$hw
/exp/exe/pwrp_env.sh
set
baseroot
$baseroot
source
$baseroot
/
$os
/
$hw
/exp/exe/pwrp_env.sh
set
project
$project
export
PS1
=
'\u@\h/$pwrp_projectname/-.\W> '
fi
return
fi
if
[
-z
$pwr_exe
]
;
then
echo
"No project is defined"
return
fi
source
$pwr_exe
/pwrp_env.sh
set
$1
$2
$3
}
pwra_help_func
()
{
source
$pwr_exe
/pwrp_env.sh
$@
cat
<<
EOF
pwra_env.sh - Utilities for pwr project environment
help - Display help
set base 'distribution' - Setup environment to proview base distribution
set baseroot 'root' - Setup environment to proview base distribution
EOF
}
pwra_parse
()
{
unamestr
=
`
eval uname
`
machine
=
`
eval uname
-m
`
if
[
$unamestr
==
"Darwin"
]
;
then
os
=
"os_macos"
hw
=
"hw_x86_64"
elif
[
$unamestr
==
"FreeBSD"
]
;
then
os
=
"os_freebsd"
hw
=
"hw_x86_64"
elif
[
$unamestr
==
"OpenBSD"
]
;
then
os
=
"os_openbsd"
hw
=
"hw_x86_64"
else
if
[
$machine
!=
"x86_64"
]
;
then
machine
=
"x86"
fi
os
=
"os_linux"
hw
=
"hw_"
$machine
fi
local
cmd
cmd
=
"help"
if
[
-z
$1
]
||
[
$1
=
$cmd
]
||
[
${
cmd
#
$1
}
!=
$cmd
]
;
then
pwra_help_func
$2
$3
return
fi
cmd
=
"set"
if
[
$1
=
$cmd
]
||
[
${
cmd
#
$1
}
!=
$cmd
]
;
then
pwra_set_func
$2
$3
return
fi
if
[
-z
$pwr_exe
]
;
then
echo
"No project is defined"
return
fi
source
$pwr_exe
/pwrp_env.sh
$@
}
pwra_parse
$@
src/tools/pkg/raspbian/op/.bash_profile
0 → 100644
View file @
a7a1c313
# ~/.bash_profile: executed by bash(1) for login shells.
# see /usr/share/doc/bash/examples/startup-files for examples.
# the files are located in the bash-doc package.
umask 022
# the rest of this file is commented out.
# include .bashrc if it exists
if [ -f ~/.bashrc ]; then
source ~/.bashrc
fi
# set PATH so it includes user's private bin if it exists
#if [ -d ~/bin ] ; then
# PATH=~/bin:"${PATH}"
#fi
src/tools/pkg/raspbian/op/.bashrc
0 → 100644
View file @
a7a1c313
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files for examples
source
/etc/pwrp_profile
# If running interactively, then:
if
[
"
$PS1
"
]
;
then
# enable color support of ls and also add handy aliases
eval
`
dircolors
-b
`
alias ls
=
'ls --color=auto'
#alias ll='ls -l'
#alias la='ls -A'
#alias l='ls -CF'
#alias dir='ls --color=auto --format=vertical'
#alias vdir='ls --color=auto --format=long'
# set a fancy prompt
PS1
=
'\u@\h:\w\$ '
# If this is an xterm set the title to user@host:dir
#case $TERM in
#xterm*)
# PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"'
# ;;
#*)
# ;;
#esac
fi
src/tools/pkg/raspbian/op/.mwmrc
0 → 100644
View file @
a7a1c313
!!
!! Root Menu Description for operator
!!
Menu DefaultRootMenu
{
"Operator Menu" f.title
"XTT OP-bilder" f.exec "~/.xtt_start &"
! "XTT" f.exec "~/.xtt_start &"
! "RTT" f.exec "/usr/bin/X11/xterm -T RTT -e ~/.rtt_start &"
"Xterm" f.exec "/usr/bin/X11/xterm -T XTerm -sb -right &"
"Klocka" f.exec "/usr/bin/X11/xclock &"
"Miniraknare" f.exec "/usr/bin/X11/xcalc &"
! "Shuffle Up" f.circle_up
! "Shuffle Down" f.circle_down
"Refresh" f.refresh
! "Pack Icons" f.pack_icons
! "Toggle Behavior..." f.set_behavior
no-label f.separator
! "Starta om X" f.restart
"Logga ut" f.quit_mwm
"Starta om dator" f.exec "/usr/bin/rebootreq &"
"Stang av dator" f.exec "/usr/bin/haltreq &"
}
!!
!! Default Window Menu
!!
Menu DefaultWindowMenu
{
"Make Pinned" f.toggle_pin_state
no-label f.separator
Restore _R Alt<Key>F5 f.restore
Move _M Alt<Key>F7 f.move
Size _S Alt<Key>F8 f.resize
Minimize _n Alt<Key>F9 f.minimize
Maximize _x Alt<Key>F10 f.maximize
Raise _a Alt<Key>F2 f.raise
Lower _L Alt<Key>F3 f.lower
no-label f.separator
Close _C Alt<Key>F4 f.kill
}
!!
!! Default Key Bindings
!!
Keys DefaultKeyBindings
{
Shift<Key>Escape window|icon f.post_wmenu
Alt<Key>space window|icon f.post_wmenu
Alt<Key>Tab root|icon|window f.next_key
Alt Shift<Key>Tab root|icon|window f.prev_key
Alt<Key>Escape root|icon|window f.circle_down
Alt Shift<Key>Escape root|icon|window f.circle_up
Alt Shift Ctrl<Key>exclam root|icon|window f.set_behavior
Alt<Key>F6 window f.next_key transient
Alt Shift<Key>F6 window f.prev_key transient
Shift<Key>F10 icon f.post_wmenu
Alt Shift<Key>Delete root|icon|window f.restart
}
!!
!! Button Binding Description(s)
!!
!! These can be used anywhere
!!
Buttons DefaultButtonBindings
{
<Btn1Down> icon|frame f.raise
<Btn3Down> icon|frame f.post_wmenu
<Btn3Down> root f.menu DefaultRootMenu
}
!!
!! These are some example bindings that you might use if your
!! keyboardFocusPolicy is "explicit". Note that to use these, you'll
!! have to change the Mwm*buttonBindings resource in Mwm to
!! ExplicitButtonBindings instead of DefaultButtonBindings.
!!
Buttons ExplicitButtonBindings
{
<Btn1Down> frame|icon f.raise
<Btn3Down> frame|icon f.post_wmenu
<Btn3Down> root f.menu DefaultRootMenu
! <Btn1Up> icon f.restore
Alt<Btn1Down> window|icon f.lower
! Alt<Btn2Down> window|icon f.resize
! Alt<Btn3Down> window|icon f.move
}
!! These are some example bindings that you might use if your
!! keyboardFocusPolicy is "pointer". Note that to use these, you'll
!! have to change the Mwm*buttonBindings resource in Mwm to
!! PointerButtonBindings instead of DefaultButtonBindings.
!!
Buttons PointerButtonBindings
{
<Btn1Down> frame|icon f.raise
<Btn3Down> frame|icon f.post_wmenu
<Btn3Down> root f.menu DefaultRootMenu
<Btn1Down> window f.raise
! <Btn1Up> icon f.restore
Alt<Btn1Down> window|icon f.lower
! Alt<Btn2Down> window|icon f.resize
! Alt<Btn3Down> window|icon f.move
}
!include-menu-defs
#Automatically generated file. Do not edit (see /usr/doc/menu/html/index.html)
Menu "/Debian/Apps/Editors"
{
"Editors" f.title
"Emacs 20" f.exec "/usr/bin/emacs20 &"
"NEdit" f.exec "/usr/bin/X11/nedit &"
"Xedit" f.exec "xedit &"
}
Menu "/Debian/Apps/Graphics"
{
"Graphics" f.title
"Bitmap" f.exec "bitmap &"
}
Menu "/Debian/Apps/Math"
{
"Math" f.title
"Xcalc" f.exec "xcalc &"
"bc" f.exec "x-terminal-emulator -T 'bc' -e /usr/bin/bc &"
"dc" f.exec "x-terminal-emulator -T 'dc' -e /usr/bin/dc &"
}
Menu "/Debian/Apps/Net"
{
"Net" f.title
"Lynx" f.exec "x-terminal-emulator -T 'Lynx' -e /usr/bin/lynx &"
"Telnet" f.exec "x-terminal-emulator -T 'Telnet' -e telnet &"
"Xbiff" f.exec "xbiff &"
}
Menu "/Debian/Apps/Programming"
{
"Programming" f.title
"Gdb" f.exec "x-terminal-emulator -T 'Gdb' -e /usr/bin/gdb &"
"Python (v2.1)" f.exec "x-terminal-emulator -T 'Python (v2.1)' -e /usr/bin/python2.1 &"
"Tclsh8.0" f.exec "x-terminal-emulator -T 'Tclsh8.0' -e /usr/bin/tclsh8.0 &"
"Tclsh8.2" f.exec "x-terminal-emulator -T 'Tclsh8.2' -e /usr/bin/tclsh8.2 &"
"Tclsh8.3" f.exec "x-terminal-emulator -T 'Tclsh8.3' -e /usr/bin/tclsh8.3 &"
"TkWish8.0" f.exec "x-terminal-emulator -T 'TkWish8.0' -e /usr/bin/wish8.0 &"
"TkWish8.3" f.exec "/usr/bin/wish8.3 &"
}
Menu "/Debian/Apps/Shells"
{
"Shells" f.title
"Bash" f.exec "x-terminal-emulator -T 'Bash' -e /bin/bash -login &"
"Sh" f.exec "x-terminal-emulator -T 'Sh' -e /bin/sh -login &"
"Tcsh" f.exec "x-terminal-emulator -T 'Tcsh' -e /usr/bin/tcsh &"
}
Menu "/Debian/Apps/System/Admin"
{
"Admin" f.title
"Lilo-config" f.exec "x-terminal-emulator -T 'Lilo-config' -e /usr/sbin/su-to-root -p root -c /usr/sbin/liloconfig &"
"gpm-config" f.exec "x-terminal-emulator -T 'gpm-config' -e /usr/sbin/su-to-root -p root -c /usr/sbin/gpmconfig &"
}
Menu "/Debian/Apps/System"
{
"System" f.title
"Admin" f.menu "/Debian/Apps/System/Admin"
"Task selector" f.exec "x-terminal-emulator -T 'Task selector' -e su-to-root /usr/bin/tasksel &"
"Top" f.exec "x-terminal-emulator -T 'Top' -e /usr/bin/top &"
"Xconsole" f.exec "xconsole &"
"Xload" f.exec "xload &"
"Xvidtune" f.exec "xvidtune &"
"pstree" f.exec "/etc/alternatives/x-terminal-emulator -e /usr/bin/pstree.x11 &"
}
Menu "/Debian/Apps/Tools"
{
"Tools" f.title
"Editres" f.exec "editres &"
"Oclock" f.exec "oclock &"
"X Window Snapshot" f.exec "xwd | xwud &"
"Xclipboard" f.exec "xclipboard &"
"Xclock (analog)" f.exec "xclock -analog &"
"Xclock (digital)" f.exec "xclock -digital -update 1 &"
"Xcutsel" f.exec "xcutsel &"
"Xev" f.exec "x-terminal-emulator -e xev &"
"Xfontsel" f.exec "xfontsel &"
"Xkill" f.exec "xkill &"
"Xmag" f.exec "xmag &"
"Xrefresh" f.exec "xrefresh &"
}
Menu "/Debian/Apps/Viewers"
{
"Viewers" f.title
"GV" f.exec "/usr/bin/X11/gv &"
"XDvi" f.exec "/usr/bin/xdvi &"
"Xditview" f.exec "xditview &"
}
Menu "/Debian/Apps"
{
"Apps" f.title
"Editors" f.menu "/Debian/Apps/Editors"
"Graphics" f.menu "/Debian/Apps/Graphics"
"Math" f.menu "/Debian/Apps/Math"
"Net" f.menu "/Debian/Apps/Net"
"Programming" f.menu "/Debian/Apps/Programming"
"Shells" f.menu "/Debian/Apps/Shells"
"System" f.menu "/Debian/Apps/System"
"Tools" f.menu "/Debian/Apps/Tools"
"Viewers" f.menu "/Debian/Apps/Viewers"
}
Menu "/Debian/Games/Toys"
{
"Toys" f.title
"Xeyes" f.exec "xeyes &"
"Xlogo" f.exec "xlogo &"
}
Menu "/Debian/Games"
{
"Games" f.title
"Toys" f.menu "/Debian/Games/Toys"
}
Menu "/Debian/Help"
{
"Help" f.title
"Info" f.exec "x-terminal-emulator -T 'Info' -e info &"
"Xman" f.exec "xman &"
}
Menu "/Debian/Screen/Root-window"
{
"Root-window" f.title
"Xsetroot" f.exec "xsetroot &"
}
Menu "/Debian/Screen/Save"
{
"Save" f.title
"Beforelight" f.exec "beforelight &"
}
Menu "/Debian/Screen"
{
"Screen" f.title
"Root-window" f.menu "/Debian/Screen/Root-window"
"Save" f.menu "/Debian/Screen/Save"
}
Menu "/Debian/XShells"
{
"XShells" f.title
"XTerm" f.exec "xterm &"
"XTerm (Unicode)" f.exec "uxterm &"
}
Menu "/Debian"
{
"Debian" f.title
"Apps" f.menu "/Debian/Apps"
"Games" f.menu "/Debian/Games"
"Help" f.menu "/Debian/Help"
"Screen" f.menu "/Debian/Screen"
"XShells" f.menu "/Debian/XShells"
}
src/tools/pkg/raspbian/op/.rtt_start
0 → 100644
View file @
a7a1c313
#!/bin/bash
source
/etc/pwrp_profile
$pwr_exe
/rt_rtt
src/tools/pkg/raspbian/op/.xsession
0 → 100644
View file @
a7a1c313
xsetroot -solid darkcyan
xhost +localhost
~/.xtt_start
xset s off s noblank s noexpose -dpms
exec mwm
src/tools/pkg/raspbian/op/.xtt_start
0 → 100644
View file @
a7a1c313
#!/bin/bash
source
/etc/pwrp_profile
$pwr_exe
/rt_xtt
-u
$USER
-a
&
src/tools/pkg/raspbian/pwr/build.sh
0 → 100755
View file @
a7a1c313
#!/bin/bash
aroot
=
"/usr/pwrp/adm"
# 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
# Generate version help file
{
if
[
!
-e
$pwre_sroot
/tools/pkg/raspbian/pwr/control
]
;
then
echo
"Controlfile not found"
exit
1
fi
datfile
=
$pwre_sroot
/tools/pkg/raspbian/pwr/control
echo
"<topic> version"
d
=
`
eval date
+
\"
%F %X
\"
`
{
let
printout
=
0
while
read
line
;
do
if
[
"
${
line
:0:9
}
"
=
"Package: "
]
;
then
package
=
${
line
#Package
:
}
fi
if
[
"
${
line
:0:9
}
"
=
"Version: "
]
;
then
version
=
${
line
#Version
:
}
fi
if
[
"
${
line
:0:14
}
"
=
"Architecture: "
]
;
then
arch
=
${
line
#Architecture
:
}
fi
if
[
"
${
line
:0:12
}
"
=
"Description:"
]
;
then
echo
""
echo
"<image> pwr_logga.gif"
echo
""
echo
""
echo
""
echo
"<b>Proview V
${
version
:0:3
}
"
echo
"Version V
$version
"
echo
""
echo
"Copyright 2004-
${
d
:0:4
}
SSAB Oxelsund AB"
echo
""
echo
"This program is free software; you can redistribute it and/or"
echo
"modify it under the terms of the GNU General Public License as"
echo
"published by the Free Software Foundation, either version 2 of"
echo
"the License, or (at your option) any later version."
echo
""
echo
"This program is distributed in the hope that it will be useful"
echo
"but WITHOUT ANY WARRANTY; without even the implied warranty of"
echo
"MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
echo
"For more details, see the"
echo
"GNU General Public License. <weblink> http://www.proview.se/gpllicense.html"
echo
""
echo
"E-mail postmaster@proview.se"
echo
"Internet www.proview.se <link> http://www.proview.se/index.html"
echo
""
echo
""
echo
"<b>Package"
echo
"Package
$package
""_""
$version
""_""
$arch
"
echo
"Build date
$d
"
echo
"Package description:"
echo
""
printout
=
1
else
if
[
$printout
-eq
1
]
;
then
echo
$line
fi
fi
done
}
<
$datfile
echo
"</topic>"
}
>
$pwr_eexe
/wtt_version_help.dat
# Convert to html
co_convert
-t
-d
$pwr_doc
$pwr_eexe
/wtt_version_help.dat
{
echo
"<html><head>"
echo
"<meta http-equiv=
\"
Refresh
\"
content=
\"
5;../wtt_version_help_version.html
\"
>"
echo
"</head></html>"
}
>
$pwr_doc
/en_us/package_version.html
if
[
"
$1
"
==
"-v"
]
;
then
exit
fi
pkgroot
=
$pwre_broot
/
$pwre_target
/bld/pkg/pwr
$ver
pkgsrc
=
$pwre_sroot
/tools/pkg/raspbian/pwr
echo
"-- Building pwr
$ver
"
# Create directories
mkdir
-p
$pkgroot
/DEBIAN
mkdir
-p
$pkgroot
/usr/share/doc/pwr
$ver
mkdir
-p
$pkgroot
/usr/pwrp
mkdir
-p
$pkgroot
/etc
find
$pkgroot
-type
d | xargs
chmod
755
# control
cp
$pkgsrc
/control
$pkgroot
/DEBIAN
echo
"#!/bin/bash"
>
$pkgroot
/DEBIAN/postinst
echo
"ver=
\"
$ver
\"
"
>>
$pkgroot
/DEBIAN/postinst
echo
"pwre_target=
\"
$pwre_target
\"
"
>>
$pkgroot
/DEBIAN/postinst
cat
$pkgsrc
/postinst
>>
$pkgroot
/DEBIAN/postinst
chmod
a+x
$pkgroot
/DEBIAN/postinst
cp
$pkgsrc
/prerm
$pkgroot
/DEBIAN
# copyright
cp
$pkgsrc
/copyright
$pkgroot
/usr/share/doc/pwr
$ver
# changelog
cp
$pkgsrc
/changelog
$pkgroot
/usr/share/doc/pwr
$ver
gzip
-fq
--best
$pkgroot
/usr/share/doc/pwr
$ver
/changelog
# changelog.Debian
cp
$pkgsrc
/changelog.Debian
$pkgroot
/usr/share/doc/pwr
$ver
gzip
-fq
--best
$pkgroot
/usr/share/doc/pwr
$ver
/changelog.Debian
# 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
# Copy proview
mkdir
$pkgroot
/usr/pwr
$ver
currentdir
=
"
`
eval pwd
`
"
tarfile
=
$pwre_broot
/
$pwre_target
/bld/pkg/pwrtmp.tar
cd
$pwre_broot
echo
"-- copy release to package tree"
tar
-cf
$tarfile
$pwre_target
/exp
cd
$pkgroot
/usr/pwr
$ver
tar
-xf
$tarfile
rm
$tarfile
cd
$currentdir
# Remove not needed libraries
rm
$pkgroot
/usr/pwr
$ver
/
$pwre_target
/exp/lib/libpwr_flow.a
rm
$pkgroot
/usr/pwr
$ver
/
$pwre_target
/exp/lib/libpwr_ge.a
rm
$pkgroot
/usr/pwr
$ver
/
$pwre_target
/exp/lib/libpwr_glow.a
rm
$pkgroot
/usr/pwr
$ver
/
$pwre_target
/exp/lib/libpwr_tlog.a
rm
$pkgroot
/usr/pwr
$ver
/
$pwre_target
/exp/lib/libpwr_wb.a
rm
$pkgroot
/usr/pwr
$ver
/
$pwre_target
/exp/lib/libpwr_xtt.a
# Copy configuration files to cnf
cp
$pkgsrc
/proview.cnf
$pkgroot
/usr/pwr
$ver
/
$pwre_target
/exp/cnf
cp
$pkgsrc
/pwrp_profile
$pkgroot
/etc
chmod
a+x
$pkgroot
/etc/pwrp_profile
# Copy adm files to cnf
cp
$pwre_sroot
/tools/pkg/deb/adm/pwr_setup.sh
$pkgroot
/usr/pwr
$ver
/
$pwre_target
/exp/cnf
echo
"pwrp set base V
${
ver
:0:1
}
.
${
ver
:1:1
}
"
>>
$pkgroot
/usr/pwr
$ver
/
$pwre_target
/exp/cnf/pwr_setup.sh
chmod
a+x
$pkgroot
/usr/pwr
$ver
/
$pwre_target
/exp/cnf/pwr_setup.sh
cp
$pwre_sroot
/tools/pkg/deb/adm/pwra_env.sh
$pkgroot
/usr/pwr
$ver
/
$pwre_target
/exp/cnf
chmod
a+x
$pkgroot
/usr/pwr
$ver
/
$pwre_target
/exp/cnf/pwra_env.sh
cp
$pwre_sroot
/tools/pkg/deb/adm/pwr_volumelist.dat
$pkgroot
/usr/pwr
$ver
/
$pwre_target
/exp/cnf
cp
$pwre_sroot
/tools/pkg/deb/adm/pwr_user2.dat
$pkgroot
/usr/pwr
$ver
/
$pwre_target
/exp/cnf
cp
$pwre_sroot
/tools/pkg/deb/adm/proview_icon.png
$pkgroot
/usr/pwr
$ver
/
$pwre_target
/exp/cnf
# Copy user to cnf
mkdir
$pkgroot
/usr/pwr
$ver
/
$pwre_target
/exp/cnf/user
cp
$pwre_sroot
/tools/pkg/deb/user/.bashrc
$pkgroot
/usr/pwr
$ver
/
$pwre_target
/exp/cnf/user
echo
"source
$aroot
/db/pwr_setup.sh"
>>
$pkgroot
/usr/pwr
$ver
/
$pwre_target
/exp/cnf/user/.bashrc
cp
$pwre_sroot
/tools/pkg/deb/user/.bash_profile
$pkgroot
/usr/pwr
$ver
/
$pwre_target
/exp/cnf/user
#cp $pwre_sroot/tools/pkg/deb/user/.mwmrc $pkgroot/usr/pwr$ver/$pwre_target/exp/cnf/user
cp
$pwre_sroot
/tools/pkg/deb/user/.rtt_start
$pkgroot
/usr/pwr
$ver
/
$pwre_target
/exp/cnf/user
cp
$pwre_sroot
/tools/pkg/deb/user/.xtt_start
$pkgroot
/usr/pwr
$ver
/
$pwre_target
/exp/cnf/user
#cp $pwre_sroot/tools/pkg/deb/user/.xsession $pkgroot/usr/pwr$ver/$pwre_target/exp/cnf/user
cp
$pwre_sroot
/tools/pkg/deb/user/wtt_init.pwr_com
$pkgroot
/usr/pwr
$ver
/
$pwre_target
/exp/cnf/user
cp
$pwre_sroot
/tools/pkg/deb/user/wtt_init1.pwr_com
$pkgroot
/usr/pwr
$ver
/
$pwre_target
/exp/cnf/user
# Generate desktop file
{
echo
"[Desktop Entry]"
echo
"Version=1.0"
echo
"Encoding=UTF-8"
echo
"Name=Proview V
${
version
:0:3
}
"
echo
"Type=Application"
echo
"Comment=Start Proview"
echo
"Exec=xterm -title
\"
Proview Development Console
\"
-e 'export pwra_db=
$aroot
/db;source
\$
pwra_db/pwra_env.sh set base V""
${
version
:0:3
}
"";source
\$
pwra_db/pwra_env.sh set bus;wb -p pwrp pwrp'"
echo
"Icon=
$aroot
/db/proview_icon.png"
echo
"Categories=GNOME;GTK;Application;"
}
>
$pkgroot
/usr/pwr
$ver
/
$pwre_target
/exp/cnf/user/proview
$ver
.desktop
# Create package
echo
"-- Building package"
if
which fakeroot
>
/dev/null
;
then
fakeroot dpkg
-b
$pkgroot
$pwre_broot
/
$pwre_target
/bld/pkg
else
dpkg
-b
$pkgroot
$pwre_broot
/
$pwre_target
/bld/pkg
fi
rm
-r
$pkgroot
src/tools/pkg/raspbian/pwr/changelog
0 → 100644
View file @
a7a1c313
Proview V3.4b (3.4.1-1)
\ No newline at end of file
src/tools/pkg/raspbian/pwr/changelog.Debian
0 → 100644
View file @
a7a1c313
Proview. See also normal changelog file.
\ No newline at end of file
src/tools/pkg/raspbian/pwr/control
0 → 100644
View file @
a7a1c313
Package: pwr51
Version: 5.1.0-1
Section: base
Priority: optional
Architecture: armhf
Depends: libc6 (>= 2.13-38+rpi2), libgtk2.0-0 (>= 2.24.10-2), libasound2 (>= 1.0.25-4), libdb5.3 (>=5.3.15-2), libdb5.3++ (>= 5.3.15-2), libsqlite3-0 (>= 3.7.13-1+deb7u1), librsvg2-2 (>= 2.36.1-1), g++ (>= 4:4.6.3-8)
Replaces: pwrrt,pwr34,pwr39,pwr40,pwr41,pwr42,pwr43,pwr44,pwr45,pwr46,pwr47,pwr48,pwr50
Maintainer: Proview <postmaster@proview.se>
Description: Proview development and runtime environment package
Proview development and runtime environment
5.1.0-1 Base release
src/tools/pkg/raspbian/pwr/copyright
0 → 100644
View file @
a7a1c313
Proview
Copyright: SSAB Oxelsund AB <ssabox.com>
2003-11-21
The home page of Proview is at:
http://www.proview.se
src/tools/pkg/raspbian/pwr/postinst
0 → 100755
View file @
a7a1c313
#!/bin/sh
set
-e
# ver=""
# pwre_target=""
echo
"Here in postinst..."
# Automatically added by dh_installdocs
if
[
"
$1
"
=
"configure"
]
;
then
if
[
-d
/usr/doc
-a
!
-e
/usr/doc/pwrtest
-a
-d
/usr/share/doc/pwrtest
]
;
then
ln
-sf
../share/doc/pwrtest /usr/doc/pwrtest
fi
fi
# End automatically added section
aroot
=
"/usr/pwrp/adm"
if
getent group pwrp
>
/dev/null
;
then
echo
"-- group pwrp already exist"
else
if
groupadd pwrp
;
then
echo
"-- group pwrp added"
fi
fi
if
getent passwd pwrp
>
/dev/null
;
then
echo
"-- user pwrp already exist"
else
new_user
=
1
if
useradd
-s
/bin/bash
-p
aaupl/kQs1p3U
-g
pwrp
-d
/home/pwrp pwrp
;
then
echo
"-- user pwrp added"
fi
if
[
!
-e
/home/pwrp
]
;
then
mkdir
/home/pwrp
fi
cp
/usr/pwr
$ver
/
$pwre_target
/exp/cnf/user/.bashrc /home/pwrp
cp
/usr/pwr
$ver
/
$pwre_target
/exp/cnf/user/.bash_profile /home/pwrp
# cp /usr/pwr$ver/$pwre_target/exp/cnf/user/.mwmrc /home/pwrp
cp
/usr/pwr
$ver
/
$pwre_target
/exp/cnf/user/.rtt_start /home/pwrp
chmod
a+x /home/pwrp/.rtt_start
cp
/usr/pwr
$ver
/
$pwre_target
/exp/cnf/user/.xtt_start /home/pwrp
chmod
a+x /home/pwrp/.xtt_start
# cp /usr/pwr$ver/$pwre_target/exp/cnf/user/.xsession /home/pwrp
cp
/usr/pwr
$ver
/
$pwre_target
/exp/cnf/user/wtt_init.pwr_com /home/pwrp
cp
/usr/pwr
$ver
/
$pwre_target
/exp/cnf/user/wtt_init1.pwr_com /home/pwrp
chown
-R
pwrp /home/pwrp
chgrp
-R
pwrp /home/pwrp
fi
if
[
!
-e
/home/pwrp/Desktop
]
;
then
mkdir
/home/pwrp/Desktop
fi
cp
/usr/pwr
$ver
/
$pwre_target
/exp/cnf/user/proview
$ver
.desktop /home/pwrp/Desktop
chown
pwrp:pwrp /home/pwrp/Desktop/proview
$ver
.desktop
chmod
a+x /home/pwrp/Desktop/proview
$ver
.desktop
echo
"Change owner of files to pwrp"
chown
-R
pwrp /usr/pwr
$ver
chgrp
-R
pwrp /usr/pwr
$ver
chmod
u+s /usr/pwr
$ver
/
$pwre_target
/exp/exe/rt_ini
chmod
u+s /usr/pwr
$ver
/
$pwre_target
/exp/exe/rt_rtt
chmod
u+s /usr/pwr
$ver
/
$pwre_target
/exp/exe/rt_xtt
chmod
u+s /usr/pwr
$ver
/
$pwre_target
/exp/exe/rt_bck
# Copy configuration files
new_cnf
=
0
if
[
!
-e
/etc/proview.cnf
]
;
then
cp
/usr/pwr
$ver
/
$pwre_target
/exp/cnf/proview.cnf /etc
new_cnf
=
1
fi
# Add pwrp_profile to profile
if
!
grep
-q
"/etc/pwrp_profile
\b
"
/etc/profile
;
then
cat
>>
/etc/profile
<<-
EOF
if [ -e /etc/pwrp_profile ]; then
source /etc/pwrp_profile
fi
EOF
fi
# Create and copy adm
if
[
!
-e
$aroot
/db
]
;
then
mkdir
-p
$aroot
/db
fi
cp
/usr/pwr
$ver
/
$pwre_target
/exp/cnf/pwra_env.sh
$aroot
/db
cp
/usr/pwr
$ver
/
$pwre_target
/exp/cnf/pwr_setup.sh
$aroot
/db
cp
/usr/pwr
$ver
/
$pwre_target
/exp/cnf/proview_icon.png
$aroot
/db
if
[
!
-e
$aroot
/db/pwr_volumelist.dat
]
;
then
cp
/usr/pwr
$ver
/
$pwre_target
/exp/cnf/pwr_volumelist.dat
$aroot
/db
fi
if
[
!
-e
$aroot
/db/pwr_user2.dat
]
;
then
cp
/usr/pwr
$ver
/
$pwre_target
/exp/cnf/pwr_user2.dat
$aroot
/db
fi
# Insert base in projectlist
if
[
!
-e
$aroot
/db/pwr_projectlist.dat
]
;
then
echo
"%base V
${
ver
:0:1
}
.
${
ver
:1:1
}
/usr/pwr
$ver
"
>
$aroot
/db/pwr_projectlist.dat
else
set
+e
ptst
=
`
eval grep
"^%base"
$aroot
/db/pwr_projectlist.dat |
grep
"
\b
V
${
ver
:0:1
}
.
${
ver
:1:1
}
\b
"
`
set
-e
if
[
"
$ptst
"
=
""
]
;
then
echo
"%base V
${
ver
:0:1
}
.
${
ver
:1:1
}
/usr/pwr
$ver
"
>>
$aroot
/db/pwr_projectlist.dat
fi
fi
# Change group to pwrp
chgrp
pwrp
$aroot
chmod
g+w
$aroot
chgrp
-R
pwrp
$aroot
/
*
chmod
-R
g+w
$aroot
/
*
chmod
a+w /usr/pwr
$ver
/
$pwre_target
/exp/load/
*
.dbs
# Create project root
if
[
!
-e
/usr/local/pwrp
]
;
then
mkdir
/usr/local/pwrp
chgrp
pwrp /usr/local/pwrp
chmod
g+w /usr/local/pwrp
fi
src/tools/pkg/raspbian/pwr/prerm
0 → 100755
View file @
a7a1c313
#!/bin/sh
set
-e
echo
"Here in prerm..."
# Automatically added by dh_installdocs
if
[
\(
"
$1
"
=
"upgrade"
-o
"
$1
"
=
"remove"
\)
-a
-L
/usr/doc/pwrtest
]
;
then
rm
-f
/usr/doc/pwrtest
fi
# End automatically added section
src/tools/pkg/raspbian/pwr/proview.cnf
0 → 100644
View file @
a7a1c313
#
# Configuration file for Proview
#
# Default QCOM Bus Id
#
qcomBusId 999
#
# Web directory
#
webDirectory /var/www
#
# Default privileges for SevXtt: Read, Admin or None
#
sevXttDefaultPriv Read
src/tools/pkg/raspbian/pwr/pwr.1
0 → 100644
View file @
a7a1c313
PWR(1) Proview Manuals PWR(1)
NAME
pwr - start and stop Proview runtime environment
SYNOPSIS
pwr [start][stop]
DESCRIPTION
Start and stop command for Proview runtime environment.
OPTIONS
start Start Proview runtime environment.
stop Stop Proview runtime environment.
FILES
/etc/pwrp_profile
The system wide configuration file..
AUTHOR
Written by CS.
SEE ALSO
pwr(5)
Proview Last change: Nov 2003
src/tools/pkg/raspbian/pwr/pwrp_profile
0 → 100644
View file @
a7a1c313
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 pwr_doc=$pwrb_root/doc
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 -t /usr/local | grep -m 1 ^jdk`
if [ "$jdk" == "" ]; then
jdk=`eval ls -t /usr/local | grep -m 1 ^jre`
fi
export jdk=/usr/local/$jdk
export jdk_home=$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/raspbian/pwrdemo/build.sh
0 → 100755
View file @
a7a1c313
#!/bin/bash
aroot
=
"/usr/pwrp/adm"
# 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
proot
=
/data0/pwrp/pwrdemo
$ver
pkgroot
=
$pwre_broot
/
$pwre_target
/bld/pkg/pwrdemo
$ver
pkgsrc
=
$pwre_sroot
/tools/pkg/raspbian/pwrdemo
echo
"-- Building pwrdemo
$ver
"
# Create directories
mkdir
-p
$pkgroot
/DEBIAN
mkdir
-p
$pkgroot
/usr/share/doc/pwrdemo
$ver
mkdir
-p
$pkgroot
/usr/pwrp
find
$pkgroot
-type
d | xargs
chmod
755
# control
cp
$pkgsrc
/control
$pkgroot
/DEBIAN
echo
"#!/bin/bash"
>
$pkgroot
/DEBIAN/postinst
echo
"ver=
\"
$ver
\"
"
>>
$pkgroot
/DEBIAN/postinst
echo
"pwre_target=
\"
$pwre_target
\"
"
>>
$pkgroot
/DEBIAN/postinst
cat
$pkgsrc
/postinst
>>
$pkgroot
/DEBIAN/postinst
chmod
a+x
$pkgroot
/DEBIAN/postinst
echo
"#!/bin/sh"
>
$pkgroot
/DEBIAN/prerm
echo
"ver=
\"
$ver
\"
"
>>
$pkgroot
/DEBIAN/prerm
cat
$pkgsrc
/prerm
>>
$pkgroot
/DEBIAN/prerm
chmod
a+x
$pkgroot
/DEBIAN/prerm
# copyright
cp
$pkgsrc
/copyright
$pkgroot
/usr/share/doc/pwrdemo
$ver
# changelog
cp
$pkgsrc
/changelog
$pkgroot
/usr/share/doc/pwrdemo
$ver
gzip
-fq
--best
$pkgroot
/usr/share/doc/pwrdemo
$ver
/changelog
# changelog.Debian
cp
$pkgsrc
/changelog.Debian
$pkgroot
/usr/share/doc/pwrdemo
$ver
gzip
-fq
--best
$pkgroot
/usr/share/doc/pwrdemo
$ver
/changelog.Debian
# Man pages
# Copy pwrdemo
mkdir
$pkgroot
/usr/pwrp/pwrdemo
$ver
mkdir
$pkgroot
/usr/pwrp/pwrdemo
$ver
/cnf
currentdir
=
"
`
eval pwd
`
"
tarfile
=
$pwre_broot
/
$pwre_target
/bld/pkg/pwrtmp.tar
cd
$proot
cd
..
echo
"-- copy project to package tree"
tar
-cf
$tarfile
pwrdemo
$ver
cd
$pkgroot
/usr/pwrp
tar
-xf
$tarfile
rm
$tarfile
cd
$currentdir
# Generate desktop file
{
echo
"[Desktop Entry]"
echo
"Version=1.0"
echo
"Encoding=UTF-8"
echo
"Name=Proview Demo"
echo
"Type=Application"
echo
"Comment=Start Proview Demo"
echo
"Exec=xterm -title
\"
Proview Demo Console
\"
-e 'export pwra_db=
$aroot
/db;source
\$
pwra_db/pwr_setup.sh;source
\$
pwra_db/pwra_env.sh set project pwrdemo""
$ver
"";export PWR_BUS_ID=999;pwr_rtmon'"
echo
"Icon=
$aroot
/db/proview_icon.png"
echo
"Categories=GNOME;GTK;Application;"
}
>
$pkgroot
/usr/pwrp/pwrdemo
$ver
/cnf/proviewdemo
$ver
.desktop
# Create package
echo
"-- Building package"
if
which fakeroot
>
/dev/null
;
then
fakeroot dpkg
-b
$pkgroot
$pwre_broot
/
$pwre_target
/bld/pkg
else
dpkg
-b
$pkgroot
$pwre_broot
/
$pwre_target
/bld/pkg
fi
rm
-r
$pkgroot
src/tools/pkg/raspbian/pwrdemo/changelog
0 → 100644
View file @
a7a1c313
Proview V3.4b (3.4.1-1)
\ No newline at end of file
src/tools/pkg/raspbian/pwrdemo/changelog.Debian
0 → 100644
View file @
a7a1c313
Proview. See also normal changelog file.
\ No newline at end of file
src/tools/pkg/raspbian/pwrdemo/control
0 → 100644
View file @
a7a1c313
Package: pwrdemo51
Version: 5.1.0-1
Section: base
Priority: optional
Architecture: armhf
Depends: pwr51 (>= 5.1.0-1)
Maintainer: Proview <postmaster@proview.se>
Description: Proview Demo Project package
Proview Demo Project
5.1.0-1 Base release
src/tools/pkg/raspbian/pwrdemo/copyright
0 → 100644
View file @
a7a1c313
Proview
Copyright: SSAB Oxelsund AB <ssabox.com>
2003-11-21
The home page of Proview is at:
http://www.proview.se
src/tools/pkg/raspbian/pwrdemo/postinst
0 → 100755
View file @
a7a1c313
set -e
# Added by build.sh :
# ver=""
# pwre_target=""
#
echo "Here in postinst..."
# Automatically added by dh_installdocs
if [ "$1" = "configure" ]; then
if [ -d /usr/doc -a ! -e /usr/doc/pwrtest -a -d /usr/share/doc/pwrtest ]; then
ln -sf ../share/doc/pwrtest /usr/doc/pwrtest
fi
fi
# End automatically added section
aroot="/usr/pwrp/adm"
export pwra_db=$aroot/db
echo "Change owner of files to pwrp"
chown -R pwrp:pwrp /usr/pwrp/pwrdemo$ver
# Register volume
if [ -e $aroot/db/pwr_volumelist.dat ]; then
set +e
ptst=`eval grep "'\bVolPwrDemo\b'" $aroot/db/pwr_volumelist.dat | grep "\bpwrdemo\b"`
set -e
if [ "$ptst" = "" ]; then
echo " VolPwrDemo 0.254.254.200 pwrdemo" >> $aroot/db/pwr_volumelist.dat
fi
fi
# Insert base in projectlist
if [ -e $aroot/db/pwr_projectlist.dat ]; then
set +e
ptst=`eval grep "'\bpwrdemo$ver\b'" $aroot/db/pwr_projectlist.dat`
set -e
if [ "$ptst" = "" ]; then
echo "pwrdemo$ver V${ver:0:1}.${ver:1:1} /usr/pwrp/pwrdemo$ver pwrdemo$ver \"\" " >> $aroot/db/pwr_projectlist.dat
fi
fi
# Insert nodename in DirectoryVolume and create bootfile
nodename=`eval uname -n`
initsh=/tmp/pwrdemo_init.sh
initpwrc=/tmp/pwrdemo_init.pwr_com
# Create a shellscript that attaches to projects and runs wb_cmd
cat > $initsh <<EOF
#!/bin/bash
source $aroot/db/pwr_setup.sh
source \$pwr_exe/pwrp_env.sh set project pwrdemo$ver
wb_cmd @$initpwrc
EOF
chmod a+x $initsh
# Create a wb_cmd script that inserts nodename and creates bootfile
cat > $initpwrc <<EOF
set attr/name=Bus999-DemoNode/attr=NodeName/value="$nodename"/noconf
save
create boot/node=DemoNode
exit
EOF
# Execute shellscript
sudo -u pwrp $initsh
rm $initsh
rm $initpwrc
if [ -e /home/pwrp/Desktop ]; then
cp /usr/pwrp/pwrdemo$ver/cnf/proviewdemo$ver.desktop /home/pwrp/Desktop/
chown pwrp:pwrp /home/pwrp/Desktop/proviewdemo$ver.desktop
chmod a+x /home/pwrp/Desktop/proviewdemo$ver.desktop
fi
src/tools/pkg/raspbian/pwrdemo/prerm
0 → 100755
View file @
a7a1c313
#
# ver='version' is added by build.sh
#
set -e
echo "Here in prerm..."
# Automatically added by dh_installdocs
if [ \( "$1" = "upgrade" -o "$1" = "remove" \) -a -L /usr/doc/pwrtest ]; then
rm -f /usr/doc/pwrtest
fi
# End automatically added section
if [ -e /usr/pwrp/pwrdemo$ver ]; then
rm -r /usr/pwrp/pwrdemo$ver
fi
src/tools/pkg/raspbian/pwrrt/build.sh
0 → 100755
View file @
a7a1c313
#!/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
# Generate version help file
{
if
[
!
-e
$pwre_sroot
/tools/pkg/raspbian/pwrrt/control
]
;
then
echo
"Controlfile not found"
exit
1
fi
datfile
=
$pwre_sroot
/tools/pkg/raspbian/pwrrt/control
echo
"<topic> version"
d
=
`
eval date
+
\"
%F %X
\"
`
{
let
printout
=
0
while
read
line
;
do
if
[
"
${
line
:0:9
}
"
=
"Package: "
]
;
then
package
=
${
line
#Package
:
}
fi
if
[
"
${
line
:0:9
}
"
=
"Version: "
]
;
then
version
=
${
line
#Version
:
}
fi
if
[
"
${
line
:0:14
}
"
=
"Architecture: "
]
;
then
arch
=
${
line
#Architecture
:
}
fi
if
[
"
${
line
:0:12
}
"
=
"Description:"
]
;
then
echo
""
echo
"<image> pwr_logga.gif"
echo
""
echo
""
echo
""
echo
"<b>Proview V
${
version
:0:3
}
"
echo
"Version V
$version
"
echo
""
echo
"Copyright 2004-
${
d
:0:4
}
SSAB Oxelsund AB"
echo
""
echo
"This program is free software; you can redistribute it and/or"
echo
"modify it under the terms of the GNU General Public License as"
echo
"published by the Free Software Foundation, either version 2 of"
echo
"the License, or (at your option) any later version."
echo
""
echo
"This program is distributed in the hope that it will be useful"
echo
"but WITHOUT ANY WARRANTY; without even the implied warranty of"
echo
"MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
echo
"For more details, see the"
echo
"GNU General Public License. <weblink> http://www.proview.se/gpllicense.html"
echo
""
echo
"E-mail postmaster@proview.se <weblink> mailto:postmaster@proview.se"
echo
"Internet www.proview.se <weblink> http://www.proview.se"
echo
""
echo
""
echo
"<b>Package"
echo
"Package
$package
""_""
$version
""_""
$arch
"
echo
"Build date
$d
"
echo
"Package description:"
echo
""
printout
=
1
else
if
[
$printout
-eq
1
]
;
then
echo
$line
fi
fi
done
}
<
$datfile
echo
"</topic>"
}
>
$pwr_eexe
/xtt_version_help.dat
# Convert to html
co_convert
-t
-d
$pwr_doc
$pwr_eexe
/xtt_version_help.dat
{
echo
"<html><head>"
echo
"<meta http-equiv=
\"
Refresh
\"
content=
\"
5;../xtt_version_help_version.html
\"
>"
echo
"</head></html>"
}
>
$pwr_doc
/en_us/package_version.html
# Print rt version file
echo
"Version:
$version
"
>
$pwr_eexe
/rt_version.dat
if
[
"
$1
"
==
"-v"
]
;
then
exit
fi
pkgroot
=
$pwre_broot
/
$pwre_target
/bld/pkg/pwrrt
pkgsrc
=
$pwre_sroot
/tools/pkg/raspbian/pwrrt
# Create directories
echo
"-- Create package tree"
mkdir
-p
$pkgroot
/DEBIAN
mkdir
-p
$pkgroot
/usr/share/doc/pwrrt
mkdir
-p
$pkgroot
/etc/init.d
find
$pkgroot
-type
d | xargs
chmod
755
# control
cp
$pkgsrc
/control
$pkgroot
/DEBIAN
cp
$pkgsrc
/postinst
$pkgroot
/DEBIAN
cp
$pkgsrc
/prerm
$pkgroot
/DEBIAN
# 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
# changelog.Debian
cp
$pkgsrc
/changelog.Debian
$pkgroot
/usr/share/doc/pwrrt
gzip
-fq
--best
$pkgroot
/usr/share/doc/pwrrt/changelog.Debian
# 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
#cp $pkgsrc/gdhserver $pkgroot/etc/init.d
#chmod a+x $pkgroot/etc/init.d/gdhserver
# 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_eexe
/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"
if
which fakeroot
>
/dev/null
;
then
fakeroot dpkg
-b
$pkgroot
$pwre_broot
/
$pwre_target
/bld/pkg
else
dpkg
-b
$pkgroot
$pwre_broot
/
$pwre_target
/bld/pkg
fi
rm
-r
$pkgroot
src/tools/pkg/raspbian/pwrrt/changelog
0 → 100644
View file @
a7a1c313
Proview V3.4b (3.4.1-1)
\ No newline at end of file
src/tools/pkg/raspbian/pwrrt/changelog.Debian
0 → 100644
View file @
a7a1c313
Proview. See also normal changelog file.
\ No newline at end of file
src/tools/pkg/raspbian/pwrrt/control
0 → 100644
View file @
a7a1c313
Package: pwrrt
Version: 5.1.0-1
Section: base
Priority: optional
Architecture: armhf
Depends: libc6 (>= 2.13-38+rpi2), libgtk2.0-0 (>= 2.24.10-2), libasound2 (>= 1.0.25-4), libsqlite3-0 (>= 3.7.13-1+deb7u1), libdb5.3 (>=5.3.15-2)
Replaces: pwr34,pwr39,pwr40,pwr41,pwr42,pwr43,pwr44,pwr45,pwr46,pwr47,pwr48,pwr50
Maintainer: Proview <postmaster@proview.se>
Description:
Proview runtime environment
5.1.0-1 Base release
src/tools/pkg/raspbian/pwrrt/copyright
0 → 100644
View file @
a7a1c313
Proview
Copyright: SSAB Oxelsund AB <ssabox.com>
2003-11-21
The home page of Proview is at:
http://www.proview.se
src/tools/pkg/raspbian/pwrrt/gdhserver
0 → 100644
View file @
a7a1c313
#!/bin/bash
#
# Startscript fr PWR av Ulf Ljungdahl
#
PATH
=
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/jdk1.3/bin/java
.
/etc/pwrp_profile
gdh_start
()
{
export
LD_LIBRARY_PATH
=
$pwr_exe
export
CLASSPATH
=
$pwr_lib
/pwr_rt.jar:
$pwr_lib
/pwr_jop.jar
sleep
5
sudo
-u
pwrp
$pwr_exe
/rt_webmon.sh &
sleep
2
sudo
-u
pwrp
$pwr_exe
/rt_webmonmh.sh &
#su pwrp <java jpwr.rt.GdhServer &
#sudo -u pwrp java jpwr.rt.GdhServer &
}
gdh_stop
()
{
kill
-9
`
ps ax |
grep
"java"
|
awk
'{ print $1}'
`
}
case
"
$1
"
in
start
)
echo
"Startar GDH server..."
#if [ 'test -x ps aux | grep plc | grep -v grep' ]
# then
# echo "PWR kr, stoppar det frst.."
# pwr_stop
# fi
gdh_start
echo
"Klar."
;;
stop
)
echo
"Stoppar GDH server..."
gdh_stop
echo
"Klar"
;;
restart
)
echo
"Startar om GDH server."
echo
"Stoppar det frst."
gdh_stop
sleep
1
echo
"Startar igen."
gdh_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/raspbian/pwrrt/postinst
0 → 100755
View file @
a7a1c313
#!/bin/bash
set
-e
if
[
"
$pwrrt_xtrace
"
!=
""
]
;
then
set
-o
xtrace
fi
# Automatically added by dh_installdocs
if
[
"
$1
"
=
"configure"
]
;
then
if
[
-d
/usr/doc
-a
!
-e
/usr/doc/pwrtest
-a
-d
/usr/share/doc/pwrtest
]
;
then
ln
-sf
../share/doc/pwrtest /usr/doc/pwrtest
fi
fi
# End automatically added section
proot
=
"/pwrp"
aroot
=
"/usr/pwrp/adm"
# Create users...
new_user
=
0
if
getent group pwrp
>
/dev/null
;
then
echo
"-- group pwrp already exist"
else
if
groupadd pwrp
;
then
echo
"-- group pwrp added"
fi
fi
if
getent group b55
>
/dev/null
;
then
echo
"-- group b55 already exist"
else
if
groupadd b55
;
then
echo
"-- group b55 added"
fi
fi
if
getent group b66
>
/dev/null
;
then
echo
"-- group b66 already exist"
else
if
groupadd b66
;
then
echo
"-- group b66 added"
fi
fi
if
getent group skiftel
>
/dev/null
;
then
echo
"-- group skiftel already exist"
else
if
groupadd skiftel
;
then
echo
"-- group skiftel added"
fi
fi
if
getent passwd pwrp
>
/dev/null
;
then
echo
"-- user pwrp already exist"
else
new_user
=
1
if
useradd
-s
/bin/bash
-p
aaupl/kQs1p3U
-g
pwrp
-G
b55,b66,skiftel
-d
/home/pwrp pwrp
;
then
echo
"-- user pwrp added"
fi
if
[
!
-e
/home/pwrp
]
;
then
mkdir
/home/pwrp
cp
/usr/pwrrt/cnf/user/.bashrc /home/pwrp
cp
/usr/pwrrt/cnf/user/.bash_profile /home/pwrp
# cp /usr/pwrrt/cnf/user/.mwmrc /home/pwrp
cp
/usr/pwrrt/cnf/user/.rtt_start /home/pwrp
chmod
a+x /home/pwrp/.rtt_start
cp
/usr/pwrrt/cnf/user/.xtt_start /home/pwrp
chmod
a+x /home/pwrp/.xtt_start
# cp /usr/pwrrt/cnf/user/.xsession /home/pwrp
chown
-R
pwrp /home/pwrp
chgrp
-R
pwrp /home/pwrp
fi
# Add to group dialout
if
getent group dialout
>
/dev/null
;
then
usermod
-a
-G
dialout pwrp
fi
fi
if
getent passwd skiftel
>
/dev/null
;
then
echo
"-- user skiftel already exist"
else
new_user
=
1
if
useradd
-s
/bin/bash
-p
aa6NzxS/aBgP6
-g
skiftel
-G
pwrp
-d
/home/skiftel skiftel
;
then
echo
"-- user skiftel added"
fi
if
[
!
-e
/home/skiftel
]
;
then
mkdir
/home/skiftel
cp
/usr/pwrrt/cnf/user/.bashrc /home/skiftel
cp
/usr/pwrrt/cnf/user/.bash_profile /home/skiftel
# cp /usr/pwrrt/cnf/user/.mwmrc /home/skiftel
cp
/usr/pwrrt/cnf/user/.rtt_start /home/skiftel
chmod
a+x /home/skiftel/.rtt_start
cp
/usr/pwrrt/cnf/user/.xtt_start /home/skiftel
chmod
a+x /home/skiftel/.xtt_start
# cp /usr/pwrrt/cnf/user/.xsession /home/skiftel
chown
-R
pwrp /home/skiftel
chgrp
-R
pwrp /home/skiftel
fi
fi
if
getent passwd b55
>
/dev/null
;
then
new_user
=
1
# Check if group audio exist
if
getent group audio
>
/dev/null
;
then
groups
=
"pwrp,audio"
else
groups
=
"pwrp"
fi
if
useradd
-s
/bin/bash
-p
aaQPClsglxJP6
-g
b55
-G
$groups
-d
/home/b55 b55
;
then
echo
"-- user b55 added"
fi
if
[
!
-e
/home/b55
]
;
then
mkdir
/home/b55
cp
/usr/pwrrt/cnf/op/.bashrc /home/b55
cp
/usr/pwrrt/cnf/op/.bash_profile /home/b55
# cp /usr/pwrrt/cnf/op/.mwmrc /home/b55
cp
/usr/pwrrt/cnf/op/.rtt_start /home/b55
chmod
a+x /home/b55/.rtt_start
cp
/usr/pwrrt/cnf/op/.xtt_start /home/b55
chmod
a+x /home/b55/.xtt_start
# cp /usr/pwrrt/cnf/op/.xsession /home/b55
chown
-R
b55 /home/b55
chgrp
-R
pwrp /home/b55
chmod
g+rwx /home/b55
fi
fi
if
getent passwd b66
>
/dev/null
;
then
new_user
=
1
# Check if group audio exist
if
getent group audio
>
/dev/null
;
then
groups
=
"pwrp,audio"
else
groups
=
"pwrp"
fi
if
useradd
-s
/bin/bash
-p
aae.nHgHbfUpw
-g
b66
-G
$groups
-d
/home/b66 b66
;
then
echo
"-- user b66 added"
fi
if
[
!
-e
/home/b66
]
;
then
mkdir
/home/b66
cp
/usr/pwrrt/cnf/op/.bashrc /home/b66
cp
/usr/pwrrt/cnf/op/.bash_profile /home/b66
# cp /usr/pwrrt/cnf/op/.mwmrc /home/b66
cp
/usr/pwrrt/cnf/op/.rtt_start /home/b66
chmod
a+x /home/b66/.rtt_start
cp
/usr/pwrrt/cnf/op/.xtt_start /home/b66
chmod
a+x /home/b66/.xtt_start
# cp /usr/pwrrt/cnf/op/.xsession /home/b66
chown
-R
b66 /home/b66
chgrp
-R
pwrp /home/b66
chmod
g+rwx /home/b66
fi
fi
chown
-R
pwrp /usr/pwrrt
chgrp
-R
pwrp /usr/pwrrt
chmod
u+s /usr/pwrrt/exe/rt_ini
chmod
u+s /usr/pwrrt/exe/rt_rtt
#chmod u+s /usr/pwrrt/exe/rt_xtt
chmod
u+s /usr/pwrrt/exe/rt_bck
chmod
u+s /usr/pwrrt/exe/rt_gdhget
chown
root /usr/pwrrt/exe/rs_remote_alcm
chmod
u+s /usr/pwrrt/exe/rs_remote_alcm
if
getent group dialout
>
/dev/null
;
then
chgrp
dialout /usr/pwrrt/exe/rs_remote_serial
chmod
ug+s /usr/pwrrt/exe/rs_remote_serial
chgrp
dialout /usr/pwrrt/exe/rs_remote_3964r
chmod
ug+s /usr/pwrrt/exe/rs_remote_3964r
fi
chown
root /usr/pwrrt/exe/rt_prio
chmod
u+s /usr/pwrrt/exe/rt_prio
if
[
-e
/usr/pwrrt/exe/rt_powerlink
]
;
then
chown
root /usr/pwrrt/exe/rt_powerlink
chmod
u+s /usr/pwrrt/exe/rt_powerlink
fi
chown
root /usr/pwrrt/exe/rt_mozilla
chmod
u+s /usr/pwrrt/exe/rt_mozilla
# Copy configuration files
new_cnf
=
0
if
[
!
-e
/etc/proview.cnf
]
;
then
cp
/usr/pwrrt/cnf/proview.cnf /etc
new_cnf
=
1
fi
# Add pwrp_profile to profile
if
!
grep
-q
"/etc/pwrp_profile
\b
"
/etc/profile
;
then
cat
>>
/etc/profile
<<-
EOF
if [ -e /etc/pwrp_profile ]; then
source /etc/pwrp_profile
fi
EOF
fi
# Create startup link
set
+e
checklink
=
`
eval ls
/etc/rc2.d/S90pwr 2>/dev/null
`
set
-e
if
[
"
$checklink
"
!=
""
]
;
then
rm
/etc/rc2.d/S90pwr
fi
ln
-s
/etc/init.d/pwr /etc/rc2.d/S90pwr
set
+e
checklink
=
`
eval ls
/etc/rc2.d/S91gdhserver 2>/dev/null
`
set
-e
if
[
"
$checklink
"
!=
""
]
;
then
rm
/etc/rc2.d/S91gdhserver
fi
# Obsolete
#ln -s /etc/init.d/gdhserver /etc/rc2.d/S91gdhserver
# Create project
new_project
=
0
if
[
!
-e
$proot
]
;
then
new_project
=
1
mkdir
$proot
mkdir
$proot
/common
mkdir
$proot
/common/inc
mkdir
$proot
/common/load
mkdir
$proot
/common/log
mkdir
$proot
/common/loghist
mkdir
$proot
/common/db
mkdir
$proot
/common/web
mkdir
$proot
/x86_linux
mkdir
$proot
/x86_linux/exe
mkdir
$proot
/x86_linux/lib
mkdir
$proot
/x86_linux/obj
mkdir
$proot
/x86_linux/lis
chown
-R
pwrp
$proot
chgrp
-R
pwrp
$proot
fi
if
[
!
-e
$aroot
/db
]
;
then
mkdir
-p
$aroot
/db
chown
-R
pwrp
$aroot
fi
# Copy jar-files to web directory
if
[
-e
/etc/proview.cnf
]
;
then
set
+e
web_dir
=
`
eval cat
/etc/proview.cnf |
grep
"
\\
bwebDirectory
\\
b"
|
awk
'{print $2}'
`
set
-e
if
[
-e
"
$web_dir
"
]
;
then
cp
/usr/pwrrt/lib/pwr_rt_client.jar
$web_dir
chown
pwrp
$web_dir
/pwr_rt_client.jar
cp
/usr/pwrrt/lib/pwr_jop.jar
$web_dir
chown
pwrp
$web_dir
/pwr_jop.jar
cp
/usr/pwrrt/lib/pwr_jopg.jar
$web_dir
chown
pwrp
$web_dir
/pwr_jopg.jar
fi
fi
#
# Add proview web directories to Apache
#
if
[
-e
/etc/apache2/apache2.conf
]
;
then
if
!
egrep
-q
"Alias[ ]+/pwrp_web/"
/etc/apache2/apache2.conf
;
then
cat
>>
/etc/apache2/apache2.conf
<<-
EOF
#
# Proview alias pwrp_web, added by Proview installation
#
Alias /pwrp_web/ /pwrp/common/web/
<Directory /pwrp/common/web>
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
EOF
fi
if
!
egrep
-q
"Alias[ ]+/pwrp_log/"
/etc/apache2/apache2.conf
;
then
cat
>>
/etc/apache2/apache2.conf
<<-
EOF
#
# Proview alias pwrp_log, added by Proview installation
#
Alias /pwrp_log/ /pwrp/common/log/
<Directory /pwrp/common/log>
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
EOF
fi
if
!
egrep
-q
"Alias[ ]+/pwr_doc/"
/etc/apache2/apache2.conf
;
then
cat
>>
/etc/apache2/apache2.conf
<<-
EOF
#
# Proview alias pwr_doc, added by Proview installation
#
Alias /pwr_doc/ /usr/pwrrt/doc/
<Directory /usr/pwrrt/doc>
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
EOF
fi
fi
#
# Set owner on preinstalled I/O systems
#
if
[
-e
/lib/udev/devices/qbus
]
;
then
chown
pwrp:pwrp /lib/udev/devices/qbus
fi
if
[
-e
/lib/udev/devices/pbus1
]
;
then
chown
pwrp:pwrp /lib/udev/devices/pbus1
fi
if
[
-e
/lib/udev/devices/pbus2
]
;
then
chown
pwrp:pwrp /lib/udev/devices/pbus2
fi
changes
=
0
if
[
$new_user
-eq
1
]
;
then
changes
=
1
elif
[
$new_cnf
-eq
1
]
;
then
changes
=
1
elif
[
$new_project
-eq
1
]
;
then
changes
=
1
fi
if
[
$changes
-ne
0
]
;
then
echo
""
echo
""
echo
"***********************************************************"
echo
" Don't forget to do this :"
echo
""
fi
if
[
$new_cnf
-eq
1
]
;
then
echo
"-- Enter QcomBusId in /etc/proview.cnf"
fi
#if [ $new_user -eq 1 ]; then
# echo "-- Enter OpPlace object as argument to rt_xtt in /home/b55/.xtt_start"
#fi
if
[
$new_project
-eq
1
]
;
then
nodename
=
`
eval uname
-n
`
echo
"-- Distribute project to
$nodename
"
fi
if
[
$changes
-ne
0
]
;
then
echo
""
echo
"***********************************************************"
echo
""
fi
src/tools/pkg/raspbian/pwrrt/prerm
0 → 100755
View file @
a7a1c313
#!/bin/sh
set
-e
# Automatically added by dh_installdocs
if
[
\(
"
$1
"
=
"upgrade"
-o
"
$1
"
=
"remove"
\)
-a
-L
/usr/doc/pwrtest
]
;
then
rm
-f
/usr/doc/pwrtest
fi
# End automatically added section
proot
=
"/pwrp"
aroot
=
"/usr/pwrp/adm"
echo
""
echo
-n
"Do you wan't to remove project and users (y/n) [n] "
read
remove_all
if
[
"
$remove_all
"
=
"y"
]
;
then
# Check that any user that is to be remoted isn't logged in
set
+e
user_found
=
0
currentusers
=
`
eval users
`
userstr
=
""
checkuser
=
`
eval echo
$currentusers
|
grep
"
\b
b55
\b
"
`
if
[
"
$checkuser
"
!=
""
]
;
then
user_found
=
1
userstr
=
$userstr
" b55"
fi
checkuser
=
`
eval echo
$currentusers
|
grep
"
\b
b66
\b
"
`
if
[
"
$checkuser
"
!=
""
]
;
then
user_found
=
1
userstr
=
$userstr
" b66"
fi
checkuser
=
`
eval echo
$currentusers
|
grep
"
\b
pwrp
\b
"
`
if
[
"
$checkuser
"
!=
""
]
;
then
user_found
=
1
userstr
=
$userstr
" pwrp"
fi
checkuser
=
`
eval echo
$currentusers
|
grep
"
\b
skiftel
\b
"
`
if
[
"
$checkuser
"
!=
""
]
;
then
user_found
=
1
userstr
=
$userstr
" skiftel"
fi
if
[
$user_found
-eq
1
]
;
then
echo
"-- Current users:
$currentusers
"
echo
"** Remove user will fail. Logout user
$userstr
first."
exit
-1
;
fi
set
-e
echo
"-- Remove user b55"
if
grep
-q
"
\b
b55:"
/etc/passwd
;
then
userdel b55
fi
if
[
-e
/home/b55
]
;
then
rm
-r
/home/b55
fi
echo
"-- Remove user b66"
if
grep
-q
"
\b
b66:"
/etc/passwd
;
then
userdel b66
fi
if
[
-e
/home/b66
]
;
then
rm
-r
/home/b66
fi
echo
"-- Remove user pwrp"
if
grep
-q
"
\b
pwrp:"
/etc/passwd
;
then
userdel pwrp
fi
if
[
-e
/home/pwrp
]
;
then
rm
-r
/home/pwrp
fi
echo
"-- Remove user skiftel"
if
grep
-q
"
\b
skiftel:"
/etc/passwd
;
then
userdel skiftel
fi
if
[
-e
/home/skiftel
]
;
then
rm
-r
/home/skiftel
fi
if
grep
-q
"
\b
b55:"
/etc/group
;
then
groupdel b55
fi
if
grep
-q
"
\b
b66:"
/etc/group
;
then
groupdel b66
fi
if
grep
-q
"
\b
pwrp:"
/etc/group
;
then
groupdel pwrp
fi
if
grep
-q
"
\b
skiftel:"
/etc/group
;
then
groupdel skiftel
fi
echo
"-- Remove project
$proot
"
if
[
-e
$proot
]
;
then
rm
-r
$proot
fi
if
[
-e
$aroot
]
;
then
rm
-r
$aroot
fi
fi
# Remove startup
checklink
=
`
eval ls
/etc/rc2.d/S90pwr 2>/dev/null
`
if
[
"
$checklink
"
!=
""
]
;
then
rm
/etc/rc2.d/S90pwr
fi
# Remove jar-files on web directory
if
[
-e
/etc/proview.cnf
]
;
then
web_dir
=
`
eval cat
/etc/proview.cnf |
grep
"
\\
bwebDirectory
\\
b"
|
awk
'{print $2}'
`
if
[
-e
$web_dir
/pwr_rt_client.jar
]
;
then
rm
$web_dir
/pwr_rt_client.jar
fi
if
[
-e
$web_dir
/pwr_jop.jar
]
;
then
rm
$web_dir
/pwr_jop.jar
fi
fi
src/tools/pkg/raspbian/pwrrt/proview.cnf
0 → 100644
View file @
a7a1c313
#
# Configuration file for Proview
#
# Default QCOM Bus Id
#
qcomBusId 517
#
# Web directory
#
webDirectory /pwrp/common/web
#
# Default privileges for SevXtt: Read, Admin or None
#
sevXttDefaultPriv Read
src/tools/pkg/raspbian/pwrrt/pwr
0 → 100755
View file @
a7a1c313
#!/bin/bash
### BEGIN INIT INFO
# Provides: pwr
# Required-Start: networking
# Required-Stop: networking
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start Proview Runtime Environment.
# Description: Start Proview Runtime Environment.
### END INIT INFO
#
# Start script for Proview runtime
#
PATH
=
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
wrapper
=
"/tmp/rt_ini_wrapper"
killer
=
"/tmp/pwr_killer"
.
/etc/pwrp_profile
umask
002
create_wrapper
()
{
if
[
!
-e
$wrapper
]
;
then
echo
"#!/bin/bash"
>
$wrapper
echo
"source /etc/pwrp_profile"
>>
$wrapper
echo
"umask 002"
>>
$wrapper
echo
"
\$
pwr_exe/rt_ini
\$
* &"
>>
$wrapper
chmod
a+rx
$wrapper
if
[
!
-e
$wrapper
]
;
then
echo
"
$wrapper
not writable, check permissions"
exit
fi
fi
}
create_killer
()
{
echo
"#!/bin/bash"
>
$killer
echo
"source /etc/pwrp_profile"
>>
$killer
echo
"umask 002"
>>
$killer
echo
"
`
ps ax |
grep
"rt_"
|
awk
'{ print "kill -9 "$1}'
`
"
>>
$killer
echo
"
`
ps ax |
grep
"rs_"
|
awk
'{ print "kill -9 "$1}'
`
"
>>
$killer
echo
"
`
ps ax |
grep
"ra_"
|
awk
'{ print "kill -9 "$1}'
`
"
>>
$killer
echo
"
`
ps ax |
grep
"sev_"
|
awk
'{ print "kill -9 "$1}'
`
"
>>
$killer
echo
"
`
ps ax |
grep
"opc_"
|
awk
'{ print "kill -9 "$1}'
`
"
>>
$killer
echo
"
`
ps ax |
grep
"plc_"
|
awk
'{ print "kill -9 "$1}'
`
"
>>
$killer
echo
"
`
ps ax |
grep
"jpwr.rt"
|
awk
'{ print "kill -9 "$1}'
`
"
>>
$killer
echo
"eval
`
ipcs
-s
|grep ^0x|grep
"[
\t
]pwrp[
\t
]"
|awk
'{printf "ipcrm sem %s;", $2}'
`
"
>>
$killer
echo
"eval
`
ipcs
-q
|grep ^0x|grep
"[
\t
]pwrp[
\t
]"
|awk
'{printf "ipcrm msg %s;", $2}'
`
"
>>
$killer
echo
"eval
`
ipcs
-m
|grep ^0x|grep
"[
\t
]pwrp[
\t
]"
|awk
'{printf "ipcrm shm %s;", $2}'
`
"
>>
$killer
echo
"if [ -e
$pwrp_exe
/pwrp_stop.sh ]; then"
>>
$killer
echo
" source
$pwrp_exe
/pwrp_stop.sh"
>>
$killer
echo
"fi"
>>
$killer
echo
"rm /tmp/pwr*
\$
PWR_BUS_ID"
>>
$killer
chmod
a+rx
$killer
if
[
!
-e
$killer
]
;
then
echo
"
$killer
not writable, check permissions"
exit
fi
}
pwr_start
()
{
create_wrapper
if
[
`
whoami
`
==
"pwrp"
]
;
then
$wrapper
else
sudo
-u
pwrp
$wrapper
fi
}
pwr_stop
()
{
create_wrapper
if
[
`
whoami
`
==
"pwrp"
]
;
then
$wrapper
-s
if
[
-e
$pwrp_exe
/pwrp_stop.sh
]
;
then
source
$pwrp_exe
/pwrp_stop.sh
fi
else
sudo
-u
pwrp
$wrapper
-s
if
[
-e
$pwrp_exe
/pwrp_stop.sh
]
;
then
sudo
-u
pwrp
source
$pwrp_exe
/pwrp_stop.sh
fi
fi
while
[
"
`
ps aux |
grep
-v
grep
|
grep
rt_
`
"
!=
""
]
;
do
sleep
1
;
done
}
pwr_reload
()
{
if
[
`
whoami
`
==
"pwrp"
]
;
then
$pwr_exe
/rt_ini_wrapper
-r
else
sudo
-u
pwrp
$pwr_exe
/rt_ini_wrapper
-r
fi
}
pwr_kill
()
{
create_killer
if
[
`
whoami
`
==
"pwrp"
]
;
then
$killer
else
sudo
-u
pwrp
$killer
fi
}
case
"
$1
"
in
start
)
echo
"Start Proview Runtime Environment."
pwr_start
echo
"Done."
;;
stop
)
echo
"Stop Proveiw Runtime Environment."
pwr_stop
echo
"Done."
;;
restart
)
echo
"Restart Proview Runtime Environment."
echo
"Closing down..."
pwr_stop
sleep
1
echo
"Starting..."
pwr_start
echo
"Done."
;;
reload
)
echo
"Reload Proview Runtime Environment"
pwr_reload
echo
"Done."
;;
kill
)
echo
"Remove all processes and resources for Proview Runtime Environment"
pwr_kill
echo
"Done."
;;
reset
)
echo
"Remove all processes and resources for Proview Runtime Environment"
pwr_kill
echo
"Done."
;;
*
)
echo
" pwr Start and stop Proview Runtime Environment"
>
&2
echo
""
>
&2
echo
" Usage:"
>
&2
echo
" pwr start|stop|restart|reload|reset"
>
&2
echo
""
>
&2
echo
" start Start Runtime environment"
>
&2
echo
" stop Stop Runtime environment"
>
&2
echo
" restart First stop and then start Runtime environment"
>
&2
echo
" reload Soft restart of Runtime environment"
>
&2
echo
" reset Remove all processes and resources"
>
&2
echo
""
>
&2
exit
1
;;
esac
exit
0
src/tools/pkg/raspbian/pwrrt/pwr.1
0 → 100644
View file @
a7a1c313
.TH pwr "1" "April 2005" "Proview" "Proview Manual"
.SH NAME
pwr - start and stop Proview runtime environment
.SH SYNOPSIS
.B pwr
[start][stop][restart][reload][reset]
.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.
.HP
\fBreload\fR
.IP
Soft restart of Proview runtime environment.
.HP
\fBreset\fR
.IP
Remove all processes and resources.
.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/raspbian/pwrrt/pwrp_profile
0 → 100644
View file @
a7a1c313
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 pwr_doc=$pwrb_root/doc
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 -t /usr/local | grep -m 1 ^jdk`
if [ "$jdk" == "" ]; then
jdk=`eval ls -t /usr/local | grep -m 1 ^jre`
fi
export jdk=/usr/local/$jdk
export jdk_home=$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/raspbian/pwrrt/rt_ini.1
0 → 100644
View file @
a7a1c313
.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/raspbian/pwrrt/rt_rtt.1
0 → 100644
View file @
a7a1c313
.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/raspbian/pwrrt/rt_xtt.1
0 → 100644
View file @
a7a1c313
.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
de_de German.
.RE
.RS
en_us is default.
.RE
.HP
\fB\-u\fR
.IP
Use opplace object with the same name as the current user.
.HP
\fB\-s\fR
.IP
Show a selection list of available OpPlace objects.
.HP
\fB\-a\fR
.IP
Connect to audio device.
.HP
\fB\-q\fR
.IP
Quiet. Hide license information.
.SH AUTHOR
Written by cs.
.SH "SEE ALSO"
.BR pwr(1),
.BR rt_ini(1)
src/tools/pkg/raspbian/pwrsev/build.sh
0 → 100755
View file @
a7a1c313
#!/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
# Generate version help file
{
if
[
!
-e
$pwre_sroot
/tools/pkg/raspbian/pwrsev/control
]
;
then
echo
"Controlfile not found"
exit
1
fi
datfile
=
$pwre_sroot
/tools/pkg/raspbian/pwrsev/control
echo
"<topic> version"
d
=
`
eval date
+
\"
%F %X
\"
`
{
let
printout
=
0
while
read
line
;
do
if
[
"
${
line
:0:9
}
"
=
"Package: "
]
;
then
package
=
${
line
#Package
:
}
fi
if
[
"
${
line
:0:9
}
"
=
"Version: "
]
;
then
version
=
${
line
#Version
:
}
fi
if
[
"
${
line
:0:14
}
"
=
"Architecture: "
]
;
then
arch
=
${
line
#Architecture
:
}
fi
if
[
"
${
line
:0:12
}
"
=
"Description:"
]
;
then
echo
""
echo
"<image> pwr_logga.gif"
echo
""
echo
""
echo
""
echo
"<b>Proview Storage Environment V
${
version
:0:3
}
"
echo
"Version V
$version
"
echo
""
echo
"Copyright 2004-
${
d
:0:4
}
SSAB Oxelsund AB"
echo
""
echo
"This program is free software; you can redistribute it and/or"
echo
"modify it under the terms of the GNU General Public License as"
echo
"published by the Free Software Foundation, either version 2 of"
echo
"the License, or (at your option) any later version."
echo
""
echo
"This program is distributed in the hope that it will be useful"
echo
"but WITHOUT ANY WARRANTY; without even the implied warranty of"
echo
"MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
echo
"For more details, see the"
echo
"GNU General Public License. <weblink> http://www.proview.se/gpllicense.html"
echo
""
echo
"E-mail postmaster@proview.se <weblink> mailto:postmaster@proview.se"
echo
"Internet www.proview.se <weblink> http://www.proview.se"
echo
""
echo
""
echo
"<b>Package"
echo
"Package
$package
""_""
$version
""_""
$arch
"
echo
"Build date
$d
"
echo
"Package description:"
echo
""
printout
=
1
else
if
[
$printout
-eq
1
]
;
then
echo
$line
fi
fi
done
}
<
$datfile
echo
"</topic>"
}
>
$pwr_eexe
/sev_xtt_version_help.dat
# Convert to html
co_convert
-t
-d
$pwr_doc
$pwr_eexe
/sev_xtt_version_help.dat
{
echo
"<html><head>"
echo
"<meta http-equiv=
\"
Refresh
\"
content=
\"
5;../sev_xtt_version_help_version.html
\"
>"
echo
"</head></html>"
}
>
$pwr_doc
/en_us/package_version.html
if
[
"
$1
"
==
"-v"
]
;
then
exit
fi
pkgroot
=
$pwre_broot
/
$pwre_target
/bld/pkg/pwrsev
pkgsrc
=
$pwre_sroot
/tools/pkg/raspbian/pwrsev
# Create directories
echo
"-- Create package tree"
mkdir
-p
$pkgroot
/DEBIAN
mkdir
-p
$pkgroot
/usr/share/doc/pwrsev
mkdir
-p
$pkgroot
/etc/init.d
find
$pkgroot
-type
d | xargs
chmod
755
# control
cp
$pkgsrc
/control
$pkgroot
/DEBIAN
cp
$pkgsrc
/postinst
$pkgroot
/DEBIAN
cp
$pkgsrc
/prerm
$pkgroot
/DEBIAN
# copyright
cp
$pkgsrc
/copyright
$pkgroot
/usr/share/doc/pwrsev
# changelog
cp
$pkgsrc
/changelog
$pkgroot
/usr/share/doc/pwrsev
gzip
-fq
--best
$pkgroot
/usr/share/doc/pwrsev/changelog
# changelog.Debian
cp
$pkgsrc
/changelog.Debian
$pkgroot
/usr/share/doc/pwrsev
gzip
-fq
--best
$pkgroot
/usr/share/doc/pwrsev/changelog.Debian
# Startup files
cp
$pkgsrc
/pwrp_profile
$pkgroot
/etc
chmod
a+x
$pkgroot
/etc/pwrp_profile
cp
$pkgsrc
/pwrsev
$pkgroot
/etc/init.d
chmod
a+x
$pkgroot
/etc/init.d/pwrsev
# Man pages
mkdir
-p
$pkgroot
/usr/share/man/man1
cp
$pkgsrc
/pwrsev.1
$pkgroot
/usr/share/man/man1/pwrsev.1
gzip
-fq
--best
$pkgroot
/usr/share/man/man1/pwrsev.1
cp
$pkgsrc
/sev_ini.1
$pkgroot
/usr/share/man/man1/sev_ini.1
gzip
-fq
--best
$pkgroot
/usr/share/man/man1/sev_ini.1
cp
$pkgsrc
/sev_xtt.1
$pkgroot
/usr/share/man/man1/sev_xtt.1
gzip
-fq
--best
$pkgroot
/usr/share/man/man1/sev_xtt.1
# Copy proview
mkdir
$pkgroot
/usr/pwrsev
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
exe/rt_qmon exe/rt_prio exe/sev_ini exe/sev_xtt exe/sev_xtt_gtk exe/sev_server exe/sev_repair exe/
*
.gif exe/
*
.png exe/sev_xtt_version_help.dat exe/pwr_pkg.sh exe/en_us/
*
.txt doc/
*
cd
$pkgroot
/usr/pwrsev
mkdir
cnf
tar
-xf
$tarfile
rm
$tarfile
#rm -r $pkgroot/usr/pwrsev/lib/*.a
#rm -r $pkgroot/usr/pwrsev/exe/wb*
cp
$pwr_eexe
/wb_distr_keepboot.sh
$pkgroot
/usr/pwrsev/exe
cd
$currentdir
# Copy configuration files to cnf
cp
$pkgsrc
/proview.cnf
$pkgroot
/usr/pwrsev/cnf
# Copy op to cnf
mkdir
$pkgroot
/usr/pwrsev/cnf/op
cp
$pwre_sroot
/tools/pkg/deb/op/.bashrc
$pkgroot
/usr/pwrsev/cnf/op
cp
$pwre_sroot
/tools/pkg/deb/op/.bash_profile
$pkgroot
/usr/pwrsev/cnf/op
#cp $pwre_sroot/tools/pkg/deb/op/.mwmrc $pkgroot/usr/pwrsev/cnf/op
cp
$pwre_sroot
/tools/pkg/deb/op/.rtt_start
$pkgroot
/usr/pwrsev/cnf/op
cp
$pwre_sroot
/tools/pkg/deb/op/.xtt_start
$pkgroot
/usr/pwrsev/cnf/op
#cp $pwre_sroot/tools/pkg/deb/op/.xsession $pkgroot/usr/pwrsev/cnf/op
# Copy user to cnf
mkdir
$pkgroot
/usr/pwrsev/cnf/user
cp
$pwre_sroot
/tools/pkg/deb/user/.bashrc
$pkgroot
/usr/pwrsev/cnf/user
cp
$pwre_sroot
/tools/pkg/deb/user/.bash_profile
$pkgroot
/usr/pwrsev/cnf/user
#cp $pwre_sroot/tools/pkg/deb/user/.mwmrc $pkgroot/usr/pwrsev/cnf/user
cp
$pwre_sroot
/tools/pkg/deb/user/.rtt_start
$pkgroot
/usr/pwrsev/cnf/user
cp
$pwre_sroot
/tools/pkg/deb/user/.xtt_start
$pkgroot
/usr/pwrsev/cnf/user
#cp $pwre_sroot/tools/pkg/deb/user/.xsession $pkgroot/usr/pwrsev/cnf/user
# Create package
echo
"-- Building package"
if
which fakeroot
>
/dev/null
;
then
fakeroot dpkg
-b
$pkgroot
$pwre_broot
/
$pwre_target
/bld/pkg
else
dpkg
-b
$pkgroot
$pwre_broot
/
$pwre_target
/bld/pkg
fi
rm
-r
$pkgroot
src/tools/pkg/raspbian/pwrsev/changelog
0 → 100644
View file @
a7a1c313
Proview V3.4b (3.4.1-1)
\ No newline at end of file
src/tools/pkg/raspbian/pwrsev/changelog.Debian
0 → 100644
View file @
a7a1c313
Proview. See also normal changelog file.
\ No newline at end of file
src/tools/pkg/raspbian/pwrsev/control
0 → 100644
View file @
a7a1c313
Package: pwrsev
Version: 5.1.0-1
Section: base
Priority: optional
Architecture: armhf
Depends: libc6 (>= 2.13-38+rpi2), libgtk2.0-0 (>= 2.24.10-2), libasound2 (>= 1.0.25-4), libsqlite3-0 (>= 3.7.13-1+deb7u1), libdb5.3 (>=5.3.15-2), libmysqlclient18 (>= 5.5.31+dfsg-0+wheezy1)
Replaces: pwr34,pwr39,pwr40,pwr41,pwr42,pwr43,pwr44,pwr45,pwr46,pwr47,pwr48,pwr50
Maintainer: Proview <postmaster@proview.se>
Description:
Proview storage environment
5.1.0-1 Base release
src/tools/pkg/raspbian/pwrsev/copyright
0 → 100644
View file @
a7a1c313
Proview
Copyright: SSAB Oxelsund AB <ssabox.com>
2003-11-21
The home page of Proview is at:
http://www.proview.se
src/tools/pkg/raspbian/pwrsev/postinst
0 → 100755
View file @
a7a1c313
#!/bin/bash
set
-e
if
[
"
$pwrrt_xtrace
"
!=
""
]
;
then
set
-o
xtrace
fi
# Automatically added by dh_installdocs
if
[
"
$1
"
=
"configure"
]
;
then
if
[
-d
/usr/doc
-a
!
-e
/usr/doc/pwrtest
-a
-d
/usr/share/doc/pwrtest
]
;
then
ln
-sf
../share/doc/pwrtest /usr/doc/pwrtest
fi
fi
# End automatically added section
proot
=
"/pwrp"
aroot
=
"/usr/pwrp/adm"
# Create users...
new_user
=
0
if
getent group pwrp
>
/dev/null
;
then
echo
"-- group pwrp already exist"
else
if
groupadd pwrp
;
then
echo
"-- group pwrp added"
fi
fi
if
getent group b55
>
/dev/null
;
then
echo
"-- group b55 already exist"
else
if
groupadd b55
;
then
echo
"-- group b55 added"
fi
fi
if
getent group b66
>
/dev/null
;
then
echo
"-- group b66 already exist"
else
if
groupadd b66
;
then
echo
"-- group b66 added"
fi
fi
if
getent group skiftel
>
/dev/null
;
then
echo
"-- group skiftel already exist"
else
if
groupadd skiftel
;
then
echo
"-- group skiftel added"
fi
fi
if
getent passwd pwrp
>
/dev/null
;
then
echo
"-- user pwrp already exist"
else
new_user
=
1
if
useradd
-s
/bin/bash
-p
aaupl/kQs1p3U
-g
pwrp
-G
b55,b66,skiftel
-d
/home/pwrp pwrp
;
then
echo
"-- user pwrp added"
fi
if
[
!
-e
/home/pwrp
]
;
then
mkdir
/home/pwrp
cp
/usr/pwrsev/cnf/user/.bashrc /home/pwrp
cp
/usr/pwrsev/cnf/user/.bash_profile /home/pwrp
# cp /usr/pwrsev/cnf/user/.mwmrc /home/pwrp
cp
/usr/pwrsev/cnf/user/.rtt_start /home/pwrp
chmod
a+x /home/pwrp/.rtt_start
cp
/usr/pwrsev/cnf/user/.xtt_start /home/pwrp
chmod
a+x /home/pwrp/.xtt_start
# cp /usr/pwrsev/cnf/user/.xsession /home/pwrp
chown
-R
pwrp /home/pwrp
chgrp
-R
pwrp /home/pwrp
fi
# Add to group dialout
if
getent group dialout
>
/dev/null
;
then
usermod
-a
-G
dialout pwrp
fi
fi
if
getent passwd skiftel
>
/dev/null
;
then
echo
"-- user skiftel already exist"
else
new_user
=
1
if
useradd
-s
/bin/bash
-p
aa6NzxS/aBgP6
-g
skiftel
-G
pwrp
-d
/home/skiftel skiftel
;
then
echo
"-- user skiftel added"
fi
if
[
!
-e
/home/skiftel
]
;
then
mkdir
/home/skiftel
cp
/usr/pwrsev/cnf/user/.bashrc /home/skiftel
cp
/usr/pwrsev/cnf/user/.bash_profile /home/skiftel
# cp /usr/pwrsev/cnf/user/.mwmrc /home/skiftel
cp
/usr/pwrsev/cnf/user/.rtt_start /home/skiftel
chmod
a+x /home/skiftel/.rtt_start
cp
/usr/pwrsev/cnf/user/.xtt_start /home/skiftel
chmod
a+x /home/skiftel/.xtt_start
# cp /usr/pwrsev/cnf/user/.xsession /home/skiftel
chown
-R
pwrp /home/skiftel
chgrp
-R
pwrp /home/skiftel
fi
fi
if
getent passwd b55
>
/dev/null
;
then
new_user
=
1
# Check if group audio exist
if
getent group audio
>
/dev/null
;
then
groups
=
"pwrp,audio"
else
groups
=
"pwrp"
fi
if
useradd
-s
/bin/bash
-p
aaQPClsglxJP6
-g
b55
-G
$groups
-d
/home/b55 b55
;
then
echo
"-- user b55 added"
fi
if
[
!
-e
/home/b55
]
;
then
mkdir
/home/b55
cp
/usr/pwrsev/cnf/op/.bashrc /home/b55
cp
/usr/pwrsev/cnf/op/.bash_profile /home/b55
# cp /usr/pwrsev/cnf/op/.mwmrc /home/b55
cp
/usr/pwrsev/cnf/op/.rtt_start /home/b55
chmod
a+x /home/b55/.rtt_start
cp
/usr/pwrsev/cnf/op/.xtt_start /home/b55
chmod
a+x /home/b55/.xtt_start
# cp /usr/pwrsev/cnf/op/.xsession /home/b55
chown
-R
b55 /home/b55
chgrp
-R
pwrp /home/b55
chmod
g+rwx /home/b55
fi
fi
if
getent passwd b66
>
/dev/null
;
then
new_user
=
1
# Check if group audio exist
if
getent group audio
>
/dev/null
;
then
groups
=
"pwrp,audio"
else
groups
=
"pwrp"
fi
if
useradd
-s
/bin/bash
-p
aae.nHgHbfUpw
-g
b66
-G
$groups
-d
/home/b66 b66
;
then
echo
"-- user b66 added"
fi
if
[
!
-e
/home/b66
]
;
then
mkdir
/home/b66
cp
/usr/pwrsev/cnf/op/.bashrc /home/b66
cp
/usr/pwrsev/cnf/op/.bash_profile /home/b66
# cp /usr/pwrsev/cnf/op/.mwmrc /home/b66
cp
/usr/pwrsev/cnf/op/.rtt_start /home/b66
chmod
a+x /home/b66/.rtt_start
cp
/usr/pwrsev/cnf/op/.xtt_start /home/b66
chmod
a+x /home/b66/.xtt_start
# cp /usr/pwrsev/cnf/op/.xsession /home/b66
chown
-R
b66 /home/b66
chgrp
-R
pwrp /home/b66
chmod
g+rwx /home/b66
fi
fi
chown
-R
pwrp /usr/pwrsev
chgrp
-R
pwrp /usr/pwrsev
chmod
u+s /usr/pwrsev/exe/sev_ini
chown
root /usr/pwrsev/exe/rt_prio
chmod
u+s /usr/pwrsev/exe/rt_prio
# Copy configuration files
new_cnf
=
0
if
[
!
-e
/etc/proview.cnf
]
;
then
cp
/usr/pwrsev/cnf/proview.cnf /etc
new_cnf
=
1
fi
# Add pwrp_profile to profile
if
!
grep
-q
"/etc/pwrp_profile
\b
"
/etc/profile
;
then
cat
>>
/etc/profile
<<-
EOF
if [ -e /etc/pwrp_profile ]; then
source /etc/pwrp_profile
fi
EOF
fi
# Create startup link
set
+e
checklink
=
`
eval ls
/etc/rc2.d/S90pwrsev 2>/dev/null
`
set
-e
if
[
"
$checklink
"
!=
""
]
;
then
rm
/etc/rc2.d/S90pwrsev
fi
ln
-s
/etc/init.d/pwrsev /etc/rc2.d/S90pwrsev
# Create project
new_project
=
0
if
[
!
-e
$proot
]
;
then
new_project
=
1
mkdir
$proot
mkdir
$proot
/common
mkdir
$proot
/common/inc
mkdir
$proot
/common/load
mkdir
$proot
/common/log
mkdir
$proot
/common/loghist
mkdir
$proot
/common/db
mkdir
$proot
/common/web
mkdir
$proot
/x86_linux
mkdir
$proot
/x86_linux/exe
mkdir
$proot
/x86_linux/lib
mkdir
$proot
/x86_linux/obj
mkdir
$proot
/x86_linux/lis
chown
-R
pwrp
$proot
chgrp
-R
pwrp
$proot
fi
if
[
!
-e
$aroot
/db
]
;
then
mkdir
-p
$aroot
/db
chown
-R
pwrp
$aroot
fi
#
changes
=
0
if
[
$new_user
-eq
1
]
;
then
changes
=
1
elif
[
$new_cnf
-eq
1
]
;
then
changes
=
1
elif
[
$new_project
-eq
1
]
;
then
changes
=
1
fi
if
[
$changes
-ne
0
]
;
then
echo
""
echo
""
echo
"***********************************************************"
echo
" Don't forget to do this :"
echo
""
fi
if
[
$new_cnf
-eq
1
]
;
then
echo
"-- Enter QcomBusId in /etc/proview.cnf"
fi
#if [ $new_user -eq 1 ]; then
# echo "-- Enter OpPlace object as argument to rt_xtt in /home/b55/.xtt_start"
#fi
if
[
$new_project
-eq
1
]
;
then
nodename
=
`
eval uname
-n
`
echo
"-- Distribute project to
$nodename
"
fi
if
[
$changes
-ne
0
]
;
then
echo
""
echo
"***********************************************************"
echo
""
fi
src/tools/pkg/raspbian/pwrsev/prerm
0 → 100755
View file @
a7a1c313
#!/bin/sh
set
-e
# Automatically added by dh_installdocs
if
[
\(
"
$1
"
=
"upgrade"
-o
"
$1
"
=
"remove"
\)
-a
-L
/usr/doc/pwrtest
]
;
then
rm
-f
/usr/doc/pwrtest
fi
# End automatically added section
proot
=
"/pwrp"
aroot
=
"/usr/pwrp/adm"
echo
""
echo
-n
"Do you wan't to remove project and users (y/n) [n] "
read
remove_all
if
[
"
$remove_all
"
=
"y"
]
;
then
# Check that any user that is to be remoted isn't logged in
set
+e
user_found
=
0
currentusers
=
`
eval users
`
userstr
=
""
checkuser
=
`
eval echo
$currentusers
|
grep
"
\b
b55
\b
"
`
if
[
"
$checkuser
"
!=
""
]
;
then
user_found
=
1
userstr
=
$userstr
" b55"
fi
checkuser
=
`
eval echo
$currentusers
|
grep
"
\b
b66
\b
"
`
if
[
"
$checkuser
"
!=
""
]
;
then
user_found
=
1
userstr
=
$userstr
" b66"
fi
checkuser
=
`
eval echo
$currentusers
|
grep
"
\b
pwrp
\b
"
`
if
[
"
$checkuser
"
!=
""
]
;
then
user_found
=
1
userstr
=
$userstr
" pwrp"
fi
checkuser
=
`
eval echo
$currentusers
|
grep
"
\b
skiftel
\b
"
`
if
[
"
$checkuser
"
!=
""
]
;
then
user_found
=
1
userstr
=
$userstr
" skiftel"
fi
if
[
$user_found
-eq
1
]
;
then
echo
"-- Current users:
$currentusers
"
echo
"** Remove user will fail. Logout user
$userstr
first."
exit
-1
;
fi
set
-e
echo
"-- Remove user b55"
if
grep
-q
"
\b
b55:"
/etc/passwd
;
then
userdel b55
fi
if
[
-e
/home/b55
]
;
then
rm
-r
/home/b55
fi
echo
"-- Remove user b66"
if
grep
-q
"
\b
b66:"
/etc/passwd
;
then
userdel b66
fi
if
[
-e
/home/b66
]
;
then
rm
-r
/home/b66
fi
echo
"-- Remove user pwrp"
if
grep
-q
"
\b
pwrp:"
/etc/passwd
;
then
userdel pwrp
fi
if
[
-e
/home/pwrp
]
;
then
rm
-r
/home/pwrp
fi
echo
"-- Remove user skiftel"
if
grep
-q
"
\b
skiftel:"
/etc/passwd
;
then
userdel skiftel
fi
if
[
-e
/home/skiftel
]
;
then
rm
-r
/home/skiftel
fi
if
grep
-q
"
\b
b55:"
/etc/group
;
then
groupdel b55
fi
if
grep
-q
"
\b
b66:"
/etc/group
;
then
groupdel b66
fi
if
grep
-q
"
\b
pwrp:"
/etc/group
;
then
groupdel pwrp
fi
if
grep
-q
"
\b
skiftel:"
/etc/group
;
then
groupdel skiftel
fi
echo
"-- Remove project
$proot
"
if
[
-e
$proot
]
;
then
rm
-r
$proot
fi
if
[
-e
$aroot
]
;
then
rm
-r
$aroot
fi
fi
# Remove startup
checklink
=
`
eval ls
/etc/rc2.d/S90pwrsev 2>/dev/null
`
if
[
"
$checklink
"
!=
""
]
;
then
rm
/etc/rc2.d/S90pwrsev
fi
# Remove jar-files on web directory
if
[
-e
/etc/proview.cnf
]
;
then
web_dir
=
`
eval cat
/etc/proview.cnf |
grep
"
\\
bwebDirectory
\\
b"
|
awk
'{print $2}'
`
if
[
-e
$web_dir
/pwr_rt_client.jar
]
;
then
rm
$web_dir
/pwr_rt_client.jar
fi
if
[
-e
$web_dir
/pwr_jop.jar
]
;
then
rm
$web_dir
/pwr_jop.jar
fi
fi
src/tools/pkg/raspbian/pwrsev/proview.cnf
0 → 100644
View file @
a7a1c313
#
# Configuration file for Proview
#
# Default QCOM Bus Id
#
qcomBusId 517
#
# Web directory
#
webDirectory /pwrp/common/web
#
# Default privileges for SevXtt: Read, Admin or None
#
sevXttDefaultPriv Read
src/tools/pkg/raspbian/pwrsev/pwrp_profile
0 → 100644
View file @
a7a1c313
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/pwrsev
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 pwr_doc=$pwrb_root/doc
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 ^jre`
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/pwrsvestop'
alias pwr_stop.sh="/etc/init.d/pwrsev stop"
alias pwr_start="/etc/init.d/pwrsev start"
alias pwrsev="/etc/init.d/pwrsev"
alias pwr="/etc/init.d/pwrsev"
alias boot="/usr/bin/sudo /sbin/reboot"
if [ -e $pwrp_exe/profile ]; then
source $pwrp_exe/profile
fi
src/tools/pkg/raspbian/pwrsev/pwrsev
0 → 100755
View file @
a7a1c313
#!/bin/bash
#
# Startscript fr PWR
#
PATH
=
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
wrapper
=
"/tmp/sev_ini_wrapper"
killer
=
"/tmp/pwr_killer"
.
/etc/pwrp_profile
umask
002
create_wrapper
()
{
if
[
!
-e
$wrapper
]
;
then
echo
"#!/bin/bash"
>
$wrapper
echo
"source /etc/pwrp_profile"
>>
$wrapper
echo
"umask 002"
>>
$wrapper
echo
"
\$
pwr_exe/sev_ini
\$
* &"
>>
$wrapper
chmod
a+rx
$wrapper
if
[
!
-e
$wrapper
]
;
then
echo
"
$wrapper
not writable, check permissions"
exit
fi
fi
}
create_killer
()
{
echo
"#!/bin/bash"
>
$killer
echo
"source /etc/pwrp_profile"
>>
$killer
echo
"umask 002"
>>
$killer
echo
"
`
ps ax |
grep
"rt_"
|
awk
'{ print "kill -9 "$1}'
`
"
>>
$killer
echo
"
`
ps ax |
grep
"sev_"
|
awk
'{ print "kill -9 "$1}'
`
"
>>
$killer
echo
"eval
`
ipcs
-s
|grep ^0x|grep
"[
\t
]pwrp[
\t
]"
|awk
'{printf "ipcrm sem %s;", $2}'
`
"
>>
$killer
echo
"eval
`
ipcs
-q
|grep ^0x|grep
"[
\t
]pwrp[
\t
]"
|awk
'{printf "ipcrm msg %s;", $2}'
`
"
>>
$killer
echo
"eval
`
ipcs
-m
|grep ^0x|grep
"[
\t
]pwrp[
\t
]"
|awk
'{printf "ipcrm shm %s;", $2}'
`
"
>>
$killer
echo
"rm /tmp/pwr*
\$
PWR_BUS_ID"
>>
$killer
chmod
a+rx
$killer
if
[
!
-e
$killer
]
;
then
echo
"
$killer
not writable, check permissions"
exit
fi
}
pwr_start
()
{
create_wrapper
if
[
`
whoami
`
==
"pwrp"
]
;
then
$wrapper
else
sudo
-u
pwrp
$wrapper
fi
}
pwr_stop
()
{
create_wrapper
if
[
`
whoami
`
==
"pwrp"
]
;
then
$wrapper
-s
if
[
-e
$pwrp_exe
/pwrp_stop.sh
]
;
then
source
$pwrp_exe
/pwrp_stop.sh
fi
else
sudo
-u
pwrp
$wrapper
-s
if
[
-e
$pwrp_exe
/pwrp_stop.sh
]
;
then
sudo
-u
pwrp
source
$pwrp_exe
/pwrp_stop.sh
fi
fi
while
[
"
`
ps aux |
grep
-v
grep
|
grep
rt_
`
"
!=
""
]
;
do
sleep
1
;
done
}
pwr_reload
()
{
if
[
`
whoami
`
==
"pwrp"
]
;
then
$pwr_exe
/sev_ini_wrapper
-r
else
sudo
-u
pwrp
$pwr_exe
/sev_ini_wrapper
-r
fi
}
pwr_kill
()
{
create_killer
if
[
`
whoami
`
==
"pwrp"
]
;
then
$killer
else
sudo
-u
pwrp
$killer
fi
}
case
"
$1
"
in
start
)
echo
"Start Proview Storage Environment."
pwr_start
echo
"Done."
;;
stop
)
echo
"Stop Proveiw Storage Environment."
pwr_stop
echo
"Done."
;;
restart
)
echo
"Restart Proview Storage Environment."
echo
"Closing down..."
pwr_stop
sleep
1
echo
"Starting..."
pwr_start
echo
"Done."
;;
reload
)
echo
"Restart Proview Storage Environment."
echo
"Closing down..."
pwr_stop
sleep
1
echo
"Starting..."
pwr_start
echo
"Done."
;;
kill
)
echo
"Remove all processes and resources for Proview Storage Environment"
pwr_kill
echo
"Done."
;;
reset
)
echo
"Remove all processes and resources for Proview Storage Environment"
pwr_kill
echo
"Done."
;;
*
)
echo
" pwrsev Start and stop Proview Storage Environment"
>
&2
echo
""
>
&2
echo
" Usage:"
>
&2
echo
" pwrsev start|stop|restart|reset"
>
&2
echo
""
>
&2
echo
" start Start Storage environment"
>
&2
echo
" stop Stop Storage environment"
>
&2
echo
" restart First stop and then start Storage environment"
>
&2
echo
" reset Remove all processes and resources"
>
&2
echo
""
>
&2
exit
1
;;
esac
exit
0
src/tools/pkg/raspbian/pwrsev/pwrsev.1
0 → 100644
View file @
a7a1c313
.TH pwr "1" "April 2005" "Proview" "Proview Manual"
.SH NAME
pwrsev - start and stop Proview Storage Environment
.SH SYNOPSIS
.B pwrsev
[start][stop][restart][reset]
.SH DESCRIPTION
Start and stop command for Proview Storage Environment.
.SH OPTIONS
.HP
\fBstart\fR
.IP
Start Proview storage environment.
.HP
\fBstop\fR
.IP
Stop Proview storage environment.
.HP
\fBrestart\fR
.IP
Stop and start the Proview storage environment.
.HP
\fBreset\fR
.IP
Remove all processes and resources.
.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 cs.
.SH "SEE ALSO"
.BR sev_ini(1)
src/tools/pkg/raspbian/pwrsev/sev_ini.1
0 → 100644
View file @
a7a1c313
.TH sev_ini "1" "April 2005" "Proview" "Proview Manual"
.SH NAME
sev_ini - start or stop the Proview storage environment
.SH SYNOPSIS
.B sev_ini
[\fIOPTION\fR]
.SH DESCRIPTION
Startup process for the Proview storage 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\-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\-q\fR
.IP
QCOM bus id.
.HP
\fB\-s\fR
.IP
Stop Proview.
.HP
\fB\-v\fR
.IP
Verbose.
.HP
\fB\-w\fR
.IP
Ignore warnings.
.HP
\fB\-?\fR
.IP
Print help.
.SH FILES
/etc/pwrp_profile
The Proview system wide configuration file.
.SH "SEE ALSO"
.BR pwrsev(1)
src/tools/pkg/raspbian/pwrsev/sev_xtt.1
0 → 100644
View file @
a7a1c313
.TH sev_xtt "1" "April 2005" "Proview" "Proview Manual"
.SH NAME
sev_xtt - Proview Storage Operator
.SH SYNOPSIS
.B sev_xtt
[\fIOPTION\fR] [opplace]
.SH DESCRIPTION
The Proview Storage Operator Environment contains a set of utitlities to handle the
the stored data.
.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
de_de German.
.RE
.RS
en_us is default.
.RE
.HP
\fB\-q\fR
.IP
Quiet. Hide license information.
.SH AUTHOR
Written by cs.
.SH "SEE ALSO"
.BR sevpwr(1),
.BR sev_ini(1)
src/tools/pkg/raspbian/src/os_templ/hw_templ/makefile
0 → 100644
View file @
a7a1c313
include
$(pwre_dir_symbols)
ifndef
variables_mk
-include
$(pwre_sroot)/tools/bld/src/$(os_name)/$(hw_name)/variables.mk
endif
ifndef
variables_mk
include
$(pwre_sroot)/tools/bld/src/$(os_name)/variables.mk
endif
ifndef
rules_mk
-include
$(pwre_sroot)/tools/bld/src/$(os_name)/$(hw_name)/rules.mk
endif
ifndef
rules_mk
include
$(pwre_sroot)/tools/bld/src/$(os_name)/rules.mk
endif
.SUFFIXES
:
.PHONY
:
all init copy lib exe clean realclean
\
$(clean_ge)
all
:
init copy lib exe
init
:
dirs
copy
:
lib
:
exe
:
$(bld_dir)/control_pwrrt $(bld_dir)/control_pwr $(bld_dir)/control_pwrdemo $(bld_dir)/control_pwrsev
clean
:
realclean
:
dirs
:
$(bld_dir)$(dir_ext)
$(bld_dir)$(dir_ext)
:
@
$(mkdir)
-p
$(mkdirflags)
$(
basename
$@
)
$(bld_dir)/control_pwrrt
:
../../../pwrrt/control
@
echo
"build
$(target)
"
@
../../../pwrrt/build.sh
@
cp
$(source)
$(target)
$(bld_dir)/control_pwr
:
../../../pwr/control
@
echo
"build
$(target)
"
@
../../../pwr/build.sh
@
cp
$(source)
$(target)
$(bld_dir)/control_pwrdemo
:
../../../pwrdemo/control
@
echo
"build
$(target)
"
@
../../../pwrdemo/build.sh
@
cp
$(source)
$(target)
$(bld_dir)/control_pwrsev
:
../../../pwrsev/control
@
echo
"build
$(target)
"
@
../../../pwrsev/build.sh
@
cp
$(source)
$(target)
src/tools/pkg/raspbian/src/pwr
0 → 100644
View file @
a7a1c313
#!/bin/bash
#
# Startscript fr PWR av Ulf Ljungdahl
#
#test -x /sbin/ipchains || exit 0
#test -x /sbin/ipchains-restore || exit 0
#test -x /sbin/ipchains-save || exit 0
PATH
=
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
.
/etc/pwrp_profile
save
()
{
echo
-n
"Saving IP chains: "
TEMPFILE
=
"
`
tempfile
`
"
echo
"
${
SAVEFILEHEADER
}
"
>
"
${
TEMPFILE
}
"
&&
/sbin/ipchains-save
>>
"
${
TEMPFILE
}
"
2>/dev/null
cat
"
${
TEMPFILE
}
"
>
/etc/ipchains.save
rm
"
${
TEMPFILE
}
"
}
pwr_start
()
{
$pwr_exe
/rt_ini &
sleep
5
/usr/sbin/setrtprio
`
ps ax |
grep
"plc"
|
grep
-v
"grep"
|
awk
'{ print $1}'
`
}
pwr_stop
()
{
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/raspbian/user/.bash_profile
0 → 100644
View file @
a7a1c313
# ~/.bash_profile: executed by bash(1) for login shells.
# see /usr/share/doc/bash/examples/startup-files for examples.
# the files are located in the bash-doc package.
umask 022
# the rest of this file is commented out.
# include .bashrc if it exists
if [ -f ~/.bashrc ]; then
source ~/.bashrc
fi
# set PATH so it includes user's private bin if it exists
#if [ -d ~/bin ] ; then
# PATH=~/bin:"${PATH}"
#fi
src/tools/pkg/raspbian/user/.bashrc
0 → 100644
View file @
a7a1c313
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files for examples
source
/etc/pwrp_profile
# If running interactively, then:
if
[
"
$PS1
"
]
;
then
# enable color support of ls and also add handy aliases
eval
`
dircolors
-b
`
alias ls
=
'ls --color=auto'
#alias ll='ls -l'
#alias la='ls -A'
#alias l='ls -CF'
#alias dir='ls --color=auto --format=vertical'
#alias vdir='ls --color=auto --format=long'
# set a fancy prompt
PS1
=
'\u@\h:\w\$ '
# If this is an xterm set the title to user@host:dir
#case $TERM in
#xterm*)
# PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"'
# ;;
#*)
# ;;
#esac
fi
src/tools/pkg/raspbian/user/.mwmrc
0 → 100644
View file @
a7a1c313
!!
!! Root Menu Description for users
!!
Menu DefaultRootMenu
{
"User Menu" f.title
! "XTT OP-bilder" f.exec "~/.xtt_start &"
"XTT" f.exec "~/.xtt_start &"
"RTT" f.exec "/usr/bin/X11/xterm -T RTT -e ~/.rtt_start &"
"PSS-kort" f.exec "/usr/bin/X11/xterm -T PSS_Kort -e /usr/bin/minicom &"
"Xterm" f.exec "/usr/bin/X11/xterm -T XTerm -sb -right &"
"Klocka" f.exec "/usr/bin/X11/xclock &"
"Miniraknare" f.exec "/usr/bin/X11/xcalc &"
! "Shuffle Up" f.circle_up
! "Shuffle Down" f.circle_down
"Refresh" f.refresh
! "Pack Icons" f.pack_icons
! "Toggle Behavior..." f.set_behavior
no-label f.separator
! "Starta om X" f.restart
"Logga ut" f.quit_mwm
"Starta om dator" f.exec "/usr/bin/rebootreq &"
"Stang av dator" f.exec "/usr/bin/haltreq &"
}
!!
!! Default Window Menu
!!
Menu DefaultWindowMenu
{
"Make Pinned" f.toggle_pin_state
no-label f.separator
Restore _R Alt<Key>F5 f.restore
Move _M Alt<Key>F7 f.move
Size _S Alt<Key>F8 f.resize
Minimize _n Alt<Key>F9 f.minimize
Maximize _x Alt<Key>F10 f.maximize
Raise _a Alt<Key>F2 f.raise
Lower _L Alt<Key>F3 f.lower
no-label f.separator
Close _C Alt<Key>F4 f.kill
}
!!
!! Default Key Bindings
!!
Keys DefaultKeyBindings
{
Shift<Key>Escape window|icon f.post_wmenu
Alt<Key>space window|icon f.post_wmenu
Alt<Key>Tab root|icon|window f.next_key
Alt Shift<Key>Tab root|icon|window f.prev_key
Alt<Key>Escape root|icon|window f.circle_down
Alt Shift<Key>Escape root|icon|window f.circle_up
Alt Shift Ctrl<Key>exclam root|icon|window f.set_behavior
Alt<Key>F6 window f.next_key transient
Alt Shift<Key>F6 window f.prev_key transient
Shift<Key>F10 icon f.post_wmenu
Alt Shift<Key>Delete root|icon|window f.restart
}
!!
!! Button Binding Description(s)
!!
!! These can be used anywhere
!!
Buttons DefaultButtonBindings
{
<Btn1Down> icon|frame f.raise
<Btn3Down> icon|frame f.post_wmenu
<Btn3Down> root f.menu DefaultRootMenu
}
!!
!! These are some example bindings that you might use if your
!! keyboardFocusPolicy is "explicit". Note that to use these, you'll
!! have to change the Mwm*buttonBindings resource in Mwm to
!! ExplicitButtonBindings instead of DefaultButtonBindings.
!!
Buttons ExplicitButtonBindings
{
<Btn1Down> frame|icon f.raise
<Btn3Down> frame|icon f.post_wmenu
<Btn3Down> root f.menu DefaultRootMenu
! <Btn1Up> icon f.restore
Alt<Btn1Down> window|icon f.lower
! Alt<Btn2Down> window|icon f.resize
! Alt<Btn3Down> window|icon f.move
}
!! These are some example bindings that you might use if your
!! keyboardFocusPolicy is "pointer". Note that to use these, you'll
!! have to change the Mwm*buttonBindings resource in Mwm to
!! PointerButtonBindings instead of DefaultButtonBindings.
!!
Buttons PointerButtonBindings
{
<Btn1Down> frame|icon f.raise
<Btn3Down> frame|icon f.post_wmenu
<Btn3Down> root f.menu DefaultRootMenu
<Btn1Down> window f.raise
! <Btn1Up> icon f.restore
Alt<Btn1Down> window|icon f.lower
! Alt<Btn2Down> window|icon f.resize
! Alt<Btn3Down> window|icon f.move
}
!include-menu-defs
#Automatically generated file. Do not edit (see /usr/doc/menu/html/index.html)
Menu "/Debian/Apps/Editors"
{
"Editors" f.title
"Emacs 20" f.exec "/usr/bin/emacs20 &"
"NEdit" f.exec "/usr/bin/X11/nedit &"
"Xedit" f.exec "xedit &"
}
Menu "/Debian/Apps/Graphics"
{
"Graphics" f.title
"Bitmap" f.exec "bitmap &"
}
Menu "/Debian/Apps/Math"
{
"Math" f.title
"Xcalc" f.exec "xcalc &"
"bc" f.exec "x-terminal-emulator -T 'bc' -e /usr/bin/bc &"
"dc" f.exec "x-terminal-emulator -T 'dc' -e /usr/bin/dc &"
}
Menu "/Debian/Apps/Net"
{
"Net" f.title
"Lynx" f.exec "x-terminal-emulator -T 'Lynx' -e /usr/bin/lynx &"
"Telnet" f.exec "x-terminal-emulator -T 'Telnet' -e telnet &"
"Xbiff" f.exec "xbiff &"
}
Menu "/Debian/Apps/Programming"
{
"Programming" f.title
"Gdb" f.exec "x-terminal-emulator -T 'Gdb' -e /usr/bin/gdb &"
"Python (v2.1)" f.exec "x-terminal-emulator -T 'Python (v2.1)' -e /usr/bin/python2.1 &"
"Tclsh8.0" f.exec "x-terminal-emulator -T 'Tclsh8.0' -e /usr/bin/tclsh8.0 &"
"Tclsh8.2" f.exec "x-terminal-emulator -T 'Tclsh8.2' -e /usr/bin/tclsh8.2 &"
"Tclsh8.3" f.exec "x-terminal-emulator -T 'Tclsh8.3' -e /usr/bin/tclsh8.3 &"
"TkWish8.0" f.exec "x-terminal-emulator -T 'TkWish8.0' -e /usr/bin/wish8.0 &"
"TkWish8.3" f.exec "/usr/bin/wish8.3 &"
}
Menu "/Debian/Apps/Shells"
{
"Shells" f.title
"Bash" f.exec "x-terminal-emulator -T 'Bash' -e /bin/bash -login &"
"Sh" f.exec "x-terminal-emulator -T 'Sh' -e /bin/sh -login &"
"Tcsh" f.exec "x-terminal-emulator -T 'Tcsh' -e /usr/bin/tcsh &"
}
Menu "/Debian/Apps/System/Admin"
{
"Admin" f.title
"Lilo-config" f.exec "x-terminal-emulator -T 'Lilo-config' -e /usr/sbin/su-to-root -p root -c /usr/sbin/liloconfig &"
"gpm-config" f.exec "x-terminal-emulator -T 'gpm-config' -e /usr/sbin/su-to-root -p root -c /usr/sbin/gpmconfig &"
}
Menu "/Debian/Apps/System"
{
"System" f.title
"Admin" f.menu "/Debian/Apps/System/Admin"
"Task selector" f.exec "x-terminal-emulator -T 'Task selector' -e su-to-root /usr/bin/tasksel &"
"Top" f.exec "x-terminal-emulator -T 'Top' -e /usr/bin/top &"
"Xconsole" f.exec "xconsole &"
"Xload" f.exec "xload &"
"Xvidtune" f.exec "xvidtune &"
"pstree" f.exec "/etc/alternatives/x-terminal-emulator -e /usr/bin/pstree.x11 &"
}
Menu "/Debian/Apps/Tools"
{
"Tools" f.title
"Editres" f.exec "editres &"
"Oclock" f.exec "oclock &"
"X Window Snapshot" f.exec "xwd | xwud &"
"Xclipboard" f.exec "xclipboard &"
"Xclock (analog)" f.exec "xclock -analog &"
"Xclock (digital)" f.exec "xclock -digital -update 1 &"
"Xcutsel" f.exec "xcutsel &"
"Xev" f.exec "x-terminal-emulator -e xev &"
"Xfontsel" f.exec "xfontsel &"
"Xkill" f.exec "xkill &"
"Xmag" f.exec "xmag &"
"Xrefresh" f.exec "xrefresh &"
}
Menu "/Debian/Apps/Viewers"
{
"Viewers" f.title
"GV" f.exec "/usr/bin/X11/gv &"
"XDvi" f.exec "/usr/bin/xdvi &"
"Xditview" f.exec "xditview &"
}
Menu "/Debian/Apps"
{
"Apps" f.title
"Editors" f.menu "/Debian/Apps/Editors"
"Graphics" f.menu "/Debian/Apps/Graphics"
"Math" f.menu "/Debian/Apps/Math"
"Net" f.menu "/Debian/Apps/Net"
"Programming" f.menu "/Debian/Apps/Programming"
"Shells" f.menu "/Debian/Apps/Shells"
"System" f.menu "/Debian/Apps/System"
"Tools" f.menu "/Debian/Apps/Tools"
"Viewers" f.menu "/Debian/Apps/Viewers"
}
Menu "/Debian/Games/Toys"
{
"Toys" f.title
"Xeyes" f.exec "xeyes &"
"Xlogo" f.exec "xlogo &"
}
Menu "/Debian/Games"
{
"Games" f.title
"Toys" f.menu "/Debian/Games/Toys"
}
Menu "/Debian/Help"
{
"Help" f.title
"Info" f.exec "x-terminal-emulator -T 'Info' -e info &"
"Xman" f.exec "xman &"
}
Menu "/Debian/Screen/Root-window"
{
"Root-window" f.title
"Xsetroot" f.exec "xsetroot &"
}
Menu "/Debian/Screen/Save"
{
"Save" f.title
"Beforelight" f.exec "beforelight &"
}
Menu "/Debian/Screen"
{
"Screen" f.title
"Root-window" f.menu "/Debian/Screen/Root-window"
"Save" f.menu "/Debian/Screen/Save"
}
Menu "/Debian/XShells"
{
"XShells" f.title
"XTerm" f.exec "xterm &"
"XTerm (Unicode)" f.exec "uxterm &"
}
Menu "/Debian"
{
"Debian" f.title
"Apps" f.menu "/Debian/Apps"
"Games" f.menu "/Debian/Games"
"Help" f.menu "/Debian/Help"
"Screen" f.menu "/Debian/Screen"
"XShells" f.menu "/Debian/XShells"
}
src/tools/pkg/raspbian/user/.rtt_start
0 → 100644
View file @
a7a1c313
#!/bin/bash
source
/etc/pwrp_profile
$pwr_exe
/rt_rtt
src/tools/pkg/raspbian/user/.xsession
0 → 100644
View file @
a7a1c313
xsetroot -solid darkcyan
xhost +localhost
~/.xtt_start
xset s off s noblank s noexpose -dpms
exec mwm
src/tools/pkg/raspbian/user/.xtt_start
0 → 100644
View file @
a7a1c313
#!/bin/bash
source
/etc/pwrp_profile
$pwr_exe
/rt_xtt &
src/tools/pkg/raspbian/user/wtt_init.pwr_com
0 → 100644
View file @
a7a1c313
!** Description: Wtt initialization file
! This file is generated at 'Set settings'
! Dont make any changes, use the symbolfile for application setup
if ( IsW1())
set window /width=600 /height=600
two
set inputfocus w1
endif
if ( IsW1())
set noadvanceduser /local
set noalltoplevel /local
set showclass /local
set noshowalias /local
set show description/local
set noshowobjref /local
set noshowobjxref /local
set noshowattrref /local
set noshowattrxref /local
endif
if ( IsW2())
set noadvanceduser /local
set noalltoplevel /local
set showclass /local
set noshowalias /local
set show description/local
set noshowobjref /local
set noshowobjxref /local
set noshowattrref /local
set noshowattrxref /local
endif
src/tools/pkg/raspbian/user/wtt_init1.pwr_com
0 → 100644
View file @
a7a1c313
!** Description: Wtt initialization file
! This file is generated at 'Set settings'
! Dont make any changes, use the symbolfile for application setup
if ( IsW1())
set window /width=600 /height=600
two
set inputfocus w1
endif
if ( IsW1())
set noadvanceduser /local
set noalltoplevel /local
set showclass /local
set noshowalias /local
set show description/local
set noshowobjref /local
set noshowobjxref /local
set noshowattrref /local
set noshowattrxref /local
endif
if ( IsW2())
set noadvanceduser /local
set noalltoplevel /local
set showclass /local
set noshowalias /local
set show description/local
set noshowobjref /local
set noshowobjxref /local
set noshowattrref /local
set noshowattrxref /local
endif
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