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