commit 029ad8e3ea92d0bc4c0cd696fda639745a995bb5
parent defceb26ce06431297ca1009bd7b89917a9ed67e
Author: root <root@dorje.v103.te2000>
Date: Thu, 11 Nov 2021 02:09:02 +0000
Actually install signal-relay and move commands to command/
Diffstat:
1 file changed, 9 insertions(+), 0 deletions(-)
diff --git a/install b/install
@@ -16,6 +16,8 @@ export CFLAGS
--disable-shared \
--enable-apis=compat,v13,net,v21,v22,v23,netv2 \
--prefix="$destination_dir" \
+ --bindir="$destination_dir/command" \
+ --sbindir="$destination_dir/command" \
--with-vrootdir=/vservers \
--localstatedir=/var \
--with-crypto-api=none \
@@ -23,6 +25,13 @@ export CFLAGS
#make src/chbind.o || exit $? # TODO
make CFLAGS="$CFLAGS" || exit $?
make CFLAGS="$CFLAGS" check || exit $?
+if test -L "$destination_dir/etc/vservers"; then
+ # avoid installation encountering outside symlink
+ rm "$destination_dir/etc/vservers" || exit $?
+fi
make CFLAGS="$CFLAGS" install || exit $?
+cd .. || exit $?
rm -r "$destination_dir/etc/vservers" || exit $?
ln -sf /etc/vservers "$destination_dir/etc/vservers" || exit $?
+gcc --static -I/root/local/include -L/root/local/lib -osignal-relay signal-relay.c -lvserver || exit $?
+mv signal-relay "$destination_dir/command" || exit $?