Patchwork [09/12] nfacct: add new package

login
register
mail settings
Submitter Gustavo Zacarias
Date Oct. 22, 2012, 12:46 p.m.
Message ID <1350909989-1012-9-git-send-email-gustavo@zacarias.com.ar>
Download mbox | patch
Permalink /patch/193151/
State Superseded
Headers show

Comments

Gustavo Zacarias - Oct. 22, 2012, 12:46 p.m.
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
---
 package/Config.in        |    1 +
 package/nfacct/Config.in |   12 ++++++++++++
 package/nfacct/nfacct.mk |   15 +++++++++++++++
 3 files changed, 28 insertions(+), 0 deletions(-)
 create mode 100644 package/nfacct/Config.in
 create mode 100644 package/nfacct/nfacct.mk
Arnout Vandecappelle - Oct. 23, 2012, 5:06 p.m.
On 22/10/12 14:46, Gustavo Zacarias wrote:
> +	depends on BR2_LARGEFILE
> +	select BR2_PACKAGE_LIBNETFILTER_ACCT

  Is the largefile because of the libnetfilter_acct?  IOW, can it be removed
after Yann's _AVAILABLE patch?

  Regards,
  Arnout
Gustavo Zacarias - Oct. 24, 2012, 10:50 a.m.
On 10/23/12 14:06, Arnout Vandecappelle wrote:

> On 22/10/12 14:46, Gustavo Zacarias wrote:
>> +    depends on BR2_LARGEFILE
>> +    select BR2_PACKAGE_LIBNETFILTER_ACCT
> 
>  Is the largefile because of the libnetfilter_acct?  IOW, can it be removed
> after Yann's _AVAILABLE patch?
> 
>  Regards,
>  Arnout

Half yes, the basic culprit is libmnl.
It should be a good candidate for LIBMNL_AVAILABLE after Yann's patch, yup.
Regards.

Patch

diff --git a/package/Config.in b/package/Config.in
index c2ff2d5..a50eb33 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -603,6 +603,7 @@  source "package/netplug/Config.in"
 source "package/netsnmp/Config.in"
 source "package/netstat-nat/Config.in"
 source "package/network-manager/Config.in"
+source "package/nfacct/Config.in"
 source "package/noip/Config.in"
 source "package/ngircd/Config.in"
 source "package/ngrep/Config.in"
diff --git a/package/nfacct/Config.in b/package/nfacct/Config.in
new file mode 100644
index 0000000..ac437da
--- /dev/null
+++ b/package/nfacct/Config.in
@@ -0,0 +1,12 @@ 
+config BR2_PACKAGE_NFACCT
+	bool "nfacct"
+	depends on BR2_LARGEFILE
+	select BR2_PACKAGE_LIBNETFILTER_ACCT
+	help
+	  nfacct is the command line tool to create/retrieve/delete
+	  netfilter accounting objects.
+
+	  http://www.netfilter.org/projects/nfacct/
+
+comment "nfacct requires a toolchain with LARGEFILE support"
+	depends on !BR2_LARGEFILE
diff --git a/package/nfacct/nfacct.mk b/package/nfacct/nfacct.mk
new file mode 100644
index 0000000..4f92482
--- /dev/null
+++ b/package/nfacct/nfacct.mk
@@ -0,0 +1,15 @@ 
+#############################################################
+#
+# nfacct
+#
+#############################################################
+
+NFACCT_VERSION = 1.0.0
+NFACCT_SOURCE = nfacct-$(NFACCT_VERSION).tar.bz2
+NFACCT_SITE = http://www.netfilter.org/projects/nfacct/files
+NFACCT_DEPENDENCIES = host-pkg-config \
+	libnetfilter_acct
+NFACCT_LICENSE = GPLv2
+NFACCT_LICENSE_FILES = COPYING
+
+$(eval $(autotools-package))