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