[Buildroot] [PATCH] new package: network-manager-applet

Yann E. MORIN yann.morin.1998 at free.fr
Thu Feb 21 22:11:21 UTC 2013


Stefan, All,

On Thursday 21 February 2013 Stefan Fröberg wrote:
> GTK+ applet for NetworkManager

Oh, nice! Did you finally managed to make it work?

> Signed-off-by: Stefan Fröberg <stefan.froberg at petroprogram.com>
[--SNIP--]
> diff --git a/package/network-manager-applet/Config.in b/package/network-manager-applet/Config.in
> new file mode 100644
> index 0000000..03cf0e7
> --- /dev/null
> +++ b/package/network-manager-applet/Config.in
> @@ -0,0 +1,13 @@
> +config BR2_PACKAGE_NETWORK_MANAGER_APPLET
> +	bool "network-manager-applet"
> +	depends on BR2_PACKAGE_NETWORK_MANAGER
> +	depends on BR2_PACKAGE_ISO_CODES
> +	select BR2_PACKAGE_LIBTASN1

We do not currently have libtasn1 in the packages (although I've seen
a patch to add it float by recently, maybe your patch? If so, say that
it needs to be applied before this one).

> +	select BR2_PACKAGE_GNOME_KEYRING
> +	select BR2_PACKAGE_NOTIFICATION_DAEMON
> +	select BR2_PACKAGE_CONSOLEKIT

Be careful to properly inherit dependencies from packages you 'select'.

> diff --git a/package/network-manager-applet/network-manager-applet.mk b/package/network-manager-applet/network-manager-applet.mk
> new file mode 100644
> index 0000000..51834b5
> --- /dev/null
> +++ b/package/network-manager-applet/network-manager-applet.mk
> @@ -0,0 +1,28 @@
> +#############################################################
> +#
> +# network-manager-applet
> +#
> +#############################################################
> +
> +NETWORK_MANAGER_APPLET_VERSION = 0.9.2.0
> +NETWORK_MANAGER_APPLET_SOURCE = network-manager-applet-$(NETWORK_MANAGER_APPLET_VERSION).tar.xz
> +NETWORK_MANAGER_APPLET_SITE = http://ftp.gnome.org/pub/GNOME/sources/network-manager-applet/0.9/
> +NETWORK_MANAGER_APPLET_INSTALL_STAGING = YES
> +NETWORK_MANAGER_APPLET_DEPENDENCIES = network-manager iso-codes libtasn1 \
> +				     gnome-keyring notification-daemon \
> +				     consolekit
> +NETWORK_MANAGER_APPLET_CONF_OPT += --disable-more-warnings \
> +				   --localstatedir=/var --enable-migration \
> +				   --with-gtkver=2
> +NETWORK_MANAGER_APPLET_AUTORECONF = YES

Why autoreconf?

> +define	NETWORK_MANAGER_APPLET_FIXUP
> +	# This file adds that annoying -Werror even if told *no*. Kick it out
> +	rm -f $(@D)/m4/compiler_warnings.m4
> +endef
> +
> +NETWORK_MANAGER_APPLET_PRE_CONFIGURE_HOOKS += NETWORK_MANAGER_APPLET_FIXUP

Make this a post-extract hook, not a pre-configure hook.
(Unless it is added by autoreconf?)

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'


More information about the buildroot mailing list