Changeset 9060


Ignore:
Timestamp:
2007-09-29T03:21:56+02:00 (10 years ago)
Author:
nbd
Message:

add a packaging method that installs files into a subdirectory of bin/ instead of an ipkg

Location:
trunk
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/package-dumpinfo.mk

    r8026 r9060  
    2929                echo "Title: $(TITLE)"; \ 
    3030                echo "Maintainer: $(MAINTAINER)"; \ 
     31                echo "Type: $(if $(Package/$(1)/targets),$(Package/$(1)/targets),$(if $(PKG_TARGETS),$(PKG_TARGETS),ipkg))"; \ 
    3132                $(if $(KCONFIG),echo "Kernel-Config: $(KCONFIG)";) \ 
    3233                echo -n "Description: "; \ 
  • trunk/include/package.mk

    r9057 r9060  
    2626include $(INCLUDE_DIR)/package-dumpinfo.mk 
    2727include $(INCLUDE_DIR)/package-ipkg.mk 
     28include $(INCLUDE_DIR)/package-bin.mk 
    2829 
    2930override MAKEFLAGS= 
  • trunk/scripts/metadata.pl

    r8973 r9060  
    362362                        $pkg->{menu} and print "menu"; 
    363363                        print "config PACKAGE_".$pkg->{name}."\n"; 
    364                         print "\t\ttristate \"$title\"\n"; 
     364                        print "\t\t".($pkg->{tristate} ? 'tristate' : 'bool')." \"$title\"\n"; 
    365365                        print "\t\tdefault y if DEFAULT_".$pkg->{name}."\n"; 
    366366                        foreach my $default (split /\s*,\s*/, $pkg->{default}) { 
  • trunk/scripts/metadata.pm

    r8973 r9060  
    6464                        $pkg->{builddepends} = []; 
    6565                        $pkg->{subdir} = $subdir; 
     66                        $pkg->{tristate} = 1; 
    6667                        $package{$1} = $pkg; 
    6768                        push @{$srcpackage{$src}}, $pkg; 
     
    8990                }; 
    9091                /^Description: \s*(.*)\s*$/ and $pkg->{description} = "\t\t $1\n". get_multiline(*FILE, "\t\t "); 
     92                /^Type: \s*(.+)\s*$/ and do { 
     93                        $pkg->{type} = [ split /\s+/, $1 ]; 
     94                        undef $pkg->{tristate}; 
     95                        foreach my $type (@{$pkg->{type}}) { 
     96                                $type =~ /ipkg/ and $pkg->{tristate} = 1; 
     97                        } 
     98                }; 
    9199                /^Config: \s*(.*)\s*$/ and $pkg->{config} = "$1\n".get_multiline(*FILE); 
    92100                /^Prereq-Check:/ and $pkg->{prereq} = 1; 
Note: See TracChangeset for help on using the changeset viewer.