wok view connman/receipt @ rev 21375

updated logrotate (3.8.2 -> 3.15.0)
author Hans-G?nter Theisgen
date Mon Apr 22 09:33:09 2019 +0100 (2019-04-22)
parents 9e01bc6321ea
children a2972d1fc4ba
line source
1 # SliTaz package receipt.
3 PACKAGE="connman"
4 VERSION="1.21"
5 CATEGORY="network"
6 SHORT_DESC="Daemon for managing internet connections"
7 MAINTAINER="slaxemulator@gmail.com"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.xz"
10 WEB_SITE="http://connman.net/"
11 WGET_URL="http://linux-kernel.uio.no/pub/linux/network/$PACKAGE/$TARBALL"
13 DEPENDS="glib dbus iptables gnutls libnl libgcrypt udev wpa_supplicant
14 dbus-helper"
15 BUILD_DEPENDS="glib-dev dbus-dev iptables-dev iptables gnutls-dev libnl-dev
16 openconnect udev-dev wpa_supplicant readline-dev ncursesw-dev openvpn
17 bluez-dev ppp-dev libgnutls"
18 SUGGESTED="xl2tpd pptpclient openvpn"
20 # Rules to configure and make the package.
21 compile_rules()
22 {
23 # add dependency on libncurses.so,
24 sed -i 's/-lreadline/-lreadline -lncurses/' Makefile.in
25 cd $src
26 ./configure \
27 --prefix=/usr \
28 --sysconfdir=/etc \
29 --localstatedir=/var \
30 --infodir=/usr/share/info \
31 --mandir=/usr/share/man \
32 --disable-gtk-doc \
33 --disable-neard \
34 --enable-polkit \
35 --enable-openconnect \
36 --enable-vpnc \
37 --enable-openvpn \
38 --enable-client \
39 --enable-test \
40 $CONFIGURE_ARGS &&
41 make && make DESTDIR=$DESTDIR install
42 }
44 # Rules to gen a SliTaz package suitable for Tazpkg.
45 genpkg_rules()
46 {
47 # dbus conf
48 mkdir -p $fs/etc
49 cp -a $install/etc/dbus-1 $fs/etc
50 # conman exec
51 mkdir -p $fs/usr
52 cp -a $install/usr/sbin $fs/usr
53 # libs
54 mkdir -p $fs/usr/lib/connman/plugins-vpn
55 cp -a $install/usr/lib/connman/plugins-vpn/*.so \
56 $fs/usr/lib/connman/plugins-vpn
57 # vpn scripts
58 mkdir -p $fs/usr/lib/connman/scripts
59 cp -a $install/usr/lib/connman/scripts $fs/usr/lib/connman
60 # share
61 cp -a $install/usr/share $fs/usr
62 # init script
63 cp -a $stuff/etc $fs
64 }
66 # Pre and post remove commands for Tazpkg
67 post_install()
68 {
69 if ! grep -qs ^CONNMAND_OPTIONS "$1/etc/daemons.conf"; then
70 echo '# Connman daemon options.' >> "$1/etc/daemons.conf"
71 echo 'CONNMAND_OPTIONS=""' >> "$1/etc/daemons.conf"
72 echo '' >> "$1/etc/daemons.conf"
73 fi
74 if [ -z "$1" -a -s /etc/network.conf ]; then
75 /etc/init.d/connman start || /etc/init.d/connman restart
76 fi
77 }
79 pre_remove()
80 {
81 if [ -z "$1" ]; then
82 /etc/init.d/connman stop 2> /dev/null
83 fi
84 }