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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
a53fc49e
Commit
a53fc49e
authored
Mar 19, 2004
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql.com:/space/my/mysql-4.0
into mysql.com:/space/my/mysql-4.0-build
parents
c6a05996
84418a9e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
Build-tools/Do-pkg
Build-tools/Do-pkg
+11
-2
No files found.
Build-tools/Do-pkg
View file @
a53fc49e
...
...
@@ -61,6 +61,12 @@ else
}
$PM
=
"
/Developer/Applications/PackageMaker.app/Contents/MacOS/PackageMaker
";
# Try another location on 10.3.3
unless
(
-
e
"
$PM
")
{
$PM
=
"
/Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker
";
}
$TMP
=
$ENV
{
TMPDIR
};
$TMP
eq
""
?
$TMP
=
$TMP
.
"
/PKGBUILD.$$
":
$TMP
=
"
/tmp/PKGBUILD.$$
";
$PKGROOT
=
"
$TMP
/PMROOT
";
...
...
@@ -79,6 +85,9 @@ $BUILDDIR= "$PWD/$HOST";
$SRCBASEDIR
=
<
$BUILDDIR
/
mysql
*-
$VERSION
>
;
$SUPFILEDIR
=
<
$SRCBASEDIR
/support-files/
MacOSX
>
;
$TAR
=
<
$BUILDDIR
/
$NAME
-
apple
-
darwin
*-
powerpc
.
tar
.
gz
>
;
$TAR
=~
/.*\/$NAME(.*)\.tar\.gz$/
;
$ARCH
=
$1
;
$NAME
=
$NAME
.
$ARCH
;
$INFO
=
<
$SUPFILEDIR
/
Info
.
plist
>
;
$DESC
=
<
$SUPFILEDIR
/
Description
.
plist
>
;
$SI_INFO
=
<
$SUPFILEDIR
/
StartupItem
.
Info
.
plist
>
;
...
...
@@ -167,7 +176,7 @@ unless (-f "$RESOURCE_DIR/License.txt");
&
logger
("
Extracting
$TAR
to
$PKGROOT
");
&
run_command
("
gnutar zxf
$TAR
-C
$PKGROOT
",
"
Unable to extract
$TAR
!
");
&
run_command
("
cd
$PKGROOT
; ln -s mysql* ./mysql
",
"
Unable to create symlink!
");
&
run_command
("
chown -R root
.
wheel
$PKGROOT
/*
",
"
Cannot chown
$PKGROOT
!
");
&
run_command
("
chown -R root
:
wheel
$PKGROOT
/*
",
"
Cannot chown
$PKGROOT
!
");
# Now build the PGK using PackageMaker
# The "|| true" is a nasty hack to work around a problem with Package Maker
...
...
@@ -196,7 +205,7 @@ unless ($opt_skip_si)
copy
("
$SI_PARAMS
",
"
$PKGROOT
/MySQL/
")
or
&
abort
("
Error copying
$SI_PARAMS
!
");
chmod
(
0644
,
"
$PKGROOT
/MySQL/
"
.
basename
("
$SI_PARAMS
"));
&
run_command
("
chown -R root
.
wheel
$PKGROOT
/*
",
"
Cannot chown
$PKGROOT
!
");
&
run_command
("
chown -R root
:
wheel
$PKGROOT
/*
",
"
Cannot chown
$PKGROOT
!
");
copy
("
$SI_POST
",
"
$RESOURCE_DIR
/postinstall
")
or
&
abort
("
Error copying
$SI_POST
!
");
chmod
(
0644
,
"
$RESOURCE_DIR
/postinstall
");
...
...
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