update pmacct to new upstream release and add SQLite database support
authorOliver Ertl <oliver@ertl-net.net>
Wed, 5 Apr 2006 12:21:05 +0000 (12:21 +0000)
committerOliver Ertl <oliver@ertl-net.net>
Wed, 5 Apr 2006 12:21:05 +0000 (12:21 +0000)
SVN-Revision: 3593

openwrt/package/Makefile
openwrt/package/pmacct/Config.in
openwrt/package/pmacct/Makefile
openwrt/package/pmacct/ipkg/nfacctd-sqlite.control [new file with mode: 0644]
openwrt/package/pmacct/ipkg/pmacctd-sqlite.control [new file with mode: 0644]

index 9336a963d9978bf26fb022fc2314aabb7b09abac..7596e6287ef6dd8c4364dfaefc3374c1fd9b5073 100644 (file)
@@ -211,6 +211,9 @@ endif
 ifneq ($(BR2_PACKAGE_PMACCT_PGSQL),)
 pmacct-compile: postgresql-compile
 endif
+ifneq ($(BR2_PACKAGE_PMACCT_SQLITE),)
+pmacct-compile: sqlite-compile
+endif
 
 snort-compile: libnet-compile libpcap-compile pcre-compile
 ifeq ($(BR2_PACKAGE_SNORT_MYSQL),y)
index 3a5e6ed19d13b227c42b41e50642a5b7ed1f91a4..7a167b8d45feec79a29068c50e1174efee22c815 100644 (file)
@@ -3,7 +3,7 @@ menu "pmacct - IPv4/IPv6 accounting and aggregation tools"
 config BR2_PACKAGE_PMACCT
        tristate
        default m if CONFIG_DEVEL
-       depends BR2_PACKAGE_PMACCT_BASIC || BR2_PACKAGE_PMACCT_MYSQL || BR2_PACKAGE_PMACCT_PGSQL || BR2_PACKAGE_PMACCT_CUSTOM || BR2_PACKAGE_PMACCT_CLIENT
+       depends BR2_PACKAGE_PMACCT_BASIC || BR2_PACKAGE_PMACCT_MYSQL || BR2_PACKAGE_PMACCT_PGSQL || BR2_PACKAGE_PMACCT_SQLITE || BR2_PACKAGE_PMACCT_CUSTOM || BR2_PACKAGE_PMACCT_CLIENT
 
 config BR2_PACKAGE_PMACCT_BASIC
        tristate
@@ -23,6 +23,12 @@ config BR2_PACKAGE_PMACCT_PGSQL
        depends BR2_PACKAGE_NFACCTD_PGSQL || BR2_PACKAGE_PMACCTD_PGSQL
        select BR2_PACKAGE_PMACCT
 
+config BR2_PACKAGE_PMACCT_SQLITE
+       tristate
+       default m if CONFIG_DEVEL
+       depends BR2_PACKAGE_NFACCTD_SQLITE || BR2_PACKAGE_PMACCTD_SQLITE
+       select BR2_PACKAGE_PMACCT
+
 config BR2_PACKAGE_PMACCT_CUSTOM
        tristate
        default n
@@ -64,7 +70,14 @@ choice
                select BR2_PACKAGE_PMACCT_PGSQL
                select BR2_PACKAGE_LIBPCAP
                select BR2_PACKAGE_LIBPQ
-       
+
+       config BR2_PACKAGE_NFACCTD_SQLITE
+               prompt "nfacctd-sqlite: with SQLite database support"
+               tristate
+               select BR2_PACKAGE_PMACCT_SQLITE
+               select BR2_PACKAGE_LIBPCAP
+               select BR2_PACKAGE_LIBSQLITE
+
        config BR2_PACKAGE_NFACCTD_CUSTOM
                prompt "nfacctd-custom: customized to your needs"
                tristate
@@ -97,6 +110,13 @@ choice
                depends BR2_PACKAGE_NFACCTD_CUSTOM
                select BR2_PACKAGE_LIBPQ
 
+       config BR2_PACKAGE_NFACCTD_WITH_SQLITE
+               prompt "SQLite database support"
+               bool
+               default n
+               depends BR2_PACKAGE_NFACCTD_CUSTOM
+               select BR2_PACKAGE_LIBSQLITE
+
 endchoice
 
 choice
@@ -114,6 +134,7 @@ choice
            - libpcap
            - libmysqlclient (for MySQL database logging support)
            - libpq (for PostgreSQL database logging support)
+           - libsqlite (for SQLite database logging support)
          
        
        
@@ -136,7 +157,14 @@ choice
                select BR2_PACKAGE_PMACCT_PGSQL
                select BR2_PACKAGE_LIBPCAP
                select BR2_PACKAGE_LIBPQ
-       
+
+       config BR2_PACKAGE_PMACCTD_SQLITE
+               prompt "pmacctd-sqlite: with SQLite database support"
+               tristate
+               select BR2_PACKAGE_PMACCT_SQLITE
+               select BR2_PACKAGE_LIBPCAP
+               select BR2_PACKAGE_LIBSQLITE
+
        config BR2_PACKAGE_PMACCTD_CUSTOM
                prompt "pmacctd-custom: customized to your needs"
                tristate
@@ -169,6 +197,13 @@ choice
                depends BR2_PACKAGE_PMACCTD_CUSTOM
                select BR2_PACKAGE_LIBPQ
 
+       config BR2_PACKAGE_PMACCTD_WITH_SQLITE
+               prompt "SQLite database support"
+               bool
+               default n
+               depends BR2_PACKAGE_PMACCTD_CUSTOM
+               select BR2_PACKAGE_LIBSQLITE
+
 endchoice
 
 config BR2_PACKAGE_PMACCT_CLIENT
index 0d604687465d89dcb42c687d25e2974a02aaab9d..fd657984b4756a56d4d9cd4268ae70f13de9e130 100644 (file)
@@ -3,12 +3,12 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=pmacct
-PKG_VERSION:=0.8.6
+PKG_VERSION:=0.10.0
 PKG_RELEASE:=1
-PKG_MD5SUM:=b725f7b4af335d2f668cb61621a5c2d9
+PKG_MD5SUM:=ed510e7ee2130d1f37f27901b89e985a
 
 PKG_SOURCE_URL:=http://www.ba.cnr.it/~paolo/pmacct/
-PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)rc2.tar.gz
 PKG_CAT:=zcat
 
 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
@@ -28,6 +28,11 @@ PMACCT_PGSQL_CONFIGURE_OPTS := \
        --with-pgsql-includes="$(STAGING_DIR)/usr/include" \
        --with-pgsql-libs="$(STAGING_DIR)/usr/lib"
 
+PMACCT_SQLITE_CONFIGURE_OPTS := \
+       --enable-sqlite3 \
+       --with-sqlite3-includes="$(STAGING_DIR)/usr/include" \
+       --with-sqlite3-libs="$(STAGING_DIR)/usr/lib"
+
 NFACCTD_CUSTOM_CONFIGURE_OPTS := \
 
 ifeq ($(BR2_PACKAGE_NFACCTD_ENABLE_DEBUG),y)
@@ -46,6 +51,10 @@ ifeq ($(BR2_PACKAGE_NFACCTD_WITH_PGSQL),y)
 NFACCTD_CUSTOM_CONFIGURE_OPTS += $(PMACCT_PGSQL_CONFIGURE_OPTS)
 endif
 
+ifeq ($(BR2_PACKAGE_NFACCTD_WITH_SQLITE),y)
+NFACCTD_CUSTOM_CONFIGURE_OPTS += $(PMACCT_SQLITE_CONFIGURE_OPTS)
+endif
+
 PMACCTD_CUSTOM_CONFIGURE_OPTS := \
 
 ifeq ($(BR2_PACKAGE_PMACCTD_ENABLE_DEBUG),y)
@@ -64,6 +73,10 @@ ifeq ($(BR2_PACKAGE_PMACCTD_WITH_PGSQL),y)
 PMACCTD_CUSTOM_CONFIGURE_OPTS += $(PMACCT_PGSQL_CONFIGURE_OPTS)
 endif
 
+ifeq ($(BR2_PACKAGE_PMACCTD_WITH_SQLITE),y)
+PMACCTD_CUSTOM_CONFIGURE_OPTS += $(PMACCT_SQLITE_CONFIGURE_OPTS)
+endif
+
 define PKG_build
 
 ifneq ($(BR2_PACKAGE_$(1)),)
@@ -79,30 +92,30 @@ $(PKG_BUILD_DIR)/$(2) $(PKG_BUILD_DIR)/$(3): $(PKG_BUILD_DIR)/.prepared
                CPPFLAGS="-I$(STAGING_DIR)/usr/include" \
                LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
                ./configure \
-                 --target=$(GNU_TARGET_NAME) \
-                 --host=$(GNU_TARGET_NAME) \
-                 --build=$(GNU_HOST_NAME) \
-                 --program-prefix="" \
-                 --program-suffix="" \
-                 --prefix=/usr \
-                 --exec-prefix=/usr \
-                 --bindir=/usr/sbin \
-                 --datadir=/usr/share \
-                 --includedir=/usr/include \
-                 --infodir=/usr/share/info \
-                 --libdir=/usr/lib \
-                 --libexecdir=/usr/lib/locate \
-                 --localstatedir=/var/lib \
-                 --mandir=/usr/share/man \
-                 --sbindir=/usr/sbin \
-                 --sysconfdir=/etc \
-                 $(DISABLE_LARGEFILE) \
-                 $(DISABLE_NLS) \
-                 --enable-shared \
-                 --disable-static \
-                 --with-pcap-includes="$(STAGING_DIR)/usr/include" \
-                 --with-pcap-libs="$(STAGING_DIR)/usr/lib" \
-                 $$($(1)_CONFIGURE_OPTS) \
+                       --target=$(GNU_TARGET_NAME) \
+                       --host=$(GNU_TARGET_NAME) \
+                       --build=$(GNU_HOST_NAME) \
+                       --program-prefix="" \
+                       --program-suffix="" \
+                       --prefix=/usr \
+                       --exec-prefix=/usr \
+                       --bindir=/usr/sbin \
+                       --datadir=/usr/share \
+                       --includedir=/usr/include \
+                       --infodir=/usr/share/info \
+                       --libdir=/usr/lib \
+                       --libexecdir=/usr/lib/locate \
+                       --localstatedir=/var/lib \
+                       --mandir=/usr/share/man \
+                       --sbindir=/usr/sbin \
+                       --sysconfdir=/etc \
+                       $(DISABLE_LARGEFILE) \
+                       $(DISABLE_NLS) \
+                       --enable-shared \
+                       --disable-static \
+                       --with-pcap-includes="$(STAGING_DIR)/usr/include" \
+                       --with-pcap-libs="$(STAGING_DIR)/usr/lib" \
+                       $$($(1)_CONFIGURE_OPTS) \
        );
        $(MAKE) -C $(PKG_BUILD_DIR) \
                $(TARGET_CONFIGURE_OPTS) \
@@ -131,26 +144,31 @@ endef
 $(eval $(call PKG_template,NFACCTD_BASIC,nfacctd,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
 $(eval $(call PKG_template,NFACCTD_MYSQL,nfacctd-mysql,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
 $(eval $(call PKG_template,NFACCTD_PGSQL,nfacctd-pgsql,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
+$(eval $(call PKG_template,NFACCTD_SQLITE,nfacctd-sqlite,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
 $(eval $(call PKG_template,NFACCTD_CUSTOM,nfacctd-custom,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
 $(eval $(call PKG_template,PMACCTD_BASIC,pmacctd,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
 $(eval $(call PKG_template,PMACCTD_MYSQL,pmacctd-mysql,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
 $(eval $(call PKG_template,PMACCTD_PGSQL,pmacctd-pgsql,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
+$(eval $(call PKG_template,PMACCTD_SQLITE,pmacctd-sqlite,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
 $(eval $(call PKG_template,PMACCTD_CUSTOM,pmacctd-custom,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
 $(eval $(call PKG_template,PMACCT_CLIENT,pmacct-client,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
 
 $(eval $(call PKG_build,PMACCT_BASIC,nfacctd-basic,pmacctd-basic,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
 $(eval $(call PKG_build,PMACCT_MYSQL,nfacctd-mysql,pmacctd-mysql,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
 $(eval $(call PKG_build,PMACCT_PGSQL,nfacctd-pgsql,pmacctd-pgsql,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
+$(eval $(call PKG_build,PMACCT_SQLITE,nfacctd-sqlite,pmacctd-sqlite,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
 $(eval $(call PKG_build,NFACCTD_CUSTOM,nfacctd-custom,pmacctd-dummy,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
 $(eval $(call PKG_build,PMACCTD_CUSTOM,nfacctd-dummy,pmacctd-custom,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
 
 $(eval $(call PKG_package,NFACCTD_BASIC,nfacctd-basic,nfacctd,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
 $(eval $(call PKG_package,NFACCTD_MYSQL,nfacctd-mysql,nfacctd,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
 $(eval $(call PKG_package,NFACCTD_PGSQL,nfacctd-pgsql,nfacctd,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
+$(eval $(call PKG_package,NFACCTD_SQLITE,nfacctd-sqlite,nfacctd,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
 $(eval $(call PKG_package,NFACCTD_CUSTOM,nfacctd-custom,nfacctd,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
 $(eval $(call PKG_package,PMACCTD_BASIC,pmacctd-basic,pmacctd,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
 $(eval $(call PKG_package,PMACCTD_MYSQL,pmacctd-mysql,pmacctd,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
 $(eval $(call PKG_package,PMACCTD_PGSQL,pmacctd-pgsql,pmacctd,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
+$(eval $(call PKG_package,PMACCTD_SQLITE,pmacctd-sqlite,pmacctd,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
 $(eval $(call PKG_package,PMACCTD_CUSTOM,pmacctd-custom,pmacctd,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
 
 $(PKG_BUILD_DIR)/.configured:
diff --git a/openwrt/package/pmacct/ipkg/nfacctd-sqlite.control b/openwrt/package/pmacct/ipkg/nfacctd-sqlite.control
new file mode 100644 (file)
index 0000000..add8394
--- /dev/null
@@ -0,0 +1,6 @@
+Package: nfacctd-sqlite
+Priority: optional
+Section: net
+Description: a NetFlow accounting daemon,
+ built with SQLite database support
+Depends: libsqlite, libpcap
diff --git a/openwrt/package/pmacct/ipkg/pmacctd-sqlite.control b/openwrt/package/pmacct/ipkg/pmacctd-sqlite.control
new file mode 100644 (file)
index 0000000..ad8f7c9
--- /dev/null
@@ -0,0 +1,6 @@
+Package: pmacctd-sqlite
+Priority: optional
+Section: net
+Description: an IP accounting daemon,
+ built with SQLite database support
+Depends: libsqlite, libpcap