repository

Carbs Linux repositories
git clone git://git.carbslinux.org/repository
Log | Files | Refs | README | LICENSE

commit c23c23a281be7f52a4056ad06398c674a8c78e44
parent a08b10983c1b1fb02cef93fe46e7bf4127729fe4
Author: Cem Keylan <cem@ckyln.com>
Date:   Tue, 10 Dec 2019 14:03:21 +0300

added socklog to testing

Diffstat:
Atesting/socklog/build | 31+++++++++++++++++++++++++++++++
Atesting/socklog/checksums | 3+++
Atesting/socklog/files/socklog-unix.run | 2++
Atesting/socklog/files/svlogd.run | 2++
Atesting/socklog/sources | 3+++
Atesting/socklog/version | 1+
6 files changed, 42 insertions(+), 0 deletions(-)

diff --git a/testing/socklog/build b/testing/socklog/build @@ -0,0 +1,31 @@ +#!/bin/sh -e + +cd socklog-2.1.0 + +# Change configuration options to build everything statically +echo "${CC:-gcc} -D_GNU_SOURCE $CFLAGS" > src/conf-cc +echo "${CC:-gcc} -static $LDFLAGS -Wl,-z -Wl,noexecstack" > src/conf-ld +package/compile + +# Create package directories +mkdir -p "$1/usr/bin" +mkdir -p "$1/usr/share/man/man1" "$1/usr/share/man/man8" + +# Install programs and manpages +for bin in command/*; do + cp "$bin" "$1/usr/bin/$bin" +done + +for man1 in man/*.1; do + cp "$man1" "$1/usr/share/man/man1/$man1" +done + +for man8 in man/*.8; do + cp "$man1" "$1/usr/share/man/man8/$man8" +done + + +install -Dm755 socklog-unix.run "$1/etc/sv/socklog-unix/run" +ln -s /run/runit/supervise.socklog "$1/etc/sv/socklog-unix/run" +install -Dm755 svlogd.run "$1/etc/sv/socklog-unix/log/run" +ln -s /run/runit/supervise.svlogd "$1/etc/sv/socklog-unix/log/run" diff --git a/testing/socklog/checksums b/testing/socklog/checksums @@ -0,0 +1,3 @@ +aa869a787ee004da4e5509b5a0031bcc17a4ab4ac650c2ce8d4e488123acb455 socklog-2.1.0.tar.gz +c5d7923209e3ae50aff9f9ba3a402e45eb5b60c78b61055ce6d88475f21b31f9 svlogd.run +1e6b02e021b466ce54c91e56e957cd8fd37443298047cf146cf953796c9d0aee socklog-unix.run diff --git a/testing/socklog/files/socklog-unix.run b/testing/socklog/files/socklog-unix.run @@ -0,0 +1,2 @@ +#!/bin/sh +exec chpst -U nobody:nogroup socklog unix /dev/log 2>&1 diff --git a/testing/socklog/files/svlogd.run b/testing/socklog/files/svlogd.run @@ -0,0 +1,2 @@ +#!/bin/sh +exec svlogd -ttt /var/log/socklog/* #2>/dev/tty12 diff --git a/testing/socklog/sources b/testing/socklog/sources @@ -0,0 +1,3 @@ +http://smarden.org/socklog/socklog-2.1.0.tar.gz +files/svlogd.run +files/socklog-unix.run diff --git a/testing/socklog/version b/testing/socklog/version @@ -0,0 +1 @@ +2.1.0 1