# Are these old POSIX manpages of any real usefulness here?
# Granted there may be some historical interest, and it's nice
# to have them in the source package for that reason, but it
# seems to me that installing them on the system by default
# isn't likely to help most people and may lead to confusion.
rm -rf $PKG/usr/man/man*p
rm -rf $PKG/usr/man/POSIX-COPYRIGHT
# Also probably not needed in the package
rm -rf $PKG/usr/man/scripts
# Compress the pages:
gzip -9 $PKG/usr/man/man*/*.*
# If a man page exists in some other package, assume that's the
# newer, better version:
( cd $PKG
for file in usr/man/man*/*.gz ; do
if grep -l $file /var/log/packages/* | grep -v var/log/packages/man-pages ; then
rm -f --verbose $file
fi
done
)
# This package has always provided the initial whatis sample
# file, so we'll continue to have that here, too:
cp -a $CWD/whatis.sample.bz2 $PKG/usr/man
( cd $PKG/usr/man
chown root:root whatis.sample.bz2
chmod 644 whatis.sample.bz2
bzip2 -d whatis.sample.bz2
)