Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
asterisk
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Voice
asterisk
Commits
4b8a2dd3
Commit
4b8a2dd3
authored
7 years ago
by
Jenkins2
Committed by
Gerrit Code Review
7 years ago
Browse files
Options
Downloads
Plain Diff
Merge "install_prereq: Add SUSE."
parents
1a9ed413
b0fff03b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
contrib/scripts/install_prereq
+36
-4
36 additions, 4 deletions
contrib/scripts/install_prereq
with
36 additions
and
4 deletions
contrib/scripts/install_prereq
+
36
−
4
View file @
4b8a2dd3
...
...
@@ -50,6 +50,22 @@ PACKAGES_RH="$PACKAGES_RH wget subversion"
# Asterisk: for ./configure --with-pjproject-bundled:
PACKAGES_RH
=
"
$PACKAGES_RH
bzip2 patch python-devel"
# Basic build system:
PACKAGES_SUSE
=
"make gcc gcc-c++ pkg-config"
# Asterisk: basic requirements:
PACKAGES_SUSE
=
"
$PACKAGES_SUSE
libedit-devel libjansson-devel libuuid-devel sqlite3-devel libxml2-devel"
# Asterisk: for addons:
PACKAGES_SUSE
=
"
$PACKAGES_SUSE
speex-devel speexdsp-devel libogg-devel libvorbis-devel alsa-devel portaudio-devel libcurl-devel xmlstarlet bison flex"
PACKAGES_SUSE
=
"
$PACKAGES_SUSE
postgresql-devel unixODBC-devel libtool libneon-devel gmime-devel lua-devel liburiparser-devel libxslt-devel libopenssl-devel"
PACKAGES_SUSE
=
"
$PACKAGES_SUSE
libmysqlclient-devel bluez-devel freeradius-client-devel freetds-devel bash"
PACKAGES_SUSE
=
"
$PACKAGES_SUSE
net-snmp-devel iksemel-devel libcorosync-devel newt-devel popt-devel libical-devel spandsp-devel"
PACKAGES_SUSE
=
"
$PACKAGES_SUSE
imap-devel libsrtp2-devel libgsm-devel doxygen graphviz zlib-devel openldap2-devel"
PACKAGES_SUSE
=
"
$PACKAGES_SUSE
codec2-devel fftw3-devel libsndfile-devel unbound-devel"
# Asterisk: for the unpackaged below:
PACKAGES_SUSE
=
"
$PACKAGES_SUSE
wget subversion"
# Asterisk: for ./configure --with-pjproject-bundled:
PACKAGES_SUSE
=
"
$PACKAGES_SUSE
bzip2 patch python-devel"
# Basic build system:
PACKAGES_NBSD
=
"gmake pkg-config"
# Asterisk: basic requirements:
...
...
@@ -165,6 +181,15 @@ check_installed_fpkgs() {
done
}
check_installed_zypper
()
{
for
pack
in
"
$@
"
do
if
!
zypper se
-ixnC
$pack
>
/dev/null 2>/dev/null
then
echo
$pack
fi
done
}
handle_debian
()
{
if
!
[
-x
"
$(
command
-v
aptitude
)
"
]
;
then
apt-get
install
aptitude
...
...
@@ -208,6 +233,13 @@ handle_fbsd() {
fi
}
handle_SUSE
()
{
extra_packs
=
`
check_installed_zypper
$PACKAGES_SUSE
`
if
[
x
"
$extra_packs
"
!=
"x"
]
;
then
$testcmd
zypper
install
--no-confirm
$extra_packs
fi
}
install_unpackaged
()
{
echo
"*** Installing NBS (Network Broadcast Sound) ***"
svn co http://svn.digium.com/svn/nbs/trunk nbs-trunk
...
...
@@ -284,10 +316,6 @@ if [ -f /etc/mandrake-release ]; then
unsupported_distro
=
'Mandriva'
fi
if
[
-f
/etc/SuSE-release
]
;
then
unsupported_distro
=
'SUSE'
fi
if
[
-f
/etc/slackware-version
]
;
then
unsupported_distro
=
'Slackware'
fi
...
...
@@ -302,6 +330,10 @@ if [ -r /etc/debian_version ]; then
handle_debian
elif
[
-r
/etc/redhat-release
]
;
then
handle_rh
elif
[
-f
/etc/SuSE-release
-o
-f
/etc/novell-release
]
;
then
handle_SUSE
elif
[
-f
/etc/os-release
]
&&
.
/etc/os-release
&&
[
"
$ID
"
=
"opensuse"
]
;
then
handle_SUSE
elif
[
"
$OS
"
=
'NetBSD'
]
;
then
handle_nbsd
elif
[
"
$OS
"
=
'OpenBSD'
]
;
then
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment