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
307a295d
Commit
307a295d
authored
7 years ago
by
Alexander Traud
Browse files
Options
Downloads
Patches
Plain Diff
install_prereq: Add Gentoo Linux.
ASTERISK-27769 Change-Id: Ieb13293cd67481f3a33f58f6f7c8c3ee1e338e7a
parent
625d53a1
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
+41
-4
41 additions, 4 deletions
contrib/scripts/install_prereq
with
41 additions
and
4 deletions
contrib/scripts/install_prereq
+
41
−
4
View file @
307a295d
...
@@ -82,6 +82,22 @@ PACKAGES_ARCH="$PACKAGES_ARCH wget subversion"
...
@@ -82,6 +82,22 @@ PACKAGES_ARCH="$PACKAGES_ARCH wget subversion"
# Asterisk: for ./configure --with-pjproject-bundled:
# Asterisk: for ./configure --with-pjproject-bundled:
PACKAGES_ARCH
=
"
$PACKAGES_ARCH
bzip2 patch python2"
PACKAGES_ARCH
=
"
$PACKAGES_ARCH
bzip2 patch python2"
# Basic build system:
PACKAGES_GENTOO
=
"sys-devel/make sys-devel/gcc dev-util/pkgconfig"
# Asterisk: basic requirements:
PACKAGES_GENTOO
=
"
$PACKAGES_GENTOO
dev-libs/libedit dev-libs/jansson sys-libs/e2fsprogs-libs dev-libs/libxml2 dev-db/sqlite"
# Asterisk: for addons:
PACKAGES_GENTOO
=
"
$PACKAGES_GENTOO
media-libs/speex media-libs/speexdsp media-libs/libogg media-libs/libvorbis media-libs/alsa-lib media-libs/portaudio net-misc/curl app-text/xmlstarlet sys-devel/bison sys-devel/flex"
PACKAGES_GENTOO
=
"
$PACKAGES_GENTOO
dev-db/postgresql dev-db/unixODBC net-libs/neon dev-libs/gmime dev-lang/lua dev-libs/uriparser dev-libs/libxslt dev-libs/openssl"
PACKAGES_GENTOO
=
"
$PACKAGES_GENTOO
virtual/libmysqlclient net-wireless/bluez net-dialup/radiusclient-ng dev-db/freetds app-shells/bash"
PACKAGES_GENTOO
=
"
$PACKAGES_GENTOO
net-analyzer/net-snmp dev-libs/iksemel sys-cluster/corosync dev-libs/newt dev-libs/popt dev-libs/libical media-libs/spandsp"
PACKAGES_GENTOO
=
"
$PACKAGES_GENTOO
net-libs/c-client sys-devel/binutils net-libs/libsrtp media-sound/gsm media-libs/libilbc app-doc/doxygen sys-libs/zlib net-nds/openldap"
PACKAGES_GENTOO
=
"
$PACKAGES_GENTOO
sci-libs/fftw media-libs/libsndfile net-dns/unbound"
# Asterisk: for the unpackaged below:
PACKAGES_GENTOO
=
"
$PACKAGES_GENTOO
net-misc/wget dev-vcs/subversion"
# Asterisk: for ./configure --with-pjproject-bundled:
PACKAGES_GENTOO
=
"
$PACKAGES_GENTOO
app-arch/bzip2 sys-devel/patch dev-lang/python:2.7"
# Basic build system:
# Basic build system:
PACKAGES_NBSD
=
"gmake pkg-config"
PACKAGES_NBSD
=
"gmake pkg-config"
# Asterisk: basic requirements:
# Asterisk: basic requirements:
...
@@ -179,6 +195,20 @@ check_installed_rpms() {
...
@@ -179,6 +195,20 @@ check_installed_rpms() {
done
done
}
}
check_installed_equery
()
{
for
pack
in
"
$@
"
do
# equery --quiet list $pack
# is slower and
# would require the optional app-portage/gentoolkit
# /var/lib/portage/world would be the non-dep list
pack_with_version
=
${
pack
/
:/-
}
# replace a possible version with '-'
if
!
ls
-d
/var/db/pkg/
${
pack_with_version
}*
>
/dev/null 2>/dev/null
then
echo
$pack
fi
done
}
check_installed_pacman
()
{
check_installed_pacman
()
{
for
pack
in
"
$@
"
for
pack
in
"
$@
"
do
do
...
@@ -233,6 +263,13 @@ handle_rh() {
...
@@ -233,6 +263,13 @@ handle_rh() {
fi
fi
}
}
handle_gentoo
()
{
extra_packs
=
`
check_installed_equery
$PACKAGES_GENTOO
`
if
[
x
"
$extra_packs
"
!=
"x"
]
;
then
$testcmd
emerge
$extra_packs
fi
}
handle_arch
()
{
handle_arch
()
{
extra_packs
=
`
check_installed_pacman
$PACKAGES_ARCH
`
extra_packs
=
`
check_installed_pacman
$PACKAGES_ARCH
`
if
[
x
"
$extra_packs
"
!=
"x"
]
;
then
if
[
x
"
$extra_packs
"
!=
"x"
]
;
then
...
@@ -340,10 +377,6 @@ if [ "$OS" != 'Linux' -a "$OS" != 'NetBSD' -a "$OS" != 'OpenBSD' -a "$OS" != 'Fr
...
@@ -340,10 +377,6 @@ if [ "$OS" != 'Linux' -a "$OS" != 'NetBSD' -a "$OS" != 'OpenBSD' -a "$OS" != 'Fr
exit
1
exit
1
fi
fi
if
[
-f
/etc/gentoo-release
]
;
then
unsupported_distro
=
'Gentoo'
fi
if
[
-f
/etc/mandrake-release
]
;
then
if
[
-f
/etc/mandrake-release
]
;
then
unsupported_distro
=
'Mandriva'
unsupported_distro
=
'Mandriva'
fi
fi
...
@@ -370,6 +403,10 @@ elif [ -r /etc/arch-release ]; then
...
@@ -370,6 +403,10 @@ elif [ -r /etc/arch-release ]; then
handle_arch
handle_arch
elif
[
-f
/etc/os-release
]
&&
.
/etc/os-release
&&
[
"
$ID_LIKE
"
=
"archlinux"
]
;
then
elif
[
-f
/etc/os-release
]
&&
.
/etc/os-release
&&
[
"
$ID_LIKE
"
=
"archlinux"
]
;
then
handle_arch
# $ID=arch
handle_arch
# $ID=arch
elif
[
-f
/etc/gentoo-release
]
;
then
handle_gentoo
elif
[
-f
/etc/os-release
]
&&
.
/etc/os-release
&&
[
"
$ID
"
=
"gentoo"
]
;
then
handle_gentoo
elif
[
"
$OS
"
=
'NetBSD'
]
;
then
elif
[
"
$OS
"
=
'NetBSD'
]
;
then
handle_nbsd
handle_nbsd
elif
[
"
$OS
"
=
'OpenBSD'
]
;
then
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