diff options
Diffstat (limited to 'main')
-rw-r--r-- | main/gnome-bluetooth/61-gnome-bluetooth-rfkill.rules | 11 | ||||
-rw-r--r-- | main/gnome-bluetooth/APKBUILD | 55 | ||||
-rw-r--r-- | main/gnome-bluetooth/nogeoclue.patch | 138 | ||||
-rw-r--r-- | main/obex-data-server/APKBUILD | 29 | ||||
-rw-r--r-- | main/obexd/APKBUILD | 44 | ||||
-rw-r--r-- | main/openobex/APKBUILD | 36 |
6 files changed, 313 insertions, 0 deletions
diff --git a/main/gnome-bluetooth/61-gnome-bluetooth-rfkill.rules b/main/gnome-bluetooth/61-gnome-bluetooth-rfkill.rules new file mode 100644 index 000000000..a76c1e73c --- /dev/null +++ b/main/gnome-bluetooth/61-gnome-bluetooth-rfkill.rules @@ -0,0 +1,11 @@ +# Get access to /dev/rfkill for users +# See https://bugzilla.redhat.com/show_bug.cgi?id=514798 +# +# Updated for udev >= 154 +# http://bugs.debian.org/582188 +# https://bugzilla.redhat.com/show_bug.cgi?id=588660 + +ENV{ACL_MANAGE}=="0", GOTO="gnome_bluetooth_end" +ACTION!="add|change", GOTO="gnome_bluetooth_end" +KERNEL=="rfkill", TAG+="udev-acl" +LABEL="gnome_bluetooth_end" diff --git a/main/gnome-bluetooth/APKBUILD b/main/gnome-bluetooth/APKBUILD new file mode 100644 index 000000000..b8b78abb4 --- /dev/null +++ b/main/gnome-bluetooth/APKBUILD @@ -0,0 +1,55 @@ +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +pkgname=gnome-bluetooth +pkgver=2.32.0 +pkgrel=1 +pkgdesc="The GNOME Bluetooth Subsystem" +url="http://live.gnome.org/GnomeBluetooth" +arch="all" +license="GPL LGPL" +depends="hicolor-icon-theme obexd-client obex-data-server" +makedepends="intltool py-gtk gobject-introspection libunique-dev libnotify-dev + libxi-dev libxslt py-libxml2 gnome-doc-utils" +install= +subpackages="$pkgname-dev $pkgname-doc" +source="http://ftp.gnome.org/pub/GNOME/sources/gnome-bluetooth/${pkgver%.*}/gnome-bluetooth-$pkgver.tar.bz2 + nogeoclue.patch + 61-gnome-bluetooth-rfkill.rules" + +_builddir="$srcdir"/$pkgname-$pkgver +prepare() { + cd "$_builddir" + for i in $source; do + case $i in + *.patch) + msg "Applying $i" + patch -p1 -i "$srcdir"/$i || return 1 + ;; + esac + done +} + +build() { + cd "$_builddir" + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --disable-desktop-update \ + --disable-icon-update \ + --disable-nautilus-sendto \ + --disable-schemas-compile \ + --disable-introspection \ + --disable-scrollkeeper \ + || return 1 + make +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 + install -m644 -D "$srcdir/61-gnome-bluetooth-rfkill.rules" \ + "$pkgdir/lib/udev/rules.d/61-gnome-bluetooth-rfkill.rules" +} + +md5sums="f129686fe46c4c98eb70a0cc85d59cae gnome-bluetooth-2.32.0.tar.bz2 +5ed6f59d02b45573a08155fca8f0d300 nogeoclue.patch +9fb6c8dcb5a3de3a953bf2ef42063e6e 61-gnome-bluetooth-rfkill.rules" diff --git a/main/gnome-bluetooth/nogeoclue.patch b/main/gnome-bluetooth/nogeoclue.patch new file mode 100644 index 000000000..2892bee0c --- /dev/null +++ b/main/gnome-bluetooth/nogeoclue.patch @@ -0,0 +1,138 @@ +--- gnome-bluetooth-2.32.0.orig/configure ++++ gnome-bluetooth-2.32.0/configure +@@ -638,8 +638,6 @@ + MOBLIN_CFLAGS + PLUGINS_LIBS + PLUGINS_CFLAGS +-GEOCLUE_LIBS +-GEOCLUE_CFLAGS + COMMON_LIBS + COMMON_CFLAGS + LIBGNOMEBT_LIBS +@@ -899,8 +897,6 @@ + LIBGNOMEBT_LIBS + COMMON_CFLAGS + COMMON_LIBS +-GEOCLUE_CFLAGS +-GEOCLUE_LIBS + PLUGINS_CFLAGS + PLUGINS_LIBS + MOBLIN_CFLAGS +@@ -13662,106 +13658,6 @@ + + fi + +- +-pkg_failed=no +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GEOCLUE" >&5 +-$as_echo_n "checking for GEOCLUE... " >&6; } +- +-if test -n "$GEOCLUE_CFLAGS"; then +- pkg_cv_GEOCLUE_CFLAGS="$GEOCLUE_CFLAGS" +- elif test -n "$PKG_CONFIG"; then +- if test -n "$PKG_CONFIG" && \ +- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gconf-2.0 +- dbus-glib-1\""; } >&5 +- ($PKG_CONFIG --exists --print-errors "gconf-2.0 +- dbus-glib-1") 2>&5 +- ac_status=$? +- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 +- test $ac_status = 0; }; then +- pkg_cv_GEOCLUE_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 +- dbus-glib-1" 2>/dev/null` +-else +- pkg_failed=yes +-fi +- else +- pkg_failed=untried +-fi +-if test -n "$GEOCLUE_LIBS"; then +- pkg_cv_GEOCLUE_LIBS="$GEOCLUE_LIBS" +- elif test -n "$PKG_CONFIG"; then +- if test -n "$PKG_CONFIG" && \ +- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gconf-2.0 +- dbus-glib-1\""; } >&5 +- ($PKG_CONFIG --exists --print-errors "gconf-2.0 +- dbus-glib-1") 2>&5 +- ac_status=$? +- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 +- test $ac_status = 0; }; then +- pkg_cv_GEOCLUE_LIBS=`$PKG_CONFIG --libs "gconf-2.0 +- dbus-glib-1" 2>/dev/null` +-else +- pkg_failed=yes +-fi +- else +- pkg_failed=untried +-fi +- +- +- +-if test $pkg_failed = yes; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +- +-if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then +- _pkg_short_errors_supported=yes +-else +- _pkg_short_errors_supported=no +-fi +- if test $_pkg_short_errors_supported = yes; then +- GEOCLUE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gconf-2.0 +- dbus-glib-1" 2>&1` +- else +- GEOCLUE_PKG_ERRORS=`$PKG_CONFIG --print-errors "gconf-2.0 +- dbus-glib-1" 2>&1` +- fi +- # Put the nasty error message in config.log where it belongs +- echo "$GEOCLUE_PKG_ERRORS" >&5 +- +- as_fn_error $? "Package requirements (gconf-2.0 +- dbus-glib-1) were not met: +- +-$GEOCLUE_PKG_ERRORS +- +-Consider adjusting the PKG_CONFIG_PATH environment variable if you +-installed software in a non-standard prefix. +- +-Alternatively, you may set the environment variables GEOCLUE_CFLAGS +-and GEOCLUE_LIBS to avoid the need to call pkg-config. +-See the pkg-config man page for more details." "$LINENO" 5 +- +-elif test $pkg_failed = untried; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +-as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it +-is in your PATH or set the PKG_CONFIG environment variable to the full +-path to pkg-config. +- +-Alternatively, you may set the environment variables GEOCLUE_CFLAGS +-and GEOCLUE_LIBS to avoid the need to call pkg-config. +-See the pkg-config man page for more details. +- +-To get pkg-config, see <http://pkg-config.freedesktop.org/>. +-See \`config.log' for more details" "$LINENO" 5; } +- +-else +- GEOCLUE_CFLAGS=$pkg_cv_GEOCLUE_CFLAGS +- GEOCLUE_LIBS=$pkg_cv_GEOCLUE_LIBS +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +-$as_echo "yes" >&6; } +- +-fi + + + pkg_failed=no +--- gnome-bluetooth-2.32.0.orig/lib/Makefile.in ++++ gnome-bluetooth-2.32.0/lib/Makefile.in +@@ -383,7 +383,7 @@ + top_build_prefix = @top_build_prefix@ + top_builddir = @top_builddir@ + top_srcdir = @top_srcdir@ +-SUBDIRS = plugins ++SUBDIRS = + EXTRA_DIST = $(am__append_2) marshal.list bluetooth-client.xml \ + bluetooth-agent.xml obex-agent.xml gnome-bluetooth.symbols + BUILT_GIRSOURCES = $(am__append_1) diff --git a/main/obex-data-server/APKBUILD b/main/obex-data-server/APKBUILD new file mode 100644 index 000000000..bb09445d5 --- /dev/null +++ b/main/obex-data-server/APKBUILD @@ -0,0 +1,29 @@ +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +pkgname=obex-data-server +pkgver=0.4.5 +pkgrel=1 +pkgdesc="D-Bus service for Obex access" +url="http://wiki.muiline.com/obex-data-server" +license="GPLv2+" +arch="all" +depends="!obexd" +subpackages="$pkgname-doc" +makedepends="dbus-glib-dev openobex-dev gtk+-dev libusb-compat-dev bluez-dev" +source="http://tadas.dailyda.com/software/obex-data-server-$pkgver.tar.gz" + +_builddir="$srcdir"/$pkgname-$pkgver +build () +{ + cd $srcdir/$pkgname-$pkgver + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --enable-bip=gdk-pixbuf + make +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 +} + +md5sums="8b11e7527c1e3a36a2a9a0c52816ec7b obex-data-server-0.4.5.tar.gz" diff --git a/main/obexd/APKBUILD b/main/obexd/APKBUILD new file mode 100644 index 000000000..5e6087284 --- /dev/null +++ b/main/obexd/APKBUILD @@ -0,0 +1,44 @@ +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +pkgname=obexd +pkgver=0.40 +pkgrel=1 +pkgdesc="D-Bus service for Obex Server" +url="http://www.bluez.org/" +arch="all" +license="GPL2" +depends="!obex-data-server" +subpackages="$pkgname-client" +makedepends="dbus-glib-dev openobex-dev glib-dev bluez-dev libical-dev" +source="http://www.kernel.org/pub/linux/bluetooth/$pkgname-$pkgver.tar.bz2" + +build () +{ + cd "$srcdir"/$pkgname-$pkgver + ./configure --prefix=/usr \ + --libexecdir=/usr/lib/obexd \ + || return 1 + make || return 1 +} + +package() { + cd "$srcdir"/$pkgname-$pkgver + make DESTDIR="$pkgdir" install +} + +_mv_files() { + local i + for i in "$@"; do + mkdir -p "$subpkgdir"/${i%/*} + mv "$pkgdir"/$i "$subpkgdir"/$i || return 1 + done +} + +client() { + pkgdesc="D-Bus service for Obex Client access" + depends= + cd "$pkgdir" + _mv_files usr/lib/obexd/obex-client \ + usr/share/dbus-*/services/obex-client.service +} + +md5sums="f303592b7664b246965c1d6e9361c919 obexd-0.40.tar.bz2" diff --git a/main/openobex/APKBUILD b/main/openobex/APKBUILD new file mode 100644 index 000000000..caaecb85e --- /dev/null +++ b/main/openobex/APKBUILD @@ -0,0 +1,36 @@ +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +pkgname=openobex +pkgver=1.5 +pkgrel=3 +pkgdesc="Implementation of the OBject EXchange (OBEX) protocol" +url="http://dev.zuckschwerdt.org/openobex/" +arch="all" +license="GPL LGPL" +depends= +depends_dev="libusb-compat-dev" +makedepends="bluez-dev libusb-compat-dev" +subpackages="$pkgname-dev libopenobex" +source="http://www.kernel.org/pub/linux/bluetooth/$pkgname-$pkgver.tar.bz2" + +build() { + cd "$srcdir/$pkgname-$pkgver" + ./configure --prefix=/usr \ + --enable-apps \ + --enable-irda \ + --enable-bluetooth \ + --enable-usb \ + || return 1 + make || return 1 +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + make DESTDIR="$pkgdir" install || return 1 +} + +libopenobex() { + mkdir -p "$subpkgdir"/usr/lib + mv "$pkgdir"/usr/lib/libopenobex.so.* "$subpkgdir"/usr/lib/ +} + +md5sums="fce1b82eafb74bde54fe117372393ba8 openobex-1.5.tar.bz2" |