mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
113 lines
3.7 KiB
Tcl
113 lines
3.7 KiB
Tcl
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
|
||
|
||
PortSystem 1.0
|
||
PortGroup perl5 1.0
|
||
|
||
# O_CLOEXEC, AT_FDCWD, utimensat
|
||
PortGroup legacysupport 1.1
|
||
|
||
legacysupport.newest_darwin_requires_legacy 16
|
||
|
||
name samba4
|
||
# With sbsat due to /opt/local/bin/gentest
|
||
conflicts samba3 sbsat
|
||
# update talloc, tdb and tevent first
|
||
version 4.24.3
|
||
revision 0
|
||
checksums rmd160 ff94a7146fa89bd438baa98b8e96f98caf946b6e \
|
||
sha256 4a5e0ed1ea192b798c873d9957c50a5767c10c2767cccb00d56ecc427e94f8e9 \
|
||
size 43446520
|
||
|
||
categories net
|
||
platforms darwin freebsd
|
||
maintainers nomaintainer
|
||
license GPL-3+
|
||
description SMB/CIFS server and client
|
||
long_description Samba is an software suite that provides seamless file \
|
||
and print services to SMB/CIFS clients.
|
||
|
||
homepage https://www.samba.org
|
||
# fetching distfiles may be broken due to protection against AI crawlers
|
||
# let's append a mirror by dotsrc.org
|
||
master_sites https://download.samba.org/pub/samba/stable \
|
||
https://mirrors.dotsrc.org/samba/stable
|
||
distname samba-${version}
|
||
|
||
set py_ver 3.14
|
||
set py_ver_nodot [string map {. {}} ${py_ver}]
|
||
|
||
depends_build path:bin/pkg-config:pkgconfig \
|
||
port:gettext \
|
||
port:bison \
|
||
port:cmocka \
|
||
port:libxslt \
|
||
port:docbook-xml \
|
||
port:docbook-xsl-nons \
|
||
port:p${perl5.major}-parse-yapp
|
||
|
||
depends_lib port:gettext-runtime \
|
||
path:lib/pkgconfig/gnutls.pc:gnutls \
|
||
path:lib/pkgconfig/icu-uc.pc:icu \
|
||
port:gpgme \
|
||
port:jansson \
|
||
port:libarchive \
|
||
port:libiconv \
|
||
path:lib/libldap.dylib:openldap \
|
||
port:popt \
|
||
port:python${py_ver_nodot} \
|
||
port:readline \
|
||
port:zlib \
|
||
port:libtasn1 \
|
||
port:ncurses \
|
||
path:lib/libssl.dylib:openssl \
|
||
port:lmdb \
|
||
port:tdb \
|
||
port:talloc \
|
||
port:tevent
|
||
|
||
depends_run port:py${py_ver_nodot}-dnspython \
|
||
port:py${py_ver_nodot}-markdown
|
||
|
||
# https://bugzilla.samba.org/show_bug.cgi?id=9665
|
||
patchfiles-append patch-samba-install.diff
|
||
|
||
# https://bugzilla.samba.org/show_bug.cgi?id=15030
|
||
patchfiles-append patch-bug-15030.diff
|
||
|
||
# https://bugzilla.samba.org/show_bug.cgi?id=15763
|
||
patchfiles-append patch-ldb-test.diff
|
||
|
||
configure.perl ${perl5.bin}
|
||
configure.python ${prefix}/bin/python${py_ver}
|
||
configure.env-append YAPP=${prefix}/bin/yapp-${perl5.major}
|
||
configure.args-append --enable-fhs \
|
||
--disable-avahi
|
||
|
||
variant avahi description {Use avahi} {
|
||
depends_lib-append \
|
||
port:avahi
|
||
configure.args-delete \
|
||
--disable-avahi
|
||
}
|
||
|
||
platform darwin {
|
||
configure.args-append \
|
||
--without-acl-support
|
||
}
|
||
|
||
platform freebsd {
|
||
default_variants-append +avahi
|
||
}
|
||
|
||
build.env-append PYTHON=${configure.python} \
|
||
XML_CATALOG_FILES=file://${prefix}/etc/xml/catalog
|
||
|
||
destroot.env-append {*}${build.env}
|
||
|
||
# error: redefinition of typedef ‘SMB_STRUCT_STAT’
|
||
compiler.blacklist-append *gcc-4.* {clang < 400}
|
||
|
||
livecheck.type regex
|
||
livecheck.url https://download.samba.org/pub/samba/
|
||
livecheck.regex samba-(\[0-9a-z.\]+)\\.tar\\.gz
|