void-packages

Void Source Packages
git clone git://ezup.dev/void-packages.git
Log | Files | Refs | README | LICENSE

commit b578c8575b874e33088a64ea830b5c9dca491eba
parent fcd289b8af64681a745d529df3058401f632f689
Author: Dash Eclipse <dash@ezup.dev>
Date:   Thu, 19 Nov 2020 16:32:42 +0000

New Package: fiche

With patch to change timeout

Diffstat:
Mezup/pkg-list.txt | 1+
Asrcpkgs/fiche/files/fiche/run | 2++
Asrcpkgs/fiche/patches/change-timeout.diff | 16++++++++++++++++
Asrcpkgs/fiche/template | 25+++++++++++++++++++++++++
4 files changed, 44 insertions(+), 0 deletions(-)

diff --git a/ezup/pkg-list.txt b/ezup/pkg-list.txt @@ -9,6 +9,7 @@ # Modified packages dwm systray, bottomstack, nordtheme-color + fiche change-timeout lilo keytab-lilo patch # pass #git slock scrollback, scrollback-mouse, nordtheme diff --git a/srcpkgs/fiche/files/fiche/run b/srcpkgs/fiche/files/fiche/run @@ -0,0 +1,2 @@ +#!/bin/sh +exec chpst -u _fiche:_fiche fiche -d yourdomain.com -o /var/tmp/fiche -l /var/log/fiche/log diff --git a/srcpkgs/fiche/patches/change-timeout.diff b/srcpkgs/fiche/patches/change-timeout.diff @@ -0,0 +1,16 @@ +Changed timeout from 5 seconds to 500ms +https://patch-diff.githubusercontent.com/raw/solusipse/fiche/pull/80.diff + +diff --git a/fiche.c b/fiche.c +index c0bbe8d..5ff0b06 100644 +--- a/fiche.c ++++ b/fiche.c +@@ -495,7 +495,7 @@ static void dispatch_connection(int socket, Fiche_Settings *settings) { + } + + // Set timeout for accepted socket +- const struct timeval timeout = { 5, 0 }; ++ const struct timeval timeout = { 0, 500 }; + + if ( setsockopt(s, SOL_SOCKET, SO_RCVTIMEO, &timeout, sizeof(timeout)) != 0 ) { + print_error("Couldn't set a timeout!"); diff --git a/srcpkgs/fiche/template b/srcpkgs/fiche/template @@ -0,0 +1,25 @@ +# Template file for 'fiche' +pkgname=fiche +version=0.9.1 +revision=3 +patch_args="-Np1" +build_style=gnu-makefile +short_desc="Command line pastebin server for sharing terminal output" +maintainer="Dash Eclipse <dash@ezup.dev>" +license="MIT" +homepage="https://github.com/solusipse/fiche" +distfiles="https://github.com/solusipse/fiche/archive/${version}.tar.gz" +checksum=f0cb279a2c2a4c0d1debcf56785fd8731a1427d2524221678cf69c9aaa85e831 +tags="ezup" + +CFLAGS="-lpthread" + +system_accounts="_fiche" +fiche_homedir="/var/tmp/fiche" +make_dirs="/var/log/fiche 0750 _fiche _fiche" + +post_install() { + vlicense LICENSE + vsv fiche + vbin fiche +}