Changeset 4112


Ignore:
Timestamp:
Dec 5, 2003, 10:56:13 PM (17 years ago)
Author:
matt
Message:

Added a notification about saft ports and fix the prefix in sfconf and sfdconf

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/net/sendfile/Portfile

    r4008 r4112  
    1 # $Id: Portfile,v 1.1 2003/11/21 18:46:32 matt Exp $
     1# $Id: Portfile,v 1.2 2003/12/05 22:56:13 matt Exp $
    22
    33PortSystem 1.0
    44name                    sendfile
    55version                 2.1a
     6revision                1
    67categories              net
    78platforms               darwin
     
    2324patchfiles              patch-makeconfig.diff patch-sendfiled.c.diff
    2425
    25 pre-build {             reinplace "s|SPOOL=/var/spool/sendfile|SPOOL=${prefix}/var/spool/sendfile|" ${worksrcpath}/makeconfig
    26                         reinplace "s|BINDIR=/usr/local/bin|BINDIR=${prefix}/bin|" ${worksrcpath}/makeconfig
    27                         reinplace "s|MANDIR=/usr/local/man|MANDIR=${prefix}/share/man|" ${worksrcpath}/makeconfig
    28                         reinplace "s|CONFIG=/usr/local/etc|CONFIG=${prefix}/etc|" ${worksrcpath}/makeconfig
    29                         reinplace "s|SERVERDIR=/usr/local/sbin|SERVERDIR=${prefix}/sbin|" ${worksrcpath}/makeconfig
     26configure               {}
     27
     28pre-build {             reinplace "s|/var/spool|${prefix}/var/spool|" ${worksrcpath}/makeconfig
     29                        reinplace "s|/usr/local|${prefix}|g" ${worksrcpath}/makeconfig
    3030                        reinplace "s|/var/log|${prefix}/var/log|" ${worksrcpath}/makeconfig
    3131                        reinplace "s|/opt/bin|${prefix}/bin|" ${worksrcpath}/etc/sendfile.cf
    3232                        }
    3333                       
     34build.args              config
    3435
    35 configure               {}
    36 build.args              config
     36post-build {            reinplace "s|/var/spool|${prefix}/var/spool|" ${worksrcpath}/etc/sfconf
     37                        reinplace "s|/var/spool|${prefix}/var/spool|g" ${worksrcpath}/etc/sfdconf
     38                        reinplace "s|/usr/local|${prefix}|g" ${worksrcpath}/etc/sfdconf
     39                        }
    3740
    3841destroot.destdir        ${destroot}${prefix}
    3942destroot.target         {}
    4043
    41 destroot {              system "cd '${worksrcpath}/src' && install -c -o root -m 755 sendfile sendmsg receive fetchfile utf7encode wlock '${destroot}${prefix}/bin'"
    42                         system "cd '${worksrcpath}/etc' && install -c -o root -m 644 sendfile.cf sendfile.deny '${destroot}${prefix}/etc'"
    43                         system "cd '${worksrcpath}/etc' && install -c -o root -m 755 sfconf sfdconf '${destroot}${prefix}/bin'"
    44                         system "cd '${worksrcpath}/doc' && install -c -o root -m 644 sendmsg.1 sendfile.1 receive.1 fetchfile.1 utf7encode.1 wlock.1 '${destroot}${prefix}/share/man/man1'"
    45                         system "install -c -o root -m 755 '${worksrcpath}/src/sendfiled' '${destroot}${prefix}/sbin'"
    46                         system "install -c -o root -m 644 '${worksrcpath}/doc/fetchfile.7' '${destroot}${prefix}/share/man/man7'"
    47                         system "install -c -o root -m 644 '${worksrcpath}/doc/sendfiled.8' '${destroot}${prefix}/share/man/man8'"
     44destroot {              system "cd '${worksrcpath}/src' && install -c -m 755 sendfile sendmsg receive fetchfile utf7encode wlock '${destroot}${prefix}/bin'"
     45                        system "cd '${worksrcpath}/etc' && install -c -m 644 sendfile.cf sendfile.deny '${destroot}${prefix}/etc'"
     46                        system "cd '${worksrcpath}/etc' && install -c -m 755 sfconf sfdconf check_sendfile '${destroot}${prefix}/bin'"
     47                        system "cd '${worksrcpath}/doc' && install -c -m 644 sendmsg.1 sendfile.1 receive.1 fetchfile.1 utf7encode.1 wlock.1 '${destroot}${prefix}/share/man/man1'"
     48                        system "install -c -m 755 '${worksrcpath}/src/sendfiled' '${destroot}${prefix}/sbin'"
     49                        system "install -c -m 644 '${worksrcpath}/doc/fetchfile.7' '${destroot}${prefix}/share/man/man7'"
     50                        system "install -c -m 644 '${worksrcpath}/doc/sendfiled.8' '${destroot}${prefix}/share/man/man8'"
    4851                        system "cd '${destroot}${prefix}/bin' && ln -s utf7encode utf7decode"
    4952                        }
     
    6568                        ui_msg "saft stream tcp nowait root /path/to/sendfiled sendfiled\n"
    6669                        ui_msg "For xinetd, just take a service file as an example.\n"
     70                        ui_msg "If you're running Mac OS X 10.2 or Darwin 6.x, you should"
     71                        ui_msg "add an entry in /etc/services to allow connections from and to"
     72                        ui_msg "port 487 both udp and tcp.\n"
    6773                        }
    6874
Note: See TracChangeset for help on using the changeset viewer.