[arch-commits] Commit in sarg/trunk (PKGBUILD fix-sizes.patch)
Sergej Pupykin
spupykin at archlinux.org
Wed Mar 11 11:34:54 UTC 2020
Date: Wednesday, March 11, 2020 @ 11:34:53
Author: spupykin
Revision: 594178
upgpkg: sarg 2.4.0-1
Modified:
sarg/trunk/PKGBUILD
Deleted:
sarg/trunk/fix-sizes.patch
-----------------+
PKGBUILD | 13 +++++--------
fix-sizes.patch | 45 ---------------------------------------------
2 files changed, 5 insertions(+), 53 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-03-11 11:32:34 UTC (rev 594177)
+++ PKGBUILD 2020-03-11 11:34:53 UTC (rev 594178)
@@ -3,7 +3,7 @@
# Contributor: Tino Reichardt <milky-archlinux at mcmilk.de>
pkgname=sarg
-pkgver=2.3.11
+pkgver=2.4.0
pkgrel=1
pkgdesc="Squid Analysis Report Generator"
arch=('x86_64')
@@ -15,25 +15,22 @@
'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')
+source=(https://downloads.sourceforge.net/sourceforge/sarg/$pkgname-$pkgver.tar.gz)
+sha256sums=('b4ca0f41f6467673b4c65c6798b44a8886f08180c055eb11c37a96dfc28cb5c3')
prepare() {
cd "$srcdir"/$pkgname-$pkgver
- patch -p1 <"$srcdir"/fix-sizes.patch
+ sed -i 's|filelist.c|filelist.c fileobject.c|' CMakeLists.txt
}
build() {
cd "$srcdir"/$pkgname-$pkgver
- export CFLAGS="$CFLAGS -Wno-error"
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DSYSCONFDIR=/etc/sarg \
-DMANDIR=/usr/share/man/man1 \
.
- make
+ make C_FLAGS="-Wno-error"
}
package() {
Deleted: fix-sizes.patch
===================================================================
--- fix-sizes.patch 2020-03-11 11:32:34 UTC (rev 594177)
+++ fix-sizes.patch 2020-03-11 11:34:53 UTC (rev 594178)
@@ -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