English Language flag
// Log In
// CVSweb
Project: FreeWRT
// Summary // Activity // Search // Tracker // Lists // News // SCM // Wiki

SCM Repository

ViewVC logotype

Contents of /trunk/freewrt/tools/paxmirabilis/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3816 - (show annotations) (download)
Wed Oct 29 17:58:40 2008 UTC (5 years, 3 months ago) by tg
File size: 1696 byte(s)
FreeWRT trunk:

• merge new MirCPIO upstream, changes:
  – allow multiple -v options not only for tar but also for cpio, pax
  – add code to work around broken archives such as the CPIO archive inside
    Fedora Core 4 glibc-common-2.3.6-3.i386.rpm which carry the actual data
    of hardlinks not in the first but a later (here, the last) occurence of
    the file in question: iff hardlinking succeeds (no cross-device!), size
    of the linked files is 0, size of the archive member is greater than 0,
    we are extracting, but not to stdout, proceed writing out the data.
• add mircpio, mirpax, mirtar links in order to prevent interfering with
  native tools when both are in $PATH (this has worked since the last
  update, can be used now)

FreeWRT 1.0-stable:

• merge paxmirabilis complete from trunk

note: untested

1 # $FreeWRT$
2 #-
3 # This file is part of the FreeWRT project. FreeWRT is copyrighted
4 # material, please see the LICENCE file in the top-level directory
5 # or at http://www.freewrt.org/licence for details.
6
7 include $(TOPDIR)/rules.mk
8
9 WRKBUILD= $(TOOLS_BUILD_DIR)/paxmirabilis
10
11 OUR_FLAGS= -I${TOPDIR}/scripts \
12 -include ${TOPDIR}/scripts/param.h
13
14 ifeq ($(OStype),Linux)
15 OUR_FLAGS+= -DLONG_OFF_T \
16 -D_STRLCPY_DEFNS
17 SRCS+= strlfun.c \
18 strmode.c \
19 fgetln.c
20 endif
21
22 SRCS+= \
23 src/ar_io.c \
24 src/ar_subs.c \
25 src/buf_subs.c \
26 src/cache.c \
27 src/cpio.c \
28 src/file_subs.c \
29 src/ftree.c \
30 src/gen_subs.c \
31 src/getoldopt.c \
32 src/options.c \
33 src/pat_rep.c \
34 src/pax.c \
35 src/sel_subs.c \
36 src/tables.c \
37 src/tar.c \
38 src/tty_subs.c
39
40 prepare: ${WRKBUILD}
41
42 compile: prepare ${WRKBUILD}/pax
43
44 install:
45 mkdir -p $(STAGING_TOOLS)/bin
46 -rm -f $(STAGING_TOOLS)/bin/{pax,cpio,tar} ${TOPDIR}/lbin/{pax,cpio,tar}
47 install -c -s -m 555 ${WRKBUILD}/pax $(STAGING_TOOLS)/bin/pax
48 cd ${STAGING_TOOLS}/bin && ln pax cpio && ln pax tar
49 cp $(STAGING_TOOLS)/bin/pax ${TOPDIR}/lbin/pax
50 cd ${TOPDIR}/lbin && ln pax cpio && ln pax tar
51 cd ${TOPDIR}/lbin && ln pax mircpio && ln pax mirpax && ln pax mirtar
52
53 install-lbin:
54 rm -f ${TOPDIR}/lbin/{pax,cpio,tar}
55 if [ -e $(STAGING_TOOLS)/bin/pax ]; then \
56 cp $(STAGING_TOOLS)/bin/pax ${TOPDIR}/lbin/pax; \
57 cd ${TOPDIR}/lbin && ln pax cpio && ln pax tar && \
58 ln pax mircpio && ln pax mirpax && ln pax mirtar; \
59 fi
60
61 package:
62
63 clean:
64 rm -rf ${WRKBUILD}
65 rm -f $(STAGING_TOOLS)/bin/{pax,cpio,tar} ${TOPDIR}/lbin/{pax,cpio,tar}
66
67 ${WRKBUILD}:
68 mkdir -p ${WRKBUILD}
69
70 ${WRKBUILD}/pax: ${SRCS}
71 ${HOSTCC} ${HOSTCFLAGS} -Isrc ${OUR_FLAGS} -o $@ $^

root@freewrt.org:443
ViewVC Help
Powered by ViewVC 1.1.20