]> git.ipfire.org Git - ipfire-3.x.git/blobdiff - man-db/man-db.nm
kernel: udpate to 5.2
[ipfire-3.x.git] / man-db / man-db.nm
index b3920385f94a8495275544440024fc5aa62e5251..590349e9ab63a6aef40cbf851462bbd82eebb0d0 100644 (file)
@@ -4,7 +4,7 @@
 ###############################################################################
 
 name       = man-db
-version    = 2.6.1
+version    = 2.7.1
 release    = 3
 
 groups     = Documentation
@@ -20,14 +20,16 @@ description
 end
 
 source_dl  = http://download.savannah.gnu.org/releases/man-db/
+sources    = %{thisapp}.tar.xz
 
 build
        requires
-               db4-devel
                gdbm-devel
                groff
                less
-               libpipeline-devel
+               libpipeline-devel >= 1.4.0
+               systemd-devel
+               zlib-devel
        end
 
        configure_options += \
@@ -41,9 +43,8 @@ build
                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
+               # Remove zsoelim man page which is not part of groff
+               rm -vf %{BUILDROOT}%{datadir}/man/man*/zsoelim.*
 
                # Create cache directory.
                mkdir -pv %{BUILDROOT}/var/cache/man
@@ -60,6 +61,10 @@ packages
                        xz
                end
 
+               conflicts
+                       systemd <= 204
+               end
+
                # This package also should be known as man.
                provides
                        man
@@ -67,12 +72,23 @@ packages
 
                script posttransin
                        # Update the database right now.
-                       %{sysconfdir}/cron.daily/man-db.cron
+                       rm -rf /var/cache/man/*
+
+                       systemctl -q enable man-db.timer
+                       systemctl start man-db.timer
                end
 
                script posttransup
                        # Update the database right now.
-                       %{sysconfdir}/cron.daily/man-db.cron
+                       rm -rf /var/cache/man/*
+
+                       systemctl -q enable man-db.timer
+                       systemctl start man-db.timer
+               end
+
+               script preun
+                       systemctl stop man-db.timer
+                       systemctl -q disable man-db.timer
                end
        end