source: scripts/target-scripts/target-portmap.sh@ 0ee931e

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 0ee931e was 617118d, checked in by Jim Gifford <clfs@…>, 19 years ago

r561@server (orig r559): root | 2005-06-05 02:38:49 -0700
Fixed Directory Structure

  • Property mode set to 100755
File size: 992 bytes
Line 
1#!/bin/sh
2
3# cross-lfs target portmap build
4# ------------------------------
5# $LastChangedBy$
6# $LastChangedDate$
7# $LastChangedRevision$
8# $HeadURL$
9#
10
11cd ${SRC}
12LOG=portmap-target.log
13
14set_libdirname
15setup_multiarch
16
17# TODO: should probably just install into
18# ${LFS} and be done with it
19if [ "${USE_SYSROOT}" = "Y" ]; then
20 BASEDIR=${LFS}
21else
22 BASEDIR=${TGT_TOOLS}
23fi
24
25unpack_tarball portmap_${PORTMAP_VER}
26cd ${PKGDIR}
27apply_patch portmap-5beta-compilation_fixes-3
28apply_patch portmap-5beta-glibc_errno_fix-1
29
30# Do not strip during install
31chmod 644 Makefile
32if [ ! -f Makefile-ORIG ]; then cp Makefile Makefile-ORIG ; fi
33sed '/install.*-s /s@-s @@g' Makefile-ORIG > Makefile
34
35max_log_init portmap ${PORTMAP_VER} "target (shared)" ${BUILDLOGS} ${LOG}
36make CC="${TARGET}-gcc ${ARCH_CFLAGS} ${TGT_CFLAGS}" \
37 >> ${LOGFILE} 2>&1 &&
38echo " o Build OK" &&
39
40min_log_init ${INSTLOGS} &&
41su -c "make BASEDIR=${BASEDIR} install" \
42 >> ${LOGFILE} 2>&1 &&
43echo " o ALL OK" || barf
44
Note: See TracBrowser for help on using the repository browser.