mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
1.2 KiB

  1. #!/bin/sh
  2. #
  3. # We only need iptables, ip+tc, ssh and a kernel. But since we would
  4. # make a native build we need a lot of other stuff for building those
  5. # packages. This is autodetected here.
  6. #
  7. # Various small other packages (like bash and fileutils) which are
  8. # also needed for the router are selected automatically because of the
  9. # dependencies ...
  10. perl -e '
  11. my @x=qw/iptables iproute2 openssh linux24 util-linux time
  12. coreutils procps strace pciutils 00-dirtree/;
  13. $b{$_}=1 foreach @x;
  14. print "\n";
  15. print "ALL: ".join(" ", @x)."\n";
  16. print "\n";
  17. while (<>) {
  18. next unless /(.*): [0-9]* [0-9]* (.*)/;
  19. my ($pkg, $deps) = ($1, '');
  20. foreach (split /\s+/, $2) {
  21. next if /^(linux26|alsa|rpm|pam|gcc2)([^a-z]|$)/;
  22. next unless -d "../../package/base/$_";
  23. $deps .= " $_"; $b{$_} = 1;
  24. }
  25. print "$pkg: $deps\n\t\@echo \"\/ $pkg \/ { p; d; }\"\n";
  26. $a{$pkg} = 1;
  27. }
  28. foreach (keys %b) { print "$_:\n\t\@echo \"/ $_ / { p; d; }\"\n\n" if not defined $a{$_}; }
  29. ' < ../../scripts/dep_db.txt > pkgsel.mk
  30. echo '# This file is auto-generated from pkgsel.sh' > pkgsel.sed
  31. make -f pkgsel.mk ALL 2> /dev/null | sort -u >> pkgsel.sed
  32. echo 'd;' >> pkgsel.sed; rm -f pkgsel.mk