wok-current annotate connman/receipt @ rev 24376

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