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

Last change on this file since 50984 was 50984, checked in by and.damore@…, 10 years ago

Maintainer email change, second batch, mail without @macports.org domain are put in domain:user form.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.9 KB
Line 
1# $Id: Portfile 50984 2009-05-14 21:08:43Z and.damore@macports.org $
2
3PortSystem                      1.0
4name                            slocate
5version                         3.1
6revision                        1
7categories                      sysutils
8homepage                        http://slocate.trakker.ca/
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                     kallisys.net:pguyot
21master_sites            http://slocate.trakker.ca/files/ \
22        http://fresh.t-systems-sfr.com/unix/src/misc/ \
23        http://slackware.mirrors.tds.net/pub/slackware/slackware_source/a/slocate/ \
24        http://mirror.nohup.it/slackware/slackware_source/a/slocate/ \
25        http://slackware.mirrors.pair.com/slackware_source/a/slocate/
26
27checksums               md5 908e6949d959ae7b686c10bb76b35bf3 \
28                                        sha1 e427552664385b86931b7626c26bd95ae5f9f085 \
29                                        rmd160 d3b1e818cc35ce8e87ec1b0764f6b2145a319e13
30patchfiles                      patch-Makefile \
31                                        patch-src-Makefile \
32                                        patch-src-conf.c \
33                                        patch-src-slocate.h \
34                                        patch-src-utils.c \
35                                        patch-doc-slocate.1
36
37use_configure           no
38
39post-patch {
40        reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/src/slocate.h
41        reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/doc/slocate.1
42        reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/src/Makefile
43        reinplace "s|__DESTROOT__|${destroot}|g" ${worksrcpath}/src/Makefile
44        reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/Makefile
45        reinplace "s|__DESTROOT__|${destroot}|g" ${worksrcpath}/Makefile
46        reinplace "s|__USER__|${install.user}|g" ${worksrcpath}/Makefile
47        reinplace "s|__GROUP__|${install.group}|g" ${worksrcpath}/Makefile
48}
49
50pre-destroot {
51        addgroup slocate
52}
53
54post-destroot {
55        xinstall -d -g slocate -o root ${destroot}${prefix}/var/db/slocate
56        system "touch ${destroot}${prefix}/var/db/slocate/.turd"
57        xinstall ${portpath}/files/daily.slocate ${destroot}${prefix}/etc/
58        reinplace "s|__PREFIX__|${prefix}|g" ${destroot}${prefix}/etc/daily.slocate
59}
60
61post-install {
62        ui_msg "\nslocate's database should be updated on a regular basis. In"
63        ui_msg "${prefix}/etc/daily.slocate, you'll find some lines to put in"
64        ui_msg "/etc/daily.local to update the database on a daily basis (for example)."
65        ui_msg "If you want to disable the weekly update of the system's built-in locate,"
66        ui_msg "edit the file /etc/weekly.\n"
67}
68
69variant universal {
70    build.args-append   LDFLAGS="${configure.universal_ldflags}"
71
72    post-configure {
73        reinplace -E "/^CFLAGS=/s|\$| ${configure.universal_cflags}|" \
74            ${worksrcpath}/src/Makefile
75    }
76}
77
Note: See TracBrowser for help on using the repository browser.