diff options
Diffstat (limited to 'testing/socklog')
-rwxr-xr-x | testing/socklog/build | 31 | ||||
-rw-r--r-- | testing/socklog/checksums | 3 | ||||
-rw-r--r-- | testing/socklog/files/socklog-unix.run | 2 | ||||
-rw-r--r-- | testing/socklog/files/svlogd.run | 2 | ||||
-rw-r--r-- | testing/socklog/sources | 3 | ||||
-rw-r--r-- | testing/socklog/version | 1 |
6 files changed, 42 insertions, 0 deletions
diff --git a/testing/socklog/build b/testing/socklog/build new file mode 100755 index 00000000..d13d124c --- /dev/null +++ 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 new file mode 100644 index 00000000..9d7f3df8 --- /dev/null +++ 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 new file mode 100644 index 00000000..8ce56a83 --- /dev/null +++ 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 new file mode 100644 index 00000000..8da81f89 --- /dev/null +++ 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 new file mode 100644 index 00000000..fb650cc5 --- /dev/null +++ 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 new file mode 100644 index 00000000..ef862396 --- /dev/null +++ b/testing/socklog/version @@ -0,0 +1 @@ +2.1.0 1 |