Ticket #693: Portfile

File Portfile, 1.8 KB (added by pguyot (Paul Guyot), 21 years ago)

Portfile

Line 
1# $Id: $
2PortSystem          1.0
3name                qpopper
4version             4.0.5
5categories          mail
6maintainers         pguyot@kallisys.net
7description         Eudora POP3 mail server
8long_description    qpopper is Eudora's POP3 mail server. It does not include a mail \
9                                        transfer agent or an SMTP server, it just let you get your mail stored \
10                                        on the machine via POP3.
11homepage            http://www.eudora.com/qpopper/
12distfiles           ${name}${version}${extract.sufx}
13master_sites        ftp://ftp.qualcomm.com/eudora/servers/unix/popper/ \
14                                        http://core.ring.gr.jp/archives/net/mail/qpopper/ \
15                                        http://www.ring.gr.jp/archives/net/mail/qpopper/ \
16                                        ftp://ftp.nctu.edu.tw/network/mail/qpopper/
17checksums                       md5 e00853280c9e899711f0b0239d3d8f86
18worksrcdir                      ${portname}${portversion}
19configure.args      --prefix=${destroot}${prefix}
20
21# You really have to love MacOS and the metadata to forgive something like Unix on top of HFS.
22post-extract {
23        system "rm '${worksrcpath}/INSTALL'"
24}
25
26# Copy the sample xinetd.d configuration file.
27pre-install {
28        system "install -d ${destroot}${prefix}/etc/xinetd.d"
29        system "install -o root -m 755 -c ${portpath}/files/qpopper-dist ${destroot}${prefix}/etc/xinetd.d/"
30}
31
32# Tell the user that the server needs to be used through (x)inetd
33post-install {
34        ui_msg "\nTo use qpopper, you'll need to add it to inetd.conf/xinetd.d depending on"
35        ui_msg "what you use on your system.\n"
36        ui_msg "For inetd, something like:"
37        ui_msg "pop3  stream  tcp  nowait  root  /usr/libexec/tcpd  ${prefix}/sbin/popper"
38        ui_msg "should do it.\n"
39        ui_msg "For xinetd (the default on MacOS X), you'll find in ${prefix}/etc/xinetd.d/"
40        ui_msg "a file called qpopper-dist that you should edit and copy to /etc/xinetd.d/\n"
41        ui_msg "In both cases, don't forget to tell (x)inetd to reload their configuration.\n"
42}