Commit Graph

9 Commits

Author SHA1 Message Date
Jeffery To 53e1692ae9 treewide: Use default PKG_BUILD_DIR when possible
This removes lines that set PKG_BUILD_DIR when the set value is no
different from the default value.

Specifically, the line is removed if the assigned value is:

* $(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)

  The default PKG_BUILD_DIR was updated[1] to incorporate BUILD_VARIANT
  if it is set, so now this is identical to the default value.

* $(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_SOURCE_SUBDIR)

  if PKG_SOURCE_SUBDIR is set to $(PKG_NAME)-$(PKG_VERSION), making it
  the same as the previous case

* $(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)

  This is the same as the default PKG_BUILD_DIR when there is no
  BUILD_VARIANT.

* $(BUILD_DIR)/[name]-$(PKG_VERSION)

  where [name] is a string that is identical to PKG_NAME

[1]: https://git.openwrt.org/?p=openwrt/openwrt.git;a=commit;h=e545fac8d968864a965edb9e50c6f90940b0a6c9

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2019-10-13 02:01:34 +08:00
Guo Li 3f1b4c61ea bandwidthd: fix undefined references to inline functions
gcc-7 with -Os makes inline functions disappeard. It are caused by
the new C11 inline semantics. pass option -fgnu89-inline to gcc let
it use gnu inline semantics.
see https://wiki.debian.org/GCC7#Porting_help

bandwidthd.o: In function `RCDF_Load':
bandwidthd.c:(.text+0xb33): undefined reference to `FindIp'
bandwidthd.o: In function `PacketCallback':
bandwidthd.c:(.text+0x11d0): undefined reference to `FindIp'
bandwidthd.c:(.text+0x11e2): undefined reference to `Credit'
bandwidthd.c:(.text+0x11ea): undefined reference to `FindIp'
bandwidthd.c:(.text+0x11fc): undefined reference to `Credit'
bandwidthd.c:(.text+0x1218): undefined reference to `FindIp'
bandwidthd.c:(.text+0x122a): undefined reference to `Credit'
bandwidthd.c:(.text+0x1232): undefined reference to `FindIp'
bandwidthd.c:(.text+0x1244): undefined reference to `Credit'
collect2: error: ld returned 1 exit status
Makefile:20: recipe for target 'bandwidthd' failed
make[4]: *** [bandwidthd] Error 1

Signed-off-by: Guo Li <uxgood.org@gmail.com>
2018-09-30 00:36:07 +08:00
Rosen Penev c469b1345c bandwidthd: Update to 2.0.1-35
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2018-06-09 18:36:58 -07:00
Etienne Champetier 4006865ae8 treewide: run "make check FIXUP=1"
fix Makefile chmod (644)
replace MD5SUM with HASH
add PKG_MIRROR_HASH when PKG_SOURCE_PROTO:=git

(PKG_SOURCE_PROTO:=svn tarballs are not reproducible for now)

Signed-off-by: Etienne Champetier <champetier.etienne@gmail.com>
2017-08-29 21:41:14 -07:00
Jean-Michel Lacroix 5c9665a070 bandwidthd: update to 2.0.1-34, sqlite support and SMTP tracking
Addition of sqlite storage
Tracking of SMTP traffic instead of P2P traffic
Based on NethServer bandwidthd implementation

Signed-off-by: Jean-Michel lacroix <lacroix@lepine-lacroix.info>
2017-01-01 12:44:56 -05:00
Stefan Weil b5738a3878 utils: Fix typos (found by codespell)
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2016-03-26 09:53:01 +01:00
Jean-Michel Lacroix 6b0288785c bandwidthd: fix build with gcc5
This is a small fix to allow the package to compile with gcc5
Addition of the -std=gnu89 CFLAGS.
Small correction of the copyright date of file bandwidthd.init

Signed-off-by: Jean-Michel Lacroix <lacroix@lepine-lacroix.info>
2015-11-24 09:45:45 -05:00
Jean-Michel Lacroix b885721fa0 bandwidthd: Addition of a variant of the bandwidthd package.
Addition of the bandwidthd-pgsql package variant that can save also
in a postgres database.

Modification of bandwidthd.config to have the default IP address
of an OpenWrt router (192.168.1.1)

Addition of a small OpenWrt logo in the logo.gif

Compile tested on CC and trunk (ar71xx and mvebu in both cases)
run tested on CC (ar71xx) and trunk (r47397 on mvebu)

Signed-off-by: Jean-Michel Lacroix <lacroix@lepine-lacroix.info>
2015-11-10 15:13:52 -05:00
Jean-Michel Lacroix ca4bdeaba6 Addition of bandwidthd from the oldpackages
Signed-off-by: Jean-Michel Lacroix lacroix@lepine-lacroix.info
2015-10-14 09:52:13 -04:00