Changeset 990 in MondoRescue for branches/stable/mindi-busybox


Ignore:
Timestamp:
Nov 27, 2006, 12:46:59 AM (17 years ago)
Author:
Bruno Cornec
Message:

We now have a correct mindi-busybox package for Debian

Location:
branches/stable/mindi-busybox/distributions/debian
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/mindi-busybox/distributions/debian/control

    r823 r990  
    88Package: mindi-busybox
    99Architecture: amd64 i386 ia64
    10 Depends: binutils, bzip2, module-init-tools
    1110Description: creates a busybox version suited for mindi
    1211 Mindi is a script to create boot/root disks based on your system. It uses
  • branches/stable/mindi-busybox/distributions/debian/rules

    r982 r990  
    99PACKAGE_NAME = mindi-busybox
    1010
    11 # These are used for cross-compiling and for saving the configure script
    12 # from having to guess our platform (since we know it already)
    13 DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
    14 DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
     11# Don't set any compiler flags - busybox does that just fine
    1512
    16 CFLAGS = -Wall
     13configure: configure-stamp
    1714
    18 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
    19     CFLAGS += -O0
    20 else
    21     CFLAGS += -O2
    22 endif
    23 ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
    24     INSTALL_PROGRAM += -s
    25 endif
    26 
    27 config.status: configure
     15configure-stamp:
    2816    dh_testdir
    29     # Configure the package.
    30     CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr
     17    touch configure-stamp
    3118
    3219# Build both architecture dependent and independent
    33 build: build-arch build-indep
     20build: build-stamp
    3421
    35 # Build architecture dependent
    36 build-arch: build-arch-stamp
    37 
    38 build-arch-stamp:  config.status
     22build-stamp: configure-stamp
    3923    dh_testdir
    4024
    4125    # Compile the package.
     26    mv .config .config.sav
     27    $(MAKE) distclean
     28    mv .config.sav .config
    4229    $(MAKE) oldconfig
    4330    $(MAKE) busybox
     
    4532    touch build-stamp
    4633
    47 # Build architecture independent
    48 build-indep: build-indep-stamp
    49 
    50 build-indep-stamp:  config.status
    51     # Nothing to do, the only indep item is the manual which is available as html in original source
    52     touch build-indep-stamp
    53 
    5434clean:
    5535    dh_testdir
    5636    dh_testroot
    57     rm -f build-arch-stamp build-indep-stamp
     37    rm -f build-stamp configure-stamp
    5838    # Clean temporary document directory
    5939    rm -rf debian/doc-temp
    6040    # Clean up.
     41    -mv .config .config.sav
    6142    -$(MAKE) distclean
    62     rm -f config.log
    63 ifneq "$(wildcard /usr/share/misc/config.sub)" ""
    64     cp -f /usr/share/misc/config.sub config.sub
    65 endif
    66 ifneq "$(wildcard /usr/share/misc/config.guess)" ""
    67     cp -f /usr/share/misc/config.guess config.guess
    68 endif
     43    -mv .config.sav .config
     44    -rm -f busybox
    6945
    7046    dh_clean
    7147
    7248# Install architecture dependent and independent
    73 install: install-arch install-indep
    74 
    75 # Install architecture dependent
    76 install-arch: build-arch
     49install: build
    7750    dh_testdir
    7851    dh_testroot
    79     dh_clean -k -s
    80     dh_installdirs -s
     52    dh_clean -k
     53    dh_installdirs
    8154
    8255    # Install the package files into build directory:
     
    8558    # - copy doc
    8659    mkdir -p debian/doc-temp
    87     cp -a ChangeLog INSTALL LICENSE AUTHORS README TODO changelog svn.log debian/doc-temp/html
     60    cp -a ChangeLog INSTALL LICENSE AUTHORS README TODO changelog svn.log debian/doc-temp
    8861
    8962    dh_install -s
    9063
    91 # Install architecture independent
    92 install-indep: build-indep
     64# Build architecture independant packages using the common target.
     65binary-indep: build install
     66    # None
     67
     68# Build architecture dependant packages using the common target.
     69binary-arch: build install
    9370    dh_testdir
    9471    dh_testroot
    95     dh_clean -k -i
    96     dh_installdirs -i
    97     dh_install -i
    98 
    99 # Must not depend on anything. This is to be called by
    100 # binary-arch/binary-indep
    101 # in another 'make' thread.
    102 binary-common:
    103     dh_testdir
    104     dh_testroot
    105     dh_installchangelogs ChangeLog
    10672    dh_installdocs
    107     dh_installman
    108     dh_link
    10973    dh_strip
    11074    dh_compress
    11175    dh_fixperms
    11276    dh_installdeb
    113     dh_shlibdeps
    11477    dh_gencontrol
    11578    dh_md5sums
    11679    dh_builddeb
    11780
    118 # Build architecture independant packages using the common target.
    119 binary-indep: build-indep install-indep
    120     $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common
    121 
    122 # Build architecture dependant packages using the common target.
    123 binary-arch: build-arch install-arch
    124     $(MAKE) -f debian/rules DH_OPTIONS=-a binary-common
    125 
    126 # Build architecture depdendent and independent packages
    12781binary: binary-arch binary-indep
    128 .PHONY: clean binary
     82.PHONY: build clean binary-indep binary-arch binary install configure
Note: See TracChangeset for help on using the changeset viewer.