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 | |
---|
10 | SRV=http://mirror.ancl.hawaii.edu/pub/FreeBSD/FreeBSD-current/src/usr.bin/rpcgen |
---|
11 | |
---|
12 | SRC="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 | |
---|
14 | mkdir -p sun_rpcgen |
---|
15 | cd sun_rpcgen |
---|
16 | |
---|
17 | for x in $SRC ; do |
---|
18 | echo "Downloading $x" |
---|
19 | fetch -m $SRV/$x |
---|
20 | done |
---|
21 | |
---|
22 | ######################################## |
---|
23 | mv Makefile Makefile.sun |
---|
24 | echo '# Simple build of rpcgen |
---|
25 | |
---|
26 | all: |
---|
27 | cc -O -o rpcgen *.c |
---|
28 | ' > Makefile |
---|
29 | |
---|
30 | ######################################## |
---|
31 | echo 'These files for Sun Microsystems rpcgen were downloaded from |
---|
32 | |
---|
33 | http://mirror.ancl.hawaii.edu/pub/FreeBSD/FreeBSD-current/src/usr.bin/rpcgen |
---|
34 | |
---|
35 | and used as-is to build an rpcgen on OS-X.' > README.txt |
---|
36 | |
---|
37 | ######################################## |
---|
38 | ls -l |
---|
39 | echo 'Build command: cc -O -o rpcgen *.c' |
---|