[arch-commits] Commit in ipguard/repos (4 files)

Felix Yan felixonmars at archlinux.org
Tue Jul 7 21:26:31 UTC 2020


    Date: Tuesday, July 7, 2020 @ 21:26:31
  Author: felixonmars
Revision: 660424

archrelease: copy trunk to community-staging-x86_64

Added:
  ipguard/repos/community-staging-x86_64/
  ipguard/repos/community-staging-x86_64/PKGBUILD
    (from rev 660420, ipguard/trunk/PKGBUILD)
  ipguard/repos/community-staging-x86_64/build-fix-le.patch
    (from rev 660421, ipguard/trunk/build-fix-le.patch)
  ipguard/repos/community-staging-x86_64/pass-ldflags.patch
    (from rev 660421, ipguard/trunk/pass-ldflags.patch)

--------------------+
 PKGBUILD           |   36 ++++++++++++++++++++++++++++++++++++
 build-fix-le.patch |   24 ++++++++++++++++++++++++
 pass-ldflags.patch |   25 +++++++++++++++++++++++++
 3 files changed, 85 insertions(+)

Copied: ipguard/repos/community-staging-x86_64/PKGBUILD (from rev 660420, ipguard/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-07-07 21:26:31 UTC (rev 660424)
@@ -0,0 +1,36 @@
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Contributor: Sergej Pupykin <pupykin.s+arch at gmail.com>
+
+pkgname=ipguard
+pkgver=1.04
+pkgrel=6
+pkgdesc="ipguard - arp<->ip relation checking tool"
+arch=(x86_64)
+url="http://ipguard.deep.perm.ru/"
+license=("GPL")
+depends=(libpcap libnet)
+source=(http://ipguard.deep.perm.ru/files/$pkgname-$pkgver.tar.gz
+	build-fix-le.patch pass-ldflags.patch)
+md5sums=('7f44f7c31876f0d68792f02047e25409'
+         'b27cfc9e8ad4ef9459d7274a2e624831'
+         '4866f88e44fd806d545ec5191a41636b')
+
+prepare() {
+  cd "$srcdir"/$pkgname-$pkgver
+  patch -Np1 <../build-fix-le.patch
+  patch -Np1 <../pass-ldflags.patch
+  sed -i 's|$(PREFIX)/sbin|$(PREFIX)/bin|g' Makefile
+}
+
+build() {
+  cd "$srcdir"/$pkgname-$pkgver
+  CFLAGS+=' -fcommon' # https://wiki.gentoo.org/wiki/Gcc_10_porting_notes/fno_common
+  LDFLAGS=${LDFLAGS} CFLAGS="${CFLAGS} -DLIBNET_LIL_ENDIAN" make
+}
+
+package() {
+  cd "$srcdir"/$pkgname-$pkgver
+  make PREFIX="$pkgdir"/usr install
+  mkdir -p "$pkgdir"/usr/share
+  mv "$pkgdir"/usr/man "$pkgdir"/usr/share/
+}

Copied: ipguard/repos/community-staging-x86_64/build-fix-le.patch (from rev 660421, ipguard/trunk/build-fix-le.patch)
===================================================================
--- community-staging-x86_64/build-fix-le.patch	                        (rev 0)
+++ community-staging-x86_64/build-fix-le.patch	2020-07-07 21:26:31 UTC (rev 660424)
@@ -0,0 +1,24 @@
+diff -wbBur ipguard-1.02/Makefile ipguard-1.02.my/Makefile
+--- ipguard-1.02/Makefile	2008-11-24 15:33:11.000000000 +0300
++++ ipguard-1.02.my/Makefile	2008-12-11 17:23:07.000000000 +0300
+@@ -9,16 +9,16 @@
+ ETHERS?=/etc/ethers
+ 
+ ## FreeBSD
+-LOCALBASE=/usr/local
+-LIBNET_CONFIG=libnet11-config
++# LOCALBASE=/usr/local
++# LIBNET_CONFIG=libnet11-config
+ 
+ ## OpenBSD (tested by irix)
+ # LOCALBASE=/usr/local
+ # LIBNET_CONFIG=libnet-config-1.1
+ 
+ ## Linux
+-# LOCALBASE=/usr
+-# LIBNET_CONFIG=libnet-config
++LOCALBASE=/usr
++LIBNET_CONFIG=libnet-config
+ 
+ INCLUDES=`${LIBNET_CONFIG} --cflags`
+ LIBS=`${LIBNET_CONFIG} --libs` -lpcap -L${LOCALBASE}/lib

Copied: ipguard/repos/community-staging-x86_64/pass-ldflags.patch (from rev 660421, ipguard/trunk/pass-ldflags.patch)
===================================================================
--- community-staging-x86_64/pass-ldflags.patch	                        (rev 0)
+++ community-staging-x86_64/pass-ldflags.patch	2020-07-07 21:26:31 UTC (rev 660424)
@@ -0,0 +1,25 @@
+Only in ipguard-1.04.new: ethers.o
+Only in ipguard-1.04.new: ipguard.o
+diff -aur ipguard-1.04/Makefile ipguard-1.04.new/Makefile
+--- ipguard-1.04/Makefile	2010-07-12 05:46:36.000000000 +0200
++++ ipguard-1.04.new/Makefile	2019-09-22 15:25:20.293393602 +0200
+@@ -34,7 +34,7 @@
+ 
+ .c.o:
+ 	@echo Compiling $*.c
+-	@$(CC) -c $(CFLAGS) $(INCLUDES) $(DEFINES) $<
++	@$(CC) -c $(CFLAGS) $(CPPFLAGS) $(INCLUDES) $(DEFINES) $<
+ 
+ all:	start $(NAME)
+ 
+@@ -47,7 +47,7 @@
+ 
+ $(NAME): $(OBJS)
+ 	@echo Linking $@
+-	@$(CC) -o $@ $(OBJS) $(LIBS) $(STATIC)
++	@$(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS) $(STATIC)
+ 
+ clean:
+ 	@echo Cleaning OBJS
+Only in ipguard-1.04.new: packet.o
+Only in ipguard-1.04.new: system.o


More information about the arch-commits mailing list