# Contributor: Michael Pirogov # Maintainer: Michael Pirogov pkgname=ssh-honeypot pkgver=0.1.1 pkgrel=0 pkgdesc="Fake sshd that logs ip addresses, usernames, and passwords." url="https://github.com/droberson/ssh-honeypot" arch="all" license="MIT" depends="openssh-keygen" makedepends="json-c0.12-dev libssh-dev" options="!check" # no testsuite and daemon returns 1 even on help command subpackages="$pkgname-openrc" source="https://github.com/droberson/ssh-honeypot/archive/refs/tags/ssh-honeypot-$pkgver.tar.gz $pkgname.initd $pkgname.confd" builddir="$srcdir/$pkgname-$pkgname-$pkgver" build() { make CC="gcc" CFLAGS="$CFLAGS -fPIC" } package() { mkdir -p "$pkgdir"/usr/bin/ "$pkgdir"/usr/share/ssh-honeypot install -m 755 -D "$builddir"/bin/$pkgname "$pkgdir"/usr/bin/$pkgname install -m 755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname install -m 644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname } sha512sums=" 178ab3e71a1891f6002b6d6bdb7086ed6e777fad9fcbcd42d52c9dc723917c15ecdc182d5fea2ad943bcaa5fc3730ea34ec744c1f2e5a83f6859f3f2771cce39 ssh-honeypot-0.1.1.tar.gz 759a0756e082bc946deec156c164dd5b40876f2f3cd1f3f0c526f06b009f70110ddfbc7730e295765f6c9e088f123a45909c94fe048e7f864b4946ae5a98f157 ssh-honeypot.initd e93b93117afa5f5ad93bce12e5846718bb25d24ace47bbcee1bbb72af51b0cc9fc7558a5650e4778330e5ad22d1807183ebc93101e7e16dfc6f7e391ba4aca6d ssh-honeypot.confd "