Ticket #26427: Portfile

File Portfile, 1.3 KB (added by bithead2k, 14 years ago)
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
2# $Id$
3
4PortSystem 1.0
5
6name              wait_on
7version           1.1
8categories        sysutils
9platforms         darwin
10maintainers       webfinish.com:kirk
11description       waits until a file or directory is changed
12long_description  utility that will wait until a file is created, changed, or deleted \
13    using kqueue.  Provides a timeout to wait for changes. 
14license           GPLv2
15
16homepage          http://www.freshports.org/sysutils/wait_on/
17master_sites      http://freebsd.unixfreunde.de/sources/
18checksums         md5    6b5917ad6136fdd8295d2d1299db10d5 \
19                  sha1   9e3fb51b6324f5aca7664fb8165f61a52bd5bd61 \
20                  rmd160 5d14c616c805cef7d369b6fcb6c0377ba1d8ef1d
21
22use_configure     no
23worksrcdir        ${workpath}/${name}
24
25
26build {
27  exec echo cd ${worksrcdir} > doit.sh
28  exec echo gcc -o wait_on wait_on.c >> doit.sh
29  exec chmod +x doit.sh
30  exec ./doit.sh
31  exec rm doit.sh
32}
33
34destroot {
35    xinstall -m 755 ${worksrcdir}/${name} ${destroot}${prefix}/bin
36    xinstall -m 644 ${worksrcdir}/${name}.1 ${destroot}${prefix}/share/man/man1
37}
38
39livecheck.type  regex
40livecheck.url   ${homepage}
41livecheck.regex ${name}-(\[0-9\]+\\.\[0-9\]+)\\.tar\\.gz