source: trunk/dports/net/netatalk/Portfile

Last change on this file was 146517, checked in by raimue@…, 21 months ago

Mass rev-bump dependents of port openssl due to ABI change

Disabling SSLv2 in r146162 changed the ABI of the library, leading to loading
errors for binaries with references to SSLv2 symbols.

https://lists.macosforge.org/pipermail/macports-dev/2016-March/032531.html

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.2 KB
Line 
1# $Id: Portfile 146517 2016-03-10 17:49:28Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name                    netatalk
6version                 2.0.5
7revision                4
8categories              net
9platforms               darwin
10maintainers             nomaintainer
11description             file and printer server for Apple Macintosh clients
12long_description        netatalk is a daemon which provides POSIX-compliant \
13                                        Unix/BSD systems with the ability to share files and \
14                                        printers with Apple Macintosh computers.
15
16homepage                http://netatalk.sourceforge.net/
17master_sites    sourceforge
18checksums               md5 3bd8f4780abc373e0539ab7cd1f9950f
19use_bzip2               yes
20startupitem.create      yes
21startupitem.start       "${prefix}/etc/netatalk/initscript start"
22startupitem.stop        "${prefix}/etc/netatalk/initscript stop"
23startupitem.restart     "${prefix}/etc/netatalk/initscript restart"
24
25patchfiles              patch-afppasswd.c \
26                                patch-paths.h \
27                                patch-uams_randnum.c \
28                                patch-adv1tov2.c \
29                                patch-usockfd.c
30
31depends_lib             port:db47 \
32                                path:lib/libssl.dylib:openssl \
33                                path:bin/perl:perl5 \
34                                port:libiconv
35
36if {${os.platform} eq "darwin" && ${os.major} >= 10} {
37    pre-patch {
38        ui_msg "AppleTalk has been removed from Mac OS X 10.6+."
39        ui_msg "Building without AppleTalk support."
40        patchfiles-append patch-configure
41        configure.args-append --disable-ddp
42    }
43}
44
45post-patch      {
46        reinplace "s|__PREFIX__|${prefix}|g" \
47                ${worksrcpath}/include/atalk/paths.h
48}
49
50configure.args  --with-bdb=${prefix} \
51                                --mandir=${prefix}/share/man \
52                                --with-logfile=${prefix}/var/log/netatalk.log \
53                                --with-spooldir=${prefix}/var/spool/netatalk \
54                                --with-ssl-dir=${prefix} \
55                                --with-libiconv=${prefix}
56
57configure.cppflags-append       -I${prefix}/include/db47
58configure.ldflags-append        -L${prefix}/lib/db47
59
60post-destroot   {
61        file delete -force ${destroot}${prefix}/sbin/atalkd \
62                ${destroot}${prefix}/share/netatalk ${destroot}/etc
63        xinstall -m 755 -d ${destroot}${prefix}/var/log/ \
64                ${destroot}${prefix}/var/run/netatalk \
65                ${destroot}${prefix}/var/spool/netatalk
66        xinstall -m 755 ${filespath}/initscript ${destroot}${prefix}/etc/netatalk/
67        reinplace "s|MACPORTS_PREFIX|${prefix}|" ${destroot}${prefix}/etc/netatalk/initscript
68        system "touch ${destroot}${prefix}/var/log/netatalk.log"
69        system "touch ${destroot}${prefix}/var/run/netatalk/afpd"
70        destroot.keepdirs ${destroot}${prefix}/var/spool/netatalk
71}
Note: See TracBrowser for help on using the repository browser.