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
fa420090
Commit
fa420090
authored
Jan 27, 2006
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added new rpm package
parent
73a0136d
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
186 additions
and
0 deletions
+186
-0
src/tools/pkg/rpm/pwrdemo/build.sh
src/tools/pkg/rpm/pwrdemo/build.sh
+63
-0
src/tools/pkg/rpm/pwrdemo/changelog
src/tools/pkg/rpm/pwrdemo/changelog
+1
-0
src/tools/pkg/rpm/pwrdemo/copyright
src/tools/pkg/rpm/pwrdemo/copyright
+8
-0
src/tools/pkg/rpm/pwrdemo/pwrdemo.spec
src/tools/pkg/rpm/pwrdemo/pwrdemo.spec
+114
-0
No files found.
src/tools/pkg/rpm/pwrdemo/build.sh
0 → 100755
View file @
fa420090
#!/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
=
/usr/local/pwrp/pwrdemo
$ver
pkgroot
=
$pwre_broot
/
$pwre_target
/bld/pkg/pwrdemo
$ver
pkgsrc
=
$pwre_sroot
/tools/pkg/rpm/pwrdemo
echo
"-- Building pwrdemo
$ver
"
# Create directories
echo
"-- Create package tree"
mkdir
-p
$pkgroot
/rpm/BUILD
mkdir
-p
$pkgroot
/rpm/RPMS
mkdir
-p
$pkgroot
/rpm/SPECS
mkdir
-p
$pkgroot
/rpm/SOURCES
mkdir
-p
$pkgroot
/rpm/SRPMS
mkdir
-p
$pkgroot
/usr/share/doc/pwrdemo
$ver
mkdir
-p
$pkgroot
/usr/pwrp
find
$pkgroot
-type
d | xargs
chmod
755
# 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
# Man pages
# Copy pwrdemo
mkdir
$pkgroot
/usr/pwrp/pwrdemo
$ver
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
# Create package
echo
"-- Building package"
rpmbuild
-bb
--quiet
\
--define
"_topdir
$pkgroot
/rpm"
\
--buildroot
$pkgroot
$pkgsrc
/pwrdemo.spec
>
/dev/null 2>&1
mv
$pkgroot
/rpm/RPMS/i586/
*
.rpm
$pwre_broot
/
$pwre_target
/bld/pkg/.
rm
-r
$pkgroot
src/tools/pkg/rpm/pwrdemo/changelog
0 → 100644
View file @
fa420090
Proview V4.1 (4.1.3-1)
src/tools/pkg/rpm/pwrdemo/copyright
0 → 100644
View file @
fa420090
Proview
Copyright: SSAB Oxelsund AB <ssabox.com>
2003-11-21
The home page of Proview is at:
http://www.proview.se
src/tools/pkg/rpm/pwrdemo/pwrdemo.spec
0 → 100644
View file @
fa420090
###############################################################
# PACKAGE INFORMATION
#
# Notes:
#
# - rpm documentation
# See www.rpm.org.
#
Name: pwrdemo41
Summary: Proview/R demo project
Version: 4.1.3
Release: 1
Copyright: (c) 2005 SSAB Oxelound AB, Sweden
#License: GPL
#BuildArch: i586
Packager: robert.karlsson@ssabox.com
Group: Development/Tools/Other
Url: http://www.proview.se
%description
For more information please see www.proview.se.
#%prep
#%setup
#%build
#%install
#%clean
%files
/usr
%post
set -e
# Added by build.sh :
# ver=""
# pwre_target=""
#
aroot="/usr/pwrp/adm"
chown -R 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
pwrver=%{ver}
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${pwrver:0:1}.${pwrver:1:1} /usr/pwrp/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
ls
%preun
set -e
#echo "Here in prerm..."
if [ -e /usr/pwrp/pwrdemo%{ver} ]; then
rm -r /usr/pwrp/pwrdemo%{ver}
fi
#%postun
%changelog
* Fri Jan 27 2005 Robert Karlsson <robert.karlsson@ssabox.com> 4.1.3-1
- Tested
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