1 # exit immediately on failure
4 # check if we're building for the simulator
5 if [ "${RC_ProjectName%_Sim}" != "${RC_ProjectName}" ] ; then
6 if [ -d
${DSTROOT}${SDKROOT}/usr
/lib
/system
] ; then
7 for lib
in ${DSTROOT}${SDKROOT}/usr
/lib
/system
/*.dylib
; do
8 install_name_tool
-id
"${lib#${DSTROOT}${SDKROOT}}" "${lib}"
12 DSTROOT
="${DSTROOT}${SDKROOT}"
15 function InstallHeaders
() {
18 install -d
-o
"$INSTALL_OWNER" -g
"$INSTALL_GROUP" -m
0755 "$DESTDIR"
19 install -o
"$INSTALL_OWNER" -g
"$INSTALL_GROUP" -m
0444 "$@" "$DESTDIR"
22 InstallHeaders
/usr
/include \
23 gen.subproj
/ifaddrs.h \
24 lookup.subproj
/aliasdb.h \
25 lookup.subproj
/bootparams.h \
26 lookup.subproj
/grp.h \
27 lookup.subproj
/netdb.h \
28 lookup.subproj
/printerdb.h \
29 lookup.subproj
/pwd.h \
30 membership.subproj
/membership.h \
31 membership.subproj
/ntsid.h
33 InstallHeaders
/usr
/local/include \
34 gen.subproj
/configuration_profile.h \
35 lookup.subproj
/ils.h \
36 lookup.subproj
/kvbuf.h \
37 lookup.subproj
/libinfo.h \
38 lookup.subproj
/si_data.h \
39 lookup.subproj
/si_module.h \
40 lookup.subproj
/thread_data.h
42 InstallHeaders
/usr
/local/include \
43 lookup.subproj
/netdb_async.h \
44 membership.subproj
/membershipPriv.h
46 InstallHeaders
/usr
/include
/rpc \
48 rpc.subproj
/auth_unix.h \
50 rpc.subproj
/pmap_clnt.h \
51 rpc.subproj
/pmap_prot.h \
52 rpc.subproj
/pmap_rmt.h \
54 rpc.subproj
/rpc_msg.h \
56 rpc.subproj
/svc_auth.h \
60 InstallHeaders
/usr
/include
/rpcsvc \
61 nis.subproj
/yp_prot.h \
64 # Don't install man pages for installhdrs nor simulator builds
65 if [ "$ACTION" == "installhdrs" -o \
66 "${RC_ProjectName%_Sim}" != "${RC_ProjectName}" ] ; then
70 function InstallManPages
() {
71 for MANPAGE
in "$@"; do
72 SECTION
=`basename "${MANPAGE/*./}"`
73 MANDIR
="$DSTROOT"/usr
/share
/man
/man
"$SECTION"
74 install -d
-o
"$INSTALL_OWNER" -g
"$INSTALL_GROUP" -m
0755 "$MANDIR"
75 install -o
"$INSTALL_OWNER" -g
"$INSTALL_GROUP" -m
0444 "$MANPAGE" "$MANDIR"
79 function LinkManPages
() {
80 MANPAGE
=`basename "$1"`
81 SECTION
=`basename "${MANPAGE/*./}"`
82 MANDIR
="$DSTROOT"/usr
/share
/man
/man
"$SECTION"
85 ln -hf
"$MANDIR/$MANPAGE" "$MANDIR/$LINK"
90 gen.subproj
/getifaddrs
.3 \
91 gen.subproj
/getifmaddrs
.3 \
92 gen.subproj
/gethostbyname
.3 \
93 gen.subproj
/getipnodebyname
.3 \
94 gen.subproj
/getnetent
.3 \
95 gen.subproj
/getprotoent
.3 \
96 gen.subproj
/getservent
.3 \
97 gen.subproj
/if_indextoname
.3 \
98 gen.subproj
/inet6_rth_space
.3 \
99 gen.subproj
/inet6_rthdr_space
.3 \
100 gen.subproj
/inet6_option_space
.3 \
101 gen.subproj
/inet6_opt_init
.3
104 lookup.subproj
/bootparams
.5 \
105 lookup.subproj
/gai_strerror
.3 \
106 lookup.subproj
/getaddrinfo
.3 \
107 lookup.subproj
/getfsent
.3 \
108 lookup.subproj
/getgrent
.3 \
109 lookup.subproj
/getgrouplist
.3 \
110 lookup.subproj
/getnameinfo
.3 \
111 lookup.subproj
/getnetgrent
.3 \
112 lookup.subproj
/getpwent
.3 \
113 lookup.subproj
/initgroups
.3
116 membership.subproj
/mbr_check_membership
.3 \
117 membership.subproj
/mbr_uid_to_uuid
.3
120 nis.subproj
/yp_all
.3 \
121 nis.subproj
/yp_bind
.3 \
122 nis.subproj
/yp_first
.3 \
123 nis.subproj
/yp_get_default_domain
.3 \
124 nis.subproj
/yp_master
.3 \
125 nis.subproj
/yp_match
.3 \
126 nis.subproj
/yp_next
.3 \
127 nis.subproj
/yp_order
.3 \
128 nis.subproj
/yp_unbind
.3 \
129 nis.subproj
/ypclnt
.3 \
130 nis.subproj
/yperr_string
.3 \
131 nis.subproj
/ypprot_err
.3 \
135 rpc.subproj
/bindresvport
.3 \
136 rpc.subproj
/getrpcent
.3 \
137 rpc.subproj
/getrpcport
.3 \
142 util.subproj
/rcmd
.3 \
143 util.subproj
/hosts.equiv
.5
145 LinkManPages gethostbyname
.3 \
146 endhostent
.3 gethostbyaddr
.3 gethostbyname2.3 \
147 gethostent
.3 herror
.3 hstrerror
.3 sethostent
.3
149 LinkManPages getifaddrs
.3 \
152 LinkManPages getipnodebyname
.3 \
153 freehostent
.3 getipnodebyaddr
.3
155 LinkManPages getnetent
.3 \
156 endnetent
.3 getnetbyaddr
.3 getnetbyname
.3 setnetent
.3
158 LinkManPages getprotoent
.3 \
159 endprotoent
.3 getprotobyname
.3 getprotobynumber
.3 setprotoent
.3
161 LinkManPages getservent
.3 \
162 endservent
.3 getservbyname
.3 getservbyport
.3 setservent
.3
164 LinkManPages if_indextoname
.3 \
165 if_freenameindex
.3 if_nameindex
.3 if_nametoindex
.3
167 LinkManPages inet6_option_space
.3 \
168 inet6_option_alloc
.3 inet6_option_append
.3 \
169 inet6_option_find
.3 inet6_option_init
.3 inet6_option_next
.3
171 LinkManPages inet6_rthdr_space
.3 \
172 inet6_rthdr_add
.3 inet6_rthdr_getaddr
.3 \
173 inet6_rthdr_getflags
.3 inet6_rthdr_init
.3 \
174 inet6_rthdr_lasthop
.3 inet6_rthdr_reverse
.3 \
175 inet6_rthdr_segments
.3
177 LinkManPages inet6_opt_init
.3 \
178 inet6_opt_append
.3 inet6_opt_finish
.3 inet6_opt_set_val
.3 \
179 inet6_opt_next
.3 inet6_opt_find
.3 inet6_opt_get_val
.3
181 LinkManPages getaddrinfo
.3 \
184 LinkManPages getfsent
.3 \
185 endfsent
.3 getfsfile
.3 getfsspec
.3 getfstype
.3 setfsent
.3
187 LinkManPages getgrent
.3 \
188 endgrent
.3 getgrgid
.3 getgrgid_r
.3 getgrnam
.3 \
189 getgrnam_r
.3 setgrent
.3 setgroupent
.3
191 LinkManPages getnetgrent
.3 \
192 endnetgrent
.3 innetgr
.3 setnetgrent
.3
194 LinkManPages getpwent
.3 \
195 endpwent
.3 getpwnam
.3 getpwnam_r
.3 getpwuid
.3 \
196 getpwuid_r
.3 setpassent
.3 setpwent
.3 setpwfile
.3 \
197 getpwuuid
.3 getpwuuid_r
.3
199 LinkManPages mbr_uid_to_uuid
.3 \
200 mbr_gid_to_uuid
.3 mbr_sid_to_uuid
.3 mbr_uuid_to_id
.3 mbr_uuid_to_sid
.3 \
201 mbr_sid_to_string
.3 mbr_string_to_sid
.3
203 LinkManPages mbr_check_membership
.3 \
204 mbr_check_service_membership
.3
206 LinkManPages getrpcent
.3 \
207 getrpcbyname
.3 getrpcbynumber
.3 endrpcent
.3 setrpcent
.3
210 auth_destroy
.3 authnone_create
.3 authunix_create
.3 \
211 authunix_create_default
.3 callrpc
.3 clnt_broadcast
.3 \
212 clnt_call
.3 clnt_control
.3 clnt_create
.3 clnt_destroy
.3 \
213 clnt_freeres
.3 clnt_geterr
.3 clnt_pcreateerror
.3 \
214 clnt_perrno
.3 clnt_perror
.3 clnt_spcreateerror
.3 \
215 clnt_sperrno
.3 clnt_sperror
.3 clntraw_create
.3 \
216 clnttcp_create
.3 clntudp_bufcreate
.3 clntudp_create
.3 \
217 get_myaddress
.3 pmap_getmaps
.3 pmap_getport
.3 pmap_rmtcall
.3 \
218 pmap_set
.3 pmap_unset
.3 regsterrpc
.3 rpc_createerr
.3 \
219 svc_destroy
.3 svc_fds
.3 svc_fdset
.3 svc_getargs
.3 \
220 svc_getcaller
.3 svc_getreg
.3 svc_getregset
.3 svc_register
.3 \
221 svc_run
.3 svc_sendreply
.3 svc_unregister
.3 svcerr_auth
.3 \
222 svcerr_decode
.3 svcerr_noproc
.3 svcerr_noprog
.3 \
223 svcerr_progvers
.3 svcerr_systemerr
.3 svcerr_weakauth
.3 \
224 svcfd_create
.3 svcraw_create
.3 svctcp_create
.3 \
225 svcudp_bufcreate
.3 xdr_accepted_reply
.3 xdr_authunix_parms
.3 \
226 xdr_callhdr
.3 xdr_callmsg
.3 xdr_opaque_auth
.3 xdr_pmap
.3 \
227 xdr_pmaplist
.3 xdr_rejected_reply
.3 xdr_replymsg
.3 \
228 xprt_register
.3 xprt_unregister
.3
231 xdr_array
.3 xdr_bool
.3 xdr_bytes
.3 xdr_char
.3 \
232 xdr_destroy
.3 xdr_double
.3 xdr_enum
.3 xdr_float
.3 xdr_free
.3 \
233 xdr_getpos
.3 xdr_inline
.3 xdr_int
.3 xdr_long
.3 \
234 xdrmem_create
.3 xdr_opaque
.3 xdr_pointer
.3 xdrrec_create
.3 \
235 xdrrec_endofrecord
.3 xdrrec_eof
.3 xdrrec_skiprecord
.3 \
236 xdr_reference
.3 xdr_setpos
.3 xdr_short
.3 xdrstdio_create
.3 \
237 xdr_string
.3 xdr_u_char
.3 xdr_u_long
.3 xdr_u_short
.3 \
238 xdr_union
.3 xdr_vector
.3 xdr_void
.3 xdr_wrapstring
.3
240 LinkManPages rcmd
.3 \
241 iruserok
.3 iruserok_sa
.3 rcmd_af
.3 rresvport
.3 rresvport_af
.3 ruserok
.3
243 LinkManPages hosts.equiv
.5 \