Changeset 4112 for trunk/dports
- Timestamp:
- Dec 5, 2003, 10:56:13 PM (20 years ago)
- 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:32matt Exp $1 # $Id: Portfile,v 1.2 2003/12/05 22:56:13 matt Exp $ 2 2 3 3 PortSystem 1.0 4 4 name sendfile 5 5 version 2.1a 6 revision 1 6 7 categories net 7 8 platforms darwin … … 23 24 patchfiles patch-makeconfig.diff patch-sendfiled.c.diff 24 25 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 26 configure {} 27 28 pre-build { reinplace "s|/var/spool|${prefix}/var/spool|" ${worksrcpath}/makeconfig 29 reinplace "s|/usr/local|${prefix}|g" ${worksrcpath}/makeconfig 30 30 reinplace "s|/var/log|${prefix}/var/log|" ${worksrcpath}/makeconfig 31 31 reinplace "s|/opt/bin|${prefix}/bin|" ${worksrcpath}/etc/sendfile.cf 32 32 } 33 33 34 build.args config 34 35 35 configure {} 36 build.args config 36 post-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 } 37 40 38 41 destroot.destdir ${destroot}${prefix} 39 42 destroot.target {} 40 43 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'"44 destroot { 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'" 48 51 system "cd '${destroot}${prefix}/bin' && ln -s utf7encode utf7decode" 49 52 } … … 65 68 ui_msg "saft stream tcp nowait root /path/to/sendfiled sendfiled\n" 66 69 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" 67 73 } 68 74
Note: See TracChangeset
for help on using the changeset viewer.