| 1 |
|
| 2 |
SHELLscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/SHELL. = /bin/sh -e |
| 3 |
|
| 4 |
|
| 5 |
ifeq (${DEB_HOST_MULTIARCHscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/DEB_HOST_MULTIARCH.},) |
| 6 |
$(foreach d, $(shell dpkg-architecture | sed 's/=/?=/'), $(eval export $d)) |
| 7 |
endif |
| 8 |
|
| 9 |
export DEB_BUILD_MAINT_OPTIONSscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/DEB_BUILD_MAINT_OPTIONS. = hardening=+all |
| 10 |
|
| 11 |
|
| 12 |
DEB_CFLAGS_MAINT_APPENDscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/DEB_CFLAGS_MAINT_APPEND. = -ffile-prefix-map=../../= |
| 13 |
|
| 14 |
ifneq (,$(filterscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/filter. armel mipsel m68k powerpc sh4,${DEB_HOST_ARCHscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/DEB_HOST_ARCH.})) |
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
DEB_LDFLAGS_MAINT_APPENDscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/DEB_LDFLAGS_MAINT_APPEND. += -latomic |
| 26 |
endif |
| 27 |
|
| 28 |
ifneq (,$(filterscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/filter. m68k ,${DEB_HOST_ARCHscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/DEB_HOST_ARCH.})) |
| 29 |
|
| 30 |
|
| 31 |
|
| 32 |
|
| 33 |
DEB_CFLAGS_MAINT_APPENDscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/DEB_CFLAGS_MAINT_APPEND. += -mlong-jump-table-offsets |
| 34 |
endif |
| 35 |
|
| 36 |
include /usr/share/dpkg/buildtools.mk |
| 37 |
include /usr/share/dpkg/buildflags.mk |
| 38 |
include /usr/share/dpkg/pkg-info.mk |
| 39 |
include /usr/share/dpkg/vendor.mk |
| 40 |
Vscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/V. := $(ifscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/if. $(filterscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/filter. terse, ${DEB_BUILD_OPTIONSscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/DEB_BUILD_OPTIONS.}),,1) |
| 41 |
WAFscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/WAF. := PYTHONHASHSEED=1 ./buildtools/bin/waf \ |
| 42 |
$(patsubstscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/patsubst. parallel=%,-j%,$(filterscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/filter. parallel=%,${DEB_BUILD_OPTIONSscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/DEB_BUILD_OPTIONS.})) |
| 43 |
|
| 44 |
|
| 45 |
export PYTHONDONTWRITEBYTECODEscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/PYTHONDONTWRITEBYTECODE.=1 |
| 46 |
|
| 47 |
ifeq (linux,${DEB_HOST_ARCH_OSscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/DEB_HOST_ARCH_OS.}) |
| 48 |
ifneq (${DEB_HOST_GNU_TYPEscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/DEB_HOST_GNU_TYPE.},${DEB_BUILD_GNU_TYPEscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/DEB_BUILD_GNU_TYPE.}) |
| 49 |
|
| 50 |
export _PYTHON_SYSCONFIGDATA_NAMEscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/_PYTHON_SYSCONFIGDATA_NAME.=_sysconfigdata__${DEB_HOST_ARCH_OSscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/DEB_HOST_ARCH_OS.}_${DEB_HOST_MULTIARCHscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/DEB_HOST_MULTIARCH.} |
| 51 |
endif |
| 52 |
endif |
| 53 |
|
| 54 |
PYTHONDIRscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/PYTHONDIR. = /usr/lib/python3/dist-packages |
| 55 |
|
| 56 |
DESTDIRscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/DESTDIR. = ${CURDIRscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/CURDIR.}/debian/tmp |
| 57 |
|
| 58 |
before-trixiescip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/before-trixie. := $(filterscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/filter. pkg.samba.before-trixie, ${DEB_BUILD_PROFILESscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/DEB_BUILD_PROFILES.}) |
| 59 |
|
| 60 |
subver-suffixscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/subver-suffix. := +samba${DEB_VERSION_UPSTREAM_REVISIONscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/DEB_VERSION_UPSTREAM_REVISION.} |
| 61 |
|
| 62 |
|
| 63 |
ldb-upstream-versionscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/ldb-upstream-version. := 2.11.0 |
| 64 |
ldb-versionscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/ldb-version. = 2:${ldb-upstream-versionscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/ldb-upstream-version.}${subver-suffixscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/subver-suffix.} |
| 65 |
ldb-packagesscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/ldb-packages. := libldb2 libldb-dev ldb-tools python3-ldb |
| 66 |
|
| 67 |
|
| 68 |
talloc-upstream-versionscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/talloc-upstream-version. := 2.4.4 |
| 69 |
talloc-versionscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/talloc-version. = 2:${talloc-upstream-versionscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/talloc-upstream-version.}${subver-suffixscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/subver-suffix.} |
| 70 |
talloc-packagesscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/talloc-packages. := libtalloc2 libtalloc-dev python3-talloc |
| 71 |
|
| 72 |
|
| 73 |
tevent-upstream-versionscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/tevent-upstream-version. := 0.17.1 |
| 74 |
tevent-versionscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/tevent-version. = 2:${tevent-upstream-versionscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/tevent-upstream-version.}${subver-suffixscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/subver-suffix.} |
| 75 |
libteventscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/libtevent. := $(ifscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/if. ${before-trixiescip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/before-trixie.},libtevent0,libtevent0t64) |
| 76 |
tevent-packagesscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/tevent-packages. := ${libteventscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/libtevent.} libtevent-dev |
| 77 |
|
| 78 |
|
| 79 |
tdb-upstream-versionscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/tdb-upstream-version. := 1.4.15 |
| 80 |
tdb-versionscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/tdb-version. = 2:${tdb-upstream-versionscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/tdb-upstream-version.}${subver-suffixscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/subver-suffix.} |
| 81 |
tdb-packagesscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/tdb-packages. := libtdb1 tdb-tools libtdb-dev python3-tdb |
| 82 |
|
| 83 |
extra-version-varsscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/extra-version-vars. = \ |
| 84 |
-Vldb:Version=${ldb-versionscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/ldb-version.} \ |
| 85 |
|
| 86 |
|
| 87 |
export SYSLIBDIRscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/SYSLIBDIR. = $(ifscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/if. ${before-trixiescip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/before-trixie.},/lib,/usr/lib) |
| 88 |
|
| 89 |
omit-pkgsscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/omit-pkgs. = |
| 90 |
|
| 91 |
config-argsscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/config-args. = \ |
| 92 |
--vendor-suffix=${DEB_VENDORscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/DEB_VENDOR.}-${DEB_VERSION_UPSTREAM_REVISIONscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/DEB_VERSION_UPSTREAM_REVISION.} \ |
| 93 |
--prefix=/usr \ |
| 94 |
--enable-fhs \ |
| 95 |
--sysconfdir=/etc \ |
| 96 |
--localstatedir=/var \ |
| 97 |
--libexecdir=/usr/libexec \ |
| 98 |
--libdir=/usr/lib/${DEB_HOST_MULTIARCHscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/DEB_HOST_MULTIARCH.} \ |
| 99 |
--datadir=/usr/share \ |
| 100 |
--with-modulesdir=/usr/lib/${DEB_HOST_MULTIARCHscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/DEB_HOST_MULTIARCH.}/samba \ |
| 101 |
--with-pammodulesdir=${SYSLIBDIRscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/SYSLIBDIR.}/${DEB_HOST_MULTIARCHscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/DEB_HOST_MULTIARCH.}/security \ |
| 102 |
--with-privatedir=/var/lib/samba/private \ |
| 103 |
--with-smbpasswd-file=/etc/samba/smbpasswd \ |
| 104 |
--with-piddir=/run/samba \ |
| 105 |
--with-lockdir=/run/samba \ |
| 106 |
--with-sockets-dir=/run/samba \ |
| 107 |
--with-statedir=/var/lib/samba \ |
| 108 |
--with-cachedir=/var/cache/samba \ |
| 109 |
--with-pam \ |
| 110 |
--with-syslog \ |
| 111 |
--with-utmp \ |
| 112 |
--with-winbind \ |
| 113 |
--with-automount \ |
| 114 |
--with-ldap \ |
| 115 |
--with-ads \ |
| 116 |
--with-gpgme \ |
| 117 |
--enable-avahi \ |
| 118 |
--enable-spotlight \ |
| 119 |
--with-profiling-data \ |
| 120 |
--disable-rpath --disable-rpath-install \ |
| 121 |
--private-libraries=!ldb \ |
| 122 |
--bundled-libraries=talloc,tevent,tdb \ |
| 123 |
--pythondir=${PYTHONDIRscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/PYTHONDIR.} \ |
| 124 |
--pythonarchdir=${PYTHONDIRscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/PYTHONDIR.} \ |
| 125 |
\ |
| 126 |
--with-cluster-support \ |
| 127 |
--enable-etcd-reclock \ |
| 128 |
--with-socketpath=/run/ctdb/ctdbd.socket \ |
| 129 |
--with-logdir=/var/log/ctdb \ |
| 130 |
|
| 131 |
|
| 132 |
|
| 133 |
|
| 134 |
|
| 135 |
|
| 136 |
|
| 137 |
config-argsscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/config-args. += \ |
| 138 |
--with-shared-modules=vfs_dfs_samba4,vfs_nfs4acl_xattr,auth_samba4 |
| 139 |
|
| 140 |
ifeq (${DEB_HOST_ARCH_OSscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/DEB_HOST_ARCH_OS.}, linux) |
| 141 |
|
| 142 |
config-argsscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/config-args. += \ |
| 143 |
--with-quota \ |
| 144 |
--with-systemd \ |
| 145 |
|
| 146 |
endif |
| 147 |
|
| 148 |
|
| 149 |
ifeq (${DEB_VENDORscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/DEB_VENDOR.}-${DEB_HOST_ARCHscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/DEB_HOST_ARCH.}, Ubuntu-i386) |
| 150 |
omit-pkgsscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/omit-pkgs. += ctdb libpam-winbind samba samba-ad-dc samba-testsuite samba-vfs-modules samba-vfs-ceph samba-vfs-glusterfs |
| 151 |
endif |
| 152 |
|
| 153 |
|
| 154 |
libsmbclientscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/libsmbclient. := $(ifscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/if. ${before-trixiescip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/before-trixie.},libsmbclient,libsmbclient0) |
| 155 |
|
| 156 |
mitkrb5-dep-pkgsscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/mitkrb5-dep-pkgs. := |
| 157 |
ifneq (,$(filterscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/filter. pkg.samba.mitkrb5, ${DEB_BUILD_PROFILESscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/DEB_BUILD_PROFILES.})) |
| 158 |
config-argsscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/config-args. += \ |
| 159 |
--with-system-mitkrb5 \ |
| 160 |
--with-experimental-mit-ad-dc \ |
| 161 |
--with-system-mitkdc=/usr/sbin/krb5kdc |
| 162 |
|
| 163 |
mitkrb5-samba-verscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/mitkrb5-samba-ver. = ${DEB_VERSIONscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/DEB_VERSION.}mitkrb5 |
| 164 |
mitkrb5-dep-pkgsscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/mitkrb5-dep-pkgs. += samba-libs samba-dev |
| 165 |
mitkrb5-dep-pkgsscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/mitkrb5-dep-pkgs. += samba samba-common-bin python3-samba |
| 166 |
mitkrb5-dep-pkgsscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/mitkrb5-dep-pkgs. += samba-vfs-ceph samba-vfs-glusterfs |
| 167 |
mitkrb5-dep-pkgsscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/mitkrb5-dep-pkgs. += samba-dsdb-modules |
| 168 |
mitkrb5-dep-pkgsscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/mitkrb5-dep-pkgs. += ${libsmbclientscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/libsmbclient.} smbclient |
| 169 |
mitkrb5-dep-pkgsscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/mitkrb5-dep-pkgs. += libnss-winbind libpam-winbind |
| 170 |
mitkrb5-dep-pkgsscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/mitkrb5-dep-pkgs. += winbind libwbclient0 |
| 171 |
mitkrb5-dep-pkgsscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/mitkrb5-dep-pkgs. += samba-testsuite |
| 172 |
mitkrb5-dep-pkgsscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/mitkrb5-dep-pkgs. += ctdb |
| 173 |
endif |
| 174 |
|
| 175 |
ifneq (,${omit-pkgsscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/omit-pkgs.}) |
| 176 |
export DH_OPTIONSscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/DH_OPTIONS. += $(addprefixscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/addprefix. -N, ${omit-pkgsscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/omit-pkgs.}) |
| 177 |
endif |
| 178 |
|
| 179 |
build-pkgsscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/build-pkgs. := $(shellscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/shell. dh_listpackages) |
| 180 |
|
| 181 |
with-cephscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/with-ceph. := $(filterscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/filter. samba-vfs-ceph,${build-pkgsscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/build-pkgs.}) |
| 182 |
config-argsscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/config-args. += $(ifscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/if. ${with-cephscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/with-ceph.},\ |
| 183 |
--enable-cephfs --enable-ceph-reclock,\ |
| 184 |
--disable-cephfs) |
| 185 |
|
| 186 |
binaryscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/binary(). binary-archscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/binary-arch(). binary-indepscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/binary-indep(). \ |
| 187 |
installscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/install(). install-archscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/install-arch(). install-indepscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/install-indep().: %: |
| 188 |
dh $* |
| 189 |
|
| 190 |
configurescip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/configure().: bin/configured.stamp |
| 191 |
.PHONYscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/`.PHONY`().: configure |
| 192 |
bin/configured.stampscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/`bin/configured.stamp`().: |
| 193 |
CC="${CCscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/CC.}" CPP="${CPPscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/CPP.}" LD="${LDscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/LD.}" PKGCONFIG="${PKG_CONFIGscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/PKG_CONFIG.}" \ |
| 194 |
CPPFLAGS="${CPPFLAGSscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/CPPFLAGS.}" CFLAGS="${CFLAGSscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/CFLAGS.}" LDFLAGS="${LDFLAGSscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/LDFLAGS.}" \ |
| 195 |
PYTHON=python3 PYTHON_CONFIG=${DEB_HOST_MULTIARCHscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/DEB_HOST_MULTIARCH.}-python3-config \ |
| 196 |
${WAFscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/WAF.} -j1 -C configure ${config-argsscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/config-args.} || \ |
| 197 |
{ $(if ${V},echo "==== contents of config.log:"; cat bin/config.log;) false; } |
| 198 |
|
| 199 |
rm -f third_party/heimdal/lib/gssapi/gssapi.h |
| 200 |
touch $@ |
| 201 |
|
| 202 |
build-archscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/build-arch().: bin/built.stamp |
| 203 |
bin/built.stampscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/`bin/built.stamp`().: bin/configured.stamp |
| 204 |
|
| 205 |
|
| 206 |
|
| 207 |
|
| 208 |
|
| 209 |
|
| 210 |
ifeq (,${mitkrb5-dep-pkgsscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/mitkrb5-dep-pkgs.}) |
| 211 |
|
| 212 |
|
| 213 |
|
| 214 |
|
| 215 |
|
| 216 |
|
| 217 |
${WAF} $(if $V,-v) --targets=compile_et,asn1_compile |
| 218 |
endif |
| 219 |
${WAFscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/WAF.} $(if $V,-v) install --destdir="${DESTDIRscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/DESTDIR.}" |
| 220 |
touch $@ |
| 221 |
build-indepscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/build-indep().: |
| 222 |
buildscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/build().: build-arch build-indep |
| 223 |
|
| 224 |
|
| 225 |
|
| 226 |
|
| 227 |
|
| 228 |
|
| 229 |
|
| 230 |
testbuild/copied.stampscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/`testbuild/copied.stamp`().: |
| 231 |
rm -rf testbuild; mkdir testbuild |
| 232 |
cp -a -l $$(ls -1 | egrep -v '^(bin|testbuild|debian)$$') testbuild/ |
| 233 |
|
| 234 |
find testbuild -name __pycache__ -exec rm -rf {} + |
| 235 |
rm -f testbuild/compile_commands.json |
| 236 |
touch $@ |
| 237 |
testbuild/configured.stampscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/`testbuild/configured.stamp`().: testbuild/copied.stamp |
| 238 |
@echo "############## selftest configure ##############" |
| 239 |
|
| 240 |
|
| 241 |
|
| 242 |
|
| 243 |
cd testbuild && \ |
| 244 |
CPPFLAGS="${CPPFLAGSscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/CPPFLAGS.}" CFLAGS="${CFLAGSscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/CFLAGS.}" LDFLAGS="${LDFLAGSscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/LDFLAGS.}" \ |
| 245 |
${WAFscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/WAF.} -j1 -C configure --enable-selftest \ |
| 246 |
$$(echo '${config-argsscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/config-args.}' | \ |
| 247 |
sed 's|--bundled-libraries=NONE|&,nss_wrapper,pam_wrapper,resolv_wrapper,socket_wrapper,uid_wrapper|') |
| 248 |
|
| 249 |
rm -f testbuild/selftest/knownfail.d/debian |
| 250 |
echo '^samba3.smb2.session\ enc.(reauth.|bind.|bind_negative.*|bind_invalid_auth|encryption-aes-.*)\(nt4_dc\)' \ |
| 251 |
>>testbuild/selftest/knownfail.d/debian |
| 252 |
|
| 253 |
|
| 254 |
echo '^samba4.ntvfs.cifs.ntlm.base.unlink.unlink\(rpc_proxy\)' \ |
| 255 |
>>testbuild/selftest/knownfail.d/debian |
| 256 |
echo '^samba4.rpc.echo\ against\ rpc\ proxy\ with\ domain\ creds\(rpc_proxy\)' \ |
| 257 |
>>testbuild/selftest/knownfail.d/debian |
| 258 |
touch $@ |
| 259 |
selftest-quickscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/selftest-quick().: testbuild/configured.stamp |
| 260 |
@echo "############## selftest run ##############" |
| 261 |
cd testbuild && ${WAFscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/WAF.} test --quick |
| 262 |
|
| 263 |
override_dh_auto_testscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/override_dh_auto_test().: |
| 264 |
|
| 265 |
override_dh_auto_install-archscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/override_dh_auto_install-arch().: |
| 266 |
|
| 267 |
${WAFscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/WAF.} install --destdir="${DESTDIRscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/DESTDIR.}" |
| 268 |
|
| 269 |
find debian/tmp |
| 270 |
|
| 271 |
rm debian/tmp${PYTHONDIRscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/PYTHONDIR.}/_tevent.* debian/tmp/${PYTHONDIRscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/PYTHONDIR.}/tevent.py |
| 272 |
|
| 273 |
rm -rf debian/tmp${PYTHONDIRscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/PYTHONDIR.}/samba/tests/ |
| 274 |
|
| 275 |
install -Dp -m0644 debian/winbind.pam-config debian/tmp/usr/share/pam-configs/winbind |
| 276 |
install -p -m755 debian/update-apparmor-samba-profile -t debian/tmp/usr/share/samba/ |
| 277 |
install -Dp -m0644 debian/samba.ufw.profile debian/tmp/etc/ufw/applications.d/samba |
| 278 |
|
| 279 |
mkdir -p debian/tmp/ctdb |
| 280 |
install -p ctdb/config/events/README debian/tmp/ctdb/README.notification |
| 281 |
install -p ctdb/config/notification.README debian/tmp/ctdb/README.notification |
| 282 |
ifeq ($(DEB_HOST_ARCH_OSscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/DEB_HOST_ARCH_OS.), hurd) |
| 283 |
install -p debian/ctdb.README.hurd debian/tmp/ctdb/README.hurd |
| 284 |
endif |
| 285 |
ifeq ($(DEB_HOST_ARCH_OSscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/DEB_HOST_ARCH_OS.), kfreebsd) |
| 286 |
install -p debian/ctdb.README.kfreebsd debian/tmp/ctdb/README.kfreebsd |
| 287 |
endif |
| 288 |
|
| 289 |
|
| 290 |
mv ${DESTDIR}/usr/bin/tdbbackup \ |
| 291 |
${DESTDIR}/usr/bin/tdbbackup.tdbtools |
| 292 |
mv ${DESTDIR}/usr/share/man/man8/tdbbackup.8 \ |
| 293 |
${DESTDIR}/usr/share/man/man8/tdbbackup.tdbtools.8 |
| 294 |
|
| 295 |
mv -t ${DESTDIR}/usr/include/ \ |
| 296 |
${DESTDIR}/usr/include/samba-4.0/talloc.h \ |
| 297 |
${DESTDIR}/usr/include/samba-4.0/pytalloc.h \ |
| 298 |
${DESTDIR}/usr/include/samba-4.0/tevent.h \ |
| 299 |
${DESTDIR}/usr/include/samba-4.0/tdb.h |
| 300 |
sed -ri 's|(/include)/samba-4.0$$|\1|' \ |
| 301 |
${DESTDIR}/usr/lib/${DEB_HOST_MULTIARCH}/pkgconfig/talloc.pc \ |
| 302 |
${DESTDIR}/usr/lib/${DEB_HOST_MULTIARCH}/pkgconfig/tevent.pc \ |
| 303 |
${DESTDIR}/usr/lib/${DEB_HOST_MULTIARCH}/pkgconfig/tdb.pc |
| 304 |
|
| 305 |
sed -i 's/^_PUBLIC_ //' \ |
| 306 |
${DESTDIR}/usr/include/talloc.h \ |
| 307 |
${DESTDIR}/usr/include/pytalloc.h \ |
| 308 |
${DESTDIR}/usr/include/tdb.h |
| 309 |
|
| 310 |
patch --batch -i debian/header-remove-_PUBLIC_-define.patch ${DESTDIR}/usr/include/talloc.h |
| 311 |
patch --batch -i debian/header-remove-_PUBLIC_-define.patch ${DESTDIR}/usr/include/tdb.h |
| 312 |
|
| 313 |
execute_after_dh_install-archscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/execute_after_dh_install-arch().: |
| 314 |
|
| 315 |
|
| 316 |
rm -f \ |
| 317 |
debian/samba/usr/lib/${DEB_HOST_MULTIARCHscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/DEB_HOST_MULTIARCH.}/samba/vfs/glusterfs*.so \ |
| 318 |
debian/samba/usr/share/man/man8/vfs_glusterfs*.8 \ |
| 319 |
debian/samba/usr/lib/${DEB_HOST_MULTIARCHscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/DEB_HOST_MULTIARCH.}/samba/vfs/ceph*.so \ |
| 320 |
debian/samba/usr/share/man/man8/vfs_ceph*.8 |
| 321 |
|
| 322 |
provision-destscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/provision-dest. := debian/samba-ad-provision/usr/share/samba/setup |
| 323 |
|
| 324 |
override_dh_auto_install-indepscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/override_dh_auto_install-indep().: |
| 325 |
|
| 326 |
|
| 327 |
|
| 328 |
|
| 329 |
install -Dp -m0644 debian/smb.conf -t debian/samba-common/usr/share/samba/ |
| 330 |
ifeq (${DEB_VENDORscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/DEB_VENDOR.}, Ubuntu) |
| 331 |
patch debian/samba-common/usr/share/samba/smb.conf debian/smb.conf.ubuntu.diff |
| 332 |
endif |
| 333 |
|
| 334 |
install -Dp -m0644 debian/samba.pam debian/samba-common/etc/pam.d/samba |
| 335 |
|
| 336 |
|
| 337 |
mkdir -p -m0755 ${provision-dest} |
| 338 |
cp -r --preserve=timestamps source4/setup/. ${provision-dest} |
| 339 |
rm -rf ${provision-dest}/tests |
| 340 |
rm -f ${provision-dest}/wscript* \ |
| 341 |
${provision-dest}/adprep/samba-4.7-missing-for-schema45.ldif |
| 342 |
|
| 343 |
override_dh_installpamscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/override_dh_installpam().: |
| 344 |
|
| 345 |
|
| 346 |
ifpkgscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/ifpkg. = $(ifscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/if. $(filterscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/filter. ${1scip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/1.},${build-pkgsscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/build-pkgs.}),${2scip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/2.}) |
| 347 |
|
| 348 |
override_dh_installinitscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/override_dh_installinit().: |
| 349 |
ifneq (,$(filterscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/filter. samba, ${build-pkgsscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/build-pkgs.})) |
| 350 |
dh_installinit -psamba --name smbd |
| 351 |
|
| 352 |
dh_installinit -psamba --name nmbd --no-enable --no-start --restart-after-upgrade |
| 353 |
dh_installinit -psamba-ad-dc |
| 354 |
endif |
| 355 |
$(call ifpkg, winbind, dh_installinitscip-debian debian debhelper . dh_installinit(). -pwinbind) |
| 356 |
ifneq (,$(filterscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/filter. ctdb, ${build-pkgsscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/build-pkgs.})) |
| 357 |
install -Dp -m755 ctdb/config/ctdb.init debian/ctdb/etc/init.d/ctdb |
| 358 |
dh_installinit -pctdb --no-start --no-stop-on-upgrade --onlyscripts |
| 359 |
endif |
| 360 |
|
| 361 |
override_dh_installsystemdscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/override_dh_installsystemd().: |
| 362 |
ifneq (,$(filterscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/filter. samba, ${build-pkgsscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/build-pkgs.})) |
| 363 |
dh_installsystemd -psamba --name=smbd |
| 364 |
dh_installsystemd -psamba --name=nmbd --no-enable --no-start --restart-after-upgrade |
| 365 |
dh_installsystemd -psamba --name=samba-bgqd --no-enable --no-start --restart-after-upgrade |
| 366 |
dh_installsystemd -psamba-ad-dc |
| 367 |
endif |
| 368 |
$(call ifpkg, winbind, dh_installsystemdscip-debian debian debhelper . dh_installsystemd(). -pwinbind) |
| 369 |
$(call ifpkg, ctdb, dh_installsystemdscip-debian debian debhelper . dh_installsystemd(). -pctdb --no-start --no-stop-on-upgrade) |
| 370 |
|
| 371 |
execute_after_dh_fixperms-archscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/execute_after_dh_fixperms-arch().: |
| 372 |
$(call ifpkg, smbclient, chmod 0700 debian/smbclient/usr/libexec/samba/smbspool_krb5_wrapper) |
| 373 |
|
| 374 |
override_dh_makeshlibsscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/override_dh_makeshlibs().: |
| 375 |
|
| 376 |
{ \ |
| 377 |
suff=$$(${DEB_HOST_MULTIARCHscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/DEB_HOST_MULTIARCH.}-python3-config --extension-suffix | tr _ -); \ |
| 378 |
SUFF=$$(echo "$${suff%.so}" | tr a-z- A-Z_); \ |
| 379 |
SYM="PYTALLOC_UTIL$${SUFF}_${talloc-upstream-versionscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/talloc-upstream-version.}"; \ |
| 380 |
deb_ver="${talloc-versionscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/talloc-version.}"; \ |
| 381 |
echo "libpytalloc-util$${suff}.2 #PACKAGE# #MINVER#"; \ |
| 382 |
echo " $${SYM}@$${SYM} $${deb_ver%%[-+]*}"; \ |
| 383 |
cat debian/python3-talloc.symbols.in; \ |
| 384 |
} > debian/python3-talloc.symbols |
| 385 |
|
| 386 |
|
| 387 |
|
| 388 |
debian/genshlibs \ |
| 389 |
$(addsuffix =${ldb-version},${ldb-packages}) \ |
| 390 |
$(addsuffix =${talloc-version},${talloc-packages}) \ |
| 391 |
$(addsuffix =${tevent-version},${tevent-packages}) \ |
| 392 |
$(addsuffix =${tdb-version},${tdb-packages}) \ |
| 393 |
$(addsuffix =${mitkrb5-samba-ver}, ${mitkrb5-dep-pkgs}) |
| 394 |
|
| 395 |
rm -f debian/python3-talloc.symbols |
| 396 |
|
| 397 |
|
| 398 |
depcheckscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/depcheck. = if egrep '^shlibs.Depends=.* ($(strip $2)) ' debian/$(stripscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/strip. $1scip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/1.).substvars; \ |
| 399 |
then echo 'E: $(strip $1) should not depend on $(strip $2)' >&2; exit 1; fi |
| 400 |
|
| 401 |
override_dh_shlibdepsscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/override_dh_shlibdeps().: |
| 402 |
|
| 403 |
|
| 404 |
dh_shlibdepsscip-debian debian debhelper . dh_shlibdeps(). -l/usr/lib/${DEB_HOST_MULTIARCHscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/DEB_HOST_MULTIARCH.}/samba \ |
| 405 |
-Xctdb_mutex_ceph_rados_helper |
| 406 |
ifneq (,$(filterscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/filter. ctdb, ${build-pkgsscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/build-pkgs.})) |
| 407 |
echo "rados:Depends=" >> debian/ctdb.substvars |
| 408 |
ifneq (${with-cephscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/with-ceph.},) |
| 409 |
dpkg-shlibdeps -Tdebian/ctdb.substvars -prados \ |
| 410 |
debian/ctdb/usr/libexec/ctdb/ctdb_mutex_ceph_rados_helper |
| 411 |
endif |
| 412 |
endif |
| 413 |
depdendencies |
| 414 |
$(call depcheck, samba-libs, samba|winbind|smbclient|ctdb) |
| 415 |
$(call depcheck, smbclient, samba|winbind|ctdb) |
| 416 |
$(call depcheck, ctdb, samba|winbind|smbclient) |
| 417 |
$(call depcheck, libldb2, samba|samba-libs|winbind|libwbclient0) |
| 418 |
$(call depcheck, python3-ldb, samba-libs|python3-samba) |
| 419 |
$(call depcheck, python3-samba, samba|winbind|ctdb) |
| 420 |
$(call depcheck, libwbclient0, samba|samba-libs|winbind|smbclient|ctdb) |
| 421 |
$(call depcheck, ${libsmbclient}, samba|winbind|smbclient|ctdb) |
| 422 |
$(call depcheck, libtalloc2, samba|samba-libs|${libsmbclient}|libwbclient0) |
| 423 |
$(call depcheck, ${libtevent}, samba|samba-libs|${libsmbclient}|libwbclient0) |
| 424 |
$(call depcheck, libtdb1, samba|samba-libs|${libsmbclient}|libwbclient0) |
| 425 |
|
| 426 |
override_dh_installexamplesscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/override_dh_installexamples().: |
| 427 |
dh_installexamplesscip-debian debian debhelper . dh_installexamples(). -Xwscript_build |
| 428 |
|
| 429 |
override_dh_gencontrol-archscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/override_dh_gencontrol-arch().: |
| 430 |
dh_gencontrolscip-debian debian debhelper . dh_gencontrol(). $(addprefix -p, ${ldb-packages}) -- -v${ldb-versionscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/ldb-version.} |
| 431 |
dh_gencontrolscip-debian debian debhelper . dh_gencontrol(). $(addprefix -p, ${talloc-packages}) -- -v${talloc-versionscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/talloc-version.} |
| 432 |
dh_gencontrolscip-debian debian debhelper . dh_gencontrol(). $(addprefix -p, ${tevent-packages}) -- -v${tevent-versionscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/tevent-version.} |
| 433 |
dh_gencontrolscip-debian debian debhelper . dh_gencontrol(). $(addprefix -p, ${tdb-packages}) -- -v${tdb-versionscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/tdb-version.} |
| 434 |
ifneq (,$(filterscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/filter. ${build-pkgsscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/build-pkgs.}, ${mitkrb5-dep-pkgsscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/mitkrb5-dep-pkgs.})) |
| 435 |
dh_gencontrol $(addprefix -p, $(filter ${build-pkgs}, ${mitkrb5-dep-pkgs})) -- -v${mitkrb5-samba-ver} ${extra-version-vars} |
| 436 |
endif |
| 437 |
dh_gencontrolscip-debian debian debhelper . dh_gencontrol(). --remaining-packages -- ${extra-version-varsscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/extra-version-vars.} |
| 438 |
|
| 439 |
|
| 440 |
define check-subpkg-verscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/check-subpkg-ver. |
| 441 |
@v=$$(grep ^$2 lib/$1/wscript | cut -d\' -f2); \ |
| 442 |
[ "${$1-upstream-version}" = "$$v" ] && \ |
| 443 |
echo "*** $1 version is $$v (ok)" || \ |
| 444 |
{ echo "Check & update $1-upstream-version (=${$1-upstream-version} upstream=$$v) in d/rules" >&2; \ |
| 445 |
case "${$1-version}" in (*+samba*) echo "Remove +samba suffix from debian version" >&2;; esac; \ |
| 446 |
grep -qFi " $1_$$v@$1_$$v " debian/lib$1*.symbols || \ |
| 447 |
echo "Update d/lib$1*.symbols to include new version marker" >&2; \ |
| 448 |
exit 1; } |
| 449 |
endef |
| 450 |
|
| 451 |
cleanscip-debian debian samba 2:4.24.3+dfsg-1 samba/rules/clean().: |
| 452 |
@echo "** Checking versions of bundled libs:" |
| 453 |
$(call check-subpkg-ver,ldb,LDB_VERSION) |
| 454 |
$(call check-subpkg-ver,talloc,VERSION) |
| 455 |
$(call check-subpkg-ver,tevent,VERSION) |
| 456 |
$(call check-subpkg-ver,tdb,VERSION) |
| 457 |
|
| 458 |
dh_cleanscip-debian debian debhelper . dh_clean(). bin/ testbuild/ |