source: trunk/dports/iphone/iphone-libwrap/Portfile @ 29789

Last change on this file since 29789 was 29789, checked in by ryandesign@…, 13 years ago

Set svn:keywords of all portfiles to Id as per current requirements

  • Property svn:keywords set to Id
File size: 1.8 KB
Line 
1# $Id: Portfile 29789 2007-10-10 07:16:12Z ryandesign@macports.org $
2
3PortSystem      1.0
4name            iphone-libwrap
5version         7.6
6categories      net
7maintainers     nomaintainer@macports.org
8description     libwrap TCP Wrapper functionality for the iPhone.
9long_description \
10        libwrap implements generic TCP Wrapper functionality.
11
12homepage        ftp://ftp.porcupine.org/pub/security/
13master_sites    ${homepage}
14
15platforms       darwin
16checksums       md5 e6fa25f71226d090f34de3f6b122fb5a
17
18distname        tcp_wrappers_${version}
19
20worksrcdir      ${distname}
21
22set iphone_prefix ${prefix}/arm-apple-darwin
23
24use_configure   no
25
26build.args      prefix=${prefix} CC=arm-apple-darwin-cc REAL_DAEMON_DIR=${prefix}/libexec
27build.target    freebsd
28
29post-extract {
30        system "chmod -R u+w ${worksrcpath}"
31        set files {
32                Makefile hosts_access.3 hosts_access.5 hosts_access.c \
33                tcpd.8 tcpdchk.8 tcpdmatch.8
34        }
35        foreach file $files {
36                reinplace s|/etc/hosts.\[allow|deny\]|${prefix}&|g ${worksrcpath}/$file
37        }
38}
39
40destroot {
41        global iphone_prefix
42        set iphone_destdir_prefix ${destroot}/${iphone_prefix}/root/${prefix}
43
44        # Install binaries for phone access
45        xinstall -m 755 -d ${iphone_destdir_prefix}
46        xinstall -m 755 -d ${iphone_destdir_prefix}/sbin
47        xinstall -m 755 -W ${worksrcpath} safe_finger tcpd tcpdchk tcpdmatch try-from ${iphone_destdir_prefix}/sbin
48
49        # Install libraries/headers for cross-compilation
50        xinstall -m 755 -d ${destroot}/${iphone_prefix}/lib
51        xinstall -m 755 -d ${destroot}/${iphone_prefix}/include
52        xinstall -m 644 ${worksrcpath}/libwrap.a ${destroot}/${iphone_prefix}/lib
53        xinstall -m 644 ${worksrcpath}/tcpd.h ${destroot}/${iphone_prefix}/include
54
55# Don't need man pages
56#       xinstall -m 644 -W ${worksrcpath} hosts_access.3 \
57#               ${destdir}/share/man/man3
58
59#       xinstall -m 644 -W ${worksrcpath} hosts_access.5 hosts_options.5 \
60#               ${destdir}/share/man/man5
61
62#       xinstall -m 644 -W ${worksrcpath} tcpd.8 tcpdchk.8 tcpdmatch.8 \
63#               ${destdir}/share/man/man8
64}
Note: See TracBrowser for help on using the repository browser.