Ticket #47801: sh.get_sun_rpcgen

File sh.get_sun_rpcgen, 1.1 KB (added by pmusumeci@…, 9 years ago)

This script will download and build rpcgen from FreeBSD

Line 
1#
2# Simply download FreeBSD-current rpcgen sources and build for OS-X
3# - Some octave packages require a more modern version of rpcgen. The
4#   Sun Microsystems version of rpcgen as found in FreeBSD in 2007 will
5#   build as-is, so we use it to replace a much earlier OS-X version.
6#
7# p.musumeci@ieee.org 21-May-2015
8#
9
10SRV=http://mirror.ancl.hawaii.edu/pub/FreeBSD/FreeBSD-current/src/usr.bin/rpcgen
11
12SRC="Makefile rpc_clntout.c rpc_cout.c rpc_hout.c rpc_main.c rpc_parse.c rpc_parse.h rpc_sample.c rpc_scan.c rpc_scan.h rpc_svcout.c rpc_tblout.c rpc_util.c rpc_util.h rpcgen.1"
13
14mkdir -p sun_rpcgen
15cd sun_rpcgen
16
17for x in $SRC ; do
18  echo "Downloading $x"
19  fetch -m $SRV/$x
20  done
21
22########################################
23mv Makefile Makefile.sun
24echo '# Simple build of rpcgen
25
26all:
27        cc -O -o rpcgen *.c
28' > Makefile
29
30########################################
31echo 'These files for Sun Microsystems rpcgen were downloaded from
32
33http://mirror.ancl.hawaii.edu/pub/FreeBSD/FreeBSD-current/src/usr.bin/rpcgen
34
35and used as-is to build an rpcgen on OS-X.' > README.txt
36
37########################################
38ls -l
39echo 'Build command: cc -O -o rpcgen *.c'