wok-next diff connman/receipt @ rev 20245

update some bdeps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Nov 07 09:53:36 2017 +0100 (2017-11-07)
parents 6c12ac1293fc
children 757d032c55c7
line diff
     1.1 --- a/connman/receipt	Mon Oct 16 13:38:21 2017 +0200
     1.2 +++ b/connman/receipt	Tue Nov 07 09:53:36 2017 +0100
     1.3 @@ -1,4 +1,4 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7  PACKAGE="connman"
     1.8  VERSION="1.21"
     1.9 @@ -10,12 +10,10 @@
    1.10  WEB_SITE="http://connman.net/"
    1.11  WGET_URL="http://linux-kernel.uio.no/pub/linux/network/$PACKAGE/$TARBALL"
    1.12  
    1.13 -DEPENDS="glib dbus iptables gnutls libnl libgcrypt udev wpa_supplicant
    1.14 -dbus-helper"
    1.15  BUILD_DEPENDS="glib-dev dbus-dev iptables-dev iptables gnutls-dev libnl-dev
    1.16  openconnect udev-dev wpa_supplicant readline-dev ncurses-dev openvpn
    1.17  bluez-dev ppp-dev"
    1.18 -SUGGESTED="xl2tpd pptpclient openvpn"
    1.19 +SPLIT="connman connman-dev connman-tools"
    1.20  
    1.21  # Rules to configure and make the package.
    1.22  compile_rules()
    1.23 @@ -44,27 +42,60 @@
    1.24  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.25  genpkg_rules()
    1.26  {
    1.27 -	# dbus conf
    1.28 -	mkdir -p $fs/etc
    1.29 -	cp -a $install/etc/dbus-1 $fs/etc
    1.30 -	# conman exec
    1.31 -	mkdir -p $fs/usr
    1.32 -	cp -a $install/usr/sbin $fs/usr
    1.33 -	# libs
    1.34 -	mkdir -p $fs/usr/lib/connman/plugins-vpn
    1.35 -	cp -a $install/usr/lib/connman/plugins-vpn/*.so \
    1.36 -		$fs/usr/lib/connman/plugins-vpn
    1.37 -	# vpn scripts
    1.38 -	mkdir -p $fs/usr/lib/connman/scripts
    1.39 -	cp -a $install/usr/lib/connman/scripts $fs/usr/lib/connman
    1.40 -	# share
    1.41 -	cp -a $install/usr/share $fs/usr
    1.42 -	# init script
    1.43 -	cp -a $stuff/etc $fs
    1.44 +	case $PACKAGE in
    1.45 +	connman)
    1.46 +		DEPENDS="glib dbus iptables gnutls libnl libgcrypt udev \
    1.47 +			wpa_supplicant dbus-helper"
    1.48 +		SUGGESTED="xl2tpd pptpclient openvpn"
    1.49 +		# dbus conf
    1.50 +		mkdir -p $fs/etc
    1.51 +		cp -a $install/etc/dbus-1 $fs/etc
    1.52 +		# conman exec
    1.53 +		mkdir -p $fs/usr
    1.54 +		cp -a $install/usr/sbin $fs/usr
    1.55 +		# libs
    1.56 +		mkdir -p $fs/usr/lib/connman/plugins-vpn
    1.57 +		cp -a $install/usr/lib/connman/plugins-vpn/*.so \
    1.58 +			$fs/usr/lib/connman/plugins-vpn
    1.59 +		# vpn scripts
    1.60 +		mkdir -p $fs/usr/lib/connman/scripts
    1.61 +		cp -a $install/usr/lib/connman/scripts $fs/usr/lib/connman
    1.62 +		# share
    1.63 +		cp -a $install/usr/share $fs/usr
    1.64 +		# init script
    1.65 +		cp -a $stuff/etc $fs
    1.66 +		;;
    1.67 +	connman-dev)
    1.68 +		CAT="network|Daemon for managing internet connections, dev files."
    1.69 +		# vpn
    1.70 +		mkdir -p $fs/usr/lib/connman/plugins-vpn
    1.71 +		cp -a $install/usr/lib/connman/plugins-vpn/*a \
    1.72 +			$fs/usr/lib/connman/plugins-vpn
    1.73 +		# include
    1.74 +		cp -a $install/usr/include $fs/usr
    1.75 +		# pkg-config
    1.76 +		cp -a $install/usr/lib/pkgconfig $fs/usr/lib
    1.77 +		# test tools
    1.78 +		mkdir -p $fs/usr/sbin
    1.79 +		install -Dm755 $src/tools/*-test $fs/usr/sbin
    1.80 +		install -Dm755 $src/tools/*-tool $fs/usr/sbin
    1.81 +		install -Dm755 $src/tools/*-unit $fs/usr/sbin
    1.82 +		install -Dm755 $src/tools/wispr $fs/usr/sbin
    1.83 +		# python tools
    1.84 +		install -Dm755 $src/test/* $fs/usr/sbin
    1.85 +		;;
    1.86 +	connman-tools)
    1.87 +		CAT="network|Daemon for managing internet connections, dev tools."
    1.88 +		DEPENDS="readline ncurses"
    1.89 +		# client
    1.90 +	        mkdir -p $fs/usr/sbin
    1.91 +		install -Dm755 $src/client/connmanctl  $fs/usr/sbin
    1.92 +		;;
    1.93 +	esac
    1.94  }
    1.95  
    1.96  # Pre and post remove commands for Tazpkg
    1.97 -post_install()
    1.98 +post_install_connman()
    1.99  {
   1.100  	if ! grep -qs ^CONNMAND_OPTIONS "$1/etc/daemons.conf"; then
   1.101  		echo '# Connman daemon options.' >> "$1/etc/daemons.conf"
   1.102 @@ -76,7 +107,7 @@
   1.103  	fi
   1.104  }
   1.105  
   1.106 -pre_remove()
   1.107 +pre_remove_connman()
   1.108  {
   1.109  	if [ -z "$1" ]; then
   1.110  		/etc/init.d/connman stop 2> /dev/null