Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
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
nexedi
MariaDB
Commits
b6288b1e
Commit
b6288b1e
authored
Mar 10, 2005
by
mwagner@here.mwagner.org
Browse files
Options
Browse Files
Download
Plain Diff
Merge bk-internal.mysql.com:/home/bk/mysql-4.1
into here.mwagner.org:/Users/mwagner/work/bk/mysql-4.1
parents
763039a1
f1eb5b96
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
14 deletions
+14
-14
Build-tools/Do-solaris-pkg
Build-tools/Do-solaris-pkg
+14
-14
No files found.
Build-tools/Do-solaris-pkg
View file @
b6288b1e
...
...
@@ -14,19 +14,17 @@ $pkginfo = "pkginfo";
(
$gid
,
$pkg
,
$uid
,
$userInfo
,
$email
,
$quota
,
$group
,
$passwd
,
$category
,
$userHome
,
$vendor
,
$loginShell
,
$pstamp
,
$basedir
)
=
();
$fullname
=
shift
@ARGV
;
$fullname
or
die
"
No package name was specified
";
-
d
$fullname
or
die
"
That directory is not present!
";
$tarball
=
$fullname
=
shift
@ARGV
;
$fullname
=~
s/.*(mysql.*)\.tar\.gz/$1/
;
$workdir
=
$$
;
chomp
(
$parent_workdir
=
`
pwd
`);
$fullname
=~
s,/+$,,
;
# Remove ending slash if any
$hostname
=
(
$fullname
=~
m/^.+-64bit$/
)
?
$hostname
.
"
-64bit
"
:
$hostname
;
$pkgdir
=
"
$ENV
{'HOME'}/
$hostname
";
$pkgdir
=
`
cd ../
$hostname
; pwd
`;
$pwd
=
`
pwd
`;
if
(
$pwd
=~
'
\
/usr
\
/local
')
{
$pwd
=
$`
;
}
die
"
Wrong location, please cd to <PKGBASE>/usr/local/ and run again.
\n
"
if
(
$pwd
eq
"");
mkdir
$workdir
or
die
"
Can't make workdir: $!
\n
";
chdir
$workdir
or
die
"
Can't change to workdir: $!
\n
";
system
("
tar xzvf
$tarball
")
==
0
or
die
"
Can't untar: $!
\n
";
system
("
$find
. -print |
$pkgproto
>
$temp
");
open
(
PREPROTO
,"
<
$temp
")
or
die
"
Unable to read prototype information ($!)
\n
";
...
...
@@ -57,8 +55,9 @@ unlink $temp or warn "Unable to remove tempfile ($!)\n";
# Now we can start building the package
#
# First get some info
$fullname
=~
s,/+$,,
;
# Remove ending slash if any
$fullname
=~
/^((mysql)-
.+)-([\d\.]+
)-.+$/
$fullname
=~
/^((mysql)-
\w+-?\w+?)-([\d\.]+\w?
)-.+$/
or
die
"
This name is not what I expected -
\"
$fullname
\"
";
$default
{"
name
"}
=
$2
;
...
...
@@ -137,10 +136,11 @@ system ("gzip /tmp/$packagename");
# Clean-up the spool area
system
("
(cd /var/spool/pkg; rm -rf
$pkg
)
");
# Clean-up the ~/packaging/ area
system
("
(rm -rf mysql*)
");
unlink
$pkginfo
;
unlink
$prototype
;
system
("
mv /tmp/
${packagename}
.gz
$pkgdir
");
chdir
$parent_workdir
or
die
"
Can't change to parent workdir '
$parent_workdir
': $!
\n
";
system
("
rm -rf
$workdir
")
==
0
or
die
"
Can't remove the working dir: $!
\n
";
system
("
mv /tmp/
${packagename}
.gz
$pkgdir
")
==
0
or
die
"
Can't move the finished package out of /tmp: $!
\n
";
print
"
Done. (~/
$hostname
/
$packagename
.gz)
\n
";
# The subroutines
sub
chkvar
{
...
...
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