fritzkink
2023-12-08 60cce0c9429de167e198f8bd1102a812ef890018
libsmbclient - update to version 4.19.3

3 files modified
129 ■■■■ changed files
components/library/libsmbclient/Makefile 98 ●●●● patch | view | raw | blame | history
components/library/libsmbclient/libsmbclient.p5m 16 ●●●●● patch | view | raw | blame | history
components/library/libsmbclient/manifests/sample-manifest.p5m 15 ●●●●● patch | view | raw | blame | history
components/library/libsmbclient/Makefile
@@ -24,17 +24,17 @@
# Copyright 2023 Friedrich Kink. All rights reserved.
#
BUILD_BITS = 64_and_32
BUILD_BITS = 64
BUILD_STYLE = waf
include ../../../make-rules/shared-macros.mk
COMPONENT_NAME=        samba
COMPONENT_VERSION=    4.19.2
COMPONENT_VERSION=    4.19.3
COMPONENT_SUMMARY=    A library that permits GPLv2 applications to manipulate CIFS/SMB network resources
COMPONENT_PROJECT_URL=    https://www.samba.org/
COMPONENT_SRC=        $(COMPONENT_NAME)-$(COMPONENT_VERSION)
COMPONENT_ARCHIVE=    $(COMPONENT_SRC).tar.gz
COMPONENT_ARCHIVE_HASH=    sha256:9e63f0505e1c631f1db0b7a9349a51e925c026ca03af3fd5d812228bb597d393
COMPONENT_ARCHIVE_HASH=    sha256:280553b90f131b1940580df293653c9e9bd8906201f5def6e5e8c160f0bfac96
COMPONENT_ARCHIVE_URL=    https://download.samba.org/pub/samba/stable/$(COMPONENT_ARCHIVE)
#COMPONENT_SIG_URL =     https://download.samba.org/pub/samba/stable/$(COMPONENT_SRC).tar.asc
COMPONENT_FMRI=        library/samba/libsmbclient
@@ -51,11 +51,8 @@
# Compiler settings
CFLAGS    +=    $($(COMPILER)_C99_ENABLE) -D_POSIX_PTHREAD_SEMANTICS -DHAVE_AUXV_T -DHCRYPTO_DEF_PROVIDER=hcrypto
LDFLAGS.32 +=    -R/usr/lib/libsmbclient
LDFLAGS.64 +=    -R/usr/lib/libsmbclient/$(MACH64)
LDFLAGS.32 +=    -R/usr/lib/libsmbclient/private
LDFLAGS.64 +=    -R/usr/lib/libsmbclient/private/$(MACH64)
LDFLAGS +=    $(LDFLAGS.$(BITS))
LDFLAGS +=    -R/usr/lib/libsmbclient/$(MACH64)
LDFLAGS +=    -R/usr/lib/libsmbclient/private/$(MACH64)
LDFLAGS +=      -lrt -lsec -lcrypt -lmd5 -lsocket -lnsl -lsendfile
LDFLAGS +=      -lldap-2.6 -lsendfile -lavahi-common -lavahi-core
@@ -77,29 +74,24 @@
# !!! Note, this is not a configure.mk-based Makefile !!!
# --enable-fhs should not be on
CONFIGURE_OPTIONS +=    --prefix=$(CONFIGURE_PREFIX)
CONFIGURE_OPTIONS +=    --exec-prefix=$(CONFIGURE_PREFIX)
CONFIGURE_OPTIONS.32 += --bindir=$(CONFIGURE_PREFIX)/bin
CONFIGURE_OPTIONS.64 += --bindir=$(CONFIGURE_PREFIX)/bin/$(MACH64)
CONFIGURE_OPTIONS.32 += --sbindir=$(CONFIGURE_PREFIX)/sbin
CONFIGURE_OPTIONS.64 += --sbindir=$(CONFIGURE_PREFIX)/sbin/$(MACH64)
CONFIGURE_OPTIONS.32 += --libdir=$(CONFIGURE_PREFIX)
CONFIGURE_OPTIONS.64 += --libdir=$(CONFIGURE_PREFIX)/$(MACH64)
CONFIGURE_OPTIONS.32 += --with-privatelibdir=$(CONFIGURE_PREFIX)/private
CONFIGURE_OPTIONS.64 += --with-privatelibdir=$(CONFIGURE_PREFIX)/private/$(MACH64)
CONFIGURE_OPTIONS +=    --sysconfdir=$(ETCDIR)/samba
CONFIGURE_OPTIONS.32 += --with-pammodulesdir=$(CONFIGURE_PREFIX)/security
CONFIGURE_OPTIONS.64 += --with-pammodulesdir=$(CONFIGURE_PREFIX)/security/$(MACH64)
CONFIGURE_OPTIONS +=    --datarootdir=$(CONFIGURE_PREFIX)
CONFIGURE_OPTIONS +=    --mandir=$(USRSHAREMANDIR)
CONFIGURE_OPTIONS +=    --htmldir=/usr/share/samba/swat/help
CONFIGURE_OPTIONS +=    --includedir=$(USRINCDIR)/libsmbclient
CONFIGURE_OPTIONS +=    --with-privatedir=$(ETCDIR)/samba/private
CONFIGURE_OPTIONS +=    --localstatedir=$(VARDIR)/samba
CONFIGURE_OPTIONS +=    --with-logfilebase=$(VARDIR)/samba/log
CONFIGURE_OPTIONS +=    --sharedstatedir=$(VARDIR)/samba/com
CONFIGURE_OPTIONS +=    --libexecdir=$(CONFIGURE_PREFIX)/libexec/$(MACH64)
CONFIGURE_OPTIONS +=    --with-bind-dns-dir=$(CONFIGURE_PREFIX)/bind-dns
CONFIGURE_OPTIONS +=    --prefix=$(CONFIGURE_PREFIX)
CONFIGURE_OPTIONS +=    --exec-prefix=$(CONFIGURE_PREFIX)
CONFIGURE_OPTIONS +=    --bindir=$(CONFIGURE_PREFIX)/bin/$(MACH64)
CONFIGURE_OPTIONS +=    --sbindir=$(CONFIGURE_PREFIX)/sbin/$(MACH64)
CONFIGURE_OPTIONS +=    --libdir=$(CONFIGURE_PREFIX)/$(MACH64)
CONFIGURE_OPTIONS +=    --with-privatelibdir=$(CONFIGURE_PREFIX)/private/$(MACH64)
CONFIGURE_OPTIONS +=    --sysconfdir=$(ETCDIR)/samba
CONFIGURE_OPTIONS +=    --with-pammodulesdir=$(CONFIGURE_PREFIX)/security/$(MACH64)
CONFIGURE_OPTIONS +=    --datarootdir=$(CONFIGURE_PREFIX)
CONFIGURE_OPTIONS +=    --mandir=$(USRSHAREMANDIR)
CONFIGURE_OPTIONS +=    --htmldir=/usr/share/samba/swat/help
CONFIGURE_OPTIONS +=    --includedir=$(USRINCDIR)/libsmbclient
CONFIGURE_OPTIONS +=    --with-privatedir=$(ETCDIR)/samba/private
CONFIGURE_OPTIONS +=    --localstatedir=$(VARDIR)/samba
CONFIGURE_OPTIONS +=    --with-logfilebase=$(VARDIR)/samba/log
CONFIGURE_OPTIONS +=    --sharedstatedir=$(VARDIR)/samba/com
CONFIGURE_OPTIONS +=    --libexecdir=$(CONFIGURE_PREFIX)/libexec/$(MACH64)
CONFIGURE_OPTIONS +=    --with-bind-dns-dir=$(CONFIGURE_PREFIX)/bind-dns
CONFIGURE_OPTIONS +=    --with-static-modules=
CONFIGURE_OPTIONS +=    --with-shared-modules=
@@ -118,50 +110,6 @@
CONFIGURE_ENV +=        CPPFLAGS="$(CPPFLAGS)"
CONFIGURE_ENV +=        CUPS_CONFIG=$(USRBINDIR)/cups-config
CONFIGURE_ENV +=        PATH=$(GNUBIN.$(BITS)):$(USRBINDIR.$(BITS)):$(PATH.gnu)
# Build targets for WAF:
# (motivation) Samba started to use WAF (build system from Google) from the 3.x
# (as a parallel build system) but Samba4 discontinued the use of auto tools
# definitively.
# (note) .BDprep target is an additional step between .prep and .configure
# targets. It was added because there were problems with libtool-like phase of
# WAF when the not "prepared well". "waf distclean" on CLONEY'ed BUILD_DIR is
# enough.
# Prepare build dir for Samba
$(BUILD_DIR_32)/.BDprep:    $(SOURCE_DIR)/.prep
    # re-create configure dir
    $(MKDIR) $(@D)
    # Clone SOURCE_DIR
    $(CLONEY) $(SOURCE_DIR) $(@D)
    # cleanup of clone
    (cd $(@D) ; $(ENV) $(WAF) distclean )
    $(TOUCH) $@
# Configure of Samba
$(BUILD_DIR_32)/.configured:    $(BUILD_DIR_32)/.BDprep
    (cd $(@D) ; $(ENV) $(CONFIGURE_ENV) \
        $(CONFIGURE_ENV.32) $(WAF) configure $(CONFIGURE_OPTIONS) $(CONFIGURE_OPTIONS.32) )
    $(TOUCH) $@
# Build of Samba + Winbind.
$(BUILD_DIR_32)/.built:    $(BUILD_DIR_32)/.configured
    (cd $(@D) ; \
        $(GSED) -i -e 's:/usr/lib/amd64:/usr/lib:' bin/c4che/default_cache.py; \
     $(ENV) $(WAF) build --targets=smbclient)
    $(TOUCH) $@
# Install of Samba + Winbind.
$(BUILD_DIR_32)/.installed:    $(BUILD_DIR_32)/.built
    (cd $(@D) ; $(ENV) $(WAF) install --targets=smbclient --destdir=$(PROTO_DIR) )
    $(TOUCH) $@
$(BUILD_DIR)/.pc.fixed:    $(INSTALL_32)
    $(GSED) -i -e '/^Libs/s:-L$${libdir}:-L$${libdir} -R$${libdir}:' $(PROTO_DIR)/usr/lib/libsmbclient/pkgconfig/*.pc
    $(TOUCH) $@
# common targets
install:    $(INSTALL_32) $(BUILD_DIR)/.pc.fixed
# manually added packages
PERL_REQUIRED_PACKAGES +=library/perl-5/json
components/library/libsmbclient/libsmbclient.p5m
@@ -24,8 +24,6 @@
license $(COMPONENT_LICENSE_FILE) license='$(COMPONENT_LICENSE)'
<transform file path=usr/lib/pkgconfig/(.*) -> set action.hash usr/lib/libsmbclient/pkgconfig/%<\1> >
file path=usr/include/libsmbclient/charset.h
file path=usr/include/libsmbclient/core/doserr.h
file path=usr/include/libsmbclient/core/error.h
@@ -283,19 +281,6 @@
file path=usr/lib/libsmbclient/libexec/$(MACH64)/samba/samba-bgqd
file path=usr/lib/libsmbclient/libexec/$(MACH64)/samba/samba-dcerpcd
file path=usr/lib/libsmbclient/libexec/$(MACH64)/samba/smbspool_krb5_wrapper
file path=usr/lib/libsmbclient/pkgconfig/dcerpc.pc
file path=usr/lib/libsmbclient/pkgconfig/dcerpc_samr.pc
file path=usr/lib/libsmbclient/pkgconfig/ndr.pc
file path=usr/lib/libsmbclient/pkgconfig/ndr_krb5pac.pc
file path=usr/lib/libsmbclient/pkgconfig/ndr_nbt.pc
file path=usr/lib/libsmbclient/pkgconfig/ndr_standard.pc
file path=usr/lib/libsmbclient/pkgconfig/netapi.pc
file path=usr/lib/libsmbclient/pkgconfig/samba-credentials.pc
file path=usr/lib/libsmbclient/pkgconfig/samba-hostconfig.pc
file path=usr/lib/libsmbclient/pkgconfig/samba-util.pc
file path=usr/lib/libsmbclient/pkgconfig/samdb.pc
file path=usr/lib/libsmbclient/pkgconfig/smbclient.pc
file path=usr/lib/libsmbclient/pkgconfig/wbclient.pc
file path=usr/lib/libsmbclient/private/$(MACH64)/libCHARSET3-samba4.so
file path=usr/lib/libsmbclient/private/$(MACH64)/libLIBWBCLIENT-OLD-samba4.so
file path=usr/lib/libsmbclient/private/$(MACH64)/libMESSAGING-SEND-samba4.so
@@ -412,4 +397,3 @@
file path=usr/lib/libsmbclient/private/$(MACH64)/libutil-tdb-samba4.so
file path=usr/lib/libsmbclient/private/$(MACH64)/libwind-samba4.so
file path=usr/lib/libsmbclient/private/$(MACH64)/libxattr-tdb-samba4.so
file path=usr/lib/libsmbclient/private/libreplace-samba4.so
components/library/libsmbclient/manifests/sample-manifest.p5m
@@ -315,7 +315,6 @@
file path=usr/lib/libsmbclient/bin/$(MACH64)/tdbtool
file path=usr/lib/libsmbclient/bin/$(MACH64)/testparm
file path=usr/lib/libsmbclient/bin/$(MACH64)/wbinfo
file path=usr/lib/libsmbclient/bin/samba-tool
file path=usr/lib/libsmbclient/libexec/$(MACH64)/samba/rpcd_classic
file path=usr/lib/libsmbclient/libexec/$(MACH64)/samba/rpcd_epmapper
file path=usr/lib/libsmbclient/libexec/$(MACH64)/samba/rpcd_fsrvp
@@ -326,19 +325,6 @@
file path=usr/lib/libsmbclient/libexec/$(MACH64)/samba/samba-bgqd
file path=usr/lib/libsmbclient/libexec/$(MACH64)/samba/samba-dcerpcd
file path=usr/lib/libsmbclient/libexec/$(MACH64)/samba/smbspool_krb5_wrapper
file path=usr/lib/libsmbclient/pkgconfig/dcerpc.pc
file path=usr/lib/libsmbclient/pkgconfig/dcerpc_samr.pc
file path=usr/lib/libsmbclient/pkgconfig/ndr.pc
file path=usr/lib/libsmbclient/pkgconfig/ndr_krb5pac.pc
file path=usr/lib/libsmbclient/pkgconfig/ndr_nbt.pc
file path=usr/lib/libsmbclient/pkgconfig/ndr_standard.pc
file path=usr/lib/libsmbclient/pkgconfig/netapi.pc
file path=usr/lib/libsmbclient/pkgconfig/samba-credentials.pc
file path=usr/lib/libsmbclient/pkgconfig/samba-hostconfig.pc
file path=usr/lib/libsmbclient/pkgconfig/samba-util.pc
file path=usr/lib/libsmbclient/pkgconfig/samdb.pc
file path=usr/lib/libsmbclient/pkgconfig/smbclient.pc
file path=usr/lib/libsmbclient/pkgconfig/wbclient.pc
file path=usr/lib/libsmbclient/private/$(MACH64)/libCHARSET3-samba4.so
file path=usr/lib/libsmbclient/private/$(MACH64)/libLIBWBCLIENT-OLD-samba4.so
file path=usr/lib/libsmbclient/private/$(MACH64)/libMESSAGING-SEND-samba4.so
@@ -455,7 +441,6 @@
file path=usr/lib/libsmbclient/private/$(MACH64)/libutil-tdb-samba4.so
file path=usr/lib/libsmbclient/private/$(MACH64)/libwind-samba4.so
file path=usr/lib/libsmbclient/private/$(MACH64)/libxattr-tdb-samba4.so
file path=usr/lib/libsmbclient/private/libreplace-samba4.so
file path=usr/lib/libsmbclient/sbin/$(MACH64)/eventlogadm
file path=usr/lib/libsmbclient/sbin/$(MACH64)/nmbd
file path=usr/lib/libsmbclient/sbin/$(MACH64)/smbd