wok-current view connman/receipt @ rev 23978

lyx: update deps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Nov 06 17:28:17 2020 +0000 (2020-11-06)
parents 0e3538a79c6b
children 2a0479881723
line source
1 # SliTaz package receipt.
3 PACKAGE="connman"
4 VERSION="1.37"
5 CATEGORY="network"
6 SHORT_DESC="Daemon for managing internet connections."
7 MAINTAINER="slaxemulator@gmail.com"
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 SUGGESTED="xl2tpd pptpclient openvpn"
15 DEPENDS="dbus dbus-helper glib gnutls iptables libgcrypt libnl
16 udev wpa_supplicant"
17 BUILD_DEPENDS="bluez-dev dbus-dev glib-dev gnutls-dev iptables
18 iptables-dev libgnutls libnl-dev ncursesw-dev openconnect
19 openvpn ppp-dev readline-dev udev-dev wpa_supplicant"
21 # Rules to configure and make the package.
22 compile_rules()
23 {
24 # add dependency on libncurses.so,
25 sed -i 's/-lreadline/-lreadline -lncurses/' \
26 Makefile.in
28 # not recognised after 1.21
29 # --disable-gtk-doc
31 ./configure \
32 --prefix=/usr \
33 --sysconfdir=/etc \
34 --localstatedir=/var \
35 --infodir=/usr/share/info \
36 --mandir=/usr/share/man \
37 --disable-neard \
38 --enable-polkit \
39 --enable-openconnect \
40 --enable-vpnc \
41 --enable-openvpn \
42 --enable-client \
43 --enable-test \
44 $CONFIGURE_ARGS &&
45 make &&
46 make DESTDIR=$DESTDIR install
47 }
49 # Rules to gen a SliTaz package suitable for Tazpkg.
50 genpkg_rules()
51 {
52 # dbus configuration
53 mkdir -p $fs/etc/dbus-1
54 cp -a $install/usr/share/dbus-1/system.d \
55 $fs/etc/dbus-1
57 # connman exec
58 mkdir -p $fs/usr
59 cp -a $install/usr/sbin $fs/usr
61 # libraries
62 mkdir -p $fs/usr/lib/connman/plugins-vpn
63 cp -a $install/usr/lib/connman/plugins-vpn/*.so \
64 $fs/usr/lib/connman/plugins-vpn
65 # vpn scripts
66 mkdir -p $fs/usr/lib/connman/scripts
67 cp -a $install/usr/lib/connman/scripts \
68 $fs/usr/lib/connman
70 # share
71 mkdir -p $fs/usr/share
72 cp -a $install/usr/share/man $fs/usr/share
73 cp -a $install/usr/share/polkit-1 \
74 $fs/usr/share
76 # init script
77 cp -a $stuff/etc $fs
78 }
80 # Pre and post remove commands for Tazpkg
81 post_install()
82 {
83 if ! grep -qs ^CONNMAND_OPTIONS "$1/etc/daemons.conf"
84 then
85 echo '# Connman daemon options.' >> "$1/etc/daemons.conf"
86 echo 'CONNMAND_OPTIONS=""' >> "$1/etc/daemons.conf"
87 echo '' >> "$1/etc/daemons.conf"
88 fi
90 if [ -z "$1" -a -s /etc/network.conf ]
91 then
92 /etc/init.d/connman start || /etc/init.d/connman restart
93 fi
94 }
96 pre_remove()
97 {
98 if [ -z "$1" ]
99 then
100 /etc/init.d/connman stop 2> /dev/null
101 fi
102 }