wok annotate connman/receipt @ rev 14329
Up: connman (1.12)
author | Dominique Corbex <domcox@slitaz.org> |
---|---|
date | Fri Apr 12 19:56:50 2013 +0200 (2013-04-12) |
parents | 4adde6975d35 |
children | 0199371990b2 |
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 |
slaxemulator@9315 | 12 DEPENDS="glib dbus iptables gnutls libnl udev wpa_supplicant" |
pascal@12639 | 13 BUILD_DEPENDS="glib-dev dbus-dev iptables iptables-dev gnutls-dev libnl-dev \ |
domcox@14329 | 14 openconnect udev-dev wpa_supplicant readline-dev ncursesw-dev openvpn bluez-dev" |
slaxemulator@9315 | 15 |
slaxemulator@9315 | 16 # Rules to configure and make the package. |
slaxemulator@9315 | 17 compile_rules() |
slaxemulator@9315 | 18 { |
domcox@14329 | 19 # add dependency on libncurses.so, |
domcox@14329 | 20 sed -i 's/-lreadline/-lreadline -lncurses/' Makefile.in |
slaxemulator@9315 | 21 cd $src |
slaxemulator@9315 | 22 ./configure \ |
slaxemulator@9315 | 23 --prefix=/usr \ |
slaxemulator@9315 | 24 --sysconfdir=/etc \ |
slaxemulator@9315 | 25 --localstatedir=/var \ |
slaxemulator@9315 | 26 --infodir=/usr/share/info \ |
slaxemulator@9315 | 27 --mandir=/usr/share/man \ |
slaxemulator@9315 | 28 --disable-gtk-doc \ |
domcox@14329 | 29 --disable-neard \ |
domcox@14329 | 30 --enable-threads \ |
slaxemulator@9315 | 31 --enable-openconnect \ |
domcox@14329 | 32 --enable-vpnc \ |
domcox@14329 | 33 --enable-openvpn \ |
domcox@14329 | 34 --enable-polkit \ |
slaxemulator@9315 | 35 --enable-client \ |
slaxemulator@9315 | 36 $CONFIGURE_ARGS && |
pascal@12633 | 37 make && make DESTDIR=$DESTDIR install |
slaxemulator@9315 | 38 } |
slaxemulator@9315 | 39 |
slaxemulator@9315 | 40 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@9315 | 41 genpkg_rules() |
slaxemulator@9315 | 42 { |
slaxemulator@9315 | 43 # dbus conf |
slaxemulator@9315 | 44 mkdir -p $fs/etc |
domcox@14329 | 45 cp -a $install/etc/dbus-1 $fs/etc |
slaxemulator@9315 | 46 # conman exec |
domcox@14329 | 47 mkdir -p $fs/usr |
domcox@14329 | 48 cp -a $install/usr/sbin $fs/usr |
domcox@14329 | 49 # libs |
domcox@14329 | 50 mkdir -p $fs/usr/lib/connman/plugins-vpn |
domcox@14329 | 51 cp -a $install/usr/lib/connman/plugins-vpn/*.so \ |
domcox@14329 | 52 $fs/usr/lib/connman/plugins-vpn |
domcox@14329 | 53 # vpn scripts |
domcox@14329 | 54 mkdir -p $fs/usr/lib/connman/scripts |
domcox@14329 | 55 cp -a $install/usr/lib/connman/scripts $fs/usr/lib/connman |
domcox@14329 | 56 # init script |
domcox@14329 | 57 cp -a $stuff/etc $fs |
slaxemulator@9315 | 58 } |
slaxemulator@9315 | 59 |
domcox@14329 | 60 # Pre and post remove commands for Tazpkg |
domcox@14329 | 61 post_install() |
domcox@14329 | 62 { |
domcox@14329 | 63 local root=$1 |
domcox@14329 | 64 if ! grep -q ^CONNMAND_OPTIONS $root/etc/daemons.conf; then |
domcox@14329 | 65 echo '# Connman daemon options.' >> $root/etc/daemons.conf |
domcox@14329 | 66 echo 'CONNMAND_OPTIONS=""' >> $root/etc/daemons.conf |
domcox@14329 | 67 echo '' >> $root/etc/daemons.conf |
domcox@14329 | 68 fi |
domcox@14329 | 69 if [ -z "$root" ]; then |
domcox@14329 | 70 /etc/init.d/connmand start || continue |
domcox@14329 | 71 fi |
domcox@14329 | 72 } |
domcox@14329 | 73 |
domcox@14329 | 74 pre_remove() |
domcox@14329 | 75 { |
domcox@14329 | 76 if [ -z "$1" ]; then |
domcox@14329 | 77 /etc/init.d/connmand stop |
domcox@14329 | 78 fi |
domcox@14329 | 79 } |