Date: Saturday, September 26, 2020 @ 10:12:51
  Author: jelle
Revision: 712428

Add perl optdependency and set LDFLAGS for FULL RELRO.

Added:
  visitors/trunk/ldflags.patch
Modified:
  visitors/trunk/PKGBUILD

---------------+
 PKGBUILD      |   13 ++++++++++---
 ldflags.patch |   16 ++++++++++++++++
 2 files changed, 26 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2020-09-26 09:44:59 UTC (rev 712427)
+++ PKGBUILD    2020-09-26 10:12:51 UTC (rev 712428)
@@ -4,15 +4,22 @@
 
 pkgname=visitors
 pkgver=0.7
-pkgrel=6
+pkgrel=7
 pkgdesc='A very fast web log analyzer'
 arch=('x86_64')
 url="http://www.hping.org/visitors/";
 license=('GPL2' 'custom')
 depends=('glibc')
-source=(http://www.hping.org/visitors/$pkgname-$pkgver.tar.gz)
-sha512sums=('41902a44d802b7318e0a2aec7b2947ca478cac94c97e071fefbae0ba67fe74d2985e7c27bdc64d8789d41ab46586a0478cc8f4b6ed83cb6a32139799cb328a11')
+optdepends=('perl: for iis2apache.pl')
+source=(http://www.hping.org/visitors/$pkgname-$pkgver.tar.gz ldflags.patch)
+sha512sums=('41902a44d802b7318e0a2aec7b2947ca478cac94c97e071fefbae0ba67fe74d2985e7c27bdc64d8789d41ab46586a0478cc8f4b6ed83cb6a32139799cb328a11'
+            
'898c3bac8f558d537fa673d1e2556882440dc2783444d01c1dbf5a2dac9c82e06b208cf6d60d4d867166b224716eb5195dbfe19b2e4a35ffa297375efd43b62e')
 
+prepare() {
+  cd "$srcdir"/${pkgname}_${pkgver}
+  patch -Np1 -i ${srcdir}/ldflags.patch
+}
+
 build() {
   cd "$srcdir"/${pkgname}_${pkgver}
   make

Added: ldflags.patch
===================================================================
--- ldflags.patch                               (rev 0)
+++ ldflags.patch       2020-09-26 10:12:51 UTC (rev 712428)
@@ -0,0 +1,16 @@
+diff -aur visitors_0.7.old/Makefile visitors_0.7/Makefile
+--- visitors_0.7.old/Makefile  2020-09-26 12:09:16.045972086 +0200
++++ visitors_0.7/Makefile      2020-09-26 12:09:48.899392633 +0200
+@@ -14,10 +14,10 @@
+ 
+ visitors.o: visitors.c blacklist.h
+ visitors: $(OBJ)
+-      $(CC) -o $(PRGNAME) $(CCOPT) $(DEBUG) $(OBJ)
++      $(CC) -o $(PRGNAME) $(CCOPT) $(LDFLAGS) $(DEBUG) $(OBJ)
+ 
+ .c.o:
+-      $(CC) -c $(CCOPT) $(DEBUG) $(COMPILE_TIME) $<
++      $(CC) -c $(CCOPT) $(LDFLAGS) $(DEBUG) $(COMPILE_TIME) $<
+ 
+ clean:
+       rm -rf $(PRGNAME) *.o

Reply via email to