wok annotate connman/receipt @ rev 16795

Add tcplay
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Jul 04 11:38:45 2014 +0200 (2014-07-04)
parents 802e79c735ff
children 9e01bc6321ea
rev   line source
slaxemulator@9315 1 # SliTaz package receipt.
slaxemulator@9315 2
slaxemulator@9315 3 PACKAGE="connman"
domcox@15975 4 VERSION="1.21"
slaxemulator@9315 5 CATEGORY="network"
slaxemulator@9315 6 SHORT_DESC="Daemon for managing internet connections"
slaxemulator@9315 7 MAINTAINER="slaxemulator@gmail.com"
domcox@15384 8 LICENSE="GPL2"
domcox@14329 9 TARBALL="$PACKAGE-$VERSION.tar.xz"
domcox@14329 10 WEB_SITE="http://connman.net/"
domcox@14329 11 WGET_URL="http://linux-kernel.uio.no/pub/linux/network/$PACKAGE/$TARBALL"
domcox@14329 12
domcox@15384 13 DEPENDS="glib dbus iptables gnutls libnl libgcrypt udev wpa_supplicant
domcox@15384 14 dbus-helper"
domcox@15384 15 BUILD_DEPENDS="glib-dev dbus-dev iptables-dev iptables gnutls-dev libnl-dev
domcox@14383 16 openconnect udev-dev wpa_supplicant readline-dev ncursesw-dev openvpn
domcox@14383 17 bluez-dev ppp-dev"
domcox@15975 18 SUGGESTED="xl2tpd pptpclient openvpn"
slaxemulator@9315 19
slaxemulator@9315 20 # Rules to configure and make the package.
slaxemulator@9315 21 compile_rules()
slaxemulator@9315 22 {
domcox@14329 23 # add dependency on libncurses.so,
domcox@14329 24 sed -i 's/-lreadline/-lreadline -lncurses/' Makefile.in
slaxemulator@9315 25 cd $src
slaxemulator@9315 26 ./configure \
slaxemulator@9315 27 --prefix=/usr \
slaxemulator@9315 28 --sysconfdir=/etc \
slaxemulator@9315 29 --localstatedir=/var \
slaxemulator@9315 30 --infodir=/usr/share/info \
slaxemulator@9315 31 --mandir=/usr/share/man \
slaxemulator@9315 32 --disable-gtk-doc \
domcox@14329 33 --disable-neard \
domcox@14383 34 --enable-polkit \
slaxemulator@9315 35 --enable-openconnect \
domcox@14329 36 --enable-vpnc \
domcox@14329 37 --enable-openvpn \
slaxemulator@9315 38 --enable-client \
domcox@14383 39 --enable-test \
slaxemulator@9315 40 $CONFIGURE_ARGS &&
pascal@12633 41 make && make DESTDIR=$DESTDIR install
slaxemulator@9315 42 }
slaxemulator@9315 43
slaxemulator@9315 44 # Rules to gen a SliTaz package suitable for Tazpkg.
slaxemulator@9315 45 genpkg_rules()
slaxemulator@9315 46 {
slaxemulator@9315 47 # dbus conf
slaxemulator@9315 48 mkdir -p $fs/etc
domcox@14329 49 cp -a $install/etc/dbus-1 $fs/etc
slaxemulator@9315 50 # conman exec
domcox@14329 51 mkdir -p $fs/usr
domcox@14329 52 cp -a $install/usr/sbin $fs/usr
domcox@14329 53 # libs
domcox@14329 54 mkdir -p $fs/usr/lib/connman/plugins-vpn
domcox@14329 55 cp -a $install/usr/lib/connman/plugins-vpn/*.so \
domcox@14329 56 $fs/usr/lib/connman/plugins-vpn
domcox@14329 57 # vpn scripts
domcox@14329 58 mkdir -p $fs/usr/lib/connman/scripts
domcox@14329 59 cp -a $install/usr/lib/connman/scripts $fs/usr/lib/connman
domcox@15787 60 # share
domcox@15787 61 cp -a $install/usr/share $fs/usr
domcox@14329 62 # init script
domcox@14329 63 cp -a $stuff/etc $fs
slaxemulator@9315 64 }
slaxemulator@9315 65
domcox@14329 66 # Pre and post remove commands for Tazpkg
domcox@14329 67 post_install()
domcox@14329 68 {
domcox@14329 69 local root=$1
pascal@15644 70 if ! grep -qs ^CONNMAND_OPTIONS $root/etc/daemons.conf; then
domcox@14329 71 echo '# Connman daemon options.' >> $root/etc/daemons.conf
domcox@14329 72 echo 'CONNMAND_OPTIONS=""' >> $root/etc/daemons.conf
domcox@14329 73 echo '' >> $root/etc/daemons.conf
domcox@14329 74 fi
pascal@15644 75 if [ -z "$root" -a -s /etc/network.conf ]; then
domcox@14383 76 /etc/init.d/connman start || /etc/init.d/connman restart
domcox@14329 77 fi
domcox@14329 78 }
domcox@14329 79
domcox@14329 80 pre_remove()
domcox@14329 81 {
domcox@14329 82 if [ -z "$1" ]; then
pascal@15646 83 /etc/init.d/connman stop 2> /dev/null
domcox@14329 84 fi
domcox@14329 85 }