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
2087a2e8
Commit
2087a2e8
authored
14 years ago
by
Jonathan Perkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rebrand Red Hat as 'Enterprise Linux'
parent
c3d87145
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
support-files/mysql.spec.sh
support-files/mysql.spec.sh
+10
-10
No files found.
support-files/mysql.spec.sh
View file @
2087a2e8
...
...
@@ -122,20 +122,20 @@
%endif
%if %
{
distro_specific
}
%if %
(
test
-f
/etc/redhat-release
&&
echo
1
||
echo
0
)
%define
redhat
ver %
(
rpm
-qf
--qf
'%%{version}\\n'
/etc/redhat-release |
sed
-e
's/^\\([0-9]*\\).*/\\1/g'
)
%if
"%
redhat
ver"
==
"4"
%define distro_description
Red Hat
Enterprise Linux 4
%define distro_releasetag
rh
el4
%define
el
ver %
(
rpm
-qf
--qf
'%%{version}\\n'
/etc/redhat-release |
sed
-e
's/^\\([0-9]*\\).*/\\1/g'
)
%if
"%
el
ver"
==
"4"
%define distro_description Enterprise Linux 4
%define distro_releasetag el4
%define distro_buildreq gcc-c++ gperf ncurses-devel perl readline-devel
time
zlib-devel
%define distro_requires chkconfig coreutils
grep
procps shadow-utils
%else
%if
"%
redhat
ver"
==
"5"
%define distro_description
Red Hat
Enterprise Linux 5
%define distro_releasetag
rh
el5
%if
"%
el
ver"
==
"5"
%define distro_description Enterprise Linux 5
%define distro_releasetag el5
%define distro_buildreq gcc-c++ gperf ncurses-devel perl readline-devel
time
zlib-devel
%define distro_requires chkconfig coreutils
grep
procps shadow-utils
%else
%
{
error:
Red Hat %
{
redhat
ver
}
is unsupported
}
%
{
error:
Enterprise Linux %
{
el
ver
}
is unsupported
}
%endif
%endif
%else
...
...
@@ -577,7 +577,7 @@ if [ ! -d $mysql_datadir/test ] ; then mkdir $mysql_datadir/test; fi
# use insserv for older SuSE Linux versions
if
[
-x
/sbin/insserv
]
;
then
/sbin/insserv %
{
_sysconfdir
}
/init.d/mysql
# use chkconfig on
Red Hat
and newer SuSE releases
# use chkconfig on
Enterprise Linux
and newer SuSE releases
elif
[
-x
/sbin/chkconfig
]
;
then
/sbin/chkconfig
--add
mysql
fi
...
...
@@ -638,7 +638,7 @@ if [ $1 = 0 ] ; then
# For older SuSE Linux versions
if
[
-x
/sbin/insserv
]
;
then
/sbin/insserv
-r
%
{
_sysconfdir
}
/init.d/mysql
# use chkconfig on
Red Hat
and newer SuSE releases
# use chkconfig on
Enterprise Linux
and newer SuSE releases
elif
[
-x
/sbin/chkconfig
]
;
then
/sbin/chkconfig
--del
mysql
fi
...
...
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