Package Details: ike-scan 1.9.5-1

Git Clone URL: https://aur.archlinux.org/ike-scan.git (read-only, click to copy)
Package Base: ike-scan
Description: A tool that uses IKE protocol to discover, fingerprint and test IPSec VPN servers
Upstream URL: https://github.com/royhills/ike-scan/archive/refs/tags
Licenses: GPL
Submitter: xav
Maintainer: severach
Last Packager: severach
Votes: 16
Popularity: 0.000000
First Submitted: 2009-02-24 12:32 (UTC)
Last Updated: 2022-04-18 03:10 (UTC)

Dependencies (1)

Required by (1)

Sources (1)

Latest Comments

jnbrains commented on 2024-09-13 15:00 (UTC)

Yep. But... if you want to build from git (master branch by default), a new ike-scan-git package would be more proper. And just FIY, the master branch builds an older version (1.9.4something), and NOT 1.9.5, without the need to be patched. Cheers

weltio commented on 2024-09-13 09:12 (UTC)

using the git version works as well:

set -u
pkgname='ike-scan-git'
_pkgname='ike-scan'
pkgver='1.9.5'
pkgrel='1'
pkgdesc='A tool that uses IKE protocol to discover, fingerprint and test IPSec VPN servers'
arch=('i686' 'x86_64')
license=('GPL')
depends=('openssl')
conflicts=('ike-scan')
_srcdir="${_pkgname}"
#_verwatch=('http://www.nta-monitor.com/tools-resources/security-tools/ike-scan-archive' ".*${pkgname}-\([0-9\.]\+\)\.tar\.gz" 'l')
#source=("${url}download/${pkgname}-${pkgver}.tar.gz")
#_verwatch=("${url}/releases" "${url#*github.com}/releases/download/.*/${pkgname}-\(.*\)\.tar\.gz" 'l')
source=('git+https://github.com/royhills/ike-scan.git')
sha512sums=('SKIP')

build() {
  set -u
  cd "${_srcdir}"
  if [ ! -s 'configure' ]; then
    autoreconf --install
  fi
  if [ ! -s 'Makefile' ]; then
    ./configure --prefix='/usr' --mandir='/usr/share/man' --with-openssl
  fi
  make -s
  set +u
}

check() {
  set -u
  cd "${_srcdir}"
  make check
  set +u
}

package() {
  set -u
  cd "${_srcdir}"
  make -s DESTDIR="${pkgdir}" install
  set +u
}
set +u

jnbrains commented on 2024-09-10 18:55 (UTC)

It needs to be patched to be able to compile (clang 16 and ssl paths). Here is a PKGBUILD version which works for me (Thanks Gentoo People):

pkgname=ike-scan                                                                                                                             
pkgver=1.9.5                                                                                                                                 
pkgrel=1                                                                                                                                     
pkgdesc='The IKE Scanner'
arch=('x86_64')
url='https://github.com/royhills/ike-scan/'
license=('GPL-3.0-only')
depends=('glibc' 'openssl')
source=("$pkgname-$pkgver.tar.gz::https://github.com/royhills/ike-scan/archive/refs/tags/${pkgver}.tar.gz"
        "https://gitweb.gentoo.org/repo/gentoo.git/plain/net-analyzer/ike-scan/files/ike-scan-1.9.5-clang-16.patch"
        "https://gitweb.gentoo.org/repo/gentoo.git/plain/net-analyzer/ike-scan/files/ike-scan-1.9.5-openssl-libdir.patch")
sha256sums=('5152bf06ac82d0cadffb93a010ffb6bca7efd35ea169ca7539cf2860ce2b263f'
            'cdb4f9102ca6e368906f55f1637aad974f969af50afc8070040182df2a7806d3'
            '599dd36f76e4ffd9bf48cef5b3176e211a70c3f52cd8ee643eb020b73898ddc3')

prepare() {
    cd "$pkgname-$pkgver"
    patch -p1 -i "$srcdir/ike-scan-1.9.5-clang-16.patch"
    patch -p1 -i "$srcdir/ike-scan-1.9.5-openssl-libdir.patch"
}

build() {
    cd "$pkgname-$pkgver"
    autoreconf --install
    ./configure --prefix=/usr --with-openssl
    make
}

check() {
    cd "$pkgname-$pkgver"
    make -k check
}

package() {
    cd "$pkgname-$pkgver"
    make DESTDIR="$pkgdir/" install
}

weltio commented on 2024-09-10 06:52 (UTC)

configure: error: cannot determine 64-bit integer type
==> ERROR: A failure occurred in build().
/usr/share/makepkg/util/message.sh: line 51: QUIET: unbound variable
/usr/bin/makepkg: line 131: logpipe: unbound variable