Changeset 5453


Ignore:
Timestamp:
Feb 13, 2004, 6:26:19 PM (16 years ago)
Author:
pguyot (Paul Guyot)
Message:

Install man pages in share/man/

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/sysutils/slocate/Portfile

    r4170 r5453  
    1 # $Id: Portfile,v 1.1 2003/12/09 00:53:28 fkr Exp $
     1# $Id: Portfile,v 1.2 2004/02/13 18:26:19 pguyot Exp $
    22
    3 PortSystem 1.0
    4 name            slocate
    5 version         2.7
    6 categories      sysutils
    7 homepage        http://www.geekreview.org/slocate/
    8 description     Secure Locate is a replacement for locate.
     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.
    910long_description        Secure locate provides a secure way to index and quickly search \
    10                         for files on your system. It uses incremental encoding just like \
    11                         GNU locate to compress its database to make searching faster, \
    12                         but it will also check file permissions and ownership so that \
    13                         users will not see files they do not have access to. \
    14                         The big advantage is that slocate will find files in your ~, even \
    15                         if you made it unreadable by "nobody" (who traditionally performs \
    16                         the locate database update), without letting another user find \
    17                         files there.
     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/
    1828
    19 platforms       darwin
    20 maintainers     pguyot@kallisys.net
    21 master_sites    ftp://ftp.geekreview.org/slocate/src/
    22 checksums       md5 4872830642ea2ed5f9aff932720583c9
    23 patchfiles      patch-Makefile.am patch-main.c patch-doc-slocate.1.linux
    24 configure.cmd   ./autogen.sh
     29pre-patch {
     30        system "gzip -d ${worksrcpath}/doc/slocate.1.linux.gz"
     31}
    2532
    26 pre-patch {     system "gzip -d ${worksrcpath}/doc/slocate.1.linux.gz" }
     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}
    2738
    28 post-patch {    reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/main.c
    29         reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/doc/slocate.1.linux
    30         system "gzip ${worksrcpath}/doc/slocate.1.linux" }
     39pre-destroot {
     40        addgroup slocate
     41}
    3142
    32 pre-destroot {  addgroup slocate }
    33 post-destroot { system "install -d -g slocate -o root ${destroot}${prefix}/var/db/slocate"
    34                 system "touch ${destroot}${prefix}/var/db/slocate/.turd"
    35                 system "install ${portpath}/files/daily.slocate ${destroot}${prefix}/etc/"
    36                 reinplace "s|__PREFIX__|${prefix}|g" ${destroot}${prefix}/etc/daily.slocate }
     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}
    3749
    38 post-install {  ui_msg "\nslocate's database should be updated on a regular basis. In"
    39                 ui_msg "${prefix}/etc/daily.slocate, you'll find some lines to put in"
    40                 ui_msg "/etc/daily.local to update the database on a daily basis (for example)."
    41                 ui_msg "If you want to disable the weekly update of the system's built-in locate,"
    42                 ui_msg "edit the file /etc/weekly.\n" }
     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 TracChangeset for help on using the changeset viewer.