wok-next annotate connman/receipt @ rev 21271
up openssl10: 1.0.2o to 1.0.2t -> soon EOL
author | Erkan Yilmaz <erkan@slitaz.org> |
---|---|
date | Sat Dec 07 12:21:21 2019 +0000 (2019-12-07) |
parents | 757d032c55c7 |
children |
rev | line source |
---|---|
pascal@20185 | 1 # SliTaz package receipt v2. |
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" |
al@21020 | 7 MAINTAINER="devel@slitaz.org" |
domcox@15384 | 8 LICENSE="GPL2" |
al@21020 | 9 WEB_SITE="https://01.org/connman" |
al@20534 | 10 |
domcox@14329 | 11 TARBALL="$PACKAGE-$VERSION.tar.xz" |
domcox@14329 | 12 WGET_URL="http://linux-kernel.uio.no/pub/linux/network/$PACKAGE/$TARBALL" |
domcox@14329 | 13 |
domcox@15384 | 14 BUILD_DEPENDS="glib-dev dbus-dev iptables-dev iptables gnutls-dev libnl-dev |
pascal@19952 | 15 openconnect udev-dev wpa_supplicant readline-dev ncurses-dev openvpn |
domcox@14383 | 16 bluez-dev ppp-dev" |
al@21020 | 17 SPLIT="$PACKAGE-dev $PACKAGE-tools" |
slaxemulator@9315 | 18 |
al@20534 | 19 compile_rules() { |
domcox@14329 | 20 # add dependency on libncurses.so, |
domcox@14329 | 21 sed -i 's/-lreadline/-lreadline -lncurses/' Makefile.in |
al@20534 | 22 |
slaxemulator@9315 | 23 ./configure \ |
slaxemulator@9315 | 24 --disable-gtk-doc \ |
domcox@14329 | 25 --disable-neard \ |
domcox@14383 | 26 --enable-polkit \ |
slaxemulator@9315 | 27 --enable-openconnect \ |
domcox@14329 | 28 --enable-vpnc \ |
domcox@14329 | 29 --enable-openvpn \ |
slaxemulator@9315 | 30 --enable-client \ |
domcox@14383 | 31 --enable-test \ |
slaxemulator@9315 | 32 $CONFIGURE_ARGS && |
al@20534 | 33 make && |
al@21020 | 34 make DESTDIR=$install install || return 1 |
al@20534 | 35 |
al@20534 | 36 mkdir -p $install/usr/sbin/ |
al@20534 | 37 install -m755 $src/client/connmanctl $install/usr/sbin/ |
al@20534 | 38 install -m755 $src/tools/*-test $install/usr/sbin/ |
al@20534 | 39 install -m755 $src/tools/*-tool $install/usr/sbin/ |
al@20534 | 40 install -m755 $src/tools/*-unit $install/usr/sbin/ |
al@20534 | 41 install -m755 $src/tools/wispr $install/usr/sbin/ |
al@20534 | 42 # python tools |
al@20534 | 43 install -m755 $src/test/* $install/usr/sbin/ |
slaxemulator@9315 | 44 } |
slaxemulator@9315 | 45 |
al@20534 | 46 genpkg_rules() { |
pascal@20185 | 47 case $PACKAGE in |
al@20534 | 48 connman) |
al@20534 | 49 copy @std |
al@20534 | 50 rm -r $fs/usr/sbin/; copy connman-vpnd connmand # split other -> dev |
al@20534 | 51 DEPENDS="glib dbus iptables gnutls libnl libgcrypt udev \ |
pascal@20185 | 52 wpa_supplicant dbus-helper" |
al@20534 | 53 SUGGESTED="xl2tpd pptpclient openvpn" |
al@20534 | 54 ;; |
al@20534 | 55 connman-tools) |
al@20534 | 56 copy connmanctl |
al@20534 | 57 CAT="network|dev tools" |
al@20534 | 58 DEPENDS="readline ncurses" |
al@20534 | 59 ;; |
al@20534 | 60 connman-dev) |
al@20534 | 61 copy @dev @std @rm |
al@20534 | 62 ;; |
pascal@20185 | 63 esac |
slaxemulator@9315 | 64 } |
slaxemulator@9315 | 65 |
al@20534 | 66 post_install_connman() { |
pascal@18730 | 67 if ! grep -qs ^CONNMAND_OPTIONS "$1/etc/daemons.conf"; then |
al@20534 | 68 cat >> "$1/etc/daemons.conf" <<EOT |
al@20534 | 69 |
al@20534 | 70 # Connman daemon options. |
al@20534 | 71 CONNMAND_OPTIONS="" |
al@20534 | 72 |
al@20534 | 73 EOT |
domcox@14329 | 74 fi |
pascal@18730 | 75 if [ -z "$1" -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 |
al@20534 | 80 pre_remove_connman() { |
domcox@14329 | 81 if [ -z "$1" ]; then |
al@20534 | 82 /etc/init.d/connman stop 2>/dev/null |
domcox@14329 | 83 fi |
domcox@14329 | 84 } |