summaryrefslogtreecommitdiff
path: root/scripts/metadata.pm
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2007-09-29 01:21:56 +0000
committerFelix Fietkau <nbd@openwrt.org>2007-09-29 01:21:56 +0000
commit97b61354626866dd2483c2a283ab9b2bc087ac74 (patch)
tree4ca23a9af854189fb18b7e81268a7c0089890335 /scripts/metadata.pm
parent03543ec4a4ee24df583843d386a7a39372865961 (diff)
downloadmtk-20170518-97b61354626866dd2483c2a283ab9b2bc087ac74.zip
mtk-20170518-97b61354626866dd2483c2a283ab9b2bc087ac74.tar.gz
mtk-20170518-97b61354626866dd2483c2a283ab9b2bc087ac74.tar.bz2
add a packaging method that installs files into a subdirectory of bin/ instead of an ipkg
SVN-Revision: 9060
Diffstat (limited to 'scripts/metadata.pm')
-rw-r--r--scripts/metadata.pm8
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/metadata.pm b/scripts/metadata.pm
index f904462..ff39e34 100644
--- a/scripts/metadata.pm
+++ b/scripts/metadata.pm
@@ -63,6 +63,7 @@ sub parse_package_metadata($) {
$pkg->{depends} = [];
$pkg->{builddepends} = [];
$pkg->{subdir} = $subdir;
+ $pkg->{tristate} = 1;
$package{$1} = $pkg;
push @{$srcpackage{$src}}, $pkg;
};
@@ -88,6 +89,13 @@ sub parse_package_metadata($) {
push @{$category{$1}->{$src}}, $pkg;
};
/^Description: \s*(.*)\s*$/ and $pkg->{description} = "\t\t $1\n". get_multiline(*FILE, "\t\t ");
+ /^Type: \s*(.+)\s*$/ and do {
+ $pkg->{type} = [ split /\s+/, $1 ];
+ undef $pkg->{tristate};
+ foreach my $type (@{$pkg->{type}}) {
+ $type =~ /ipkg/ and $pkg->{tristate} = 1;
+ }
+ };
/^Config: \s*(.*)\s*$/ and $pkg->{config} = "$1\n".get_multiline(*FILE);
/^Prereq-Check:/ and $pkg->{prereq} = 1;
/^Preconfig:\s*(.+)\s*$/ and do {