summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
author Guilherme Calandrini <g_calandrini[at]hotmail[dot]es>2015-09-14 06:48:23 +0700
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2015-09-16 12:23:19 +0700
commit923c8b6754ab46b8aeefc9870d840dd4076adf29 (patch)
treecdd399189a858815626b774c7424c0d3dce0d297 /system
parentce3e82fae493e9ff34f011f4f619feb3092af303 (diff)
downloadslackbuilds-923c8b6754ab46b8aeefc9870d840dd4076adf29.tar.gz
slackbuilds-923c8b6754ab46b8aeefc9870d840dd4076adf29.tar.xz
system/ofono: Added (open source telephony).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system')
-rw-r--r--system/ofono/README13
-rw-r--r--system/ofono/ofono.SlackBuild106
-rw-r--r--system/ofono/ofono.info10
-rw-r--r--system/ofono/slack-desc19
4 files changed, 148 insertions, 0 deletions
diff --git a/system/ofono/README b/system/ofono/README
new file mode 100644
index 0000000000..fb3e5a7196
--- /dev/null
+++ b/system/ofono/README
@@ -0,0 +1,13 @@
+
+oFono provides a mobile telephony (GSM/UMTS) application development
+framework that includes consistent, minimal, and easy to use complete APIs.
+
+As an open source project, it includes a high-level D-Bus API for use by
+telephony applications of any license. oFono also includes a low-level
+plug-in API for integrating with open source as well as third party
+telephony stacks, cellular modems, and storage back ends.
+
+The plug-in API functionality is modeled on public standards, in
+particular 3GPP TS 27.007 "AT command set for User Equipment (UE)."
+
+oFono is sponsored by Intel and most of the project maintainers work.
diff --git a/system/ofono/ofono.SlackBuild b/system/ofono/ofono.SlackBuild
new file mode 100644
index 0000000000..7ae16039db
--- /dev/null
+++ b/system/ofono/ofono.SlackBuild
@@ -0,0 +1,106 @@
+#!/bin/sh
+
+# Slackware build script for ofono
+
+# Copyright 2015 Guilherme Calandrini, Madrid (Spain).
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, 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.
+
+PRGNAM=ofono
+VERSION=${VERSION:-1.14}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i486 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+if [ "$ARCH" = "i486" ]; then
+ SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
+fi
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.xz
+cd $PRGNAM-$VERSION
+chown -R root:root .
+find -L . \
+ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
+ -o -perm 511 \) -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+
+
+CFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS" \
+./configure \
+ --prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --mandir=/usr/man \
+ --docdir=/usr/doc/$PRGNAM-$VERSION \
+ --build=$ARCH-slackware-linux
+
+make
+make install DESTDIR=$PKG
+
+find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
+ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+
+find $PKG/usr/man -type f -exec gzip -9 {} \;
+for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
+
+find $PKG -name perllocal.pod \
+ -o -name ".packlist" \
+ -o -name "*.bs" \
+ | xargs rm -f
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a AUTHORS COPYING $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
diff --git a/system/ofono/ofono.info b/system/ofono/ofono.info
new file mode 100644
index 0000000000..f98a95a06e
--- /dev/null
+++ b/system/ofono/ofono.info
@@ -0,0 +1,10 @@
+PRGNAM="ofono"
+VERSION="1.14"
+HOMEPAGE="https://01.org/ofono"
+DOWNLOAD="https://www.kernel.org/pub/linux/network/ofono/ofono-1.14.tar.xz"
+MD5SUM="8bc398d86642408cc71d039f59c61538"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES=""
+MAINTAINER="Guilherme Calandrini"
+EMAIL="g_calandrini[at]hotmail[dot]es"
diff --git a/system/ofono/slack-desc b/system/ofono/slack-desc
new file mode 100644
index 0000000000..73bf6d3dad
--- /dev/null
+++ b/system/ofono/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.
+# Line up the first '|' above the ':' following the base package name, and
+# the '|' on the right side marks the last column you can put a character in.
+# You must make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':' except on otherwise blank lines.
+
+ |-----handy-ruler------------------------------------------------------|
+ofono: ofono (open source telephony)
+ofono:
+ofono: oFono provides a mobile telephony (GSM/UMTS) application development
+ofono: framework that includes consistent, minimal, and easy to use complete
+ofono: APIs. As an open source project, it includes a high-level D-Bus API
+ofono: for use by telephony applications of any license. oFono also includes
+ofono: a low-level plug-in API for integrating with open source as well as
+ofono: third party telephony stacks, cellular modems, and storage back ends.
+ofono: The plug-in API functionality is modeled on public standards, in
+ofono: particular 3GPP TS 27.007 "AT command set for User Equipment (UE).
+ofono: Ofono is sponsored by Intel and most of the project maintainers work.