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
07cf6b14
Commit
07cf6b14
authored
7 years ago
by
Alexander Traud
Browse files
Options
Downloads
Patches
Plain Diff
install_prereq: Add Slackware (somehow).
ASTERISK-27770 Change-Id: Ib87e0483c785542238cfe34c1e884d5a31edfaab
parent
625d53a1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Makefile
+4
-2
4 additions, 2 deletions
Makefile
contrib/scripts/install_prereq
+18
-4
18 additions, 4 deletions
contrib/scripts/install_prereq
with
22 additions
and
6 deletions
Makefile
+
4
−
2
View file @
07cf6b14
...
@@ -951,6 +951,10 @@ config:
...
@@ -951,6 +951,10 @@ config:
fi
;
\
fi
;
\
elif
[
-f
/etc/arch-release
-o
-f
/etc/arch-release
]
;
then
\
elif
[
-f
/etc/arch-release
-o
-f
/etc/arch-release
]
;
then
\
./build_tools/install_subst contrib/init.d/rc.archlinux.asterisk
"
$(
DESTDIR
)
/etc/init.d/asterisk"
;
\
./build_tools/install_subst contrib/init.d/rc.archlinux.asterisk
"
$(
DESTDIR
)
/etc/init.d/asterisk"
;
\
elif
[
-f
/etc/slackware-version
]
;
then
\
./build_tools/install_subst contrib/init.d/rc.slackware.asterisk
"
$(
DESTDIR
)
/etc/rc.d/rc.asterisk"
;
\
elif
[
-f
/etc/os-release
]
&&
[
"slackware"
=
"
$(
shell . /etc/os-release && echo
$$
ID
)
"
]
;
then
\
./build_tools/install_subst contrib/init.d/rc.slackware.asterisk
"
$(
DESTDIR
)
/etc/rc.d/rc.asterisk"
;
\
elif
[
-d
"
$(
DESTDIR
)
/Library/LaunchDaemons"
]
;
then
\
elif
[
-d
"
$(
DESTDIR
)
/Library/LaunchDaemons"
]
;
then
\
if
[
!
-f
"
$(
DESTDIR
)
/Library/LaunchDaemons/org.asterisk.asterisk.plist"
]
;
then
\
if
[
!
-f
"
$(
DESTDIR
)
/Library/LaunchDaemons/org.asterisk.asterisk.plist"
]
;
then
\
./build_tools/install_subst contrib/init.d/org.asterisk.asterisk.plist
"
$(
DESTDIR
)
/Library/LaunchDaemons/org.asterisk.asterisk.plist"
;
\
./build_tools/install_subst contrib/init.d/org.asterisk.asterisk.plist
"
$(
DESTDIR
)
/Library/LaunchDaemons/org.asterisk.asterisk.plist"
;
\
...
@@ -958,8 +962,6 @@ config:
...
@@ -958,8 +962,6 @@ config:
if
[
!
-f
"
$(
DESTDIR
)
/Library/LaunchDaemons/org.asterisk.muted.plist"
]
;
then
\
if
[
!
-f
"
$(
DESTDIR
)
/Library/LaunchDaemons/org.asterisk.muted.plist"
]
;
then
\
./build_tools/install_subst contrib/init.d/org.asterisk.muted.plist
"
$(
DESTDIR
)
/Library/LaunchDaemons/org.asterisk.muted.plist"
;
\
./build_tools/install_subst contrib/init.d/org.asterisk.muted.plist
"
$(
DESTDIR
)
/Library/LaunchDaemons/org.asterisk.muted.plist"
;
\
fi
;
\
fi
;
\
elif
[
-f
/etc/slackware-version
]
;
then
\
echo
"Slackware is not currently supported, although an init script does exist for it."
;
\
else
\
else
\
echo
"We could not install init scripts for your distribution."
;
\
echo
"We could not install init scripts for your distribution."
;
\
fi
fi
...
...
This diff is collapsed.
Click to expand it.
contrib/scripts/install_prereq
+
18
−
4
View file @
07cf6b14
...
@@ -297,7 +297,11 @@ install_unpackaged() {
...
@@ -297,7 +297,11 @@ install_unpackaged() {
./configure
./configure
make all
install
make all
install
cd
..
cd
..
echo
"/usr/local/lib"
>
/etc/ld.so.conf.d/usr_local.conf
if
test
-d
/etc/ld.so.conf.d
;
then
echo
"/usr/local/lib"
>
/etc/ld.so.conf.d/usr_local.conf
else
# for example: Slackware 14.2
echo
"/usr/local/lib"
>
/etc/ld.so.conf
fi
/sbin/ldconfig
/sbin/ldconfig
fi
fi
...
@@ -310,7 +314,11 @@ install_unpackaged() {
...
@@ -310,7 +314,11 @@ install_unpackaged() {
./configure
--enable-openssl
./configure
--enable-openssl
make shared_library
install
make shared_library
install
cd
..
cd
..
echo
"/usr/local/lib"
>
/etc/ld.so.conf.d/usr_local.conf
if
test
-d
/etc/ld.so.conf.d
;
then
echo
"/usr/local/lib"
>
/etc/ld.so.conf.d/usr_local.conf
else
# for example: Slackware 14.2
echo
"/usr/local/lib"
>
/etc/ld.so.conf
fi
/sbin/ldconfig
/sbin/ldconfig
fi
fi
fi
fi
...
@@ -348,8 +356,14 @@ if [ -f /etc/mandrake-release ]; then
...
@@ -348,8 +356,14 @@ if [ -f /etc/mandrake-release ]; then
unsupported_distro
=
'Mandriva'
unsupported_distro
=
'Mandriva'
fi
fi
if
[
-f
/etc/slackware-version
]
;
then
if
[
-f
/etc/slackware-version
]
||
([
-f
/etc/os-release
]
&&
.
/etc/os-release
&&
[
"
$ID
"
=
"slackware"
])
;
then
unsupported_distro
=
'Slackware'
echo
>
&2
"
$0
: Your distribution (Slackware) is currently not supported. Aborting. Try manually:"
# libedit requires a newer version than Slackware 14.2, for example Slackware-current
# or you build it manually: <http://thrysoee.dk/editline/>
echo
>
&2
"
$0
: # slackpkg install make gcc pkg-config libedit util-linux sqlite libxml2 patch wget"
# required for libjansson
echo
>
&2
"
$0
: # ./contrib/scripts/install_prereq install-unpackaged"
exit
1
fi
fi
if
[
"
$unsupported_distro
"
!=
''
]
;
then
if
[
"
$unsupported_distro
"
!=
''
]
;
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