source: trunk/dports/net/ucspi-tcp/Portfile

Last change on this file was 46009, checked in by raimue@…, 9 years ago

net/ucspi-tcp:
New maintainer and new variants, closes #15735

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.0 KB
Line 
1# $Id: Portfile 46009 2009-01-27 07:48:43Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name                    ucspi-tcp
6version                 0.88
7revision                2
8categories              net
9platforms               darwin
10maintainers             yahoo.com:compconsultant
11
12description             command-line tools for building TCP client-server applications
13
14long_description        tcpserver waits for incoming connections and, for each \
15                        connection, runs a program of your choice. Your program receives \
16                        environment variables showing the local and remote host names, IP \
17                        addresses, and port numbers. tcpclient makes a TCP connection and \
18                        runs a program of your choice. It sets up the same environment \
19                        variables as tcpserver.
20
21homepage                http://cr.yp.to/ucspi-tcp.html
22master_sites            http://cr.yp.to/ucspi-tcp/
23patch_sites             http://www.fehcom.de/qmail/rblsmtpd:greetdelay
24
25checksums               ${distname}${extract.suffix} \
26                                md5 39b619147db54687c4a583a7a94c9163 \
27                                sha1 793b4189795b563085602c030dd8aa0d206ddc0e \
28                                rmd160 eb20085ea6ffd5d137a805f7c8768e0312c1f56a \
29                        rblsmtpd.c.greetdelay \
30                                md5 ce526be5be5c3ba2eab0f3624af9256f \
31                                sha1 f52db52bbdee794e2cf0f79d3d5c861e1e2b5e31 \
32                                rmd160 68ad0a181c9a4c7d6b40f042ebff4838fe2e29f3
33
34variant greetdelay description {Add configurable delay to discourage Spambots to rblsmtpd} {
35        patchfiles-append       rblsmtpd.c.greetdelay:greetdelay
36}
37
38variant limits description {Ability to limit connections by server} {
39        patchfiles-append       patch-tcpserver.c.diff
40}
41
42configure       {
43        reinplace "s|/usr/local|${destroot}${prefix}|g" ${worksrcpath}/conf-home
44        reinplace "s%/etc/dnsrewrite%${prefix}&%" ${worksrcpath}/dns_rcrw.c
45}
46
47build.target
48
49destroot.target setup
50post-destroot   {
51        reinplace "s|${destroot}${prefix}|${prefix}|g" \
52                ${destroot}${prefix}/bin/finger@ ${destroot}${prefix}/bin/http@ \
53                ${destroot}${prefix}/bin/mconnect ${destroot}${prefix}/bin/tcpcat \
54                ${destroot}${prefix}/bin/who@
55        xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
56        xinstall -m 644 -W ${worksrcpath} CHANGES README TODO VERSION \
57                ${destroot}${prefix}/share/doc/${name}
58        xinstall -W ${filespath} LIMITS.TXT ${destroot}${prefix}/share/doc/${name}/
59}
Note: See TracBrowser for help on using the repository browser.