source: trunk/dports/net/tcp_wrappers/Portfile

Last change on this file was 101874, checked in by jeremyhu@…, 5 years ago

tcp_wrappers: Fix livecheck

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.4 KB
Line 
1# $Id: Portfile 101874 2013-01-20 20:42:26Z ryandesign@macports.org $
2
3PortSystem              1.0
4name                    tcp_wrappers
5version                 20
6revision                2
7categories              net
8license                 Permissive
9maintainers             jeremyhu openmaintainer
10description             Security wrappers for TCP services
11long_description \
12        TCP Wrappers provides tiny daemon wrapper programs that can be installed \
13        without any changes to existing software or to existing configuration \
14        files.  The wrappers report the name of the client host and of the \
15        requested service\; the wrappers do not exchange information with the \
16        client or server applications, and impose no overhead on the actual \
17        conversation between the client and server applications.
18
19homepage                http://www.opensource.apple.com
20master_sites            ${homepage}/tarballs/${name}
21
22worksrcdir              ${name}-${version}/${name}
23
24checksums           sha1    6b197780e11633013bc6026e9f5d1b008c9e8e64 \
25                    rmd160  c98c1ad9cff26b10f5c5c80f38d41178f28a8a4d \
26                    sha256  5c144021828edf10933997f9a085720862f937255d4ca10e60d63a651d3ea493
27
28platforms               darwin
29
30patchfiles              clang.patch
31patch.pre_args          -p2
32
33post-patch {
34    reinplace "s:/usr/lib/:${prefix}/lib/:g" ${worksrcpath}/Makefile
35}
36
37use_configure           no
38
39variant universal {}
40
41build.target            macos
42build.args              REAL_DAEMON_DIR=${prefix}/libexec \
43                        STYLE=-DPROCESS_OPTIONS           \
44                        FACILITY=LOG_REMOTEAUTH           \
45                        ALLOW_SEVERITY=LOG_INFO           \
46                        DENY_SEVERITY=LOG_WARNING         \
47                        PARANOID=                         \
48                        HOSTNAME=                         \
49                        BUGS=                             \
50                        MAJOR=7                           \
51                        MINOR=6                           \
52                        CFLAGS="-g -Os -pipe -fno-common" \
53                        CC="${configure.cc} [get_canonical_archflags cc]"
54
55destroot {
56    xinstall -m 755 -W ${worksrcpath} safe_finger tcpdchk tcpdmatch try-from \
57        ${destroot}${prefix}/sbin
58    xinstall -m 755 -W ${worksrcpath} safe_finger tcpd \
59        ${destroot}${prefix}/libexec
60    xinstall -m 644 -W ${worksrcpath} hosts_access.3 \
61        ${destroot}${prefix}/share/man/man3
62    ln -s hosts_access.3 ${destroot}${prefix}/share/man/man3/hosts_ctl.3
63    ln -s hosts_access.3 ${destroot}${prefix}/share/man/man3/request_init.3
64    ln -s hosts_access.3 ${destroot}${prefix}/share/man/man3/request_set.3
65    xinstall -m 644 -W ${worksrcpath} hosts_access.5 hosts_options.5 \
66        ${destroot}${prefix}/share/man/man5
67    xinstall -m 644 -W ${worksrcpath} tcpd.8 tcpdchk.8 tcpdmatch.8 \
68        ${destroot}${prefix}/share/man/man8
69    xinstall -m 644 -W ${worksrcpath} libwrap.a libwrap.7.dylib \
70        ${destroot}${prefix}/lib
71    ln -s libwrap.7.dylib ${destroot}${prefix}/lib/libwrap.dylib
72    xinstall -m 644 -W ${worksrcpath} tcpd.h \
73        ${destroot}${prefix}/include
74    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
75    xinstall -m 644 -W ${worksrcpath} BLURB DISCLAIMER README README.NIS \
76        ${destroot}${prefix}/share/doc/${name}
77}
78
79livecheck.type          regex
80livecheck.url           ${master_sites}
81livecheck.regex         ${name}-(\\d+(?:\\.\\d+)*)\\.tar
Note: See TracBrowser for help on using the repository browser.