]>
Commit | Line | Data |
---|---|---|
91f5b076 | 1 | ############################################################################### |
802ea3af MT |
2 | # IPFire.org - An Open Source Firewall Solution # |
3 | # Copyright (C) - IPFire Development Team <info@ipfire.org> # | |
91f5b076 MT |
4 | ############################################################################### |
5 | ||
802ea3af | 6 | name = man-db |
1e308222 | 7 | version = 2.6.1 |
9eca7db9 | 8 | release = 3 |
91f5b076 | 9 | |
cb7dca59 | 10 | groups = Documentation |
1e308222 | 11 | url = http://savannah.nongnu.org/projects/man-db |
802ea3af MT |
12 | license = GPL |
13 | summary = man-db is an on-line manual database. | |
91f5b076 | 14 | |
802ea3af | 15 | description |
91f5b076 MT |
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. | |
802ea3af MT |
20 | end |
21 | ||
1e308222 | 22 | source_dl = http://download.savannah.gnu.org/releases/man-db/ |
802ea3af MT |
23 | |
24 | build | |
25 | requires | |
26 | db4-devel | |
27 | gdbm-devel | |
28 | groff | |
29 | less | |
30 | libpipeline-devel | |
31 | end | |
32 | ||
33 | configure_options += \ | |
9eca7db9 | 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" \ |
802ea3af | 35 | --disable-setuid \ |
9eca7db9 | 36 | --with-browser=elinks |
91f5b076 | 37 | |
435e4304 | 38 | install_cmds |
9eca7db9 MT |
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/ | |
435e4304 | 43 | |
9eca7db9 MT |
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 | |
802ea3af MT |
50 | end |
51 | end | |
906e47eb | 52 | |
802ea3af MT |
53 | packages |
54 | package %{name} | |
cb7dca59 MT |
55 | groups += Base |
56 | ||
802ea3af MT |
57 | requires |
58 | groff | |
59 | less | |
435e4304 | 60 | xz |
802ea3af | 61 | end |
91f5b076 | 62 | |
802ea3af MT |
63 | # This package also should be known as man. |
64 | provides | |
65 | man | |
66 | end | |
9eca7db9 MT |
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 | |
802ea3af | 77 | end |
1f9bc2f0 MT |
78 | |
79 | package %{name}-debuginfo | |
80 | template DEBUGINFO | |
81 | end | |
802ea3af | 82 | end |