diff options
author | bill-auger <mr.j.spam.me@gmail.com> | 2022-08-08 12:08:14 -0400 |
---|---|---|
committer | bill-auger <mr.j.spam.me@gmail.com> | 2022-08-08 12:14:26 -0400 |
commit | 4e94c55f3dea2521e6c7615e486139fd1e1dec84 (patch) | |
tree | 5103b3d39a323b73e6bcccbd08d5d900e62dde57 | |
parent | 5cc52aa0ae255b4cb091544106488aa5a936af5a (diff) |
[noisy-git]: add package
-rw-r--r-- | pcr/noisy-git/PKGBUILD | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/pcr/noisy-git/PKGBUILD b/pcr/noisy-git/PKGBUILD new file mode 100644 index 000000000..f0eff9f9f --- /dev/null +++ b/pcr/noisy-git/PKGBUILD @@ -0,0 +1,46 @@ +# Maintainer (aur): Łaurent ʘ❢Ŧ Ŧough <laurent dot fough at gmail dot com> + +# derived (very loosely) from 'noisy-py3-git' + +# parabola changes and rationale: +# * build for arch=any +# * build from source-ball instead of VCS +# upstream has no releases; but the script has not changed since 2018 +# * simplified sed commands +# * do not install GPL and other useless files +# * install README to docs/ + + +pkgname=noisy-git +pkgver=20180908 +pkgrel=1 +pkgdesc="Simple random DNS, HTTP/S internet traffic noise generator" +arch=(any) +url=https://github.com/1tayH/noisy +license=(GPL3) + +_gitver=c21e7682d5626d96d0f6ee56a5ed749078d34aac +depends=(python-requests) +source=(noisy-${pkgver}.zip::https://github.com/1tayH/noisy/archive/${_gitver}.zip) + +sha256sums=('1d23778579bb6c0d4ee2063bbc3bb8114426dc350a43b80a5cd086c7381031b9') + + +prepare() +{ + cd "${srcdir}"/noisy-${_gitver} + + sed -i 's|User=noisy|DynamicUser=yes|' examples/systemd/noisy.service + sed -i 's|/opt/noisy/noisy.py|/usr/bin/noisy.py|' examples/systemd/noisy.service + sed -i 's|/opt/noisy|/usr/share/noisy|g' examples/systemd/noisy.service +} + +package() +{ + cd "${srcdir}"/noisy-${_gitver} + + install -Dm755 noisy.py "${pkgdir}"/usr/bin/noisy.py + install -Dm644 examples/systemd/noisy.service "${pkgdir}"/usr/lib/systemd/system/noisy.service + install -Dm644 README.md "${pkgdir}"/usr/share/doc/noisy/README.md + install -Dm644 config.json "${pkgdir}"/usr/share/noisy/config.json +} |