From 4da12a3e62b798cc65da2ed78f25a7ad79470569 Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Mon, 30 May 2005 13:10:26 +0000 Subject: [PATCH] Clifford Wolf: Added gnome14-dirtree and gnome2-dirtree packages Improved misc/archive/getdirdeps.pl [2005052017440208575] (https://www.rocklinux.net/submaster) git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@6017 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc --- misc/archive/getdirdeps.pl | 24 ++++- .../gnome14-dirtree/gnome14-dirtree.conf | 63 +++++++++++ .../gnome14-dirtree/gnome14-dirtree.desc | 38 +++++++ .../gnome2/gnome2-dirtree/gnome2-dirtree.conf | 100 ++++++++++++++++++ .../gnome2/gnome2-dirtree/gnome2-dirtree.desc | 38 +++++++ 5 files changed, 262 insertions(+), 1 deletion(-) create mode 100644 package/gnome14/gnome14-dirtree/gnome14-dirtree.conf create mode 100644 package/gnome14/gnome14-dirtree/gnome14-dirtree.desc create mode 100644 package/gnome2/gnome2-dirtree/gnome2-dirtree.conf create mode 100644 package/gnome2/gnome2-dirtree/gnome2-dirtree.desc diff --git a/misc/archive/getdirdeps.pl b/misc/archive/getdirdeps.pl index 29160465f..50d3e2c59 100644 --- a/misc/archive/getdirdeps.pl +++ b/misc/archive/getdirdeps.pl @@ -4,11 +4,26 @@ use English; use strict; if (not defined $ARGV[0] or not chdir $ARGV[0]) { - print "\nUsage: $0 rootdir\n\n"; + print "\nUsage: $0 rootdir [min-pkgcount] [dir-regex]\n\n"; print "E.g.: $0 build/ref0818-2.1.0-DEV-x86-reference-expert\n\n"; exit 1; } +shift @ARGV; + +my $minpkgcount = 0; +my $dirregex; + +if (defined $ARGV[0] and $ARGV[0] =~ /^[0-9]+$/) { + $minpkgcount = $ARGV[0]; + shift @ARGV; +} + +if (defined $ARGV[0]) { + $dirregex = $ARGV[0]; + shift @ARGV; +} + my %baddirs; my %badcount; my %badpkgs; @@ -19,12 +34,18 @@ while () { my %dirdep; my %filedep; + next if $p eq "rock-debug"; + open P, $_ or die $!; while (

) { chomp; my ($d, $f) = split /: /; next if $d =~ /-dirtree$/; + if ($dirregex ne "") { + next if $f !~ /$dirregex/; + } + if (-d $f) { $dirdep{$d}{$f} = 1; } else { @@ -47,6 +68,7 @@ while () { } foreach my $d (keys %badcount) { + next if $badcount{$d} < $minpkgcount; print "\nFound pure dir dependencies to $d ($badcount{$d}):\n"; foreach (keys %{$badpkgs{$d}}) { print "\tpkg\t$badpkgs{$d}{$_}\t$_\n"; diff --git a/package/gnome14/gnome14-dirtree/gnome14-dirtree.conf b/package/gnome14/gnome14-dirtree/gnome14-dirtree.conf new file mode 100644 index 000000000..572494871 --- /dev/null +++ b/package/gnome14/gnome14-dirtree/gnome14-dirtree.conf @@ -0,0 +1,63 @@ +# --- ROCK-COPYRIGHT-NOTE-BEGIN --- +# +# This copyright note is auto-generated by ./scripts/Create-CopyPatch. +# Please add additional copyright information _after_ the line containing +# the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by +# the ./scripts/Create-CopyPatch script. Do not edit this copyright text! +# +# ROCK Linux: rock-src/package/gnome14/gtkmm12/gtkmm12.conf +# ROCK Linux is Copyright (C) 1998 - 2005 Clifford Wolf +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. A copy of the GNU General Public +# License can be found at Documentation/COPYING. +# +# Many people helped and are helping developing ROCK Linux. Please +# have a look at http://www.rocklinux.org/ and the Documentation/TEAM +# file for details. +# +# --- ROCK-COPYRIGHT-NOTE-END --- + +NO_SANITY_CHECK=1 +. $base/package/*/*/gnome-14.conf + +gnome14_dirtree() +{ + cd $root/ + mkdir -p $root/$prefix + mkdir -p $root/$prefix/bin + mkdir -p $root/$prefix/include + mkdir -p $root/$prefix/lib + mkdir -p $root/$prefix/lib/glib + mkdir -p $root/$prefix/lib/glib/include + mkdir -p $root/$prefix/share + mkdir -p $root/$prefix/share/aclocal + mkdir -p $root/$prefix/share/doc + mkdir -p $root/$prefix/share/gnome/apps + mkdir -p $root/$prefix/share/gtk-doc + mkdir -p $root/$prefix/share/gtk-doc/html + mkdir -p $root/$prefix/share/info + mkdir -p $root/$prefix/share/locale + mkdir -p $root/$prefix/share/man + mkdir -p $root/$prefix/share/man/man{1,2,3,4,5,6,7,8} + mkdir -p $root/$prefix/share/pixmaps + + for x in man info doc; do + if [ ! -e $root/$prefix/$x ]; then + ln -fs share/$x $root/$prefix/$x + fi + done +} + +srctar=none +autoextract=0 +createprefix=0 +createdocs=0 + +custmain=gnome14_dirtree + +# don't split this package +postflist="pkgsplits=" + diff --git a/package/gnome14/gnome14-dirtree/gnome14-dirtree.desc b/package/gnome14/gnome14-dirtree/gnome14-dirtree.desc new file mode 100644 index 000000000..c92bfc0ee --- /dev/null +++ b/package/gnome14/gnome14-dirtree/gnome14-dirtree.desc @@ -0,0 +1,38 @@ + +[COPY] --- ROCK-COPYRIGHT-NOTE-BEGIN --- +[COPY] +[COPY] This copyright note is auto-generated by ./scripts/Create-CopyPatch. +[COPY] Please add additional copyright information _after_ the line containing +[COPY] the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by +[COPY] the ./scripts/Create-CopyPatch script. Do not edit this copyright text! +[COPY] +[COPY] ROCK Linux: rock-src/package/gnome14/glib12/glib12.desc +[COPY] ROCK Linux is Copyright (C) 1998 - 2005 Clifford Wolf +[COPY] +[COPY] This program is free software; you can redistribute it and/or modify +[COPY] it under the terms of the GNU General Public License as published by +[COPY] the Free Software Foundation; either version 2 of the License, or +[COPY] (at your option) any later version. A copy of the GNU General Public +[COPY] License can be found at Documentation/COPYING. +[COPY] +[COPY] Many people helped and are helping developing ROCK Linux. Please +[COPY] have a look at http://www.rocklinux.org/ and the Documentation/TEAM +[COPY] file for details. +[COPY] +[COPY] --- ROCK-COPYRIGHT-NOTE-END --- + +[I] Gnome14 dirtree package + +[T] This package only contains the gnome14 directory structure. + +[A] The ROCK Linux Project +[M] The ROCK Linux Project + +[C] extra/development +[F] CORE + +[L] GPL +[S] Stable +[V] 0000 +[P] X -?---5---9 110.970 + diff --git a/package/gnome2/gnome2-dirtree/gnome2-dirtree.conf b/package/gnome2/gnome2-dirtree/gnome2-dirtree.conf new file mode 100644 index 000000000..d1baa069a --- /dev/null +++ b/package/gnome2/gnome2-dirtree/gnome2-dirtree.conf @@ -0,0 +1,100 @@ +# --- ROCK-COPYRIGHT-NOTE-BEGIN --- +# +# This copyright note is auto-generated by ./scripts/Create-CopyPatch. +# Please add additional copyright information _after_ the line containing +# the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by +# the ./scripts/Create-CopyPatch script. Do not edit this copyright text! +# +# ROCK Linux: rock-src/package/gnome14/gtkmm12/gtkmm12.conf +# ROCK Linux is Copyright (C) 1998 - 2005 Clifford Wolf +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. A copy of the GNU General Public +# License can be found at Documentation/COPYING. +# +# Many people helped and are helping developing ROCK Linux. Please +# have a look at http://www.rocklinux.org/ and the Documentation/TEAM +# file for details. +# +# --- ROCK-COPYRIGHT-NOTE-END --- + +NO_SANITY_CHECK=1 +. $base/package/*/*/gnome-2.conf + +gnome2_dirtree() +{ + cd $root/ + mkdir -p $root/$prefix + mkdir -p $root/$prefix/bin + mkdir -p $root/$prefix/include + mkdir -p $root/$prefix/lib + mkdir -p $root/$prefix/lib/bonobo + mkdir -p $root/$prefix/lib/bonobo/servers + mkdir -p $root/$prefix/lib/gkrellm + mkdir -p $root/$prefix/lib/gkrellm/plugins + mkdir -p $root/$prefix/lib/nautilus + mkdir -p $root/$prefix/lib/nautilus/extensions-1.0 + mkdir -p $root/$prefix/lib/python2.4 + mkdir -p $root/$prefix/lib/python2.4/site-packages + mkdir -p $root/$prefix/lib/python2.4/site-packages/gtk-2.0 + mkdir -p $root/$prefix/libexec + mkdir -p $root/$prefix/share + mkdir -p $root/$prefix/share/aclocal + mkdir -p $root/$prefix/share/application-registry + mkdir -p $root/$prefix/share/applications + mkdir -p $root/$prefix/share/control-center-2.0 + mkdir -p $root/$prefix/share/control-center-2.0/capplets + mkdir -p $root/$prefix/share/doc + mkdir -p $root/$prefix/share/gnome + mkdir -p $root/$prefix/share/gnome-2.0 + mkdir -p $root/$prefix/share/gnome-2.0/ui + mkdir -p $root/$prefix/share/gnome/apps + mkdir -p $root/$prefix/share/gnome/apps/Internet + mkdir -p $root/$prefix/share/gnome/help + mkdir -p $root/$prefix/share/gnome/wm-properties + mkdir -p $root/$prefix/share/gtk-doc + mkdir -p $root/$prefix/share/icons + mkdir -p $root/$prefix/share/icons/gnome + mkdir -p $root/$prefix/share/icons/gnome/48x48 + mkdir -p $root/$prefix/share/icons/gnome/48x48/mimetypes + mkdir -p $root/$prefix/share/icons/hicolor + mkdir -p $root/$prefix/share/icons/hicolor/16x16 + mkdir -p $root/$prefix/share/icons/hicolor/16x16/apps + mkdir -p $root/$prefix/share/icons/hicolor/32x32 + mkdir -p $root/$prefix/share/icons/hicolor/32x32/apps + mkdir -p $root/$prefix/share/icons/hicolor/48x48 + mkdir -p $root/$prefix/share/icons/hicolor/48x48/apps + mkdir -p $root/$prefix/share/icons/hicolor/48x48/stock + mkdir -p $root/$prefix/share/icons/hicolor/48x48/stock/data + mkdir -p $root/$prefix/share/info + mkdir -p $root/$prefix/share/locale + mkdir -p $root/$prefix/share/man + mkdir -p $root/$prefix/share/man/man{1,2,3,4,5,6,7,8} + mkdir -p $root/$prefix/share/mime-info + mkdir -p $root/$prefix/share/pixmaps + mkdir -p $root/$prefix/share/sgml + mkdir -p $root/$prefix/share/sounds + mkdir -p $root/$prefix/share/themes + mkdir -p $root/$prefix/share/themes/Crux + mkdir -p $root/$prefix/share/themes/Simple + mkdir -p $root/$prefix/share/xml + + for x in man info doc; do + if [ ! -e $root/$prefix/$x ]; then + ln -fs share/$x $root/$prefix/$x + fi + done +} + +srctar=none +autoextract=0 +createprefix=0 +createdocs=0 + +custmain=gnome2_dirtree + +# don't split this package +postflist="pkgsplits=" + diff --git a/package/gnome2/gnome2-dirtree/gnome2-dirtree.desc b/package/gnome2/gnome2-dirtree/gnome2-dirtree.desc new file mode 100644 index 000000000..232927d67 --- /dev/null +++ b/package/gnome2/gnome2-dirtree/gnome2-dirtree.desc @@ -0,0 +1,38 @@ + +[COPY] --- ROCK-COPYRIGHT-NOTE-BEGIN --- +[COPY] +[COPY] This copyright note is auto-generated by ./scripts/Create-CopyPatch. +[COPY] Please add additional copyright information _after_ the line containing +[COPY] the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by +[COPY] the ./scripts/Create-CopyPatch script. Do not edit this copyright text! +[COPY] +[COPY] ROCK Linux: rock-src/package/gnome14/glib12/glib12.desc +[COPY] ROCK Linux is Copyright (C) 1998 - 2005 Clifford Wolf +[COPY] +[COPY] This program is free software; you can redistribute it and/or modify +[COPY] it under the terms of the GNU General Public License as published by +[COPY] the Free Software Foundation; either version 2 of the License, or +[COPY] (at your option) any later version. A copy of the GNU General Public +[COPY] License can be found at Documentation/COPYING. +[COPY] +[COPY] Many people helped and are helping developing ROCK Linux. Please +[COPY] have a look at http://www.rocklinux.org/ and the Documentation/TEAM +[COPY] file for details. +[COPY] +[COPY] --- ROCK-COPYRIGHT-NOTE-END --- + +[I] Gnome2 dirtree package + +[T] This package only contains the gnome2 directory structure. + +[A] The ROCK Linux Project +[M] The ROCK Linux Project + +[C] extra/development +[F] CORE + +[L] GPL +[S] Stable +[V] 0000 +[P] X -?---5---9 110.971 +