mirror of https://github.com/Wind4/vlmcsd
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
57 lines
1.6 KiB
Plaintext
57 lines
1.6 KiB
Plaintext
9 years ago
|
#!/bin/bash
|
||
|
|
||
8 years ago
|
export VLMCSD_VERSION="svn`svnversion`"
|
||
9 years ago
|
export VERBOSE=3
|
||
|
export DNS_PARSER=OS
|
||
|
|
||
8 years ago
|
cd "$( dirname "$0" )"
|
||
|
make -C .. clean
|
||
|
|
||
|
BINDIR="../bin"
|
||
|
MANDIR="../man"
|
||
|
cd ../src
|
||
9 years ago
|
|
||
|
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"
|
||
|
|
||
8 years ago
|
export PROGRAM_NAME=$BINDIR/vlmcsd-FreeBSD-10.1-x64-glibc
|
||
|
export CLIENT_NAME=$BINDIR/vlmcs-FreeBSD-10.1-x64-glibc
|
||
|
export MULTI_NAME=$BINDIR/vlmcsdmulti-FreeBSD-10.1-x64-glibc
|
||
9 years ago
|
|
||
9 years ago
|
make $MAKEFLAGS CFLAGS="$CF -m64" LDFLAGS="$LF" CAT=2 allmulti
|
||
9 years ago
|
|
||
9 years ago
|
cp -af $PROGRAM_NAME /usr/local/sbin/vlmcsd
|
||
|
cp -af $CLIENT_NAME /usr/local/bin/vlmcs
|
||
|
|
||
8 years ago
|
export PROGRAM_NAME=$BINDIR/vlmcsd-FreeBSD-10.1-x86-glibc
|
||
|
export CLIENT_NAME=$BINDIR/vlmcs-FreeBSD-10.1-x86-glibc
|
||
|
export MULTI_NAME=$BINDIR/vlmcsdmulti-FreeBSD-10.1-x86-glibc
|
||
9 years ago
|
|
||
9 years ago
|
make $MAKEFLAGS CFLAGS="$CF -m32" LDFLAGS="$LF" CAT=2 allmulti
|
||
9 years ago
|
|
||
8 years ago
|
cd $BINDIR
|
||
|
|
||
|
sstrip -z *
|
||
|
|
||
|
cd $MANDIR
|
||
9 years ago
|
|
||
|
# 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
|
||
|
|
||
8 years ago
|
cd $BINDIR
|
||
|
|
||
9 years ago
|
# Copy everything to distribution server
|
||
8 years ago
|
scp -p * root@ubuntu64.internal:x/binaries/FreeBSD/intel/
|
||
9 years ago
|
|