Fix dependencies
[openwrt.git] / package / pmacct / Config.in
index 3c1f953..6cf63ba 100644 (file)
@@ -1,8 +1,7 @@
 config BR2_PACKAGE_PMACCT
        prompt "pmacct - IPv4/IPv6 accounting and aggregation tools"
        bool
-       default y if CONFIG_DEVEL
-       select BR2_PACKAGE_LIBPCAP
+       default m if CONFIG_DEVEL
        help
          A small set of IPv4/IPv6 accounting and aggregation tools
          
@@ -11,31 +10,34 @@ config BR2_PACKAGE_PMACCT
          Depends: libpcap
 
 choice
-       depends BR2_PACKAGE_PMACCT
        prompt "nfacctd - NetFlow accounting daemon"
        tristate
        default m if CONFIG_DEVEL
-       default n
+       depends BR2_PACKAGE_PMACCT
        optional
        
        config BR2_PACKAGE_NFACCTD_BASIC
                prompt "nfacctd: without database support"
                tristate
+               select BR2_PACKAGE_LIBPCAP
        
        config BR2_PACKAGE_NFACCTD_MYSQL
                prompt "nfacctd-mysql: with MySQL database support"
                tristate
+               select BR2_PACKAGE_LIBPCAP
                select BR2_PACKAGE_LIBMYSQLCLIENT
        
        config BR2_PACKAGE_NFACCTD_PGSQL
                prompt "nfacctd-pgsql: with PostgreSQL database support"
                tristate
+               select BR2_PACKAGE_LIBPCAP
                select BR2_PACKAGE_LIBPQ
        
        config BR2_PACKAGE_NFACCTD_CUSTOM
                prompt "nfacctd-custom: customized to your needs"
                tristate
-       
+               select BR2_PACKAGE_LIBPCAP
+
        config BR2_PACKAGE_NFACCTD_ENABLE_DEBUG
                prompt "debug (enable debugging options, useful for bugreports)"
                bool
@@ -47,7 +49,6 @@ choice
                bool
                default n
                depends BR2_PACKAGE_NFACCTD_CUSTOM
-               select BR2_PACKAGE_IPTABLES
 
        config BR2_PACKAGE_NFACCTD_WITH_MYSQL
                prompt "MySQL database support"
@@ -66,30 +67,33 @@ choice
 endchoice
 
 choice
-       depends BR2_PACKAGE_PMACCT
        prompt "pmacctd - IP accounting daemon (libpcap based)"
        tristate
        default m if CONFIG_DEVEL
-       default n
+       depends BR2_PACKAGE_PMACCT
        optional
        
        config BR2_PACKAGE_PMACCTD_BASIC
                prompt "pmacctd: without database support"
                tristate
-       
+               select BR2_PACKAGE_LIBPCAP
+
        config BR2_PACKAGE_PMACCTD_MYSQL
                prompt "pmacctd-mysql: with MySQL database support"
                tristate
+               select BR2_PACKAGE_LIBPCAP
                select BR2_PACKAGE_LIBMYSQLCLIENT
        
        config BR2_PACKAGE_PMACCTD_PGSQL
                prompt "pmacctd-pgsql: with PostgreSQL database support"
                tristate
+               select BR2_PACKAGE_LIBPCAP
                select BR2_PACKAGE_LIBPQ
        
        config BR2_PACKAGE_PMACCTD_CUSTOM
                prompt "pmacctd-custom: customized to your needs"
                tristate
+               select BR2_PACKAGE_LIBPCAP
        
        config BR2_PACKAGE_PMACCTD_ENABLE_DEBUG
                prompt "debug (enable debugging options, useful for bugreports)"
@@ -102,7 +106,6 @@ choice
                bool
                default n
                depends BR2_PACKAGE_PMACCTD_CUSTOM
-               select BR2_PACKAGE_IPTABLES
 
        config BR2_PACKAGE_PMACCTD_WITH_MYSQL
                prompt "MySQL database support"
@@ -121,10 +124,10 @@ choice
 endchoice
 
 config BR2_PACKAGE_PMACCT_CLIENT
-       depends BR2_PACKAGE_PMACCT
        prompt "pmacct-client - Command-line client to gather data from the IMT plugin" if BR2_PACKAGE_NFACCTD_BASIC || BR2_PACKAGE_NFACCTD_MYSQL || BR2_PACKAGE_NFACCTD_PGSQL || BR2_PACKAGE_NFACCTD_CUSTOM || BR2_PACKAGE_PMACCTD_BASIC || BR2_PACKAGE_PMACCTD_MYSQL || BR2_PACKAGE_PMACCTD_PGSQL || BR2_PACKAGE_PMACCTD_CUSTOM
        tristate
-       default n
+       default m if CONFIG_DEVEL
+       depends BR2_PACKAGE_PMACCT
 
 config BR2_PACKAGE_PMACCT_BASIC
        tristate
@@ -138,3 +141,8 @@ config BR2_PACKAGE_PMACCT_PGSQL
        tristate
        default BR2_PACKAGE_NFACCTD_PGSQL || BR2_PACKAGE_PMACCTD_PGSQL
 
+config BR2_PACKAGE_PMACCT_DEVEL
+       tristate
+       default m if CONFIG_DEVEL
+       select BR2_PACKAGE_NFACCTD_BASIC if CONFIG_DEVEL
+       select BR2_PACKAGE_PMACCTD_BASIC if CONFIG_DEVEL
This page took 0.027238 seconds and 4 git commands to generate.