wok-current rev 19908

add ussp-push
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Apr 13 09:13:02 2017 +0200 (2017-04-13)
parents e7715725d95b
children 709cc39a8b9f
files gvfs-obexftp/receipt obex-data-server/receipt obexd/receipt obexftp/receipt openobex/receipt ussp-push/receipt
line diff
     1.1 --- a/gvfs-obexftp/receipt	Mon Apr 10 18:13:03 2017 +0200
     1.2 +++ b/gvfs-obexftp/receipt	Thu Apr 13 09:13:02 2017 +0200
     1.3 @@ -7,6 +7,7 @@
     1.4  MAINTAINER="al.bobylev@gmail.com"
     1.5  LICENSE="GPL2"
     1.6  WEB_SITE="http://www.gnome.org/"
     1.7 +TAGS="bluetooth"
     1.8  
     1.9  WANTED="gvfs"
    1.10  DEPENDS="gvfs bluez dbus dbus-glib expat glib glibc-base libffi libgio pcre \
     2.1 --- a/obex-data-server/receipt	Mon Apr 10 18:13:03 2017 +0200
     2.2 +++ b/obex-data-server/receipt	Thu Apr 13 09:13:02 2017 +0200
     2.3 @@ -9,6 +9,7 @@
     2.4  WEB_SITE="http://tadas.dailyda.com/"
     2.5  TARBALL="$PACKAGE-$VERSION.tar.gz"
     2.6  WGET_URL="$WEB_SITE/software/$TARBALL"
     2.7 +TAGS="bluetooth"
     2.8  
     2.9  DEPENDS="libusb dbus-glib bluez"
    2.10  BUILD_DEPENDS="libusb-dev dbus-glib-dev bluez-dev openobex-dev"
     3.1 --- a/obexd/receipt	Mon Apr 10 18:13:03 2017 +0200
     3.2 +++ b/obexd/receipt	Thu Apr 13 09:13:02 2017 +0200
     3.3 @@ -9,6 +9,7 @@
     3.4  WEB_SITE="http://www.bluez.org/"
     3.5  TARBALL="$PACKAGE-$VERSION.tar.xz"
     3.6  WGET_URL="https://www.kernel.org/pub/linux/bluetooth/$TARBALL"
     3.7 +TAGS="bluetooth"
     3.8  
     3.9  DEPENDS="bluez libusb libical glib dbus"
    3.10  BUILD_DEPENDS="wget bluez-dev libusb-dev libical-dev"
     4.1 --- a/obexftp/receipt	Mon Apr 10 18:13:03 2017 +0200
     4.2 +++ b/obexftp/receipt	Thu Apr 13 09:13:02 2017 +0200
     4.3 @@ -9,6 +9,7 @@
     4.4  WEB_SITE="http://triq.net/obex/"
     4.5  TARBALL="$PACKAGE-$VERSION-Source.tar.gz"
     4.6  WGET_URL="$SF_MIRROR/openobex/$PACKAGE/$VERSION/$TARBALL"
     4.7 +TAGS="bluetooth"
     4.8  
     4.9  DEPENDS="bluez openobex fuse expat"
    4.10  BUILD_DEPENDS="cmake bluez-dev openobex-dev fuse-dev expat-dev"
     5.1 --- a/openobex/receipt	Mon Apr 10 18:13:03 2017 +0200
     5.2 +++ b/openobex/receipt	Thu Apr 13 09:13:02 2017 +0200
     5.3 @@ -10,6 +10,7 @@
     5.4  #WEB_SITE="http://dev.zuckschwerdt.org/openobex/wiki/"
     5.5  TARBALL="$PACKAGE-$VERSION-Source.tar.gz"
     5.6  WGET_URL="$SF_MIRROR/$PACKAGE/$VERSION/$TARBALL"
     5.7 +TAGS="bluetooth"
     5.8  
     5.9  DEPENDS="libusb bluez"
    5.10  BUILD_DEPENDS="cmake libusb-dev bluez-dev"
     6.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     6.2 +++ b/ussp-push/receipt	Thu Apr 13 09:13:02 2017 +0200
     6.3 @@ -0,0 +1,59 @@
     6.4 +# SliTaz package receipt.
     6.5 +
     6.6 +PACKAGE="ussp-push"
     6.7 +VERSION="0.11"
     6.8 +CATEGORY="system-tools"
     6.9 +SHORT_DESC="a OBEX object pusher."
    6.10 +MAINTAINER="pascal.bellard@slitaz.org"
    6.11 +LICENSE="GPL2"
    6.12 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    6.13 +WEB_SITE="http://xmailserver.org/ussp-push.html"
    6.14 +WGET_URL="http://xmailserver.org/$TARBALL"
    6.15 +TAGS="bluetooth"
    6.16 +
    6.17 +DEPENDS="bluez openobex"
    6.18 +BUILD_DEPENDS="bluez-dev openobex-dev"
    6.19 +
    6.20 +# Rules to configure and make the package.
    6.21 +compile_rules()
    6.22 +{
    6.23 +	sed -i	-e 's/OBEX_TRANS_CUST/OBEX_TRANS_CUSTOM/' \
    6.24 +		-e '/^int bt_debug;$/r/dev/stdin' src/obex_main.c <<EOT
    6.25 +
    6.26 +static int OBEX_CharToUnicode(uint8_t *uc, const uint8_t *c, int size)
    6.27 +{
    6.28 +	int len, n;
    6.29 +
    6.30 +	if (uc == NULL || c == NULL)
    6.31 +		return -1;
    6.32 +
    6.33 +	len = n = strlen((char *) c);
    6.34 +	if (n*2+2 > size)
    6.35 +		return -1;
    6.36 +
    6.37 +	uc[n*2+1] = uc[n*2] = 0;
    6.38 +	while (n--) {
    6.39 +		uc[n*2+1] = c[n];
    6.40 +		uc[n*2] = 0;
    6.41 +	}
    6.42 +
    6.43 +	return (len * 2) + 2;
    6.44 +}
    6.45 +EOT
    6.46 +	sed -i 's/hci_remote_name/hci_read_remote_name/' src/obex_socket.c
    6.47 +	./configure --prefix=/usr --infodir=/usr/share/info \
    6.48 +	--mandir=/usr/share/man \
    6.49 +	$CONFIGURE_ARGS &&
    6.50 +	make &&
    6.51 +	make DESTDIR=$DESTDIR install
    6.52 +}
    6.53 +
    6.54 +# Rules to gen a SliTaz package suitable for Tazpkg.
    6.55 +genpkg_rules()
    6.56 +{
    6.57 +	mkdir -p $fs/usr/share/doc
    6.58 +	cp -a $src/doc/ussp-push.html $fs/usr/share/doc
    6.59 +	cp -a $src/README $fs/usr/share/doc
    6.60 +	cp -a $install/usr/bin $fs/usr
    6.61 +}
    6.62 +