[89898] trunk/dports/net/tcp_wrappers
jeremyhu at macports.org
jeremyhu at macports.org
Tue Feb 14 00:50:45 PST 2012
Revision: 89898
http://trac.macports.org/changeset/89898
Author: jeremyhu at macports.org
Date: 2012-02-14 00:50:45 -0800 (Tue, 14 Feb 2012)
Log Message:
-----------
tcp_wrappers: Switch to latest version for Mac OS Lion and fix build
Modified Paths:
--------------
trunk/dports/net/tcp_wrappers/Portfile
Added Paths:
-----------
trunk/dports/net/tcp_wrappers/files/
trunk/dports/net/tcp_wrappers/files/clang.patch
Modified: trunk/dports/net/tcp_wrappers/Portfile
===================================================================
--- trunk/dports/net/tcp_wrappers/Portfile 2012-02-14 08:33:21 UTC (rev 89897)
+++ trunk/dports/net/tcp_wrappers/Portfile 2012-02-14 08:50:45 UTC (rev 89898)
@@ -1,11 +1,10 @@
# $Id$
-PortSystem 1.0
-name tcp_wrappers
-version 7.6
-revision 1
-categories net
-maintainers nomaintainer
+PortSystem 1.0
+name tcp_wrappers
+version 20
+categories net
+maintainers jeremyhu openmaintainer
description Security wrappers for TCP services
long_description \
TCP Wrappers provides tiny daemon wrapper programs that can be installed \
@@ -15,52 +14,61 @@
client or server applications, and impose no overhead on the actual \
conversation between the client and server applications.
-homepage ftp://ftp.porcupine.org/pub/security/
-master_sites ${homepage}
+homepage http://www.opensource.apple.com
+master_sites ${homepage}/tarballs/${name}
-platforms sunos
-checksums md5 e6fa25f71226d090f34de3f6b122fb5a
-distname ${name}_${version}
+worksrcdir ${name}-${version}/${name}
-worksrcdir ${distname}
+checksums sha1 6b197780e11633013bc6026e9f5d1b008c9e8e64 \
+ rmd160 c98c1ad9cff26b10f5c5c80f38d41178f28a8a4d \
+ sha256 5c144021828edf10933997f9a085720862f937255d4ca10e60d63a651d3ea493
-use_configure no
+platforms darwin
-post-extract {
- system "cd ${worksrcpath} && chmod -R u+w ."
- set tcpwFiles { Makefile hosts_access.3 hosts_access.5 hosts_access.c \
- tcpd.8 tcpdchk.8 tcpdmatch.8 }
- foreach modThis $tcpwFiles {
- reinplace s#/etc/hosts.\[allow|deny\]#${prefix}&#g ${worksrcpath}/${modThis}
- }
-}
+patchfiles clang.patch
+patch.pre_args -p2
-build.args prefix=${prefix}
+use_configure no
-destroot {
- xinstall -m 755 -W ${worksrcpath} safe_finger tcpd tcpdchk tcpdmatch \
- try-from ${destroot}${prefix}/sbin
- xinstall -m 644 -W ${worksrcpath} hosts_access.3 \
- ${destroot}${prefix}/share/man/man3
- xinstall -m 644 -W ${worksrcpath} hosts_access.5 hosts_options.5 \
- ${destroot}${prefix}/share/man/man5
- xinstall -m 644 -W ${worksrcpath} tcpd.8 tcpdchk.8 tcpdmatch.8 \
- ${destroot}${prefix}/share/man/man8
- xinstall -m 644 -W ${worksrcpath} libwrap.a ${destroot}${prefix}/lib
- xinstall -m 644 -W ${worksrcpath} tcpd.h ${destroot}${prefix}/include
- xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
- xinstall -m 644 -W ${worksrcpath} BLURB DISCLAIMER README README.NIS \
- ${destroot}${prefix}/share/doc/${name}
+build.target macos
+build.args REAL_DAEMON_DIR=${prefix}/libexec \
+ STYLE=-DPROCESS_OPTIONS \
+ FACILITY=LOG_REMOTEAUTH \
+ ALLOW_SEVERITY=LOG_INFO \
+ DENY_SEVERITY=LOG_WARNING \
+ PARANOID= \
+ HOSTNAME= \
+ BUGS= \
+ MAJOR=7 \
+ MINOR=6 \
+ CC="${configure.cc}"
+
+if {[variant_exists universal] && [variant_isset universal]} {
+ build.args-append CFLAGS="-g -Os -pipe -fno-common ${configure.universal_cflags}"
+} else {
+ build.args-append CFLAGS="-g -Os -pipe -fno-common ${configure.cc_archflags}"
}
-platform sunos {
- build.args-append REAL_DAEMON_DIR=/usr/sbin
- if { ![variant_isset suncc] } {
- build.args-append CC=gcc
- }
- build.target sunos5
+destroot {
+ xinstall -m 755 -W ${worksrcpath} safe_finger tcpdchk tcpdmatch try-from \
+ ${destroot}${prefix}/sbin
+ xinstall -m 755 -W ${worksrcpath} safe_finger tcpd \
+ ${destroot}${prefix}/libexec
+ xinstall -m 644 -W ${worksrcpath} hosts_access.3 \
+ ${destroot}${prefix}/share/man/man3
+ ln -s hosts_access.3 ${destroot}${prefix}/share/man/man3/hosts_ctl.3
+ ln -s hosts_access.3 ${destroot}${prefix}/share/man/man3/request_init.3
+ ln -s hosts_access.3 ${destroot}${prefix}/share/man/man3/request_set.3
+ xinstall -m 644 -W ${worksrcpath} hosts_access.5 hosts_options.5 \
+ ${destroot}${prefix}/share/man/man5
+ xinstall -m 644 -W ${worksrcpath} tcpd.8 tcpdchk.8 tcpdmatch.8 \
+ ${destroot}${prefix}/share/man/man8
+ xinstall -m 644 -W ${worksrcpath} libwrap.a libwrap.7.dylib \
+ ${destroot}${prefix}/lib
+ ln -s libwrap.7.dylib ${destroot}${prefix}/lib/libwrap.dylib
+ xinstall -m 644 -W ${worksrcpath} tcpd.h \
+ ${destroot}${prefix}/include
+ xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
+ xinstall -m 644 -W ${worksrcpath} BLURB DISCLAIMER README README.NIS \
+ ${destroot}${prefix}/share/doc/${name}
}
-
-# This is basically just a marker...
-variant suncc {}
-
Added: trunk/dports/net/tcp_wrappers/files/clang.patch
===================================================================
--- trunk/dports/net/tcp_wrappers/files/clang.patch (rev 0)
+++ trunk/dports/net/tcp_wrappers/files/clang.patch 2012-02-14 08:50:45 UTC (rev 89898)
@@ -0,0 +1,12 @@
+diff -Naurp tcp_wrappers-20.orig/tcp_wrappers/fix_options.c tcp_wrappers-20/tcp_wrappers/fix_options.c
+--- tcp_wrappers-20.orig/tcp_wrappers/fix_options.c 1999-04-22 18:57:28.000000000 -0700
++++ tcp_wrappers-20/tcp_wrappers/fix_options.c 2012-02-14 00:46:53.000000000 -0800
+@@ -28,7 +28,7 @@ static char sccsid[] = "@(#) fix_options
+ #define BUFFER_SIZE 512 /* Was: BUFSIZ */
+
+ /* fix_options - get rid of IP-level socket options */
+-
++void
+ fix_options(request)
+ struct request_info *request;
+ {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120214/d5063291/attachment-0001.html>
More information about the macports-changes
mailing list