]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blob - man-db/man-db.nm
b3920385f94a8495275544440024fc5aa62e5251
[people/ms/ipfire-3.x.git] / man-db / man-db.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = man-db
7 version = 2.6.1
8 release = 3
9
10 groups = Documentation
11 url = http://savannah.nongnu.org/projects/man-db
12 license = GPL
13 summary = man-db is an on-line manual database.
14
15 description
16 man-db is an implementation of the standard Unix documentation \
17 system accessed using the man command. It uses a Berkeley DB database \
18 in place of the traditional flat-text whatis databases. man-db is \
19 used by several popular GNU/Linux distributions.
20 end
21
22 source_dl = http://download.savannah.gnu.org/releases/man-db/
23
24 build
25 requires
26 db4-devel
27 gdbm-devel
28 groff
29 less
30 libpipeline-devel
31 end
32
33 configure_options += \
34 --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" \
35 --disable-setuid \
36 --with-browser=elinks
37
38 install_cmds
39 # Move the libs to /usr/lib, but don't keep the symlinks so nothing
40 # will link against libman and libmandb as they are not stable.
41 mv -v %{BUILDROOT}%{libdir}/man-db/libman{,db}-%{version}.so %{BUILDROOT}%{libdir}
42 rm -rf %{BUILDROOT}%{libdir}/man-db/
43
44 # Create cron job to regularly update the man page database.
45 mkdir -pv %{BUILDROOT}%{sysconfdir}/cron.daily
46 install -v -m 755 %{DIR_SOURCE}/man-db.cron %{BUILDROOT}%{sysconfdir}/cron.daily
47
48 # Create cache directory.
49 mkdir -pv %{BUILDROOT}/var/cache/man
50 end
51 end
52
53 packages
54 package %{name}
55 groups += Base
56
57 requires
58 groff
59 less
60 xz
61 end
62
63 # This package also should be known as man.
64 provides
65 man
66 end
67
68 script posttransin
69 # Update the database right now.
70 %{sysconfdir}/cron.daily/man-db.cron
71 end
72
73 script posttransup
74 # Update the database right now.
75 %{sysconfdir}/cron.daily/man-db.cron
76 end
77 end
78
79 package %{name}-debuginfo
80 template DEBUGINFO
81 end
82 end