diff options
author | Patrick Lauer <patrick@gentoo.org> | 2009-04-18 15:30:14 +0000 |
---|---|---|
committer | Patrick Lauer <patrick@gentoo.org> | 2009-04-18 15:30:14 +0000 |
commit | c9acc0a8fab78a8c11dca44be5ba6313521c675f (patch) | |
tree | 5adeec7677b571e86468929f50ca4490161a5df3 /net-analyzer | |
parent | Bump to 1.1, EAPI2ified, modified ebuild by Tim Harder. Closes #265823 (diff) | |
download | historical-c9acc0a8fab78a8c11dca44be5ba6313521c675f.tar.gz historical-c9acc0a8fab78a8c11dca44be5ba6313521c675f.tar.bz2 historical-c9acc0a8fab78a8c11dca44be5ba6313521c675f.zip |
Bump to 1.7. Fixes #266116
Package-Manager: portage-2.2_rc30/cvs/Linux x86_64
Diffstat (limited to 'net-analyzer')
-rw-r--r-- | net-analyzer/vnstat/ChangeLog | 9 | ||||
-rw-r--r-- | net-analyzer/vnstat/Manifest | 4 | ||||
-rw-r--r-- | net-analyzer/vnstat/vnstat-1.7.ebuild | 70 |
3 files changed, 80 insertions, 3 deletions
diff --git a/net-analyzer/vnstat/ChangeLog b/net-analyzer/vnstat/ChangeLog index e9714c17517c..c37f2f283296 100644 --- a/net-analyzer/vnstat/ChangeLog +++ b/net-analyzer/vnstat/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for net-analyzer/vnstat -# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/vnstat/ChangeLog,v 1.32 2008/06/27 21:15:23 armin76 Exp $ +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/vnstat/ChangeLog,v 1.33 2009/04/18 15:30:14 patrick Exp $ + +*vnstat-1.7 (18 Apr 2009) + + 18 Apr 2009; Patrick Lauer <patrick@gentoo.org> +vnstat-1.7.ebuild: + Bump to 1.7. Fixes #266116 27 Jun 2008; Raúl Porcel <armin76@gentoo.org> -files/vnstat-1.4-dbdir.patch, -files/vnstat-1.4-long_iface_name.patch, diff --git a/net-analyzer/vnstat/Manifest b/net-analyzer/vnstat/Manifest index fdf84c1006c5..a84dd724ccbf 100644 --- a/net-analyzer/vnstat/Manifest +++ b/net-analyzer/vnstat/Manifest @@ -1,5 +1,7 @@ AUX vnstat.cron 220 RMD160 124b6157c62cbb853d72e9d6e556fc38d3d51d54 SHA1 ae4e13a7865195f18909d1f1a1a8fde662605777 SHA256 b6b437c680606061b98af19758cbacc3f883f73cd86f0bbfbcfe756c982cd3fd DIST vnstat-1.6.tar.gz 36888 RMD160 4aa0b4664a29a4201adbf7bb2184ff4858a60d46 SHA1 cadf3cb0c5bf1c19a47739ce611fe9eb6e2852a4 SHA256 80bac32b80c4b7bdead7a5a54229728a6bc11a9285493cd39946fe94b303d3c8 +DIST vnstat-1.7.tar.gz 61879 RMD160 6df5a34d706da506f6360e0ef5c06bf7000fa1b0 SHA1 6238cc975c05f10951bb217ecf8635fb594a85f0 SHA256 146ed44226dbb83e42a1f73052e674e5c859f6ff3700501c1429f7af1d3952ca EBUILD vnstat-1.6.ebuild 2043 RMD160 520d6a4b87baabe06c0ad61a26a5c3e317c3a0b5 SHA1 b2effe34a69231cc462414230a14bd220de75bdd SHA256 bdf31413d55be76691b6b067afdae8296a7b01d5f55c87bfaecedb933a223877 -MISC ChangeLog 4157 RMD160 4379780216d0e6d065b273fa015e6cd24d066592 SHA1 148da67e74bfa51fd9856e1ad6f771797b391f99 SHA256 83eafd74829da5c8a918684d6b6fb34f0aff6801463d2c2f417360fc5f749ddf +EBUILD vnstat-1.7.ebuild 2048 RMD160 1fc070747147437bc8a72bfa8b007b2a11a10afa SHA1 39ee66764b4e34660a84f7f2a56d59eca43e1b16 SHA256 0ef5f8a625c8b14c7d4561f36845b7f21396803e0f7c2d461d878e5e820c506f +MISC ChangeLog 4284 RMD160 017930acafda9ebacdb1b634d4ac5c471b9f23b4 SHA1 462ccd4daf3bb7e515ea6fdc33b9d57fa1d68cf3 SHA256 9db84894b40d6e70949dcfd6117b697dbe913077deccd68838be38954e6f6131 MISC metadata.xml 478 RMD160 2160f3a198353174ea16916049dbb29eabf0e52f SHA1 4c863c84cb01fc253ffdd3478e8c909411942dc3 SHA256 28925bec141a950acd9eff4f6c6bbf9732d4745134eb914501d60859408a49c4 diff --git a/net-analyzer/vnstat/vnstat-1.7.ebuild b/net-analyzer/vnstat/vnstat-1.7.ebuild new file mode 100644 index 000000000000..31a4a3f4a3ca --- /dev/null +++ b/net-analyzer/vnstat/vnstat-1.7.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/vnstat/vnstat-1.7.ebuild,v 1.1 2009/04/18 15:30:14 patrick Exp $ + +inherit eutils toolchain-funcs + +DESCRIPTION="Console-based network traffic monitor that keeps statistics of network usage" +HOMEPAGE="http://humdi.net/vnstat/" +SRC_URI="http://humdi.net/vnstat/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86" +IUSE="" + +RDEPEND="virtual/cron" + +src_compile() { + emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" || die "Compilation failed" +} + +src_install() { + dobin src/vnstat || die + exeinto /etc/cron.hourly + newexe "${FILESDIR}"/vnstat.cron vnstat + + insinto /etc + doins cfg/vnstat.conf + + doman man/vnstat.1 + + keepdir /var/lib/vnstat + + newdoc pppd/vnstat_ip-up ip-up.example + newdoc pppd/vnstat_ip-down ip-down.example + dodoc CHANGES README UPGRADE FAQ + newdoc INSTALL README.setup +} + +pkg_postinst() { + # compatibility for 1.1 ebuild + if [[ -d ${ROOT}/var/spool/vnstat ]] ; then + mv -f "${ROOT}"/var/spool/vnstat/* "${ROOT}"/var/lib/vnstat/ \ + && rmdir "${ROOT}"/var/spool/vnstat + elog "vnStat db files moved from /var/spool/vnstat to /var/lib/vnstat" + elog + fi + + elog "Repeat the following command for every interface you" + elog "wish to monitor (replace eth0):" + elog " vnstat -u -i eth0" + elog + elog "Note: if an interface transfers more than ~4GB in" + elog "the time between cron runs, you may miss traffic" + elog + + if [[ -e ${ROOT}/etc/cron.d/vnstat ]] ; then + elog "vnstat's cron script is now installed as /etc/cron.hourly/vnstat." + elog "Please remove /etc/cron.d/vnstat." + elog + else + elog "A cron script has been installed to /etc/cron.hourly/vnstat." + elog + fi + elog "To update your interface database automatically with" + elog "cron, uncomment the lines in /etc/cron.hourly/vnstat." + elog + elog "Starting with version 1.5 --dbdir option is droped. You can do the same" + elog "with DatabaseDir directive in configuration file (/etc/vnstat.conf)." +} |