How to reshow post installation notes?

When a package is installed, you are presented with a list of tasks (usually file edits) to do to complete installation of that package. Is there a way to reshow these tasks? I installed Xorg but have missed what the tasks were.

Also, as I don't have Xorg working yet, the default terminal does not let me page up to see the beginning of the messages. Is there a way to work around that?
 
scottro and tobik@, that are good ideas but probably not exactly what users like me and the OP actually need.
This problem annoyed me often.
And so I made a Christmas gift for all of us out of it.
Save this script as "showpostinstallnotes" or the like and make it executable, or execute it with perl <filename>.
Code:
#!/usr/bin/env perl
my $sps = '#######################################################################';
my $spl = '############################################################################################';
my ($pkgswithnotes, $pkgswithnotesandnomaint, $pkgswithnomaint);
my ($pkgswithnotescnt, $pkgswithnotesandnomaintcnt, $pkgswithnomaintcnt) = (0, 0, 0);
my $pkglist = `pkg info`;
$pkglist =~ s/^(\S+?) .*$/$1/mg;
my @pkga = split /\n/, $pkglist;
my $pinstinfo = '';
foreach my $p (@pkga) {
  my ($pkg) = $p =~ /^([^:]*)/;
  my ($pkgm) = $pkg =~ /^(.*?)[^-]*$/;
  chop $pkgm;
  my $s = `pkg info -D $p`;
  next if (index( $s, "\n") == (length($s)-1));
  if (index( $s, "port currently does not have a maintainer") != -1) {
    if ($s =~ /\#maintain-port\n$/) {
      if ($s =~ /^$pkg:\nAlways:\n===>   NOTICE:\n\nThe $pkgm port currently does not have a maintainer/ ) {
        $pkgswithnotesandnomaint .= (length( $pkgswithnotesandnomaint)) ? " $pkgm" : $pkgm;
        $pkgswithnomaint .= (length( $pkgswithnomaint)) ? " $pkgm" : $pkgm;
        $pkgswithnomaint .= (length( $pkgswithnomaint)) ? " $pkgm" : $pkgm;
        ++$pkgswithnomaintcnt;
        next;
      } else {
        ++$pkgswithnotesandnomaintcnt;
        ++$pkgswithnomaintcnt;
  } } }
  $pinstinfo .= "\n$spl\n$sps\n$sps            $pkgm\n$sps\n$spl\n$s\n"
}
($pinstinfo .= "\n$spl\n$sps\n$sps            Packages Without Maintainer: $pkgswithnomaintcnt\n$sps\n$spl\n"
                   . "List: $pkgswithnomaint\n") if $pkgswithnomaintcnt;
($pinstinfo .= "\n$spl\n$sps\n$sps            Packages With Notes, But Without Maintainer: $pkgswithnotesandnomaintcnt\n$sps\n$spl\n"
                   . "List: $pkgswithnotesandnomaint\n") if $pkgswithnotesandnomaintcnt;
print $pinstinfo;
Enjoy!
Happy Christmas!
 
Just cd into port dir:
% cd /usr/ports/your/port
And view package maessage:
% cat pkg-message
 
A pkg info -a -D shows the pkg-message for every installed package.

Just cd into port dir:
% cd /usr/ports/your/port
And view package maessage:
% cat pkg-message
Some ports/packages have a dynamically generated pkg-message, if for example, it contains adjustable paths. Then this file won't exist. Instead it'll be in files/pkg-message.in and contain a bunch of macros.
 
I'm on mobile so custom responses may be a little tough. I've tried all suggestions from above but there seems to be a lack messages for xorg.

Also, the script from smurg fails to run with a syntax error complaining of a missing semicolon although it looks fine.

I tried uninstalling and reinstalling xorg but it doesn't repeat the post installation notes.
 
Some ports/packages have a dynamically generated pkg-message, if for example, it contains adjustable paths. Then this file won't exist. Instead it'll be in files/pkg-message.in and contain a bunch of macros.
Then in such cases:
% cd /usr/ports/your/port
% cat files/pkg-message.in
 
The easiest work arround might be to start script(1) before performing the installation. After quitting script dig in the script's output file for the desired notes.
 
Back
Top