source: trunk/dports/net/sendfile/Portfile @ 36649

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

sendfile: update to 2.1b and fix homepage and download location; closes #15183

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.5 KB
Line 
1# $Id: Portfile 36649 2008-05-09 09:56:08Z ryandesign@macports.org $
2
3PortSystem 1.0
4name                    sendfile
5version                 2.1b
6categories              net
7platforms               darwin
8maintainers             nomaintainer
9homepage                http://fex.rus.uni-stuttgart.de/saft/sendfile.html
10description             A saft suite for asynchronous transfers
11
12long_description        Sendfile is a SAFT implementation for UNIX and serves as a tool for \
13                        asynchronous sending of files in the internet, conserving their file \
14                        attributes. It consists of the following parts: \
15                        sendfiled - the server daemon \
16                        sendfile - a client for sending files \
17                        sendmsg - a client for sending one-line text messages \
18                        receive - a client for receiving spooled files
19
20master_sites            http://fex.rus.uni-stuttgart.de/download/
21checksums               md5 619d5aef56d0d43e8f0459b05f0836c9 \
22                        sha1 4c4842ae1c44bfbfe4c8d1b3646ebb4b29bcd341 \
23                        rmd160 4bc23f4bc7ec26c5ff3625e0dec6f369d0203a00
24
25patchfiles              patch-makeconfig.diff patch-sendfiled.c.diff
26
27use_configure           no
28
29pre-build {             reinplace "s|/var/spool|${prefix}/var/spool|" ${worksrcpath}/makeconfig
30                        reinplace "s|/usr/local|${prefix}|g" ${worksrcpath}/makeconfig
31                        reinplace "s|/var/log|${prefix}/var/log|" ${worksrcpath}/makeconfig
32                        reinplace "s|/opt/bin|${prefix}/bin|" ${worksrcpath}/etc/sendfile.cf
33                        }
34                       
35build.args              config
36
37post-build {            reinplace "s|/var/spool|${prefix}/var/spool|" ${worksrcpath}/etc/sfconf
38                        reinplace "s|/var/spool|${prefix}/var/spool|g" ${worksrcpath}/etc/sfdconf
39                        reinplace "s|/usr/local|${prefix}|g" ${worksrcpath}/etc/sfdconf
40                        }
41
42destroot.destdir        ${destroot}${prefix}
43destroot.target
44
45destroot {              xinstall -m 755 -v -W ${worksrcpath}/src \
46                        sendfile sendmsg receive fetchfile utf7encode wlock \
47                        ${destroot}${prefix}/bin
48                        xinstall -m 755 -v -W ${worksrcpath}/etc \
49                        sfconf sfdconf check_sendfile \
50                        ${destroot}${prefix}/bin
51                        xinstall -m 644 -v -W ${worksrcpath}/etc \
52                        sendfile.cf sendfile.deny \
53                        ${destroot}${prefix}/etc
54                        xinstall -m 644 -v -W ${worksrcpath}/doc \
55                        sendmsg.1 sendfile.1 receive.1 fetchfile.1 utf7encode.1 wlock.1 \
56                        ${destroot}${prefix}/share/man/man1
57                        xinstall -m 755 ${worksrcpath}/src/sendfiled ${destroot}${prefix}/sbin
58                        file mkdir ${destroot}${prefix}/share/doc/${name}
59                        file copy ${worksrcpath}/doc/README ${destroot}${prefix}/share/doc/${name}
60                        file copy ${worksrcpath}/doc/fetchfile.7 ${destroot}${prefix}/share/man/man7
61                        file copy ${worksrcpath}/doc/sendfiled.8 ${destroot}${prefix}/share/man/man8
62                        }
63                       
64
65post-destroot {         system "cd '${destroot}${prefix}/bin' && ln -s utf7encode utf7decode"
66                        xinstall -m 755 -d ${destroot}${prefix}/var/spool/sendfile
67                        xinstall -m 700 -d ${destroot}${prefix}/var/spool/sendfile/LOG
68                        xinstall -m 1777 -d ${destroot}${prefix}/var/spool/sendfile/OUTGOING
69                        destroot.keepdirs-append ${destroot}${prefix}/var/spool/sendfile
70                        destroot.keepdirs-append ${destroot}${prefix}/var/spool/sendfile/LOG
71                        destroot.keepdirs-append ${destroot}${prefix}/var/spool/sendfile/OUTGOING
72                        }
73
74# Notify the user how to launch the sendfile daemon
75post-install {          ui_msg "\nFor being able to receive files, you'll have to use either"
76                        ui_msg "xinetd or inetd, depending on what you are using.\n"
77                        ui_msg "Use the following line if you'll go for inetd:"
78                        ui_msg "saft stream tcp nowait root /path/to/sendfiled sendfiled\n"
79                        ui_msg "For xinetd, just take a service file as an example.\n"
80                        ui_msg "If you're running Mac OS X 10.2 or Darwin 6.x, you should"
81                        ui_msg "add an entry in /etc/services to allow connections from and to"
82                        ui_msg "port 487 both udp and tcp.\n"
83                        }
84
Note: See TracBrowser for help on using the repository browser.