Changeset 3674


Ignore:
Timestamp:
2006-04-20T01:14:13+02:00 (12 years ago)
Author:
nbd
Message:

bugfix in package/rules.mk, add support for dumping package information with make DUMP=1

Location:
branches/buildroot-ng/openwrt/package
Files:
1 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • branches/buildroot-ng/openwrt/package/busybox/Makefile

    r3647 r3674  
    2020CATEGORY:=Base system 
    2121TITLE:=Core utilities for embedded Linux 
     22DESCRIPTION:=The Swiss Army Knife of embedded Linux.  It slices, it dices, it\\\ 
     23makes Julian Fries. 
     24URL:=http://busybox.net 
    2225endef 
    2326 
  • branches/buildroot-ng/openwrt/package/iptables/Makefile

    r3647 r3674  
    2121 
    2222include $(TOPDIR)/package/rules.mk 
     23ifeq ($(DUMP),) 
    2324include $(LINUX_DIR)/.config 
    2425include $(TOPDIR)/target/linux/netfilter.mk 
     26endif 
    2527 
    2628define Package/iptables 
     
    2830CATEGORY:=Base system 
    2931TITLE:=IPv4 firewall administration tool 
     32URL:=http://netfilter.org/ 
    3033endef 
    3134 
  • branches/buildroot-ng/openwrt/package/rules.mk

    r3647 r3674  
    11# default target 
     2ifneq ($(DUMP),) 
     3all: dumpinfo 
     4else 
    25all: compile 
     6endif 
    37 
    48define Build/DefaultTargets 
     
    7276        mkdir -p $$(IDIR_$(1))/CONTROL 
    7377        echo "Package: $(1)" > $$(IDIR_$(1))/CONTROL/control 
    74         echo "Version: $$(VERSION)" >> $$(IDIR_$(1))/CONTROL/control 
     78        echo "Version: $(VERSION)" >> $$(IDIR_$(1))/CONTROL/control 
    7579        echo "Depends: $$(IDEPEND_$(1))" >> $$(IDIR_$(1))/CONTROL/control 
    76         echo "Source: $$(SOURCE)" >> $$(IDIR_$(1))/CONTROL/control 
    77         echo "Section: $$(SECTION)" >> $$(IDIR_$(1))/CONTROL/control 
    78         echo "Priority: $$(PRIORITY)" >> $$(IDIR_$(1))/CONTROL/control 
    79         echo "Maintainer: $$(MAINTAINER)" >> $$(IDIR_$(1))/CONTROL/control 
    80         echo "Architecture: $$(PKGARCH)" >> $$(IDIR_$(1))/CONTROL/control 
    81         echo "Description: $$(TITLE)" >> $$(IDIR_$(1))/CONTROL/control 
    82         echo "$$(DESCRIPTION)" | sed -e 's,\\,\n ,g' >> $$(IDIR_$(1))/CONTROL/control 
     80        echo "Source: $(SOURCE)" >> $$(IDIR_$(1))/CONTROL/control 
     81        echo "Section: $(SECTION)" >> $$(IDIR_$(1))/CONTROL/control 
     82        echo "Priority: $(PRIORITY)" >> $$(IDIR_$(1))/CONTROL/control 
     83        echo "Maintainer: $(MAINTAINER)" >> $$(IDIR_$(1))/CONTROL/control 
     84        echo "Architecture: $(PKGARCH)" >> $$(IDIR_$(1))/CONTROL/control 
     85        echo "Description: $(TITLE)" >> $$(IDIR_$(1))/CONTROL/control 
     86        echo "$(DESCRIPTION)" | sed -e 's,\\,\n ,g' >> $$(IDIR_$(1))/CONTROL/control 
    8387        chmod 644 $$(IDIR_$(1))/CONTROL/control 
    8488        for file in conffiles preinst postinst prerm postrm; do \ 
     
    96100        rm -f $$(IPKG_$(1)) 
    97101clean: $(1)-clean 
     102 
     103DUMPINFO += \ 
     104        echo "Package: $(1)"; \ 
     105        echo "Version: $(VERSION)"; \ 
     106        echo "Depends: $(IDEPEND_$(1))"; \ 
     107        echo "Title: $(TITLE)"; \ 
     108        echo "$(DESCRIPTION)" | sed -e 's,\\,\n,g'; \ 
     109        echo; \ 
     110        echo "$(URL)"; \ 
     111        echo "@@"; 
     112 
     113PACKAGES += $(1) 
    98114 
    99115ifneq ($(__DEFAULT_TARGETS),1) 
     
    144160endef 
    145161 
     162ifneq ($(DUMP),) 
     163dumpinfo: 
     164        $(DUMPINFO) 
     165else 
     166 
    146167source: $(DL_DIR)/$(PKG_SOURCE) 
    147168prepare: source 
     
    184205        @$(MAKE) clean-targets $(MAKE_TRACE) 
    185206        rm -rf $(PKG_BUILD_DIR) 
    186  
    187 .PHONY: all source prepare compile install clean 
     207endif 
     208 
     209.PHONY: all source prepare compile install clean dumpinfo 
Note: See TracChangeset for help on using the changeset viewer.