LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1125|回复: 2

[PKGBUILD] SARG - Squid Analysis Report Generator 2.2.2

[复制链接]
发表于 2006-10-20 15:47:00 | 显示全部楼层 |阅读模式

  1. # Contributor: Fluke <fluke@sfcube.net>

  2. pkgname=sarg
  3. pkgver=2.2.2
  4. pkgrel=3
  5. pkgdesc="Squid Analysis Report Generator is a tool that allow you to view "where" your users are going to on the Internet."
  6. url="http://sarg.sourceforge.net/"
  7. depends=('squid')
  8. source=(http://puzzle.dl.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz)
  9. md5sums=('299f989f09d8b3c5218578eda7af724d')

  10. build() {
  11.   cd $startdir/src/$pkgname-$pkgver
  12.   sed -e 's\#access_log /usr/local/squid/var/logs/access.log\access_log /var/log/squid/access.log\g' sarg.conf > tmp
  13.   mv tmp sarg.conf
  14.   ./configure
  15.   make PREFIX=/usr || return 1
  16.   make PREFIX=/usr DESTDIR=$startdir/pkg install
  17. }

复制代码


很好用阿
发表于 2006-10-20 15:54:31 | 显示全部楼层
图?......
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-10-20 18:03:46 | 显示全部楼层
这是一个squid日志分析软件,能从html方便查看用户使用记录,方便计费等等。

配置文件在/etc/local/sarg/sarg.conf

里面可以配置输出目录,我默认没有配置这个,留给用户自己配置,我这里让他输出到我的htdocs目录里面去,方便在线查看。

配置文件里面已经设置好了挂接到arch标准安装的squid的日志文件里面。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表