This patch adds a cron job which will index the man pages daily
and executed after the package has been installed.
Also is elinks the new browser (and currently the single on
IPFire is shipping).
--- /dev/null
+#! /bin/bash
+
+renice +19 -p $$ >/dev/null 2>&1
+ionice -c3 -p $$ >/dev/null 2>&1
+
+LOCKFILE=/var/lock/man-db.lock
+
+# The lockfile is not meant to be perfect, it's just in case the
+# two man-db cron scripts get run close to each other to keep
+# them from stepping on each other's toes. The worst that will
+# happen is that they will temporarily corrupt the database.
+[ -f $LOCKFILE ] && exit 0
+
+trap "{ rm -f $LOCKFILE ; exit 0; }" EXIT
+touch $LOCKFILE
+
+# Create/update the mandb database.
+mandb -q
+
+exit 0
name = man-db
version = 2.6.1
name = man-db
version = 2.6.1
groups = Documentation
url = http://savannah.nongnu.org/projects/man-db
groups = Documentation
url = http://savannah.nongnu.org/projects/man-db
end
configure_options += \
end
configure_options += \
+ --with-sections="1 1p 8 2 3 3p 4 5 6 7 9 0p n l p o 1x 2x 3x 4x 5x 6x 7x 8x" \
- --with-browser=%{bindir}/lynx \
- --with-col=%{bindir}/col \
- --with-vgrind=%{bindir}/vgrind \
- --with-grap=%{bindir}/grap \
- --disable-rpath
-
- prepare_cmds
- sed -i -e '\%\t/usr/man%d' -e '\%\t/usr/local/man%d' \
- src/man_db.conf.in
- end
- # Move some libs
- mv -v %{BUILDROOT}%{libdir}/man-db/* %{BUILDROOT}%{libdir}/
- rm -rf %{BUILDROOTi}%{libdir}/man-db/
+ # Move the libs to /usr/lib, but don't keep the symlinks so nothing
+ # will link against libman and libmandb as they are not stable.
+ mv -v %{BUILDROOT}%{libdir}/man-db/libman{,db}-%{version}.so %{BUILDROOT}%{libdir}
+ rm -rf %{BUILDROOT}%{libdir}/man-db/
+ # Create cron job to regularly update the man page database.
+ mkdir -pv %{BUILDROOT}%{sysconfdir}/cron.daily
+ install -v -m 755 %{DIR_SOURCE}/man-db.cron %{BUILDROOT}%{sysconfdir}/cron.daily
+
+ # Create cache directory.
+ mkdir -pv %{BUILDROOT}/var/cache/man
+
+ script posttransin
+ # Update the database right now.
+ %{sysconfdir}/cron.daily/man-db.cron
+ end
+
+ script posttransup
+ # Update the database right now.
+ %{sysconfdir}/cron.daily/man-db.cron
+ end
end
package %{name}-debuginfo
end
package %{name}-debuginfo