Date: Monday, February 19, 2018 @ 09:31:59
  Author: spupykin
Revision: 296356

archrelease: copy trunk to community-x86_64

Added:
  sarg/repos/community-x86_64/PKGBUILD
    (from rev 296355, sarg/trunk/PKGBUILD)
  sarg/repos/community-x86_64/fix-sizes.patch
    (from rev 296355, sarg/trunk/fix-sizes.patch)
Deleted:
  sarg/repos/community-x86_64/PKGBUILD

-----------------+
 PKGBUILD        |   80 +++++++++++++++++++++++++++++-------------------------
 fix-sizes.patch |   45 ++++++++++++++++++++++++++++++
 2 files changed, 89 insertions(+), 36 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD    2018-02-19 09:31:46 UTC (rev 296355)
+++ PKGBUILD    2018-02-19 09:31:59 UTC (rev 296356)
@@ -1,36 +0,0 @@
-# $Id$
-# Maintainer: Sergej Pupykin <pupykin.s+a...@gmail.com>
-# Maintainer: JJDaNiMoTh <jjdanimoth....@gmail.com>
-# Contributor: Tino Reichardt <milky-archli...@mcmilk.de>
-
-pkgname=sarg
-pkgver=2.3.10
-pkgrel=1
-pkgdesc="Squid Analysis Report Generator"
-arch=('i686' 'x86_64')
-url="http://sarg.sourceforge.net";
-license=('GPL')
-depends=('gd' 'libldap')
-makedepends=('cmake')
-backup=('etc/sarg/css.tpl'
-       'etc/sarg/exclude_codes'
-       'etc/sarg/sarg.conf'
-       'etc/sarg/user_limit_block')
-source=(http://downloads.sourceforge.net/sourceforge/sarg/$pkgname-$pkgver.tar.gz)
-md5sums=('f3c5f9a55ffea1662f6ec88daa0c49c3')
-
-build() {
-  cd ${srcdir}/$pkgname-$pkgver
-  cmake \
-    -DCMAKE_INSTALL_PREFIX=/usr \
-    -DSYSCONFDIR=/etc/sarg \
-    -DMANDIR=/usr/share/man/man1 \
-    .
-  make
-}
-
-package() {
-  cd ${srcdir}/$pkgname-$pkgver
-  mkdir -p $pkgdir/usr/share/sarg $pkgdir/etc
-  make DESTDIR="$pkgdir" install
-}

Copied: sarg/repos/community-x86_64/PKGBUILD (from rev 296355, 
sarg/trunk/PKGBUILD)
===================================================================
--- PKGBUILD                            (rev 0)
+++ PKGBUILD    2018-02-19 09:31:59 UTC (rev 296356)
@@ -0,0 +1,44 @@
+# $Id$
+# Maintainer: Sergej Pupykin <pupykin.s+a...@gmail.com>
+# Maintainer: JJDaNiMoTh <jjdanimoth....@gmail.com>
+# Contributor: Tino Reichardt <milky-archli...@mcmilk.de>
+
+pkgname=sarg
+pkgver=2.3.11
+pkgrel=1
+pkgdesc="Squid Analysis Report Generator"
+arch=('x86_64')
+url="http://sarg.sourceforge.net";
+license=('GPL')
+depends=('gd' 'libldap')
+makedepends=('cmake')
+backup=('etc/sarg/css.tpl'
+       'etc/sarg/exclude_codes'
+       'etc/sarg/sarg.conf'
+       'etc/sarg/user_limit_block')
+source=(https://downloads.sourceforge.net/sourceforge/sarg/$pkgname-$pkgver.tar.gz
+       fix-sizes.patch)
+sha256sums=('d0f8fbefb5fdc716e75c778525d96ac9eef622d3de94da8d70e2bdc7ab81daa2'
+            '6034552698c55e012047feebc47640768202202f9cda8b1af1503e83722746f3')
+
+prepare() {
+  cd "$srcdir"/$pkgname-$pkgver
+  patch -p1 <"$srcdir"/fix-sizes.patch
+}
+
+build() {
+  cd "$srcdir"/$pkgname-$pkgver
+  export CFLAGS="$CFLAGS -Wno-error"
+  cmake \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DSYSCONFDIR=/etc/sarg \
+    -DMANDIR=/usr/share/man/man1 \
+    .
+  make
+}
+
+package() {
+  cd "$srcdir"/$pkgname-$pkgver
+  mkdir -p "$pkgdir"/usr/share/sarg "$pkgdir"/etc
+  make DESTDIR="$pkgdir" install
+}

Copied: sarg/repos/community-x86_64/fix-sizes.patch (from rev 296355, 
sarg/trunk/fix-sizes.patch)
===================================================================
--- fix-sizes.patch                             (rev 0)
+++ fix-sizes.patch     2018-02-19 09:31:59 UTC (rev 296356)
@@ -0,0 +1,45 @@
+diff -wbBur sarg-2.3.11/index.c sarg-2.3.11.my/index.c
+--- sarg-2.3.11/index.c        2018-01-14 21:00:22.000000000 +0300
++++ sarg-2.3.11.my/index.c     2018-02-19 12:20:15.896203347 +0300
+@@ -208,7 +208,7 @@
+                       m1=month / 16;
+                       if(month % 16 != 0) {
+                               m2=month % 16;
+-                              sprintf(monthnum,"%02d-%02d",m1,m2);
++                              sprintf(monthnum,"%02u-%02u",(unsigned 
int)m1,(unsigned int)m2);
+                               sprintf(monthname1,"%02d",m1);
+                               sprintf(monthname2,"%02d",m2);
+                               name_month(monthname1,sizeof(monthname1));
+@@ -269,7 +269,7 @@
+                               d1=day / 32;
+                               if(day % 32 != 0) {
+                                       d2=day % 32;
+-                                      sprintf(daynum,"%02d-%02d",d1,d2);
++                                      sprintf(daynum,"%02u-%02u",(unsigned 
int)d1,(unsigned int)d2);
+                               } else {
+                                       sprintf(daynum,"%02d",d1);
+                               }
+diff -wbBur sarg-2.3.11/report.c sarg-2.3.11.my/report.c
+--- sarg-2.3.11/report.c       2018-01-14 21:00:23.000000000 +0300
++++ sarg-2.3.11.my/report.c    2018-02-19 12:18:45.151207192 +0300
+@@ -54,7 +54,7 @@
+       char accsmart[MAXLEN];
+       char crc2[MAXLEN/2 -1];
+       char siteind[MAX_TRUNCATED_URL];
+-      char arqtt[256];
++      char arqtt[267];
+       char *oldurltt=NULL;
+       char oldaccdiatt[11],oldacchoratt[9];
+       char tmp3[MAXLEN];
+diff -wbBur sarg-2.3.11/userinfo.c sarg-2.3.11.my/userinfo.c
+--- sarg-2.3.11/userinfo.c     2013-06-01 22:02:04.000000000 +0400
++++ sarg-2.3.11.my/userinfo.c  2018-02-19 12:21:16.103200796 +0300
+@@ -67,7 +67,7 @@
+       int skip;
+       int flen;
+       int count, clen;
+-      char cstr[9];
++      char cstr[11];
+ 
+       last=NULL;
+       for (group=first_user_group ; group ; group=group->next) {

Reply via email to