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
974f2088
Commit
974f2088
authored
Sep 05, 2008
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Sev package
parent
7a20e851
Changes
13
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
1013 additions
and
0 deletions
+1013
-0
src/tools/pkg/deb/pwrsev/build.sh
src/tools/pkg/deb/pwrsev/build.sh
+177
-0
src/tools/pkg/deb/pwrsev/changelog
src/tools/pkg/deb/pwrsev/changelog
+1
-0
src/tools/pkg/deb/pwrsev/changelog.Debian
src/tools/pkg/deb/pwrsev/changelog.Debian
+1
-0
src/tools/pkg/deb/pwrsev/control
src/tools/pkg/deb/pwrsev/control
+11
-0
src/tools/pkg/deb/pwrsev/copyright
src/tools/pkg/deb/pwrsev/copyright
+8
-0
src/tools/pkg/deb/pwrsev/postinst
src/tools/pkg/deb/pwrsev/postinst
+320
-0
src/tools/pkg/deb/pwrsev/prerm
src/tools/pkg/deb/pwrsev/prerm
+126
-0
src/tools/pkg/deb/pwrsev/proview.cnf
src/tools/pkg/deb/pwrsev/proview.cnf
+16
-0
src/tools/pkg/deb/pwrsev/pwrp_profile
src/tools/pkg/deb/pwrsev/pwrp_profile
+55
-0
src/tools/pkg/deb/pwrsev/pwrsev
src/tools/pkg/deb/pwrsev/pwrsev
+135
-0
src/tools/pkg/deb/pwrsev/pwrsev.1
src/tools/pkg/deb/pwrsev/pwrsev.1
+36
-0
src/tools/pkg/deb/pwrsev/sev_ini.1
src/tools/pkg/deb/pwrsev/sev_ini.1
+77
-0
src/tools/pkg/deb/pwrsev/sev_xtt.1
src/tools/pkg/deb/pwrsev/sev_xtt.1
+50
-0
No files found.
src/tools/pkg/deb/pwrsev/build.sh
0 → 100755
View file @
974f2088
#!/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/deb/pwrsev/control
]
;
then
echo
"Controlfile not found"
exit
1
fi
datfile
=
$pwre_sroot
/tools/pkg/deb/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
if
[
"
$1
"
==
"-v"
]
;
then
exit
fi
pkgroot
=
$pwre_broot
/
$pwre_target
/bld/pkg/pwrsev
pkgsrc
=
$pwre_sroot
/tools/pkg/deb/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/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
exe/rt_qmon exe/rt_prio exe/sev_ini exe/sev_xtt exe/sev_xtt_gtk exe/sev_server exe/
*
.gif exe/
*
.png exe/sev_xtt_version_help.dat exe/pwr_pkg.sh exe/en_us/
*
.txt
cd
$pkgroot
/usr/pwrrt
mkdir
cnf
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/deb/pwrsev/changelog
0 → 100644
View file @
974f2088
Proview V3.4b (3.4.1-1)
\ No newline at end of file
src/tools/pkg/deb/pwrsev/changelog.Debian
0 → 100644
View file @
974f2088
Proview. See also normal changelog file.
\ No newline at end of file
src/tools/pkg/deb/pwrsev/control
0 → 100644
View file @
974f2088
Package: pwrsev
Version: 4.5.0-1
Section: base
Priority: optional
Architecture: i386
Depends: libc6 (>= 2.3.6), libgtk2.0-0 (>= 2.8.16-1), libasound2 (>= 1.0.11), libdb4.3 (>=4.3.29)
Replaces: pwr34,pwr39,pwr40,pwr41,pwr42,pwr43,pwr44,pwr45
Maintainer: Proview <postmaster@proview.se>
Description:
Proview storage environment
4.5.0-1 Beta release
src/tools/pkg/deb/pwrsev/copyright
0 → 100644
View file @
974f2088
Proview
Copyright: SSAB Oxelsund AB <ssabox.com>
2003-11-21
The home page of Proview is at:
http://www.proview.se
src/tools/pkg/deb/pwrsev/postinst
0 → 100755
View file @
974f2088
#!/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
!
grep
-q
"
\b
pwrp:"
/etc/group
;
then
echo
"-- Add group pwrp"
groupadd pwrp
fi
if
!
grep
-q
"
\b
b55:"
/etc/group
;
then
echo
"-- Add group b55"
groupadd b55
fi
if
!
grep
-q
"
\b
b66:"
/etc/group
;
then
echo
"-- Add group b66"
groupadd b66
fi
if
!
grep
-q
"
\b
skiftel:"
/etc/group
;
then
echo
"-- Add group skiftel"
groupadd skiftel
fi
if
!
grep
-q
"
\b
pwrp:"
/etc/passwd
;
then
echo
"-- Add user pwrp"
new_user
=
1
useradd
-s
/bin/bash
-p
aaupl/kQs1p3U
-g
pwrp
-G
b55,b66,skiftel
-d
/home/pwrp pwrp
if
[
!
-e
/home/pwrp
]
;
then
mkdir
/home/pwrp
fi
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
# Add to group dialout
if
grep
-q
"
\b
dialout:"
/etc/group
;
then
usermod
-a
-G
dialout pwrp
fi
fi
if
!
grep
-q
"
\b
skiftel:"
/etc/passwd
;
then
echo
"-- Add user skiftel"
new_user
=
1
useradd
-s
/bin/bash
-p
aa6NzxS/aBgP6
-g
skiftel
-G
pwrp
-d
/home/skiftel skiftel
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
!
grep
-q
"
\b
b55:"
/etc/passwd
;
then
echo
"-- Add user b55"
new_user
=
1
# Check if group audio exist
if
grep
-q
"
\b
audio:"
/etc/group
;
then
groups
=
"pwrp,audio"
else
groups
=
"pwrp"
fi
useradd
-s
/bin/bash
-p
aaQPClsglxJP6
-g
b55
-G
$groups
-d
/home/b55 b55
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
!
grep
-q
"
\b
b66:"
/etc/passwd
;
then
echo
"-- Add user b66"
new_user
=
1
# Check if group audio exist
if
grep
-q
"
\b
audio:"
/etc/group
;
then
audio
=
"-G audio"
else
audio
=
""
fi
useradd
-s
/bin/bash
-p
aae.nHgHbfUpw
-g
b66
-G
$groups
-d
/home/b66 b66
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/sev_ini
chown
root /usr/pwrrt/exe/rt_prio
chmod
u+s /usr/pwrrt/exe/rt_prio
# 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/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
# 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_jopc.jar
$web_dir
chown
pwrp
$web_dir
/pwr_jopc.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
#
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
"-- Create file /home/pwrp/.rhosts"
echo
"-- Distribute project to
$nodename
"
fi
if
[
$changes
-ne
0
]
;
then
echo
""
echo
"***********************************************************"
echo
""
fi
src/tools/pkg/deb/pwrsev/prerm
0 → 100755
View file @
974f2088
#!/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/deb/pwrsev/proview.cnf
0 → 100644
View file @
974f2088
#
# 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/deb/pwrsev/pwrp_profile
0 → 100644
View file @
974f2088
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 /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/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/deb/pwrsev/pwrsev
0 → 100755
View file @
974f2088
#!/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
()
{
if
[
!
-e
$killer
]
;
then
echo
"#!/bin/bash"
>
$killer
echo
"source /etc/pwrp_profile"
>>
$killer
echo
"umask 002"
>>
$killer
echo
"kill -9
`
ps ax |
grep
"rt_"
|
awk
'{ print $1}'
`
"
>>
$killer
echo
"kill -9
`
ps ax |
grep
"sev_"
|
awk
'{ print $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
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
"Startar PWR."
pwr_start
echo
"Klar."
;;
stop
)
echo
"Stoppar PWR..."
pwr_stop
echo
"Klar"
;;
restart
)
echo
"Startar om PWR."
echo
"Stoppar det frst."
pwr_stop
sleep
1
echo
"Startar igen."
pwr_start
echo
"Klar."
;;
reload
)
echo
"PWR varmomstart "
pwr_reload
echo
"Klar."
;;
kill
)
echo
"Tar bort delat minne och kvarblivna applikationer frn PWR"
pwr_kill
echo
"Klar."
;;
*
)
echo
"Usage:{start|stop|restart|reload|kill}"
>
&2
exit
1
;;
esac
exit
0
src/tools/pkg/deb/pwrsev/pwrsev.1
0 → 100644
View file @
974f2088
.TH pwr "1" "April 2005" "Proview" "Proview Manual"
.SH NAME
pwrsev - start and stop Proview Storage Environment
.SH SYNOPSIS
.B pwrsev
[start][stop]
.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.
.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 rt_ini(1)
src/tools/pkg/deb/pwrsev/sev_ini.1
0 → 100644
View file @
974f2088
.TH rt_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/deb/pwrsev/sev_xtt.1
0 → 100644
View file @
974f2088
.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)
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