source: scripts/native-scripts/native-psmisc.sh@ 9b5d6cdc

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 9b5d6cdc 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: 1.3 KB
RevLine 
[617118d]1#!/bin/bash
2
3# cross-lfs native psmisc build
4# -----------------------------
5# $LastChangedBy$
6# $LastChangedDate$
7# $LastChangedRevision$
8# $HeadURL$
9#
10
11cd ${SRC}
12LOG=psmisc-native.log
13
14set_libdirname
15setup_multiarch
16
17unpack_tarball psmisc-${PSMISC_VER} &&
18cd ${PKGDIR}
19
20# Patch psmisc so we can pass CFLAGS from env during configure
21for file in src/Makefile.in src/Makefile.am ; do
22 test -f ${file}-ORIG ||
23 cp ${file} ${file}-ORIG
24 sed 's/CFLAGS =/& @CFLAGS@/' ${file}-ORIG > ${file}
25done
26
27# Remove newline in killall.c
28case ${PSMISC_VER} in
29 21.2 )
30 test -f src/killall.c-ORIG ||
31 cp src/killall.c src/killall.c-ORIG
32 # HACK - escape wrongly embedded newline (line 398)
33 sed 's@precede other$@& \\@' src/killall.c-ORIG > src/killall.c
34 ;;
35esac
36
37max_log_init Psmisc ${PSMISC_VER} "native (shared)" ${CONFLOGS} ${LOG}
38CC="${CC-gcc} ${ARCH_CFLAGS}" \
39CFLAGS="-O2 -pipe ${TGT_CFLAGS}" \
40./configure --prefix=/usr --exec-prefix=/ \
41 >> ${LOGFILE} 2>&1 &&
42echo " o Configure OK" &&
43
44min_log_init ${BUILDLOGS} &&
45make LDFLAGS="-s" \
46 >> ${LOGFILE} 2>&1 &&
47echo " o Build OK" &&
48
49min_log_init ${TESTLOGS} &&
50make check \
51 >> ${LOGFILE} 2>&1 &&
52echo " o Test OK" &&
53
54min_log_init ${INSTLOGS} &&
55make install \
56 >> ${LOGFILE} 2>&1 &&
57echo " o ALL OK" || barf
58
Note: See TracBrowser for help on using the repository browser.