Browse Source

xap/linphone: Removed.

slackware-14.2
Damien Goutte-Gattat 5 years ago
parent
commit
2e16391cf9
  1. 1
      d/antlr3/antlr-3.4-complete.jar.sha1
  2. 1
      d/antlr3/antlr-3.4.tar.gz.sha1
  3. 137
      d/antlr3/antlr3.SlackBuild
  4. 12
      d/antlr3/slack-desc
  5. 1
      l/bctoolbox/bctoolbox-0.5.1.tar.gz.sha256
  6. 108
      l/bctoolbox/bctoolbox.SlackBuild
  7. 12
      l/bctoolbox/slack-desc
  8. 1
      l/belle-sip/belle-sip-1.6.1.tar.gz.sha256
  9. 108
      l/belle-sip/belle-sip.SlackBuild
  10. 12
      l/belle-sip/slack-desc
  11. 1
      l/bzrtp/bzrtp-1.0.5.tar.gz.sha256
  12. 107
      l/bzrtp/bzrtp.SlackBuild
  13. 12
      l/bzrtp/slack-desc
  14. 1
      l/mbedtls/mbedtls-2.5.1-gpl.tgz.sha256
  15. 114
      l/mbedtls/mbedtls.SlackBuild
  16. 12
      l/mbedtls/slack-desc
  17. 3
      xap/linphone/checksums
  18. 5
      xap/linphone/doinst.sh
  19. 177
      xap/linphone/linphone.SlackBuild
  20. 12
      xap/linphone/slack-desc

1
d/antlr3/antlr-3.4-complete.jar.sha1

@ -1 +0,0 @@
5cab59d859caa6598e28131d30dd2e89806db57f antlr-3.4-complete.jar

1
d/antlr3/antlr-3.4.tar.gz.sha1

@ -1 +0,0 @@
0eb2facb033a63fef8efa9d73dbd34ea726d27e6 antlr-3.4.tar.gz

137
d/antlr3/antlr3.SlackBuild

@ -1,137 +0,0 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2014 Damien Goutte-Gattat
#
# Redistribution and use of this script, with or without modifications,
# is permitted provided that the following conditions are met:
#
# 1. Redistributions of this script must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AS IS'' AND ANY EXPRESS OR
# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
# INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
# IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
#
# Contact: Damien Goutte-Gattat <dgouttegattat@incenp.org>
#
# Latest antlr3 sourcecode is available at: <http://www.antlr3.org/>.
# Source package infos
NAMESRC=${NAMESRC:-antlr}
VERSION=${VERSION:-3.4}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz}
WGET=${WGET:-https://github.com/antlr/antlr3/archive/$ARCHIVE}
JAR=${JAR:-antlr-$VERSION-complete.jar}
WJAR=${WJAR:-http://www.antlr3.org/download/$JAR}
# Build infos
NAMEPKG=${NAMEPKG:-antlr3}
BUILD=${BUILD:-1GGD}
ARCH=${ARCH:-$(uname -m | sed 's/^i.86$/i486/;s/^arm.*/arm/')}
JOBS=${JOBS:-1}
EXT=${EXT:-txz}
# Directories
TMP=${TMP:-/tmp}
OUT=${OUT:-$TMP/build}
PKG=${PKG:-$OUT/$NAMEPKG}
CWD=$(pwd)
set -e # Quit if a command returns non-zero
# Sanity checks
if [ $UID -eq 0 ]; then
echo "You should NOT run this script as ROOT!"
exit 1
fi
if [ ! -d $TMP ]; then
echo "$TMP does not exists or is not a directory!"
exit 1
fi
# Compilation flags
LIBDIRSUFFIX=""
FLAG64=""
case "$ARCH" in
i?86)
CPUOPT="-O2 -march=$ARCH -mtune=i686"
;;
x86_64)
CPUOPT="-O2 -fPIC"
LIBDIRSUFFIX="64"
FLAG64="--enable-64bit"
;;
*)
CPUOPT="-O2"
;;
esac
# Get and verify the source archive and the Java archive
if [ ! -r $ARCHIVE ]; then
wget -c -O $ARCHIVE.part "$WGET"
mv $ARCHIVE.part $ARCHIVE
fi
if [ ! -r $JAR ]; then
wget -c -O $JAR.part "$WJAR"
mv $JAR.part $JAR
fi
sha1sum -c $ARCHIVE.sha1 $JAR.sha1
NAME=$(tar ft $ARCHIVE | head -n 1 | cut -d / -f 1)
# Extract
cd $TMP
echo "Building $ARCHIVE..."
tar xf $CWD/$ARCHIVE
cd $NAME
# Don't compile the Java executable, this piece of crap cannot be
# built properly (is it Antlr's fault, Maven's fault, or both,
# I don't care).
install -D -m 644 $CWD/$JAR $PKG/usr/lib/antlr/$JAR
mkdir -p $PKG/usr/bin
cat > $PKG/usr/bin/antlr3 <<EOF
#!/bin/sh
exec java -jar /usr/lib/antlr/$JAR "\$@"
EOF
chmod 755 $PKG/usr/bin/antlr3
# Compile and install C runtime library
(cd runtime/C
autoreconf -i
CFLAGS=$CPUOPT \
CXXFLAGS=$CPUOPT \
./configure \
--prefix=/usr \
--libdir=/usr/lib$LIBDIRSUFFIX \
--disable-static $FLAG64
make -j $JOBS
make install-strip DESTDIR=$PKG
mkdir -p $PKG/usr/doc/$NAMEPKG-$VERSION
install -m 644 AUTHORS COPYING NEWS README $PKG/usr/doc/$NAMEPKG-$VERSION
)
# Copy slack-desc file
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc
# Package the tree
cd $PKG
mkdir -p $OUT
PACKAGING="
chown root:root . -R
/sbin/makepkg -l y -c n $OUT/$NAMEPKG-$VERSION-$ARCH-$BUILD.$EXT
rm -rf $PKG
rm -rf $TMP/$NAME
"
if type -p fakeroot ; then
echo "$PACKAGING" | fakeroot
else
su -c "$PACKAGING"
fi

12
d/antlr3/slack-desc

@ -1,12 +0,0 @@
|-----handy-ruler-----------------------------------------------------|
antlr3: antlr3 (grammar parser)
antlr3:
antlr3: ANTLR (ANother Tool for Language Recognition) is a language tool
antlr3: that provides a framework for constructing recognizers,
antlr3: interpreters, compilers, and translators from grammatical
antlr3: descriptions containing actions in a variety of target languages.
antlr3:
antlr3:
antlr3:
antlr3:
antlr3:

1
l/bctoolbox/bctoolbox-0.5.1.tar.gz.sha256

@ -1 +0,0 @@
7189367f2046deb5d9b463b4b97a7bc015464db260142648bf9226a1362ea6e3 bctoolbox-0.5.1.tar.gz

108
l/bctoolbox/bctoolbox.SlackBuild

@ -1,108 +0,0 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2017 Damien Goutte-Gattat
#
# Redistribution and use of this script, with or without modifications,
# is permitted provided that the following conditions are met:
#
# 1. Redistributions of this script must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AS IS'' AND ANY EXPRESS OR
# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
# INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
# IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
#
# Contact: Damien Goutte-Gattat <dgouttegattat@incenp.org>
#
# Latest bctoolbox sourcecode is available at:
# <https://github.com/BelledonneCommunications/>.
#
# Depends: l/mbedtls
# Source package infos
NAMESRC=${NAMESRC:-bctoolbox}
VERSION=${VERSION:-0.5.1}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz}
WGET=${WGET:-https://github.com/BelledonneCommunications/bctoolbox/archive/$VERSION.tar.gz}
# Build infos
NAMEPKG=${NAMEPKG:-bctoolbox}
BUILD=${BUILD:-1GGD}
ARCH=${ARCH:-$(uname -m | sed 's/^i.86$/i486/;s/^arm.*/arm/')}
JOBS=${JOBS:-1}
EXT=${EXT:-txz}
# Directories
TMP=${TMP:-/tmp}
OUT=${OUT:-$TMP/build}
PKG=${PKG:-$OUT/$NAMEPKG}
CWD=$(pwd)
set -e # Quit if a command returns non-zero
# Sanity checks
if [ $UID -eq 0 ]; then
echo "You should NOT run this script as ROOT!"
exit 1
fi
if [ ! -d $TMP ]; then
echo "$TMP does not exists or is not a directory!"
exit 1
fi
# Get and verify the source archive
if [ ! -r $ARCHIVE ]; then
wget -c -O $ARCHIVE.part "$WGET"
mv $ARCHIVE.part $ARCHIVE
fi
sha256sum -c $ARCHIVE.sha256
NAME=$(tar ft $ARCHIVE | head -n 1 | cut -d / -f 1)
# Compile
cd $TMP
echo "Building $ARCHIVE..."
tar xf $CWD/$ARCHIVE
cd $NAME
mkdir bdir && cd bdir
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DENABLE_TESTS_COMPONENT=NO \
-DENABLE_STATIC=NO \
..
make -j $JOBS
make install/strip DESTDIR=$PKG
# Install the documentation
mkdir -p $PKG/usr/doc/$NAME
install -m 644 ../AUTHORS ../COPYING ../NEWS ../README.md $PKG/usr/doc/$NAME
# Copy slack-desc file
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc
# Add dependency infos
cat <<EOF > $PKG/install/slack-required
mbedtls
EOF
# Package the tree
cd $PKG
mkdir -p $OUT
PACKAGING="
chown root:root . -R
/sbin/makepkg -l y -c n $OUT/$NAMEPKG-$VERSION-$ARCH-$BUILD.$EXT
rm -rf $PKG
rm -rf $TMP/$NAME
"
if type -p fakeroot ; then
echo "$PACKAGING" | fakeroot
else
su -c "$PACKAGING"
fi

12
l/bctoolbox/slack-desc

@ -1,12 +0,0 @@
|-----handy-ruler-----------------------------------------------------|
bctoolbox: bctoolbox (Belledonne Communications helper library)
bctoolbox:
bctoolbox: BCToolbox is an utilities library used by Belledonne Communications
bctoolbox: softwares like belle-sip, mediastreamer2 and linphone.
bctoolbox:
bctoolbox:
bctoolbox:
bctoolbox:
bctoolbox:
bctoolbox:
bctoolbox:

1
l/belle-sip/belle-sip-1.6.1.tar.gz.sha256

@ -1 +0,0 @@
60ea452d21403f59dd78fce9f385de81666e14b6b5e2533505e635611479c52e belle-sip-1.6.1.tar.gz

108
l/belle-sip/belle-sip.SlackBuild

@ -1,108 +0,0 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2014,2015,2017 Damien Goutte-Gattat
#
# Redistribution and use of this script, with or without modifications,
# is permitted provided that the following conditions are met:
#
# 1. Redistributions of this script must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AS IS'' AND ANY EXPRESS OR
# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
# INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
# IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
#
# Contact: Damien Goutte-Gattat <dgouttegattat@incenp.org>
#
# Latest belle-sip sourcecode is available at:
# <https://github.com/BelledonneCommunications/>.
#
# Depends: d/antlr3, l/bctoolbox
# Source package infos
NAMESRC=${NAMESRC:-belle-sip}
VERSION=${VERSION:-1.6.1}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz}
WGET=${WGET:-https://github.com/BelledonneCommunications/belle-sip/archive/$VERSION.tar.gz}
# Build infos
NAMEPKG=${NAMEPKG:-belle-sip}
BUILD=${BUILD:-1GGD}
ARCH=${ARCH:-$(uname -m | sed 's/^i.86$/i486/;s/^arm.*/arm/')}
JOBS=${JOBS:-1}
EXT=${EXT:-txz}
# Directories
TMP=${TMP:-/tmp}
OUT=${OUT:-$TMP/build}
PKG=${PKG:-$OUT/$NAMEPKG}
CWD=$(pwd)
set -e # Quit if a command returns non-zero
# Sanity checks
if [ $UID -eq 0 ]; then
echo "You should NOT run this script as ROOT!"
exit 1
fi
if [ ! -d $TMP ]; then
echo "$TMP does not exists or is not a directory!"
exit 1
fi
# Get and verify the source archive
if [ ! -r $ARCHIVE ]; then
wget -c -O $ARCHIVE.part "$WGET"
mv $ARCHIVE.part $ARCHIVE
fi
sha256sum -c $ARCHIVE.sha256
NAME=$(tar ft $ARCHIVE | head -n 1 | cut -d / -f 1)
# Compile
cd $TMP
echo "Building $ARCHIVE..."
tar xf $CWD/$ARCHIVE
cd $NAME
mkdir bdir && cd bdir
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DENABLE_STATIC=NO \
..
make -j $JOBS
make install/strip DESTDIR=$PKG
# Install the documentation
mkdir -p $PKG/usr/doc/$NAME
install -m 644 ../AUTHORS ../COPYING ../NEWS ../README.md $PKG/usr/doc/$NAME
# Copy slack-desc file
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc
# Add dependency infos
cat <<EOF > $PKG/install/slack-required
antlr3
bctoolbox
EOF
# Package the tree
cd $PKG
mkdir -p $OUT
PACKAGING="
chown root:root . -R
/sbin/makepkg -l y -c n $OUT/$NAMEPKG-$VERSION-$ARCH-$BUILD.$EXT
rm -rf $PKG
rm -rf $TMP/$NAME
"
if type -p fakeroot ; then
echo "$PACKAGING" | fakeroot
else
su -c "$PACKAGING"
fi

12
l/belle-sip/slack-desc

@ -1,12 +0,0 @@
|-----handy-ruler-----------------------------------------------------|
belle-sip: belle-sip (SIP library)
belle-sip:
belle-sip: Belle-sip is a SIP (RFC 3261) implementation written in C, with an
belle-sip: object oriented API.
belle-sip:
belle-sip:
belle-sip:
belle-sip:
belle-sip:
belle-sip:
belle-sip:

1
l/bzrtp/bzrtp-1.0.5.tar.gz.sha256

@ -1 +0,0 @@
13fdb99b7b6060965a36cd4a87168a2d07fb9bd4c559b867a03db966cf557fea bzrtp-1.0.5.tar.gz

107
l/bzrtp/bzrtp.SlackBuild

@ -1,107 +0,0 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2016,2017 Damien Goutte-Gattat
#
# Redistribution and use of this script, with or without modifications,
# is permitted provided that the following conditions are met:
#
# 1. Redistributions of this script must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AS IS'' AND ANY EXPRESS OR
# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
# INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
# IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
#
# Contact: Damien Goutte-Gattat <dgouttegattat@incenp.org>
#
# Latest bzrtp sourcecode is available at:
# <https://github.com/BelledonneCommunications/>.
#
# Depends: l/bctoolbox
# Source package infos
NAMESRC=${NAMESRC:-bzrtp}
VERSION=${VERSION:-1.0.5}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz}
WGET=${WGET:-https://github.com/BelledonneCommunications/bzrtp/archive/$VERSION.tar.gz}
# Build infos
NAMEPKG=${NAMEPKG:-bzrtp}
BUILD=${BUILD:-1GGD}
ARCH=${ARCH:-$(uname -m | sed 's/^i.86$/i486/;s/^arm.*/arm/')}
JOBS=${JOBS:-1}
EXT=${EXT:-txz}
# Directories
TMP=${TMP:-/tmp}
OUT=${OUT:-$TMP/build}
PKG=${PKG:-$OUT/$NAMEPKG}
CWD=$(pwd)
set -e # Quit if a command returns non-zero
# Sanity checks
if [ $UID -eq 0 ]; then
echo "You should NOT run this script as ROOT!"
exit 1
fi
if [ ! -d $TMP ]; then
echo "$TMP does not exists or is not a directory!"
exit 1
fi
# Get and verify the source archive
if [ ! -r $ARCHIVE ]; then
wget -c -O $ARCHIVE.part "$WGET"
mv $ARCHIVE.part $ARCHIVE
fi
sha256sum -c $ARCHIVE.sha256
NAME=$(tar ft $ARCHIVE | head -n 1 | cut -d / -f 1)
# Compile
cd $TMP
echo "Building $ARCHIVE..."
tar xf $CWD/$ARCHIVE
cd $NAME
mkdir bdir && cd bdir
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DENABLE_STATIC=NO \
..
make -j $JOBS
make install/strip DESTDIR=$PKG
# Install the documentation
mkdir -p $PKG/usr/doc/$NAME
install -m 644 ../AUTHORS ../COPYING ../NEWS ../README.md $PKG/usr/doc/$NAME
# Copy slack-desc file
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc
# Add dependency infos
cat <<EOF > $PKG/install/slack-required
bctoolbox
EOF
# Package the tree
cd $PKG
mkdir -p $OUT
PACKAGING="
chown root:root . -R
/sbin/makepkg -l y -c n $OUT/$NAMEPKG-$VERSION-$ARCH-$BUILD.$EXT
rm -rf $PKG
rm -rf $TMP/$NAME
"
if type -p fakeroot ; then
echo "$PACKAGING" | fakeroot
else
su -c "$PACKAGING"
fi

12
l/bzrtp/slack-desc

@ -1,12 +0,0 @@
|-----handy-ruler-----------------------------------------------------|
bzrtp: bzrtp (ZRTP keys exchange protocol library)
bzrtp:
bzrtp: Bzrtp is an opensource implementation of ZRTP keys exchange
bzrtp: protocol.
bzrtp:
bzrtp:
bzrtp:
bzrtp:
bzrtp:
bzrtp:
bzrtp:

1
l/mbedtls/mbedtls-2.5.1-gpl.tgz.sha256

@ -1 +0,0 @@
312f020006f0d8e9ede3ed8e73d907a629baf6475229703941769372ab0adee2 mbedtls-2.5.1-gpl.tgz

114
l/mbedtls/mbedtls.SlackBuild

@ -1,114 +0,0 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2014,2015,2016,2017 Damien Goutte-Gattat
#
# Redistribution and use of this script, with or without modifications,
# is permitted provided that the following conditions are met:
#
# 1. Redistributions of this script must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AS IS'' AND ANY EXPRESS OR
# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
# INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
# IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
#
# Contact: Damien Goutte-Gattat <dgouttegattat@incenp.org>
#
# Latest mbedtls sourcecode is available at: <http://tls.mbed.org/>.
# Source package infos
NAMESRC=${NAMESRC:-mbedtls}
VERSION=${VERSION:-2.5.1}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION-gpl.tgz}
WGET=${WGET:-https://tls.mbed.org/download/$ARCHIVE}
# Build infos
NAMEPKG=${NAMEPKG:-mbedtls}
BUILD=${BUILD:-1GGD}
ARCH=${ARCH:-$(uname -m | sed 's/^i.86$/i486/;s/^arm.*/arm/')}
JOBS=${JOBS:-1}
EXT=${EXT:-txz}
# Directories
TMP=${TMP:-/tmp}
OUT=${OUT:-$TMP/build}
PKG=${PKG:-$OUT/$NAMEPKG}
CWD=$(pwd)
set -e # Quit if a command returns non-zero
# Sanity checks
if [ $UID -eq 0 ]; then
echo "You should NOT run this script as ROOT!"
exit 1
fi
if [ ! -d $TMP ]; then
echo "$TMP does not exists or is not a directory!"
exit 1
fi
# Compilation flags
LIBDIRSUFFIX=""
case "$ARCH" in
i?86)
CPUOPT="-O2 -march=$ARCH -mtune=i686"
;;
x86_64)
CPUOPT="-O2 -fPIC"
LIBDIRSUFFIX="64"
;;
*)
CPUOPT="-O2"
;;
esac
# Get and verify the source archive
if [ ! -r $ARCHIVE ]; then
wget -c -O $ARCHIVE.part "$WGET"
mv $ARCHIVE.part $ARCHIVE
fi
sha256sum -c $ARCHIVE.sha256
NAME=$(tar ft $ARCHIVE | head -n 1 | cut -d / -f 1)
# Compile
cd $TMP
echo "Building $ARCHIVE..."
tar xf $CWD/$ARCHIVE
cd $NAME
CFLAGS=$CPUOPT \
CXXFLAGS=$CPUOPT \
make -j $JOBS
make check
mkdir -p $PKG/usr/lib$LIBDIRSUFFIX $PKG/usr/include/mbedtls
install -m 644 library/libmbed{tls,x509,crypto}.a $PKG/usr/lib$LIBDIRSUFFIX/
cp -r include/mbedtls $PKG/usr/include
# Install the documentation
mkdir -p $PKG/usr/doc/$NAME
install -m 644 ChangeLog LICENSE README.md $PKG/usr/doc/$NAME
# Copy slack-desc file
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc
# Package the tree
cd $PKG
mkdir -p $OUT
PACKAGING="
chown root:root . -R
/sbin/makepkg -l y -c n $OUT/$NAMEPKG-$VERSION-$ARCH-$BUILD.$EXT
rm -rf $PKG
rm -rf $TMP/$NAME
"
if type -p fakeroot ; then
echo "$PACKAGING" | fakeroot
else
su -c "$PACKAGING"
fi

12
l/mbedtls/slack-desc

@ -1,12 +0,0 @@
|-----handy-ruler-----------------------------------------------------|
mbedtls: mbedtls (SSL/TLS library)
mbedtls:
mbedtls: mbed TLS (formerly PolarSSL) makes it trivially easy for developers
mbedtls: to include cryptographic and SSL/TLS capabilities in their
mbedtls: (embedded) products, facilitating this functionality with a minimal
mbedtls: coding footprint.
mbedtls:
mbedtls:
mbedtls:
mbedtls:
mbedtls:

3
xap/linphone/checksums

@ -1,3 +0,0 @@
f3924f15a2cd03df17b9a8dbdfa35abf73c608d5 linphone-3.9.1.tar.gz
f2467b2ffcaa63bfdfc7ac51c40ac50c38ad6289 mediastreamer-2.12.1.tar.gz
ac4e4ed7a67bef1a57c0c2c8168f4f0bc470d7c4 ortp-0.25.0.tar.gz

5
xap/linphone/doinst.sh

@ -1,5 +0,0 @@
#!/bin/sh
if [ -x /usr/bin/update-desktop-database ]; then
/usr/bin/update-desktop-database usr/share/applications >/dev/null 2>&1
fi

177
xap/linphone/linphone.SlackBuild

@ -1,177 +0,0 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2010,2011,2012,2013,2014,2016 Damien Goutte-Gattat
#
# Redistribution and use of this script, with or without modifications,
# is permitted provided that the following conditions are met:
#
# 1. Redistributions of this script must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AS IS'' AND ANY EXPRESS OR
# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
# INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
# IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
#
# Contact: Damien Goutte-Gattat <dgouttegattat@incenp.org>
#
# Latest linphone sourcecode is available at:
# <http://www.linphone.org/>.
#
# Depends: l/belle-sip, l/bzrtp, l/speex
# Recommends: xap/ffmpeg
# Source packages info
NAMESRC=${NAMESRC:-linphone}
VERSION=${VERSION:-3.9.1}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz}
WGET=${WGET:-http://download.savannah.gnu.org/releases/linphone/3.9.x/sources/$ARCHIVE}
ORTP_VERSION=0.25.0
ORTP_ARCHIVE=ortp-$ORTP_VERSION.tar.gz
ORTP_WGET=http://download.savannah.gnu.org/releases/linphone/ortp/sources/$ORTP_ARCHIVE
MEDIASTREAMER_VERSION=2.12.1
MEDIASTREAMER_ARCHIVE=mediastreamer-$MEDIASTREAMER_VERSION.tar.gz
MEDIASTREAMER_WGET=http://download.savannah.gnu.org/releases/linphone/mediastreamer/$MEDIASTREAMER_ARCHIVE
# Build infos
NAMEPKG=${NAMEPKG:-linphone}
BUILD=${BUILD:-1GGD}
ARCH=${ARCH:-$(uname -m | sed 's/^i.86$/i486/;s/^arm.*/arm/')}
JOBS=${JOBS:-1}
EXT=${EXT:-txz}
# Directories
TMP=${TMP:-/tmp}
OUT=${OUT:-$TMP/build}
PKG=${PKG:-$OUT/$NAMEPKG}
CWD=$(pwd)
set -e # Quit if a command returns non-zero
# Sanity checks
if [ $UID -eq 0 ]; then
echo "You should NOT run this script as ROOT!"
exit 1
fi
if [ ! -d $TMP ]; then
echo "$TMP does not exist or is not a directory!"
exit 1
fi
# Compilation flags
LIBDIRSUFFIX=""
case "$ARCH" in
i?86)
CPUOPT="-O2 -march=$ARCH -mtune=i686"
;;
x86_64)
CPUOPT="-O2 -fPIC"
LIBDIRSUFFIX="64"
;;
*)
CPUOPT="-O2"
;;
esac
# Get and verify the source archives
if [ ! -r $ARCHIVE ]; then
wget -c -O $ARCHIVE.part "$WGET"
mv $ARCHIVE.part $ARCHIVE
fi
if [ ! -r $ORTP_ARCHIVE ]; then
wget -c -O $ORTP_ARCHIVE.part "$ORTP_WGET"
mv $ORTP_ARCHIVE.part $ORTP_ARCHIVE
fi
if [ ! -r $MEDIASTREAMER_ARCHIVE ]; then
wget -c -O $MEDIASTREAMER_ARCHIVE.part "$MEDIASTREAMER_WGET"
mv $MEDIASTREAMER_ARCHIVE.part $MEDIASTREAMER_ARCHIVE
fi
sha1sum -c checksums
NAME=$(tar ft $ARCHIVE | head -n 1 | cut -d / -f 1)
# Get forked srtp library
if [ ! -r srtp.tar.gz ]; then
git clone git://git.linphone.org/srtp.git
cd srtp
git archive --format=tar --prefix=srtp/ da2ece56f18d35a12f0fee5dcb99e03ff15864de | gzip > ../srtp.tar.gz
cd ..
rm -rf srtp
fi
# Compile forked srtp library
cd $TMP
echo "Building srtp..."
tar xf $CWD/srtp.tar.gz
cd srtp
CFLAGS=$CPUOPT \
CXXFLAGS=$CPUOPT \
./configure --prefix=$TMP/srtp-tree --enable-syslog
make -j $JOBS
make install
rm $TMP/srtp-tree/lib/libsrtp.so*
# Compile Linphone
cd $TMP
echo "Building $ARCHIVE..."
tar xf $CWD/$ARCHIVE
cd $NAME
tar xf $CWD/$ORTP_ARCHIVE
mv ortp-$ORTP_VERSION oRTP
tar xf $CWD/$MEDIASTREAMER_ARCHIVE
mv mediastreamer-$MEDIASTREAMER_VERSION mediastreamer2
CFLAGS=$CPUOPT \
CXXFLAGS=$CPUOPT \
./configure \
--prefix=/usr \
--libdir=/usr/lib$LIBDIRSUFFIX \
--mandir=/usr/man \
--docdir=/usr/doc/$NAME \
--disable-static \
--enable-ldap \
--enable-ipv6 \
--enable-truespeech \
--enable-zrtp \
--enable-alsa \
--enable-video \
--with-srtp=$TMP/srtp-tree \
--disable-strict
make -j $JOBS
make install-strip DESTDIR=$PKG
# Compress man pages
find $PKG/usr/man -type f -exec gzip -9 {} \;
# Install the documentation
mv $PKG/usr/share/doc $PKG/usr/doc
rm -rf $PKG/usr/share/gnome/help
install -m 644 AUTHORS BUGS COPYING ChangeLog NEWS README TODO \
$PKG/usr/doc/$NAME
# Copy slack-desc and doinst.sh files
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc
install -m 755 $CWD/doinst.sh $PKG/install/doinst.sh
# Package the tree
cd $PKG
mkdir -p $OUT
PACKAGING="
chown root:root . -R
/sbin/makepkg -l y -c n $OUT/$NAMEPKG-$VERSION-$ARCH-$BUILD.$EXT
rm -rf $PKG
rm -rf $TMP/$NAME
rm -rf $TMP/srtp $TMP/srtp-tree
"
if type -p fakeroot ; then
echo "$PACKAGING" | fakeroot
else
su -c "$PACKAGING"
fi

12
xap/linphone/slack-desc

@ -1,12 +0,0 @@
|-----handy-ruler-----------------------------------------------------|
linphone: linphone (softphone)
linphone:
linphone: Linphone is a SIP compliant audio and video phone. It can be used to
linphone: run calls over the Internet. It has a GTK+ and console interface.
linphone:
linphone:
linphone:
linphone:
linphone:
linphone:
linphone:
Loading…
Cancel
Save