]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blobdiff - man-db/man-db.nm
tzdata: Update to 2014j
[people/ms/ipfire-3.x.git] / man-db / man-db.nm
index 224fe0a23b0a281edde3c01564bafa9632688311..f1dfba0fec32f1fc3f02f9ff96816d59f340ce07 100644 (file)
@@ -4,8 +4,8 @@
 ###############################################################################
 
 name       = man-db
-version    = 2.6.1
-release    = 2
+version    = 2.6.3
+release    = 1
 
 groups     = Documentation
 url        = http://savannah.nongnu.org/projects/man-db
@@ -20,6 +20,7 @@ description
 end
 
 source_dl  = http://download.savannah.gnu.org/releases/man-db/
+sources    = %{thisapp}.tar.xz
 
 build
        requires
@@ -31,23 +32,22 @@ build
        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" \
                --disable-setuid \
-               --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
+               --with-browser=elinks
 
        install_cmds
-               # 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
        end
 end
 
@@ -65,6 +65,16 @@ packages
                provides
                        man
                end
+
+               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