wok-next annotate network-manager/receipt @ rev 20762
Add leanify
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue Jun 05 17:27:09 2018 +0300 (2018-06-05) |
parents | 757d032c55c7 |
children | 4e6503d7a19f |
rev | line source |
---|---|
al@20462 | 1 # SliTaz package receipt v2. |
pascal@12973 | 2 |
pascal@12973 | 3 PACKAGE="network-manager" |
pascal@16645 | 4 VERSION="0.9.8.10" |
pascal@12973 | 5 CATEGORY="system-tools" |
al@20462 | 6 SHORT_DESC="GNOME network manager" |
pascal@12973 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15002 | 8 LICENSE="GPL2" |
pascal@12973 | 9 WEB_SITE="http://projects.gnome.org/NetworkManager/" |
pascal@12973 | 10 |
al@20462 | 11 TARBALL="NetworkManager-$VERSION.tar.xz" |
al@20462 | 12 WGET_URL="$GNOME_MIRROR/NetworkManager/${VERSION%.*.*}/$TARBALL" |
al@20462 | 13 |
pascal@12973 | 14 BUILD_DEPENDS="dbus-dev dbus-glib-dev gtk+-dev wireless_tools-dev libgudev-dev \ |
al@20534 | 15 libnl-dev nss-dev ppp-dev iptables-dev util-linux-uuid-dev dhcp-client \ |
al@20534 | 16 intltool eudev-dev" |
al@20462 | 17 SPLIT="network-manager-dev" |
pascal@12973 | 18 |
al@20462 | 19 compile_rules() { |
pascal@20351 | 20 sed -i '/expires > 0)$/{p;s/.*/{/;NNN;s/$/\n}/}' \ |
pascal@20351 | 21 src/ip6-manager/nm-ip6-manager.c |
pascal@20351 | 22 sed -i 's/.\(if (.nm_supplicant_config_add_setting_8021x\)/ \1/' \ |
pascal@20351 | 23 src/supplicant-manager/nm-supplicant-config.c |
al@20534 | 24 |
pascal@12973 | 25 ./configure \ |
pascal@12973 | 26 --libexecdir=/usr/lib/$PACKAGE \ |
pascal@12973 | 27 $CONFIGURE_ARGS && |
al@20601 | 28 fix libtool && |
al@20534 | 29 make && |
al@20534 | 30 make install |
pascal@12973 | 31 } |
pascal@12973 | 32 |
al@20462 | 33 genpkg_rules() { |
al@20462 | 34 case $PACKAGE in |
al@20462 | 35 network-manager) |
al@20534 | 36 copy @std |
al@20462 | 37 DEPENDS="dbus dbus-glib gtk+ wireless_tools libgudev libnl nss ppp \ |
al@20462 | 38 iptables dhcp-client" |
al@20462 | 39 ;; |
al@20462 | 40 *-dev) |
al@20534 | 41 copy @dev |
al@20462 | 42 ;; |
al@20462 | 43 esac |
pascal@12973 | 44 } |