mirror of https://github.com/hak5/openwrt-owl.git
update pmacct to new upstream release and add SQLite database support, the update in White Russian will follow later
SVN-Revision: 3245owl
parent
efc82b9580
commit
265e95a92c
|
@ -488,6 +488,9 @@ endif
|
||||||
ifneq ($(BR2_COMPILE_PMACCT_PGSQL),)
|
ifneq ($(BR2_COMPILE_PMACCT_PGSQL),)
|
||||||
pmacct-compile: postgresql-compile
|
pmacct-compile: postgresql-compile
|
||||||
endif
|
endif
|
||||||
|
ifneq ($(BR2_COMPILE_PMACCT_SQLITE),)
|
||||||
|
pmacct-compile: sqlite-compile
|
||||||
|
endif
|
||||||
|
|
||||||
rrs-compile: uclibc++-compile
|
rrs-compile: uclibc++-compile
|
||||||
ifneq ($(BR2_PACKAGE_RRS),)
|
ifneq ($(BR2_PACKAGE_RRS),)
|
||||||
|
|
|
@ -3,7 +3,7 @@ menu "pmacct............................ IPv4/IPv6 accounting and aggregation to
|
||||||
config BR2_COMPILE_PMACCT
|
config BR2_COMPILE_PMACCT
|
||||||
tristate
|
tristate
|
||||||
default n
|
default n
|
||||||
depends BR2_COMPILE_PMACCT_BASIC || BR2_COMPILE_PMACCT_MYSQL || BR2_COMPILE_PMACCT_PGSQL || BR2_COMPILE_PMACCT_CUSTOM
|
depends BR2_COMPILE_PMACCT_BASIC || BR2_COMPILE_PMACCT_MYSQL || BR2_COMPILE_PMACCT_PGSQL || BR2_COMPILE_PMACCT_SQLITE || BR2_COMPILE_PMACCT_CUSTOM
|
||||||
|
|
||||||
config BR2_COMPILE_PMACCT_BASIC
|
config BR2_COMPILE_PMACCT_BASIC
|
||||||
tristate
|
tristate
|
||||||
|
@ -23,6 +23,12 @@ config BR2_COMPILE_PMACCT_PGSQL
|
||||||
depends BR2_PACKAGE_NFACCTD_PGSQL || BR2_PACKAGE_PMACCTD_PGSQL
|
depends BR2_PACKAGE_NFACCTD_PGSQL || BR2_PACKAGE_PMACCTD_PGSQL
|
||||||
select BR2_COMPILE_PMACCT
|
select BR2_COMPILE_PMACCT
|
||||||
|
|
||||||
|
config BR2_COMPILE_PMACCT_SQLITE
|
||||||
|
tristate
|
||||||
|
default n
|
||||||
|
depends BR2_PACKAGE_NFACCTD_SQLITE || BR2_PACKAGE_PMACCTD_SQLITE
|
||||||
|
select BR2_COMPILE_PMACCT
|
||||||
|
|
||||||
config BR2_COMPILE_PMACCT_CUSTOM
|
config BR2_COMPILE_PMACCT_CUSTOM
|
||||||
tristate
|
tristate
|
||||||
default n
|
default n
|
||||||
|
@ -43,6 +49,8 @@ choice
|
||||||
Depends:
|
Depends:
|
||||||
- libmysqlclient (for MySQL database logging support)
|
- libmysqlclient (for MySQL database logging support)
|
||||||
- libpq (for PostgreSQL database logging support)
|
- libpq (for PostgreSQL database logging support)
|
||||||
|
- libsqlite (for SQLite database logging support)
|
||||||
|
|
||||||
|
|
||||||
config BR2_PACKAGE_NFACCTD_BASIC
|
config BR2_PACKAGE_NFACCTD_BASIC
|
||||||
prompt "nfacctd....................... built without database support"
|
prompt "nfacctd....................... built without database support"
|
||||||
|
@ -64,6 +72,13 @@ choice
|
||||||
select BR2_PACKAGE_LIBPCAP
|
select BR2_PACKAGE_LIBPCAP
|
||||||
select BR2_PACKAGE_LIBPQ
|
select BR2_PACKAGE_LIBPQ
|
||||||
|
|
||||||
|
config BR2_PACKAGE_NFACCTD_SQLITE
|
||||||
|
prompt "nfacctd-sqlite................ built with SQLite database support"
|
||||||
|
tristate
|
||||||
|
select BR2_COMPILE_PMACCT_SQLITE
|
||||||
|
select BR2_PACKAGE_LIBPCAP
|
||||||
|
select BR2_PACKAGE_LIBSQLITE
|
||||||
|
|
||||||
config BR2_PACKAGE_NFACCTD_CUSTOM
|
config BR2_PACKAGE_NFACCTD_CUSTOM
|
||||||
prompt "nfacctd-custom................ customized to your needs"
|
prompt "nfacctd-custom................ customized to your needs"
|
||||||
tristate
|
tristate
|
||||||
|
@ -96,6 +111,13 @@ choice
|
||||||
depends BR2_PACKAGE_NFACCTD_CUSTOM
|
depends BR2_PACKAGE_NFACCTD_CUSTOM
|
||||||
select BR2_PACKAGE_LIBPQ
|
select BR2_PACKAGE_LIBPQ
|
||||||
|
|
||||||
|
config BR2_COMPILE_NFACCTD_WITH_SQLITE
|
||||||
|
prompt "SQLite database support"
|
||||||
|
bool
|
||||||
|
default n
|
||||||
|
depends BR2_PACKAGE_NFACCTD_CUSTOM
|
||||||
|
select BR2_PACKAGE_LIBSQLITE
|
||||||
|
|
||||||
endchoice
|
endchoice
|
||||||
|
|
||||||
choice
|
choice
|
||||||
|
@ -113,6 +135,7 @@ choice
|
||||||
- libpcap
|
- libpcap
|
||||||
- libmysqlclient (for MySQL database logging support)
|
- libmysqlclient (for MySQL database logging support)
|
||||||
- libpq (for PostgreSQL database logging support)
|
- libpq (for PostgreSQL database logging support)
|
||||||
|
- libsqlite (for SQLite database logging support)
|
||||||
|
|
||||||
|
|
||||||
config BR2_PACKAGE_PMACCTD_BASIC
|
config BR2_PACKAGE_PMACCTD_BASIC
|
||||||
|
@ -135,6 +158,13 @@ choice
|
||||||
select BR2_PACKAGE_LIBPCAP
|
select BR2_PACKAGE_LIBPCAP
|
||||||
select BR2_PACKAGE_LIBPQ
|
select BR2_PACKAGE_LIBPQ
|
||||||
|
|
||||||
|
config BR2_PACKAGE_PMACCTD_SQLITE
|
||||||
|
prompt "pmacctd-sqlite................ built with SQLite database support"
|
||||||
|
tristate
|
||||||
|
select BR2_COMPILE_PMACCT_PGSQL
|
||||||
|
select BR2_PACKAGE_LIBPCAP
|
||||||
|
select BR2_PACKAGE_LIBPQ
|
||||||
|
|
||||||
config BR2_PACKAGE_PMACCTD_CUSTOM
|
config BR2_PACKAGE_PMACCTD_CUSTOM
|
||||||
prompt "pmacctd-custom................ customized to your needs"
|
prompt "pmacctd-custom................ customized to your needs"
|
||||||
tristate
|
tristate
|
||||||
|
@ -167,6 +197,13 @@ choice
|
||||||
depends BR2_PACKAGE_PMACCTD_CUSTOM
|
depends BR2_PACKAGE_PMACCTD_CUSTOM
|
||||||
select BR2_PACKAGE_LIBPQ
|
select BR2_PACKAGE_LIBPQ
|
||||||
|
|
||||||
|
config BR2_COMPILE_PMACCTD_WITH_SQLITE
|
||||||
|
prompt "SQLite database support"
|
||||||
|
bool
|
||||||
|
default n
|
||||||
|
depends BR2_PACKAGE_PMACCTD_CUSTOM
|
||||||
|
select BR2_PACKAGE_LIBSQLITE
|
||||||
|
|
||||||
endchoice
|
endchoice
|
||||||
|
|
||||||
config BR2_PACKAGE_PMACCT_CLIENT
|
config BR2_PACKAGE_PMACCT_CLIENT
|
||||||
|
|
|
@ -3,12 +3,12 @@
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=pmacct
|
PKG_NAME:=pmacct
|
||||||
PKG_VERSION:=0.8.7
|
PKG_VERSION:=0.10.0
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=1
|
||||||
PKG_MD5SUM:=3da0205de772fb6d915e03cadf2a8e9b
|
PKG_MD5SUM:=ed510e7ee2130d1f37f27901b89e985a
|
||||||
|
|
||||||
PKG_SOURCE_URL:=http://www.ba.cnr.it/~paolo/pmacct/
|
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_CAT:=zcat
|
||||||
|
|
||||||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
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-includes="$(STAGING_DIR)/usr/include" \
|
||||||
--with-pgsql-libs="$(STAGING_DIR)/usr/lib"
|
--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 := \
|
NFACCTD_CUSTOM_CONFIGURE_OPTS := \
|
||||||
|
|
||||||
ifeq ($(BR2_PACKAGE_NFACCTD_ENABLE_DEBUG),y)
|
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)
|
NFACCTD_CUSTOM_CONFIGURE_OPTS += $(PMACCT_PGSQL_CONFIGURE_OPTS)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(BR2_PACKAGE_NFACCTD_WITH_SQLITE),y)
|
||||||
|
NFACCTD_CUSTOM_CONFIGURE_OPTS += $(PMACCT_SQLITE_CONFIGURE_OPTS)
|
||||||
|
endif
|
||||||
|
|
||||||
PMACCTD_CUSTOM_CONFIGURE_OPTS := \
|
PMACCTD_CUSTOM_CONFIGURE_OPTS := \
|
||||||
|
|
||||||
ifeq ($(BR2_PACKAGE_PMACCTD_ENABLE_DEBUG),y)
|
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)
|
PMACCTD_CUSTOM_CONFIGURE_OPTS += $(PMACCT_PGSQL_CONFIGURE_OPTS)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(BR2_PACKAGE_PMACCTD_WITH_SQLITE),y)
|
||||||
|
PMACCTD_CUSTOM_CONFIGURE_OPTS += $(PMACCT_SQLITE_CONFIGURE_OPTS)
|
||||||
|
endif
|
||||||
|
|
||||||
define PKG_build
|
define PKG_build
|
||||||
|
|
||||||
ifneq ($(BR2_PACKAGE_$(1)),)
|
ifneq ($(BR2_PACKAGE_$(1)),)
|
||||||
|
@ -131,26 +144,31 @@ endef
|
||||||
$(eval $(call PKG_template,NFACCTD_BASIC,nfacctd,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
|
$(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_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_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,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_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_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_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,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_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_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_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_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,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_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_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_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_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,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_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_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_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)))
|
$(eval $(call PKG_package,PMACCTD_CUSTOM,pmacctd-custom,pmacctd,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
|
||||||
|
|
||||||
$(PKG_BUILD_DIR)/.configured:
|
$(PKG_BUILD_DIR)/.configured:
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
Package: nfacctd-sqlite
|
||||||
|
Priority: optional
|
||||||
|
Section: net
|
||||||
|
Description: a NetFlow accounting daemon,
|
||||||
|
built with SQLite database support
|
||||||
|
Depends: libsqlite, libpcap
|
|
@ -0,0 +1,6 @@
|
||||||
|
Package: pmacctd-sqlite
|
||||||
|
Priority: optional
|
||||||
|
Section: net
|
||||||
|
Description: an IP accounting daemon,
|
||||||
|
built with SQLite database support
|
||||||
|
Depends: libsqlite, libpcap
|
Loading…
Reference in New Issue