wok-current annotate connman/receipt @ rev 14810
Up: apr-util* (1.5.2)
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Wed Jul 17 13:35:05 2013 +0200 (2013-07-17) |
parents | 0199371990b2 |
children | 7896f0694ef6 |
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@14426 | 12 DEPENDS="glib dbus iptables gnutls libnl libgcrypt udev wpa_supplicant |
domcox@14426 | 13 dbus-helper" |
domcox@14383 | 14 BUILD_DEPENDS="glib-dev dbus-dev iptables-dev gnutls-dev libnl-dev |
domcox@14383 | 15 openconnect udev-dev wpa_supplicant readline-dev ncursesw-dev openvpn |
domcox@14383 | 16 bluez-dev ppp-dev" |
domcox@14383 | 17 SUGGESTED="xl2tpd pptpclient" |
slaxemulator@9315 | 18 |
slaxemulator@9315 | 19 # Rules to configure and make the package. |
slaxemulator@9315 | 20 compile_rules() |
slaxemulator@9315 | 21 { |
domcox@14329 | 22 # add dependency on libncurses.so, |
domcox@14329 | 23 sed -i 's/-lreadline/-lreadline -lncurses/' Makefile.in |
slaxemulator@9315 | 24 cd $src |
slaxemulator@9315 | 25 ./configure \ |
slaxemulator@9315 | 26 --prefix=/usr \ |
slaxemulator@9315 | 27 --sysconfdir=/etc \ |
slaxemulator@9315 | 28 --localstatedir=/var \ |
slaxemulator@9315 | 29 --infodir=/usr/share/info \ |
slaxemulator@9315 | 30 --mandir=/usr/share/man \ |
slaxemulator@9315 | 31 --disable-gtk-doc \ |
domcox@14329 | 32 --disable-neard \ |
domcox@14329 | 33 --enable-threads \ |
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@14329 | 60 # init script |
domcox@14329 | 61 cp -a $stuff/etc $fs |
slaxemulator@9315 | 62 } |
slaxemulator@9315 | 63 |
domcox@14329 | 64 # Pre and post remove commands for Tazpkg |
domcox@14329 | 65 post_install() |
domcox@14329 | 66 { |
domcox@14329 | 67 local root=$1 |
domcox@14329 | 68 if ! grep -q ^CONNMAND_OPTIONS $root/etc/daemons.conf; then |
domcox@14329 | 69 echo '# Connman daemon options.' >> $root/etc/daemons.conf |
domcox@14329 | 70 echo 'CONNMAND_OPTIONS=""' >> $root/etc/daemons.conf |
domcox@14329 | 71 echo '' >> $root/etc/daemons.conf |
domcox@14329 | 72 fi |
domcox@14329 | 73 if [ -z "$root" ]; then |
domcox@14383 | 74 /etc/init.d/connman start || /etc/init.d/connman restart |
domcox@14329 | 75 fi |
domcox@14329 | 76 } |
domcox@14329 | 77 |
domcox@14329 | 78 pre_remove() |
domcox@14329 | 79 { |
domcox@14329 | 80 if [ -z "$1" ]; then |
domcox@14383 | 81 /etc/init.d/connman stop |
domcox@14329 | 82 fi |
domcox@14329 | 83 } |