blob: 7720a269667d910a9e2efb5414851441f1c8aaf5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
pkgname=cowrie
pkgver=2.2.0
pkgrel=2
pkgdesc='Medium interaction SSH honeypot designed to log brute force attacks and entire shell interaction'
url='https://github.com/micheloosterhof/cowrie'
arch=('any')
license=('BSD')
# from the requirements.txt
depends=(
'python-appdirs'
'python-attrs'
'python-bcrypt'
# 'python-configparser'
'python-cryptography'
'python-packaging'
'python-pyasn1-modules'
'python-pyopenssl'
'python-pyparsing'
'python-dateutil'
'python-service-identity'
'python-tftpy'
'python-treq'
'python-twisted'
)
backup=('etc/cowrie/cowrie.cfg')
install=cowrie.install
source=(${pkgname}-${pkgver}.tar.gz::https://github.com/micheloosterhof/${pkgname}/archive/v${pkgver}.tar.gz
'0001-patch-service.patch')
sha512sums=('c65259353bf3b7eceda5c3937671343cc534154a1046c67427022eb133a344e70c56251d096e6fbe448b8f30986990c3327ead53385d7602f1af817cb8a68054'
'b8684f4bdd1f3b9808b58d7950ed88778a72a84b3b7572aedf60481b0f9330425e08c368ac3091794e93dec035f79cac3765472b385d22b2464e8b532292f050')
prepare() {
cd ${pkgname}-${pkgver}
patch -p1 -Ni '../0001-patch-service.patch'
}
build() {
cd ${pkgname}-${pkgver}
python setup.py build
}
package() {
cd ${pkgname}-${pkgver}
mkdir -p "${pkgdir}/etc/cowrie"
install -Dm 644 etc/cowrie.cfg.dist "${pkgdir}/etc/cowrie/cowrie.cfg"
install -Dm 644 docs/systemd/etc/systemd/system/cowrie.service -t "${pkgdir}/usr/lib/systemd/system"
install -Dm 644 docs/systemd/etc/systemd/system/cowrie.socket -t "${pkgdir}/usr/lib/systemd/system"
install -d "${pkgdir}/opt/cowrie"
cp -a . "${pkgdir}/opt/cowrie"
rm "${pkgdir}/opt/cowrie/etc/cowrie.cfg.dist"
install -Dm 644 docs/LICENSE.rst "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
mkdir -p "${pkgdir}/usr/share/doc/${pkgname}"
cp -a docs/* "${pkgdir}/usr/share/doc/${pkgname}"
}
# vim: ts=2 sw=2 et:
|