wok-next view connman/receipt @ rev 21727

created recipe for vbindiff
author Hans-G?nter Theisgen
date Sat Nov 21 14:32:44 2020 +0100 (2020-11-21)
parents 757d032c55c7
children
line source
1 # SliTaz package receipt v2.
3 PACKAGE="connman"
4 VERSION="1.21"
5 CATEGORY="network"
6 SHORT_DESC="Daemon for managing internet connections"
7 MAINTAINER="devel@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://01.org/connman"
11 TARBALL="$PACKAGE-$VERSION.tar.xz"
12 WGET_URL="http://linux-kernel.uio.no/pub/linux/network/$PACKAGE/$TARBALL"
14 BUILD_DEPENDS="glib-dev dbus-dev iptables-dev iptables gnutls-dev libnl-dev
15 openconnect udev-dev wpa_supplicant readline-dev ncurses-dev openvpn
16 bluez-dev ppp-dev"
17 SPLIT="$PACKAGE-dev $PACKAGE-tools"
19 compile_rules() {
20 # add dependency on libncurses.so,
21 sed -i 's/-lreadline/-lreadline -lncurses/' Makefile.in
23 ./configure \
24 --disable-gtk-doc \
25 --disable-neard \
26 --enable-polkit \
27 --enable-openconnect \
28 --enable-vpnc \
29 --enable-openvpn \
30 --enable-client \
31 --enable-test \
32 $CONFIGURE_ARGS &&
33 make &&
34 make DESTDIR=$install install || return 1
36 mkdir -p $install/usr/sbin/
37 install -m755 $src/client/connmanctl $install/usr/sbin/
38 install -m755 $src/tools/*-test $install/usr/sbin/
39 install -m755 $src/tools/*-tool $install/usr/sbin/
40 install -m755 $src/tools/*-unit $install/usr/sbin/
41 install -m755 $src/tools/wispr $install/usr/sbin/
42 # python tools
43 install -m755 $src/test/* $install/usr/sbin/
44 }
46 genpkg_rules() {
47 case $PACKAGE in
48 connman)
49 copy @std
50 rm -r $fs/usr/sbin/; copy connman-vpnd connmand # split other -> dev
51 DEPENDS="glib dbus iptables gnutls libnl libgcrypt udev \
52 wpa_supplicant dbus-helper"
53 SUGGESTED="xl2tpd pptpclient openvpn"
54 ;;
55 connman-tools)
56 copy connmanctl
57 CAT="network|dev tools"
58 DEPENDS="readline ncurses"
59 ;;
60 connman-dev)
61 copy @dev @std @rm
62 ;;
63 esac
64 }
66 post_install_connman() {
67 if ! grep -qs ^CONNMAND_OPTIONS "$1/etc/daemons.conf"; then
68 cat >> "$1/etc/daemons.conf" <<EOT
70 # Connman daemon options.
71 CONNMAND_OPTIONS=""
73 EOT
74 fi
75 if [ -z "$1" -a -s /etc/network.conf ]; then
76 /etc/init.d/connman start || /etc/init.d/connman restart
77 fi
78 }
80 pre_remove_connman() {
81 if [ -z "$1" ]; then
82 /etc/init.d/connman stop 2>/dev/null
83 fi
84 }