@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME := bandwidthd
PKG_VERSION := 2.0.1
PKG_RELEASE := 4
PKG_RELEASE := 5
PKG_SOURCE := $( PKG_NAME) -$( PKG_VERSION) .tgz
PKG_SOURCE_URL := @SF/bandwidthd
@ -18,22 +18,50 @@ PKG_MD5SUM:=aa79aad7bd489fd2cae1f7dc086ca8b6
PKG_MAINTAINER := Jean-Michel Lacroix <lacroix@lepine-lacroix.info>
PKG_LICENSE := GPL-2.0
PKG_LICENSE_FILES :=
PKG_BUILD_DIR := $( BUILD_DIR) /$( PKG_NAME) -$( BUILD_VARIANT) /$( PKG_NAME) -$( PKG_VERSION)
i n c l u d e $( INCLUDE_DIR ) / p a c k a g e . m k
d e f i n e P a c k a g e / b a n d w i d t h d
d e f i n e P a c k a g e / b a n d w i d t h d / D e f a u l t
SECTION:= utils
CATEGORY:= Utilities
TITLE:= Bandwidthd
URL:= http://bandwidthd.sourceforge.net/
e n d e f
d e f i n e P a c k a g e / b a n d w i d t h d
$( call Package /bandwidthd /Default )
TITLE += ( without postgresql)
VARIANT:= no-pgsql
DEPENDS:= +libgd +libpcap
e n d e f
d e f i n e P a c k a g e / b a n d w i d t h d - p g s q l
$( call Package /bandwidthd /Default )
TITLE += ( with postgresql enabled)
VARIANT:= pgsql
DEPENDS:= +libgd +libpcap +libpq
e n d e f
d e f i n e P a c k a g e / b a n d w i d t h d / d e s c r i p t i o n
A bandwidthd tracking utility.
e n d e f
d e f i n e P a c k a g e / b a n d w i d t h d - p g s q l / d e s c r i p t i o n
$( call Package /bandwidthd /description )
W i t h t h e a b i l i t y t o s t o r e i n a p o s t g r e s q l d a t a b a s e .
e n d e f
d e f i n e P a c k a g e / b a n d w i d t h d / d a e m o n
This package contains bandwidthd a bandwith tracking utility.
e n d e f
d e f i n e P a c k a g e / b a n d w i d t h d - p g s q l / d a e m o n
This package contains bandwidthd a bandwith tracking utility.
e n d e f
i f e q ( $( BUILD_VARIANT ) , n o - p g s q l )
CONFIGURE_ARGS += \
ac_cv_file__sw_lib = no \
ac_cv_file__sw_include = no \
@ -41,7 +69,18 @@ CONFIGURE_ARGS += \
ac_cv_file__usr_pkg_include = no \
ac_cv_file__usr_local_pgsql_lib = no \
ac_cv_file__usr_local_pgsql_include = no \
ac_cv_lib_pq_PQconnectdb = no \
ac_cv_lib_pq_PQconnectdb = no
e n d i f
i f e q ( $( BUILD_VARIANT ) , p g s q l )
CONFIGURE_ARGS += \
ac_cv_file__sw_lib = no \
ac_cv_file__sw_include = no \
ac_cv_file__usr_pkg_lib = no \
ac_cv_file__usr_pkg_include = no \
ac_cv_file__usr_local_pgsql_lib = no \
ac_cv_file__usr_local_pgsql_include = no
e n d i f
EXTRA_CFLAGS += $( TARGET_CPPFLAGS)
EXTRA_LDFLAGS += $( TARGET_LDFLAGS) -Wl,-rpath-link,$( STAGING_DIR) /usr/lib
@ -58,8 +97,28 @@ define Package/bandwidthd/install
$( INSTALL_DATA) $( PKG_BUILD_DIR) /htdocs/logo.gif $( 1) /www/
e n d e f
d e f i n e P a c k a g e / b a n d w i d t h d - p g s q l / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/sbin
$( INSTALL_BIN) $( PKG_BUILD_DIR) /bandwidthd $( 1) /usr/sbin/
$( INSTALL_DIR) $( 1) /etc/config
$( INSTALL_DATA) ./files/bandwidthd-pgsql.config $( 1) /etc/config/bandwidthd
$( INSTALL_DIR) $( 1) /etc/init.d
$( INSTALL_BIN) ./files/bandwidthd-pgsql.init $( 1) /etc/init.d/bandwidthd
$( INSTALL_DIR) $( 1) /www/phphtdocs
$( INSTALL_DATA) $( PKG_BUILD_DIR) /htdocs/legend.gif $( 1) /www/
$( INSTALL_DATA) ./files/logo.gif $( 1) /www/
$( INSTALL_DIR) $( 1) /usr/share/postgresql
$( INSTALL_DATA) $( PKG_BUILD_DIR) /schema.postgresql $( 1) /usr/share/postgresql
$( INSTALL_BIN) $( PKG_BUILD_DIR) /phphtdocs/bd_pgsql_purge.sh $( 1) /usr/share/postgresql
e n d e f
d e f i n e P a c k a g e / b a n d w i d t h d / c o n f f i l e s
/ e t c / c o n f i g / b a n d w i d t h d
e n d e f
d e f i n e P a c k a g e / b a n d w i d t h d - p g s q l / c o n f f i l e s
/ e t c / c o n f i g / b a n d w i d t h d
e n d e f
$( eval $ ( call BuildPackage ,bandwidthd ) )
$( eval $ ( call BuildPackage ,bandwidthd -pgsql ) )