diff options
author | Cem Keylan <cem@ckyln.com> | 2019-12-12 14:51:17 +0300 |
---|---|---|
committer | Cem Keylan <cem@ckyln.com> | 2019-12-12 14:51:17 +0300 |
commit | ba05cc604981e6ab9e96d624925650ba63002461 (patch) | |
tree | 4d9ac35eb581065fade13c26e356922e9c9dc020 /testing/socklog/build | |
parent | 6be99255607e50a18e76e7b28e31c24a39ab3fea (diff) | |
download | repository-ba05cc604981e6ab9e96d624925650ba63002461.tar.gz |
socklog: fix build
Diffstat (limited to 'testing/socklog/build')
-rwxr-xr-x | testing/socklog/build | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/testing/socklog/build b/testing/socklog/build index d13d124c..2aafe76d 100755 --- a/testing/socklog/build +++ b/testing/socklog/build @@ -13,19 +13,21 @@ 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" + cp "$bin" "$1/usr/bin/$(basename "$bin")" done for man1 in man/*.1; do - cp "$man1" "$1/usr/share/man/man1/$man1" + cp "$man1" "$1/usr/share/man/man1/$(basename $man1)" done for man8 in man/*.8; do - cp "$man1" "$1/usr/share/man/man8/$man8" + cp "$man1" "$1/usr/share/man/man8/$(basename $man8)" done +cd .. + install -Dm755 socklog-unix.run "$1/etc/sv/socklog-unix/run" -ln -s /run/runit/supervise.socklog "$1/etc/sv/socklog-unix/run" +ln -s /run/runit/supervise.socklog "$1/etc/sv/socklog-unix/supervise" install -Dm755 svlogd.run "$1/etc/sv/socklog-unix/log/run" -ln -s /run/runit/supervise.svlogd "$1/etc/sv/socklog-unix/log/run" +ln -s ../run/runit/supervise.svlogd "$1/etc/sv/socklog-unix/log/supervise" |