source: trunk/dports/sysutils/slocate/Portfile @ 5453

Last change on this file since 5453 was 5453, checked in by pguyot (Paul Guyot), 16 years ago

Install man pages in share/man/

Bug:
Submitted by:
Reviewed by:
Approved by:
Obtained from:

  • Property svn:eol-style set to native
File size: 2.1 KB
Line 
1# $Id: Portfile,v 1.2 2004/02/13 18:26:19 pguyot Exp $
2
3PortSystem                      1.0
4name                            slocate
5version                         2.7
6revision                        1
7categories                      sysutils
8homepage                        http://www.geekreview.org/slocate/
9description                     Secure Locate is a replacement for locate.
10long_description        Secure locate provides a secure way to index and quickly search \
11                                        for files on your system. It uses incremental encoding just like \
12                                        GNU locate to compress its database to make searching faster, \
13                                        but it will also check file permissions and ownership so that \
14                                        users will not see files they do not have access to. \
15                                        The big advantage is that slocate will find files in your ~, even \
16                                        if you made it unreadable by "nobody" (who traditionally performs \
17                                        the locate database update), without letting another user find \
18                                        files there.
19platforms                       darwin
20maintainers                     pguyot@kallisys.net
21master_sites            ftp://ftp.geekreview.org/slocate/src/
22checksums               md5 4872830642ea2ed5f9aff932720583c9
23patchfiles                      patch-Makefile.am \
24                                        patch-main.c \
25                                        patch-doc-slocate.1.linux
26configure.cmd           ./autogen.sh
27configure.args          --mandir=${prefix}/share/man/
28
29pre-patch {
30        system "gzip -d ${worksrcpath}/doc/slocate.1.linux.gz"
31}
32
33post-patch {
34        reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/main.c
35        reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/doc/slocate.1.linux
36        system "gzip ${worksrcpath}/doc/slocate.1.linux"
37}
38
39pre-destroot {
40        addgroup slocate
41}
42
43post-destroot {
44        xinstall -d -g slocate -o root ${destroot}${prefix}/var/db/slocate
45        system "touch ${destroot}${prefix}/var/db/slocate/.turd"
46        xinstall ${portpath}/files/daily.slocate ${destroot}${prefix}/etc/
47        reinplace "s|__PREFIX__|${prefix}|g" ${destroot}${prefix}/etc/daily.slocate
48}
49
50post-install {
51        ui_msg "\nslocate's database should be updated on a regular basis. In"
52        ui_msg "${prefix}/etc/daily.slocate, you'll find some lines to put in"
53        ui_msg "/etc/daily.local to update the database on a daily basis (for example)."
54        ui_msg "If you want to disable the weekly update of the system's built-in locate,"
55        ui_msg "edit the file /etc/weekly.\n"
56}
Note: See TracBrowser for help on using the repository browser.