wok view connman/receipt @ rev 17390
Up: slitaz-base-files (5.6.4)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Thu Nov 27 16:29:17 2014 +0200 (2014-11-27) |
parents | 802e79c735ff |
children | 9e01bc6321ea |
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"
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 local root=$1
70 if ! grep -qs ^CONNMAND_OPTIONS $root/etc/daemons.conf; then
71 echo '# Connman daemon options.' >> $root/etc/daemons.conf
72 echo 'CONNMAND_OPTIONS=""' >> $root/etc/daemons.conf
73 echo '' >> $root/etc/daemons.conf
74 fi
75 if [ -z "$root" -a -s /etc/network.conf ]; then
76 /etc/init.d/connman start || /etc/init.d/connman restart
77 fi
78 }
80 pre_remove()
81 {
82 if [ -z "$1" ]; then
83 /etc/init.d/connman stop 2> /dev/null
84 fi
85 }