[arch-commits] Commit in sarg/repos/community-x86_64 (3 files)

Sergej Pupykin spupykin at archlinux.org
Wed Mar 11 11:35:07 UTC 2020


    Date: Wednesday, March 11, 2020 @ 11:35:06
  Author: spupykin
Revision: 594179

archrelease: copy trunk to community-x86_64

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

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

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-03-11 11:34:53 UTC (rev 594178)
+++ PKGBUILD	2020-03-11 11:35:06 UTC (rev 594179)
@@ -1,44 +0,0 @@
-# $Id$
-# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
-# Maintainer: JJDaNiMoTh <jjdanimoth.aur at gmail.com>
-# Contributor: Tino Reichardt <milky-archlinux at 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/PKGBUILD (from rev 594178, sarg/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-03-11 11:35:06 UTC (rev 594179)
@@ -0,0 +1,40 @@
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Maintainer: JJDaNiMoTh <jjdanimoth.aur at gmail.com>
+# Contributor: Tino Reichardt <milky-archlinux at mcmilk.de>
+
+pkgname=sarg
+pkgver=2.4.0
+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)
+sha256sums=('b4ca0f41f6467673b4c65c6798b44a8886f08180c055eb11c37a96dfc28cb5c3')
+
+prepare() {
+  cd "$srcdir"/$pkgname-$pkgver
+  sed -i 's|filelist.c|filelist.c fileobject.c|' CMakeLists.txt
+}
+
+build() {
+  cd "$srcdir"/$pkgname-$pkgver
+  cmake \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DSYSCONFDIR=/etc/sarg \
+    -DMANDIR=/usr/share/man/man1 \
+    .
+  make C_FLAGS="-Wno-error"
+}
+
+package() {
+  cd "$srcdir"/$pkgname-$pkgver
+  mkdir -p "$pkgdir"/usr/share/sarg "$pkgdir"/etc
+  make DESTDIR="$pkgdir" install
+}

Deleted: fix-sizes.patch
===================================================================
--- fix-sizes.patch	2020-03-11 11:34:53 UTC (rev 594178)
+++ fix-sizes.patch	2020-03-11 11:35:06 UTC (rev 594179)
@@ -1,45 +0,0 @@
-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) {



More information about the arch-commits mailing list