mirror of https://github.com/Wind4/vlmcsd
parent
1c86f7a6bf
commit
c479a67c2c
Binary file not shown.
@ -0,0 +1,38 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
export VERBOSE=3
|
||||||
|
export DNS_PARSER=OS
|
||||||
|
|
||||||
|
rm -f vlmcsd-* vlmcs-* vlmcsdmulti-* *_all.* 2>/dev/null
|
||||||
|
rm -f vlmcsdmulti vlmcsd vlmcs 2>/dev/null
|
||||||
|
|
||||||
|
MAKEFLAGS="-B -j1"
|
||||||
|
|
||||||
|
export CC=gcc
|
||||||
|
CF="-flto=jobserver -pipe -fwhole-program -fno-common -fno-exceptions -fno-stack-protector -fno-unwind-tables -fno-asynchronous-unwind-tables -fmerge-all-constants"
|
||||||
|
LF="-fuse-ld=gold -lresolv -Wl,-z,norelro,--hash-style=gnu,--build-id=none"
|
||||||
|
|
||||||
|
make $MAKEFLAGS PROGRAM_NAME=vlmcsd-hurd-x86-glibc CLIENT_NAME=vlmcs-hurd-x86-glibc CFLAGS="$CF" LDFLAGS="$LF" CAT=2
|
||||||
|
make $MAKEFLAGS MULTI_NAME=vlmcsdmulti-hurd-x86-glibc vlmcsdmulti-hurd-x86-glibc CFLAGS="$CF" LDFLAGS="$LF" CAT=2 AUXV=1
|
||||||
|
|
||||||
|
make clean
|
||||||
|
|
||||||
|
sstrip -z vlmcs-* vlmcsd-* vlmcsdmulti-*
|
||||||
|
|
||||||
|
cp -af vlmcsd-hurd-x86-glibc /usr/local/sbin/vlmcsd
|
||||||
|
cp -af vlmcs-hurd-x86-glibc /usr/local/bin/vlmcs
|
||||||
|
|
||||||
|
# Copy man pages
|
||||||
|
mkdir -p /usr/local/man/man1 2>/dev/null
|
||||||
|
mkdir -p /usr/local/man/man5 2>/dev/null
|
||||||
|
mkdir -p /usr/local/man/man8 2>/dev/null
|
||||||
|
mkdir -p /usr/local/man/man7 2>/dev/null
|
||||||
|
cp -af vlmcs.1 vlmcsdmulti.1 /usr/local/man/man1/
|
||||||
|
cp -af vlmcsd.7 /usr/local/man/man7/
|
||||||
|
cp -af vlmcsd.8 /usr/local/man/man8/
|
||||||
|
cp -af vlmcsd.ini.5 /usr/local/man/man5/
|
||||||
|
bzip2 -f -9 /usr/local/man/man5/vlmcsd.ini.5 /usr/local/man/man1/vlmcs.1 /usr/local/man/man1/vlmcsdmulti.1 /usr/local/man/man7/vlmcsd.7 /usr/local/man/man8/vlmcsd.8
|
||||||
|
|
||||||
|
# Copy everything to distribution server
|
||||||
|
scp -p vlmcsdmulti-* vlmcsd-* vlmcs-* root@ubuntu64.internal:x/binaries/Hurd/intel/
|
||||||
|
|
@ -0,0 +1,47 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
export VERBOSE=3
|
||||||
|
export DNS_PARSER=OS
|
||||||
|
|
||||||
|
rm -f vlmcsd-* vlmcs-* vlmcsdmulti-* *_all.* 2>/dev/null
|
||||||
|
rm -f vlmcsdmulti vlmcsd vlmcs 2>/dev/null
|
||||||
|
|
||||||
|
MAKEFLAGS="-B -j`nproc`"
|
||||||
|
|
||||||
|
export CC=gcc
|
||||||
|
CF="-flto=jobserver -pipe -fwhole-program -fno-common -fno-exceptions -fno-stack-protector -fno-unwind-tables -fno-asynchronous-unwind-tables -fmerge-all-constants"
|
||||||
|
LF="-lresolv -Wl,-z,norelro,--hash-style=gnu,--build-id=none"
|
||||||
|
|
||||||
|
export PROGRAM_NAME=vlmcsd-FreeBSD-10.1-x64-glibc
|
||||||
|
export CLIENT_NAME=vlmcs-FreeBSD-10.1-x64-glibc
|
||||||
|
export MULTI_NAME=vlmcsdmulti-FreeBSD-10.1-x64-glibc
|
||||||
|
|
||||||
|
make $MAKEFLAGS CFLAGS="$CF -m64" LDFLAGS="$LF" CAT=2
|
||||||
|
make $MAKEFLAGS $MULTI_NAME CFLAGS="$CF -m64" LDFLAGS="$LF" CAT=2 AUXV=1
|
||||||
|
|
||||||
|
export PROGRAM_NAME=vlmcsd-FreeBSD-10.1-x86-glibc
|
||||||
|
export CLIENT_NAME=vlmcs-FreeBSD-10.1-x86-glibc
|
||||||
|
export MULTI_NAME=vlmcsdmulti-FreeBSD-10.1-x86-glibc
|
||||||
|
|
||||||
|
make $MAKEFLAGS CFLAGS="$CF -m32" LDFLAGS="$LF" CAT=2
|
||||||
|
make $MAKEFLAGS $MULTI_NAME CFLAGS="$CF -m32" LDFLAGS="$LF" CAT=2 AUXV=1
|
||||||
|
|
||||||
|
sstrip -z vlmcs-* vlmcsd-* vlmcsdmulti-*
|
||||||
|
|
||||||
|
cp -af $PROGRAM_NAME /usr/local/sbin/vlmcsd
|
||||||
|
cp -af $CLIENT_NAME /usr/local/bin/vlmcs
|
||||||
|
|
||||||
|
# Copy man pages
|
||||||
|
mkdir -p /usr/local/man/man1 2>/dev/null
|
||||||
|
mkdir -p /usr/local/man/man5 2>/dev/null
|
||||||
|
mkdir -p /usr/local/man/man8 2>/dev/null
|
||||||
|
mkdir -p /usr/local/man/man7 2>/dev/null
|
||||||
|
cp -af vlmcs.1 vlmcsdmulti.1 /usr/local/man/man1/
|
||||||
|
cp -af vlmcsd.7 /usr/local/man/man7/
|
||||||
|
cp -af vlmcsd.8 /usr/local/man/man8/
|
||||||
|
cp -af vlmcsd.ini.5 /usr/local/man/man5/
|
||||||
|
bzip2 -f -9 /usr/local/man/man5/vlmcsd.ini.5 /usr/local/man/man1/vlmcs.1 /usr/local/man/man1/vlmcsdmulti.1 /usr/local/man/man7/vlmcsd.7 /usr/local/man/man8/vlmcsd.8
|
||||||
|
|
||||||
|
# Copy everything to distribution server
|
||||||
|
scp -p vlmcsdmulti-* vlmcsd-* vlmcs-* root@ubuntu64.internal:x/binaries/FreeBSD/intel/
|
||||||
|
|
@ -1,50 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
SMALLCC="-pipe -fno-common -fno-exceptions -fno-stack-protector -fno-unwind-tables -fno-asynchronous-unwind-tables -fmerge-all-constants"
|
|
||||||
SMALLLD="-pipe -Wl,--hash-style=sysv -Wl,-z,norelro -Wl,--build-id=none"
|
|
||||||
SMALL="$SMALLCC $SMALLLD"
|
|
||||||
|
|
||||||
export CFLAGS="$SMALLCC"
|
|
||||||
export PLATFORMFLAGS="-flto=jobserver -fwhole-program -m31 -mesa -mpacked-stack -msmall-exec"
|
|
||||||
export LDFLAGS="$SMALLLD -Wl,--hash-style=gnu"
|
|
||||||
export THREADS=0
|
|
||||||
export FEATURES=full
|
|
||||||
|
|
||||||
export MULTI_NAME=vlmcsdmulti-s390-glibc
|
|
||||||
export CLIENT_NAME=vlmcs-s390-glibc
|
|
||||||
export PROGRAM_NAME=vlmcsd-s390-glibc
|
|
||||||
|
|
||||||
make -B -j`nproc` $CLIENT_NAME $PROGRAM_NAME
|
|
||||||
|
|
||||||
rm -f vlmcsd.o vlmcs.o vlmcsdmulti.o
|
|
||||||
make -j`nproc` $MULTI_NAME
|
|
||||||
|
|
||||||
sstrip -z $CLIENT_NAME $PROGRAM_NAME $MULTI_NAME
|
|
||||||
|
|
||||||
export PLATFORMFLAGS="-flto=jobserver -fwhole-program -m64 -mzarch -mpacked-stack -msmall-exec"
|
|
||||||
export MULTI_NAME=vlmcsdmulti-s390x-glibc
|
|
||||||
export CLIENT_NAME=vlmcs-s390x-glibc
|
|
||||||
export PROGRAM_NAME=vlmcsd-s390x-glibc
|
|
||||||
|
|
||||||
make -B -j`nproc` $CLIENT_NAME $PROGRAM_NAME
|
|
||||||
|
|
||||||
rm -f vlmcsd.o vlmcs.o vlmcsdmulti.o
|
|
||||||
export PLATFORMFLAGS="-flto=jobserver -fwhole-program -m64 -mzarch -mpacked-stack -msmall-exec"
|
|
||||||
make -j`nproc` $MULTI_NAME
|
|
||||||
|
|
||||||
sstrip -z $CLIENT_NAME $PROGRAM_NAME $MULTI_NAME
|
|
||||||
|
|
||||||
cp -af vlmcsd-s390-glibc /usr/local/sbin/vlmcsd
|
|
||||||
cp -af vlmcs-s390-glibc /usr/local/bin/vlmcs
|
|
||||||
|
|
||||||
mkdir -p /usr/local/man/man1 2>/dev/null
|
|
||||||
mkdir -p /usr/local/man/man5 2>/dev/null
|
|
||||||
mkdir -p /usr/local/man/man8 2>/dev/null
|
|
||||||
mkdir -p /usr/local/man/man7 2>/dev/null
|
|
||||||
cp -a vlmcs.1 vlmcsdmulti.1 /usr/local/man/man1/
|
|
||||||
cp -a vlmcsd.7 /usr/local/man/man7/
|
|
||||||
cp -a vlmcsd.8 /usr/local/man/man8/
|
|
||||||
cp -a vlmcsd.ini.5 /usr/local/man/man5/
|
|
||||||
pbzip2 -f -9 /usr/local/man/man5/vlmcsd.ini.5 /usr/local/man/man1/vlmcs.1 /usr/local/man/man1/vlmcsdmulti.1 /usr/local/man/man7/vlmcsd.7 /usr/local/man/man8/vlmcsd.8
|
|
||||||
|
|
||||||
scp -p vlmcsdmulti-s390-glibc vlmcs-s390-glibc vlmcsd-s390-glibc vlmcsdmulti-s390x-glibc vlmcs-s390x-glibc vlmcsd-s390x-glibc ubuntu64.internal:x/binaries/Linux/s390/glibc
|
|
@ -0,0 +1,137 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
SMALLCC="-pipe -fno-common -fno-exceptions -fno-stack-protector -fno-unwind-tables -fno-asynchronous-unwind-tables -fmerge-all-constants"
|
||||||
|
SMALLLD="-pipe -Wl,--hash-style=sysv -Wl,-z,norelro -Wl,--build-id=none"
|
||||||
|
SMALL="$SMALLCC $SMALLLD"
|
||||||
|
|
||||||
|
rm -f vlmcsd vlmcs vlmcsdmulti vlmcsd-* vlmcs-* vlmcsdmulti-*
|
||||||
|
|
||||||
|
## IBM S/390
|
||||||
|
|
||||||
|
export CFLAGS="$SMALLCC"
|
||||||
|
export PLATFORMFLAGS="-flto=jobserver -fwhole-program -m31 -mesa -mpacked-stack -msmall-exec"
|
||||||
|
export LDFLAGS="$SMALLLD -Wl,--hash-style=gnu"
|
||||||
|
export THREADS=0
|
||||||
|
export FEATURES=full
|
||||||
|
export CC=s390x-linux-gnu-gcc
|
||||||
|
export VERBOSE=3
|
||||||
|
|
||||||
|
export MULTI_NAME=vlmcsdmulti-s390-glibc
|
||||||
|
export CLIENT_NAME=vlmcs-s390-glibc
|
||||||
|
export PROGRAM_NAME=vlmcsd-s390-glibc
|
||||||
|
|
||||||
|
make -B -j`nproc` $CLIENT_NAME $PROGRAM_NAME
|
||||||
|
|
||||||
|
rm -f vlmcsd.o vlmcs.o vlmcsdmulti.o
|
||||||
|
make -j`nproc` $MULTI_NAME
|
||||||
|
|
||||||
|
sstrip -z $CLIENT_NAME $PROGRAM_NAME $MULTI_NAME
|
||||||
|
|
||||||
|
export PLATFORMFLAGS="-flto=jobserver -fwhole-program -m64 -mzarch -mpacked-stack -msmall-exec"
|
||||||
|
export MULTI_NAME=vlmcsdmulti-s390x-glibc
|
||||||
|
export CLIENT_NAME=vlmcs-s390x-glibc
|
||||||
|
export PROGRAM_NAME=vlmcsd-s390x-glibc
|
||||||
|
|
||||||
|
make -B -j`nproc` $CLIENT_NAME $PROGRAM_NAME
|
||||||
|
|
||||||
|
rm -f vlmcsd.o vlmcs.o vlmcsdmulti.o
|
||||||
|
export PLATFORMFLAGS="-flto=jobserver -fwhole-program -m64 -mzarch -mpacked-stack -msmall-exec"
|
||||||
|
make -j`nproc` $MULTI_NAME
|
||||||
|
|
||||||
|
sstrip -z $CLIENT_NAME $PROGRAM_NAME $MULTI_NAME
|
||||||
|
|
||||||
|
|
||||||
|
## SPARC64
|
||||||
|
|
||||||
|
export PLATFORMFLAGS="-flto=jobserver -fwhole-program -mcpu=v7"
|
||||||
|
export LDFLAGS="$SMALLLD"
|
||||||
|
export CC=sparc64-linux-gnu-gcc
|
||||||
|
|
||||||
|
export MULTI_NAME=vlmcsdmulti-sparc64v9-glibc
|
||||||
|
export CLIENT_NAME=vlmcs-sparc64v9-glibc
|
||||||
|
export PROGRAM_NAME=vlmcsd-sparc64v9-glibc
|
||||||
|
|
||||||
|
make -B -j`nproc` $CLIENT_NAME $PROGRAM_NAME
|
||||||
|
|
||||||
|
rm -f vlmcsd.o vlmcs.o vlmcsdmulti.o
|
||||||
|
make -j`nproc` $MULTI_NAME
|
||||||
|
sstrip -z $CLIENT_NAME $PROGRAM_NAME $MULTI_NAME
|
||||||
|
|
||||||
|
|
||||||
|
## MIPS64 BIG-ENDIAN
|
||||||
|
|
||||||
|
export PLATFORMFLAGS="-flto=jobserver -fwhole-program -mips64 -mno-mips16"
|
||||||
|
export LDFLAGS="$SMALLLD"
|
||||||
|
export CC=mips64-linux-gnuabi64-gcc
|
||||||
|
|
||||||
|
export MULTI_NAME=vlmcsdmulti-mips64-glibc
|
||||||
|
export CLIENT_NAME=vlmcs-mips64-glibc
|
||||||
|
export PROGRAM_NAME=vlmcsd-mips64-glibc
|
||||||
|
|
||||||
|
make -B -j`nproc` $CLIENT_NAME $PROGRAM_NAME
|
||||||
|
|
||||||
|
rm -f vlmcsd.o vlmcs.o vlmcsdmulti.o
|
||||||
|
make -j`nproc` $MULTI_NAME
|
||||||
|
sstrip -z $CLIENT_NAME $PROGRAM_NAME $MULTI_NAME
|
||||||
|
|
||||||
|
export PLATFORMFLAGS="-flto=jobserver -fwhole-program -mips64 -mmicromips"
|
||||||
|
export MULTI_NAME=vlmcsdmulti-mips64mm-glibc
|
||||||
|
export CLIENT_NAME=vlmcs-mips64mm-glibc
|
||||||
|
export PROGRAM_NAME=vlmcsd-mips64mm-glibc
|
||||||
|
|
||||||
|
make -B -j`nproc` $CLIENT_NAME $PROGRAM_NAME
|
||||||
|
|
||||||
|
rm -f vlmcsd.o vlmcs.o vlmcsdmulti.o
|
||||||
|
make -j`nproc` $MULTI_NAME
|
||||||
|
sstrip -z $CLIENT_NAME $PROGRAM_NAME $MULTI_NAME
|
||||||
|
|
||||||
|
|
||||||
|
## MIPS64 LITTLE-ENDIAN
|
||||||
|
|
||||||
|
export PLATFORMFLAGS="-flto=jobserver -fwhole-program -mips64 -mno-mips16"
|
||||||
|
export LDFLAGS="$SMALLLD"
|
||||||
|
export CC=mips64el-linux-gnuabi64-gcc
|
||||||
|
|
||||||
|
export MULTI_NAME=vlmcsdmulti-mips64el-glibc
|
||||||
|
export CLIENT_NAME=vlmcs-mips64el-glibc
|
||||||
|
export PROGRAM_NAME=vlmcsd-mips64el-glibc
|
||||||
|
|
||||||
|
make -B -j`nproc` $CLIENT_NAME $PROGRAM_NAME
|
||||||
|
|
||||||
|
rm -f vlmcsd.o vlmcs.o vlmcsdmulti.o
|
||||||
|
make -j`nproc` $MULTI_NAME
|
||||||
|
sstrip -z $CLIENT_NAME $PROGRAM_NAME $MULTI_NAME
|
||||||
|
|
||||||
|
export PLATFORMFLAGS="-flto=jobserver -fwhole-program -mips64 -mmicromips"
|
||||||
|
export MULTI_NAME=vlmcsdmulti-mips64elmm-glibc
|
||||||
|
export CLIENT_NAME=vlmcs-mips64elmm-glibc
|
||||||
|
export PROGRAM_NAME=vlmcsd-mips64elmm-glibc
|
||||||
|
|
||||||
|
make -B -j`nproc` $CLIENT_NAME $PROGRAM_NAME
|
||||||
|
|
||||||
|
rm -f vlmcsd.o vlmcs.o vlmcsdmulti.o
|
||||||
|
make -j`nproc` $MULTI_NAME
|
||||||
|
sstrip -z $CLIENT_NAME $PROGRAM_NAME $MULTI_NAME
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
if [ "$1" == "nocopy" ]; then
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
mkdir -p /usr/local/man/man1 2>/dev/null
|
||||||
|
mkdir -p /usr/local/man/man5 2>/dev/null
|
||||||
|
mkdir -p /usr/local/man/man8 2>/dev/null
|
||||||
|
mkdir -p /usr/local/man/man7 2>/dev/null
|
||||||
|
cp -a vlmcs.1 vlmcsdmulti.1 /usr/local/man/man1/
|
||||||
|
cp -a vlmcsd.7 /usr/local/man/man7/
|
||||||
|
cp -a vlmcsd.8 /usr/local/man/man8/
|
||||||
|
cp -a vlmcsd.ini.5 /usr/local/man/man5/
|
||||||
|
pbzip2 -f -9 /usr/local/man/man5/vlmcsd.ini.5 /usr/local/man/man1/vlmcs.1 /usr/local/man/man1/vlmcsdmulti.1 /usr/local/man/man7/vlmcsd.7 /usr/local/man/man8/vlmcsd.8
|
||||||
|
|
||||||
|
scp -p vlmcsdmulti-s390-glibc vlmcs-s390-glibc vlmcsd-s390-glibc vlmcsdmulti-s390x-glibc vlmcs-s390x-glibc vlmcsd-s390x-glibc ubuntu64.internal:x/binaries/Linux/s390/glibc
|
||||||
|
scp -p vlmcsdmulti-sparc64v9-glibc vlmcs-sparc64v9-glibc vlmcsd-sparc64v9-glibc ubuntu64.internal:x/binaries/Linux/sparc/glibc
|
||||||
|
scp -p vlmcsdmulti-mips64-glibc vlmcs-mips64-glibc vlmcsd-mips64-glibc vlmcsdmulti-mips64mm-glibc vlmcs-mips64mm-glibc vlmcsd-mips64mm-glibc ubuntu64.internal:x/binaries/Linux/mips/big-endian/glibc
|
||||||
|
scp -p vlmcsdmulti-mips64el-glibc vlmcs-mips64el-glibc vlmcsd-mips64el-glibc vlmcsdmulti-mips64elmm-glibc vlmcs-mips64elmm-glibc vlmcsd-mips64elmm-glibc ubuntu64.internal:x/binaries/Linux/mips/little-endian/glibc
|
||||||
|
scp -p -P 2222 vlmcsdmulti-s390-glibc vlmcs-s390-glibc vlmcsd-s390-glibc vlmcsdmulti-s390x-glibc vlmcs-s390x-glibc vlmcsd-s390x-glibc s390:vlmcsd
|
||||||
|
scp -p -P 2222 vlmcsdmulti-s390-glibc vlmcsdmulti-s390x-glibc s390:/usr/local/sbin
|
@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
find binaries -xdev -name 'vlmcs*' ! -name '*-NetBSD-*' ! -name '*-Windows-*' ! -name '*-cygwin-*' ! -name '*-MacOSX-*' ! -name '*-iOS-*' -exec sstrip -z {} \;
|
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue