From 2cbe8cb5d94cd0cc4dc9199514fa58bdc676cd22 Mon Sep 17 00:00:00 2001 From: chaquen Date: Sun, 9 Jan 2022 04:24:30 +1100 Subject: [PATCH] New package: kloak-0.2 --- srcpkgs/kloak/LICENSE | 27 ++++++++++++++++++++++++ srcpkgs/kloak/files/kloak/log/run | 3 +++ srcpkgs/kloak/files/kloak/run | 2 ++ srcpkgs/kloak/template | 35 +++++++++++++++++++++++++++++++ 4 files changed, 67 insertions(+) create mode 100644 srcpkgs/kloak/LICENSE create mode 100755 srcpkgs/kloak/files/kloak/log/run create mode 100755 srcpkgs/kloak/files/kloak/run create mode 100644 srcpkgs/kloak/template diff --git a/srcpkgs/kloak/LICENSE b/srcpkgs/kloak/LICENSE new file mode 100644 index 000000000000..43e379ad684c --- /dev/null +++ b/srcpkgs/kloak/LICENSE @@ -0,0 +1,27 @@ +Copyright (c) 2016, Vinnie Monaco +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +* Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +* Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +* Neither the name of the copyright holder nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/srcpkgs/kloak/files/kloak/log/run b/srcpkgs/kloak/files/kloak/log/run new file mode 100755 index 000000000000..9fb5b06c14b5 --- /dev/null +++ b/srcpkgs/kloak/files/kloak/log/run @@ -0,0 +1,3 @@ +#!/bin/sh +mkdir -p /var/log/kloak +exec chpst svlogd -tt /var/log/kloak diff --git a/srcpkgs/kloak/files/kloak/run b/srcpkgs/kloak/files/kloak/run new file mode 100755 index 000000000000..f5ed3a6ddc71 --- /dev/null +++ b/srcpkgs/kloak/files/kloak/run @@ -0,0 +1,2 @@ +#!/bin/sh +exec chpst -u root kloak 2>&1 diff --git a/srcpkgs/kloak/template b/srcpkgs/kloak/template new file mode 100644 index 000000000000..9ce22cc23cbb --- /dev/null +++ b/srcpkgs/kloak/template @@ -0,0 +1,35 @@ +# Template file for 'kloak' +pkgname=kloak +version=0.2 +revision=1 +#archs="i686 x86_64" +wrksrc="${pkgname}-${version}" +#build_wrksrc="" +#create_wrksrc=yes +build_style=gnu-makefile +#configure_args="" +#make_build_args="" +#make_install_args="" +#conf_files="" +#make_dirs="/var/log/dir 0755 root root" +hostmakedepends="gcc" +#makedepends="" +#depends="" +make_dirs="/etc/sv/kloak 755 root root" +make_dirs="/etc/sv/kloak/log 755 root root" +short_desc="Kloak is a privacy tool that makes keystroke biometrics less effective" +maintainer="Chaquen " +license="BSD-3-Clause" +homepage="https://github.com/vmonaco/kloak" +distfiles="https://github.com/vmonaco/kloak/archive/refs/tags/v${version}.tar.gz" +checksum=de81215fbc3d7bc1b485a6dd8e1d0a0bb063cc60d380c34d76c046a8c98d423a +do_install() { + vbin kloak + #vlicense LICENSE + #vman 'auto-generated-man-pages/kloak.8' + #vman 'auto-generated-man-pages/eventcap.8' + vsv kloak +} +post_install() { + vlicense LICENSE +}