| 1 | # $Id$ |
|---|
| 2 | |
|---|
| 3 | PortSystem 1.0 |
|---|
| 4 | name tcp_wrappers |
|---|
| 5 | version 20 |
|---|
| 6 | revision 2 |
|---|
| 7 | categories net |
|---|
| 8 | license Permissive |
|---|
| 9 | maintainers jeremyhu openmaintainer |
|---|
| 10 | description Security wrappers for TCP services |
|---|
| 11 | long_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 | |
|---|
| 19 | homepage http://www.opensource.apple.com |
|---|
| 20 | master_sites ${homepage}/tarballs/${name} |
|---|
| 21 | |
|---|
| 22 | worksrcdir ${name}-${version}/${name} |
|---|
| 23 | |
|---|
| 24 | checksums sha1 6b197780e11633013bc6026e9f5d1b008c9e8e64 \ |
|---|
| 25 | rmd160 c98c1ad9cff26b10f5c5c80f38d41178f28a8a4d \ |
|---|
| 26 | sha256 5c144021828edf10933997f9a085720862f937255d4ca10e60d63a651d3ea493 |
|---|
| 27 | |
|---|
| 28 | platforms darwin |
|---|
| 29 | |
|---|
| 30 | patchfiles clang.patch |
|---|
| 31 | patch.pre_args -p2 |
|---|
| 32 | |
|---|
| 33 | post-patch { |
|---|
| 34 | reinplace "s:/usr/lib/:${prefix}/lib/:g" ${worksrcpath}/Makefile |
|---|
| 35 | } |
|---|
| 36 | |
|---|
| 37 | use_configure no |
|---|
| 38 | |
|---|
| 39 | variant universal {} |
|---|
| 40 | |
|---|
| 41 | build.target macos |
|---|
| 42 | build.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 | |
|---|
| 55 | destroot { |
|---|
| 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 | |
|---|
| 79 | livecheck.type regex |
|---|
| 80 | livecheck.url ${master_sites} |
|---|
| 81 | livecheck.regex ${name}-(\\d+(?:\\.\\d+)*)\\.tar |
|---|