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
9ff95e46
Commit
9ff95e46
authored
7 years ago
by
Alexander Traud
Browse files
Options
Downloads
Patches
Plain Diff
install_prereq: Add NetBSD.
ASTERISK-27729 Change-Id: I7a706d51375d54cf5e36d32397bfe09a48670804
parent
3c64e7eb
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
+30
-1
30 additions, 1 deletion
contrib/scripts/install_prereq
with
30 additions
and
1 deletion
contrib/scripts/install_prereq
+
30
−
1
View file @
9ff95e46
...
...
@@ -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_NBSD
=
"gmake pkg-config"
# Asterisk: basic requirements:
PACKAGES_NBSD
=
"
$PACKAGES_NBSD
editline jansson sqlite3 libuuid libxml2"
# Asterisk: for addons:
PACKAGES_NBSD
=
"
$PACKAGES_NBSD
speex speexdsp libogg libvorbis alsa-lib portaudio-devel curl bison flex"
PACKAGES_NBSD
=
"
$PACKAGES_NBSD
postgresql10-client unixodbc libltdl neon gmime lua52 uriparser libxslt openssl"
PACKAGES_NBSD
=
"
$PACKAGES_NBSD
mysql-client radiusclient-ng freetds bash"
PACKAGES_NBSD
=
"
$PACKAGES_NBSD
net-snmp iksemel popt libical spandsp"
PACKAGES_NBSD
=
"
$PACKAGES_NBSD
imap-uw srtp gsm doxygen graphviz libzip openldap-client"
PACKAGES_NBSD
=
"
$PACKAGES_NBSD
codec2 fftw libsndfile unbound"
# Asterisk: for the unpackaged below:
PACKAGES_NBSD
=
"
$PACKAGES_NBSD
wget subversion-base"
# Asterisk: for ./configure --with-pjproject-bundled:
PACKAGES_NBSD
=
"
$PACKAGES_NBSD
bzip2 patch python27"
# Basic build system:
PACKAGES_OBSD
=
"gmake"
# Asterisk: basic requirements:
...
...
@@ -166,6 +182,17 @@ handle_rh() {
fi
}
handle_nbsd
()
{
extra_packs
=
`
check_installed_pkgs
$PACKAGES_NBSD
`
if
[
x
"
$extra_packs
"
!=
"x"
]
;
then
if
[
-z
"
$PKG_PATH
"
]
;
then
# see NetBSD Problem Report #48177
export
PKG_PATH
=
"http://cdn.NetBSD.org/pub/pkgsrc/packages/
$(
uname
-s
)
/
$(
uname
-p
)
/
$(
uname
-r
)
/All"
fi
$testcmd
pkg_add
$extra_packs
fi
}
handle_obsd
()
{
extra_packs
=
`
check_installed_pkgs
$PACKAGES_OBSD
`
if
[
x
"
$extra_packs
"
!=
"x"
]
;
then
...
...
@@ -243,7 +270,7 @@ OS=`uname -s`
unsupported_distro
=
''
# A number of distributions we don't (yet?) support.
if
[
"
$OS
"
!=
'Linux'
-a
"
$OS
"
!=
'OpenBSD'
-a
"
$OS
"
!=
'FreeBSD'
]
;
then
if
[
"
$OS
"
!=
'Linux'
-a
"
$OS
"
!=
'NetBSD'
-a
"
$OS
"
!=
'OpenBSD'
-a
"
$OS
"
!=
'FreeBSD'
]
;
then
echo
>
&2
"
$0
: Your OS (
$OS
) is currently not supported. Aborting."
exit
1
fi
...
...
@@ -274,6 +301,8 @@ if [ -r /etc/debian_version ]; then
handle_debian
elif
[
-r
/etc/redhat-release
]
;
then
handle_rh
elif
[
"
$OS
"
=
'NetBSD'
]
;
then
handle_nbsd
elif
[
"
$OS
"
=
'OpenBSD'
]
;
then
handle_obsd
elif
[
"
$OS
"
=
'FreeBSD'
]
;
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