diff options
-rw-r--r-- | .SRCINFO | 8 | ||||
-rw-r--r-- | 0001-patch-service.patch | 8 | ||||
-rw-r--r-- | PKGBUILD | 17 |
3 files changed, 18 insertions, 15 deletions
@@ -1,7 +1,7 @@ pkgbase = cowrie pkgdesc = Medium interaction SSH honeypot designed to log brute force attacks and entire shell interaction pkgver = 2.2.0 - pkgrel = 2 + pkgrel = 3 url = https://github.com/micheloosterhof/cowrie install = cowrie.install arch = any @@ -20,9 +20,9 @@ pkgbase = cowrie depends = python-treq depends = python-twisted backup = etc/cowrie/cowrie.cfg - source = cowrie-2.2.0.tar.gz::https://github.com/micheloosterhof/cowrie/archive/v2.2.0.tar.gz + source = cowrie-c5e9a6b21c8908e892c2169b33f560ccd1fd98ff.tar.gz::https://github.com/micheloosterhof/cowrie/archive/c5e9a6b21c8908e892c2169b33f560ccd1fd98ff.tar.gz source = 0001-patch-service.patch - sha512sums = c65259353bf3b7eceda5c3937671343cc534154a1046c67427022eb133a344e70c56251d096e6fbe448b8f30986990c3327ead53385d7602f1af817cb8a68054 - sha512sums = b8684f4bdd1f3b9808b58d7950ed88778a72a84b3b7572aedf60481b0f9330425e08c368ac3091794e93dec035f79cac3765472b385d22b2464e8b532292f050 + sha512sums = 8b65b90cc8667408b2aa32b46c3c8f351e8061ae00e78cc05e35ece4539cc6ffdeb641bd6a1818c98cbf44d921c9ac378fd1b07b13e9b3ec2336eca0897277fe + sha512sums = a79904d764829b246fce7691f90d1de7a478985217eb458d441a2fad0aed4558d70eb2d38208d2bfb393bc42f662dba129678fc14765392959d1316c0d1a8dd1 pkgname = cowrie diff --git a/0001-patch-service.patch b/0001-patch-service.patch index 506efee68fb7..d525ffe09fac 100644 --- a/0001-patch-service.patch +++ b/0001-patch-service.patch @@ -1,4 +1,4 @@ -From 726fe83fac7f451bac14fae80de272bc0d00dabe Mon Sep 17 00:00:00 2001 +From 805f73e5ec34de70bd2a853bbf9aafb855621e09 Mon Sep 17 00:00:00 2001 From: Cody P Schafer <dev@codyps.com> Date: Mon, 22 Jun 2020 01:52:25 -0400 Subject: [PATCH] patch service @@ -9,7 +9,7 @@ Subject: [PATCH] patch service 2 files changed, 21 insertions(+), 8 deletions(-) diff --git a/docs/systemd/etc/systemd/system/cowrie.service b/docs/systemd/etc/systemd/system/cowrie.service -index b8b2fd4..934e77d 100644 +index b8b2fd4..06ff19a 100644 --- a/docs/systemd/etc/systemd/system/cowrie.service +++ b/docs/systemd/etc/systemd/system/cowrie.service @@ -1,24 +1,37 @@ @@ -57,7 +57,7 @@ index b8b2fd4..934e77d 100644 [Install] WantedBy=multi-user.target diff --git a/etc/cowrie.cfg.dist b/etc/cowrie.cfg.dist -index 7139aa1..f044c47 100644 +index c25e17f..c2cee50 100644 --- a/etc/cowrie.cfg.dist +++ b/etc/cowrie.cfg.dist @@ -590,7 +590,7 @@ compression = zlib@openssh.com,zlib,none @@ -79,5 +79,5 @@ index 7139aa1..f044c47 100644 # Source Port to report in logs (useful if you use iptables to forward ports to Cowrie) -- -2.27.0 +2.32.0 @@ -2,7 +2,7 @@ pkgname=cowrie pkgver=2.2.0 -pkgrel=2 +pkgrel=3 pkgdesc='Medium interaction SSH honeypot designed to log brute force attacks and entire shell interaction' url='https://github.com/micheloosterhof/cowrie' arch=('any') @@ -25,25 +25,28 @@ depends=( 'python-twisted' ) +_gitrev="c5e9a6b21c8908e892c2169b33f560ccd1fd98ff" +_pkgdir="${pkgname}-${_gitrev}" backup=('etc/cowrie/cowrie.cfg') install=cowrie.install -source=(${pkgname}-${pkgver}.tar.gz::https://github.com/micheloosterhof/${pkgname}/archive/v${pkgver}.tar.gz +#source=(${pkgname}-${pkgver}.tar.gz::https://github.com/micheloosterhof/${pkgname}/archive/v${pkgver}.tar.gz) +source=(${pkgname}-${_gitrev}.tar.gz::https://github.com/micheloosterhof/${pkgname}/archive/${_gitrev}.tar.gz '0001-patch-service.patch') -sha512sums=('c65259353bf3b7eceda5c3937671343cc534154a1046c67427022eb133a344e70c56251d096e6fbe448b8f30986990c3327ead53385d7602f1af817cb8a68054' - 'b8684f4bdd1f3b9808b58d7950ed88778a72a84b3b7572aedf60481b0f9330425e08c368ac3091794e93dec035f79cac3765472b385d22b2464e8b532292f050') +sha512sums=('8b65b90cc8667408b2aa32b46c3c8f351e8061ae00e78cc05e35ece4539cc6ffdeb641bd6a1818c98cbf44d921c9ac378fd1b07b13e9b3ec2336eca0897277fe' + 'a79904d764829b246fce7691f90d1de7a478985217eb458d441a2fad0aed4558d70eb2d38208d2bfb393bc42f662dba129678fc14765392959d1316c0d1a8dd1') prepare() { - cd ${pkgname}-${pkgver} + cd "${_pkgdir}" patch -p1 -Ni '../0001-patch-service.patch' } build() { - cd ${pkgname}-${pkgver} + cd "${_pkgdir}" python setup.py build } package() { - cd ${pkgname}-${pkgver} + cd "${_pkgdir}" mkdir -p "${pkgdir}/etc/cowrie" install -Dm 644 etc/cowrie.cfg.dist "${pkgdir}/etc/cowrie/cowrie.cfg" |