Changeset 228

Show
Ignore:
Timestamp:
07/16/06 20:39:14 (2 years ago)
Author:
tg
Message:

switch to paxmirabilis

ok wbx@

NB: not yet totally tested, but if anything breaks I'll fix it today/tonight

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/freewrt/Makefile

    r161 r228  
    107107                ln -s $$(which make) lbin/gmake; \ 
    108108        fi 
    109         @if which gtar >/dev/null 2>&1; then \ 
    110                 ln -s $$(which gtar) lbin/tar; \ 
    111         else \ 
    112                 ln -s $$(which tar) lbin/tar; \ 
    113         fi 
    114109        @if ! which md5sum >/dev/null 2>&1; then \ 
    115110                cp scripts/md5sum.bsd lbin/md5sum; \ 
  • trunk/freewrt/rules.mk

    r200 r228  
     1# $FreeWRT$ 
     2 
    13include $(TOPDIR)/lbin/prereq.mk 
    24include $(TOPDIR)/.config 
     
    5456 
    5557ifeq ($(BR2_TAR_VERBOSITY),y) 
    56 TAR_OPTIONS=-xvf 
     58TAR_OPTIONS=   -xvf 
    5759else 
    58 TAR_OPTIONS=-xf 
     60TAR_OPTIONS=   -xf 
    5961endif 
    60  
    61 #ifeq ($(shell which pax 2>/dev/null),) 
    62 TAR_EXTRACT=    $(TOPDIR)/lbin/tar $(TAR_OPTIONS) - 
    63 #else 
    64 #TAR_EXTRACT=   pax -r -pma 
    65 #endif 
     62TAR_EXTRACT=    ${TOPDIR}/lbin/tar ${TAR_OPTIONS} - 
    6663 
    6764TARGET_CFLAGS:=$(TARGET_OPTIMIZATION) $(TARGET_DEBUGGING) 
     
    139136                for file in ${DISTFILES}; do \ 
    140137                        case $$file in \ 
    141                         *.zip) unzip $$file ;;
    142                         *.cpio)       cpio -mid <$$file ;; \ 
    143                         *.tar) tar -xf $$file ;;
    144                         *.cpio.Z | *.cpio.gz | *.cgz | *.mcz) \ 
     138                        *.cpio | *.tar)
     139                              cpio -mid <$$file ;; \ 
     140                        *.cpio.Z | *.cpio.gz | *.cgz | *.mcz |
     141                            *.tar.Z | *.tar.gz | *.taz | *.tgz) \ 
    145142                                gzip -dc $$file | cpio -mid ;; \ 
    146                         *.tar.Z | *.tar.gz | *.taz | *.tgz) \ 
    147                                 gzip -dc $$file | tar -xf - ;; \ 
    148                         *.cpio.bz2 | *.cbz) \ 
     143                        *.cpio.bz2 | *.cbz | *.tar.bz2 | *.tbz) \ 
    149144                                bzip2 -dc $$file | cpio -mid ;; \ 
    150                         *.tar.bz2 | *.tbz) \ 
    151                                 bzip2 -dc $$file | tar -xf - ;; \ 
     145                        *.zip) \ 
     146                                unzip $$file ;; \ 
    152147                        esac; \ 
    153148                done 
  • trunk/freewrt/scripts/scan-tools.sh

    r179 r228  
    181181fi 
    182182 
    183 if ! tar --version 2>&1 | fgrep 'GNU tar' >/dev/null 2>&1; then 
    184         echo You must install GNU tar for now, sorry... 
    185         echo this is horrid, I know, but it will be fixed RSN. 
    186         exit 1 
    187 fi 
    188  
    189183#if ! which perl >/dev/null 2>&1; then 
    190184if [[ "$(which perl 2>/dev/null)" != /usr/bin/perl ]]; then 
  • trunk/freewrt/target/linux/image/tgz.mk

    r126 r228  
    11$(KDIR)/root.tar.gz: 
    2         tar --owner=0 --group=0 -czf $@ -C $(KDIR)/root/ . 
     2        tar -M uidgid -cf - -C $(KDIR)/root/ . | gzip -n9 >$@ 
    33 
    44ifeq ($(BOARD),x86) 
  • trunk/freewrt/tools/Makefile

    r197 r228  
    66BUILD_SED_DEP:=sed-install 
    77 
    8 TARGETS:=$(BUILD_SED) ipkg-utils brcm-utils lzma 
     8TARGETS:=paxmirabilis $(BUILD_SED) ipkg-utils brcm-utils lzma 
    99 
    1010TARGETS_INSTALL:=$(patsubst %,%-install,$(TARGETS)) 
     
    1212 
    1313all: install 
    14 install: $(TARGETS_INSTALL) 
     14install: check-pax $(TARGETS_INSTALL) 
    1515clean: $(TARGETS_CLEAN) 
     16 
     17check-pax: 
     18        @[ -e ${TOPDIR}/lbin/pax ] || \ 
     19            rm -f $(TOOLS_STAMP_DIR)/.tools_paxmirabilis-install 
    1620 
    1721$(STAGING_DIR):