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
4d298c8d
Commit
4d298c8d
authored
Dec 30, 2005
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
New package
parent
d830eebb
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
455 additions
and
90 deletions
+455
-90
src/tools/pkg/deb/pwrrt/build.sh
src/tools/pkg/deb/pwrrt/build.sh
+11
-90
src/tools/pkg/deb/pwrrt/pwr
src/tools/pkg/deb/pwrrt/pwr
+2
-0
src/tools/pkg/deb/pwrrt/pwrrt.spec
src/tools/pkg/deb/pwrrt/pwrrt.spec
+442
-0
No files found.
src/tools/pkg/deb/pwrrt/build.sh
View file @
4d298c8d
...
...
@@ -11,100 +11,27 @@ if [ -e $pwr_inc/pwr_version.h ]; then
ver
=
${
ver
:2:2
}
fi
# Generate version help file
{
if
[
!
-e
$pwre_sroot
/tools/pkg/deb/pwrrt/control
]
;
then
echo
"Controlfile not found"
exit
1
fi
datfile
=
$pwre_sroot
/tools/pkg/deb/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_exe
/xtt_version_help.dat
# Convert to html
co_convert
-t
-d
$pwr_doc
$pwr_exe
/xtt_version_help.dat
# Print rt version file
echo
"Version:
$version
"
>
$pwr_exe
/rt_version.dat
if
[
"
$1
"
==
"-v"
]
;
then
exit
fi
pkgroot
=
$pwre_broot
/
$pwre_target
/bld/pkg/pwrrt
pkgsrc
=
$pwre_sroot
/tools/pkg/
deb
/pwrrt
pkgsrc
=
$pwre_sroot
/tools/pkg/
rpm
/pwrrt
# Create directories
echo
"-- Create package tree"
mkdir
-p
$pkgroot
/DEBIAN
mkdir
-p
$pkgroot
/rpm/BUILD
mkdir
-p
$pkgroot
/rpm/RPMS
mkdir
-p
$pkgroot
/rpm/SPECS
mkdir
-p
$pkgroot
/rpm/SOURCES
mkdir
-p
$pkgroot
/rpm/SRPMS
mkdir
-p
$pkgroot
/usr/share/doc/pwrrt
mkdir
-p
$pkgroot
/etc/init.d
find
$pkgroot
-type
d | xargs
chmod
755
# 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
...
...
@@ -112,17 +39,11 @@ cp $pkgsrc/copyright $pkgroot/usr/share/doc/pwrrt
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
...
...
@@ -173,12 +94,12 @@ 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
rpmbuild
-bb
--quiet
\
--define
"_topdir
$pkgroot
/rpm"
\
--buildroot
$pkgroot
$pkgsrc
/pwrrt.spec
>
/dev/null 2>&1
mv
$pkgroot
/rpm/RPMS/i586/
*
.rpm
$pwre_broot
/
$pwre_target
/bld/pkg/.
rm
-r
$pkgroot
...
...
src/tools/pkg/deb/pwrrt/pwr
View file @
4d298c8d
...
...
@@ -15,6 +15,8 @@ pwr_start()
pwr_stop
()
{
rt_ini
-s
sleep
5
kill
-9
`
ps ax |
grep
"rt_neth_acp"
|
awk
'{ print $1}'
`
kill
-9
`
ps ax |
grep
"rt_neth"
|
awk
'{ print $1}'
`
kill
-9
`
ps ax |
grep
"rt_qmon"
|
awk
'{ print $1}'
`
...
...
src/tools/pkg/deb/pwrrt/pwrrt.spec
0 → 100644
View file @
4d298c8d
This diff is collapsed.
Click to expand it.
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