[arch-commits] Commit in ncrack/repos (3 files)

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


    Date: Tuesday, July 7, 2020 @ 21:26:24
  Author: felixonmars
Revision: 660421

archrelease: copy trunk to community-staging-x86_64

Added:
  ncrack/repos/community-staging-x86_64/
  ncrack/repos/community-staging-x86_64/PKGBUILD
    (from rev 660420, ncrack/trunk/PKGBUILD)
  ncrack/repos/community-staging-x86_64/ncrack-nullcheck.patch
    (from rev 660420, ncrack/trunk/ncrack-nullcheck.patch)

------------------------+
 PKGBUILD               |   40 ++++++++++++++++++++++++++++++++++++++++
 ncrack-nullcheck.patch |   12 ++++++++++++
 2 files changed, 52 insertions(+)

Copied: ncrack/repos/community-staging-x86_64/PKGBUILD (from rev 660420, ncrack/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-07-07 21:26:24 UTC (rev 660421)
@@ -0,0 +1,40 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Daniel Micay <danielmicay at gmail.com>
+# Contributor: mickael9 <mickael9 at gmail dot com>
+
+pkgname=ncrack
+pkgver=0.7
+pkgrel=2
+pkgdesc='High-speed network authentication cracking tool'
+url='https://nmap.org/ncrack/'
+arch=('x86_64')
+license=('GPL2')
+depends=('openssl')
+source=(https://github.com/nmap/ncrack/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz
+        ncrack-nullcheck.patch)
+sha256sums=('f3f971cd677c4a0c0668cb369002c581d305050b3b0411e18dd3cb9cc270d14a'
+            'db38a84172ce548614c7e6f2f9f751b31e68716fe3ff68761c21f7e11d6143fc')
+sha512sums=('52b327b0330b2e46d71a9442fbacf8471462e093049b68b8f2fab008b7046762c82d0468d004cc042a1342082f5c6b5d20a792f028929a7f039bd8d5e2bd49e0'
+            'c5648363def2dd8c8f01e5b039824357383b465373f59912abcfcb150873e6702a848c15ce1eea802c64d8e0fd0d3e88ddac190a1b659cd1b23da020f36b1b0b')
+
+prepare() {
+  cd ${pkgname}-${pkgver}
+  patch -Np1 -i ../ncrack-nullcheck.patch
+}
+
+build() {
+  cd ${pkgname}-${pkgver}
+  CFLAGS+=' -fcommon' # https://wiki.gentoo.org/wiki/Gcc_10_porting_notes/fno_common
+  ./configure \
+    --prefix=/usr \
+    --without-openssl-header-check
+  make
+}
+
+package() {
+  cd ${pkgname}-${pkgver}
+  make install DESTDIR="${pkgdir}"
+  install -Dm 644 README.md CHANGELOG -t "${pkgdir}/usr/share/doc/${pkgname}"
+}
+
+# vim: ts=2 sw=2 et:

Copied: ncrack/repos/community-staging-x86_64/ncrack-nullcheck.patch (from rev 660420, ncrack/trunk/ncrack-nullcheck.patch)
===================================================================
--- community-staging-x86_64/ncrack-nullcheck.patch	                        (rev 0)
+++ community-staging-x86_64/ncrack-nullcheck.patch	2020-07-07 21:26:24 UTC (rev 660421)
@@ -0,0 +1,12 @@
+diff -ru ncrack-0.5/ncrack_resume.cc ncrack-0.5.new/ncrack_resume.cc
+--- ncrack-0.5/ncrack_resume.cc	2016-04-10 18:56:02.000000000 +0200
++++ ncrack-0.5.new/ncrack_resume.cc	2017-04-13 17:53:09.369522756 +0200
+@@ -527,7 +527,7 @@
+ 
+       j = 0;
+       buf[j++] = *q;
+-      while (*q != '\0' && j < sizeof(buf)) {
++      while ((q != NULL) && (j < sizeof(buf))) {
+         q++;
+         if (q - filestr >= filelen)
+           fatal("Corrupted file! Error 5\n");


More information about the arch-commits mailing list