| Name |
libldap2 |
| Description |
OpenLDAP libraries |
| Version |
2.6.7+dfsg-1~exp1ubuntu8.2 |
| Package Base |
openldap |
| Homepage |
https://www.openldap.org/ |
| Maintainers |
['Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>'] |
| Contributors |
['Ryan Tandy <ryan@nardis.ca>', 'Sergio Durigan Junior <sergiodj@debian.org>', 'Steve Langasek <vorlon@debian.org>', 'Torsten Landschoff <torsten@debian.org>'] |
| Distro-repo |
https://git.launchpad.net/ubuntu/+source/openldap/tree/?h=ubuntu/noble |
| Sources |
['https://git.launchpad.net/ubuntu/+source/libldap2/plain/debian/watch?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/openldap/plain/debian/patches/../?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/openldap/plain/debian/patches/64-bit-time-t-compat.patch?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/openldap/plain/debian/patches/add-tlscacert-option-to-ldap-conf?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/openldap/plain/debian/patches/contrib-makefiles?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/openldap/plain/debian/patches/debian-version?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/openldap/plain/debian/patches/do-not-second-guess-sonames?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/openldap/plain/debian/patches/fix-build-top-mk?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/openldap/plain/debian/patches/getaddrinfo-is-threadsafe?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/openldap/plain/debian/patches/index-files-created-as-root?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/openldap/plain/debian/patches/ldap-conf-tls-cacertdir?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/openldap/plain/debian/patches/ldapi-socket-place?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/openldap/plain/debian/patches/man-slapd?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/openldap/plain/debian/patches/sasl-default-path?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/openldap/plain/debian/patches/series?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/openldap/plain/debian/patches/set-maintainer-name?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/openldap/plain/debian/patches/slapi-errorlog-file?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/openldap/plain/debian/patches/smbk5pwd-implicit-declaration?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/openldap/plain/debian/patches/switch-to-lt_dlopenadvise-to-get-RTLD_GLOBAL-set.diff?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/openldap/plain/debian/patches/wrong-database-location?h=ubuntu/noble'] |
| Dependencies |
['libc6', 'libgnutls30t64', 'libsasl2-2'] |
| Optional-Dependencies |
['libldap-common'] |
| Build-Dependencies |
['debhelper-compat', 'dh-apparmor', 'dpkg-dev', 'groff-base', 'heimdal-multidev', 'libargon2-dev <!pkg.openldap.noslapd>', 'libgnutls28-dev', 'libltdl-dev <!pkg.openldap.noslapd>', 'libperl-dev', 'libsasl2-dev', 'libwrap0-dev <!pkg.openldap.noslapd>', 'nettle-dev <!pkg.openldap.noslapd>', 'openssl <!nocheck>', 'perl', 'pkg-config', 'po-debconf', 'unixodbc-dev <!pkg.openldap.noslapd>', 'krb5-admin-server <!nocheck>', 'krb5-user <!nocheck>', 'krb5-kdc <!nocheck>', 'libsasl2-modules-gssapi-mit <!nocheck>', 'sasl2-bin <!nocheck>'] |
| Provides |
[] |
| Builddate |
|
| Architecture |
amd64 |
| Distro-Version |
noble |
| Licenses |
[] |
| Hash |
17000967a1fae30c8dbb92b2183ec6e245c6d802aacf2c2945a20ee89298b8e9 |
#!/usr/bin/make -f
include /usr/share/dpkg/architecture.mk
include /usr/share/dpkg/pkg-info.mk
# Set this variable if you're building packages outside of Debian and don't
# want the checks for DFSG-freeness.
#DFSG_NONFREE = 1
export DEB_CFLAGS_MAINT_APPEND := -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE
export DEB_BUILD_MAINT_OPTIONS := hardening=+all
# Expose maintainer address to build/mkversion (see debian/patches/set-maintainer-name)
export DEB_MAINTAINER := $(shell sed -ne 's/^Maintainer:\s\+//p' debian/control)
# Expose DEB_VERSION to build/version.sh (see debian/patches/debian-version)
export DEB_VERSION
# Workaround for bad glibc behavior when resolving localhost
export RESOLV_MULTI = off
CONFIG = $(shell grep -v "^\#" debian/configure.options)
ifeq ($(DEB_HOST_ARCH_OS),hurd)
CONFIG += --disable-mdb
endif
ifneq ($(filter pkg.openldap.noslapd,$(DEB_BUILD_PROFILES)),)
CONFIG += --disable-slapd
endif
CONTRIB_MODULES = autogroup lastbind passwd passwd/pbkdf2 passwd/sha2 smbk5pwd
# Ensure CC is set correctly for cross builds, unless it has already
# been set explicitly.
ifeq ($(origin CC),default)
export CC := $(DEB_HOST_GNU_TYPE)-gcc
endif
installdir := $(CURDIR)/debian/tmp
builddir := $(CURDIR)/debian/build
slapddir := $(CURDIR)/debian/slapd/usr/sbin
# Standard variables used in contrib Makefiles.
# We override these in make invocations rather than patch every one.
CONTRIB_MAKEVARS := \
LDAP_BUILD='$(builddir)' \
OPT= \
prefix=/usr \
ldap_subdir=/ldap \
moduledir='$$(libdir)$$(ldap_subdir)'
DH = dh $@ --builddirectory=$(builddir)
.PHONY: build
build:
$(DH)
%:
$(DH)
override_dh_auto_configure:
# Check if we include the RFCs, Internet-Drafts, or upstream schemas
# with RFC text (which are non DFSG-free). You can set DFSG_NONFREE
# to build the packages from the unchanged upstream sources but Debian
# can not ship the RFCs in main so this test is here to make sure it
# does not get in by accident again. -- Torsten
if [ -z "$(DFSG_NONFREE)" ]; then \
if [ -e doc/drafts ] || [ -e doc/rfc ]; then exit 1; fi; \
if [ -e servers/slapd/schema/core.schema ] \
&& grep -q 'RFC 4519 definition' servers/slapd/schema/core.schema; \
then \
exit 1; \
fi; \
fi
# Copy our stripped schema versions into where upstream expects them.
if [ -z "$(DFSG_NONFREE)" ]; then \
cp debian/schema/*.schema debian/schema/*.ldif \
servers/slapd/schema/; \
fi
dh_auto_configure -- $(CONFIG)
override_dh_auto_build:
dh_auto_build
ifeq ($(filter pkg.openldap.noslapd,$(DEB_BUILD_PROFILES)),)
# passwd/sha2 needs special handling, see #1030716 and LP: #2000817
for mod in $(CONTRIB_MODULES); do \
if [ "$$mod" = "passwd/sha2" ]; then \
EXTRA_OPT="-fno-strict-aliasing"; \
else \
EXTRA_OPT=""; \
fi; \
dh_auto_build -Dcontrib/slapd-modules/$$mod -Bcontrib/slapd-modules/$$mod -- $(CONTRIB_MAKEVARS) OPT+=$$EXTRA_OPT || exit $$?; \
done
endif
override_dh_auto_install:
dh_auto_install -- STRIP_OPTS=
ifeq ($(filter pkg.openldap.noslapd,$(DEB_BUILD_PROFILES)),)
for mod in $(CONTRIB_MODULES); do \
dh_auto_install -Dcontrib/slapd-modules/$$mod -Bcontrib/slapd-modules/$$mod -- $(CONTRIB_MAKEVARS) || exit $$?; \
done
# Empty the dependency_libs file in the .la files.
for F in $(installdir)/usr/lib/ldap/*.la; do \
sed -i "s/^dependency_libs=.*/dependency_libs=''/" $$F; \
done
endif
# Check all built libraries for unresolved symbols except for the
# libslapi library. It is a special case since the SLAPI interface
# depends on symbols defined in slapd itself. Those symbols will
# remain unresolved until the plugin is loaded into slapd.
for F in $(installdir)/usr/lib/$(DEB_HOST_MULTIARCH)/*.so.*.*.*; do \
if echo "$$F" | grep -q libslapi ; then \
continue; \
fi; \
if LD_LIBRARY_PATH=$(installdir)/usr/lib/$(DEB_HOST_MULTIARCH) ldd -d -r $$F 2>&1 | grep '^undefined symbol:'; then \
echo; \
echo "library $$F has undefined references. Please fix this before continuing."; \
exit 1; \
fi; \
done
# Upstream manpages are section 8C but installed as section 8
find $(installdir)/usr/share/man -name \*.8 \
| xargs perl -pi -e 's#(\.TH \w+ 8)C#$$1#'
ifeq ($(filter stage1 pkg.openldap.noslapd,$(DEB_BUILD_PROFILES)),)
override_dh_install-arch:
dh_install
# install AppArmor profile
install -D -m 644 $(CURDIR)/debian/apparmor-profile $(CURDIR)/debian/slapd/etc/apparmor.d/usr.sbin.slapd
# install Apport hook
install -D -m 644 $(CURDIR)/debian/slapd.py $(CURDIR)/debian/slapd/usr/share/apport/package-hooks/slapd.py
# install ufw profile
install -D -m 644 $(CURDIR)/debian/slapd.ufw.profile $(CURDIR)/debian/slapd/etc/ufw/applications.d/slapd
dh_apparmor -pslapd --profile-name=usr.sbin.slapd
endif
override_dh_installinit:
dh_installinit --no-restart-after-upgrade --error-handler=ignore_init_failure -- "defaults 19 80"
ifeq ($(filter pkg.openldap.noslapd,$(DEB_BUILD_PROFILES)),)
override_dh_fixperms-arch:
dh_fixperms
chmod +x $(CURDIR)/debian/slapd/usr/share/slapd/ldiftopasswd
endif
override_dh_strip:
ifeq ($(filter pkg.openldap.noslapd,$(DEB_BUILD_PROFILES)),)
dh_strip -pslapd --dbgsym-migration='slapd-dbg (<< 2.4.45+dfsg-1~)'
endif
dh_strip --remaining-packages
ifeq ($(filter pkg.openldap.noslapd,$(DEB_BUILD_PROFILES)),)
# hardlink these so not confined by apparmor; do this here and not
# in dh_link so that dh_strip doesn't get confused and put the wrong
# binary in the debug package.
for f in slapacl slapadd slapauth slapcat slapdn slapindex slapmodify slappasswd slapschema slaptest; do \
ln -f $(slapddir)/slapd $(slapddir)/$$f ; \
done
endif
override_dh_link:
sed -e"s/\$${DEB_HOST_MULTIARCH}/$(DEB_HOST_MULTIARCH)/g" < debian/libldap-dev.links.in > debian/libldap-dev.links
dh_link
ifeq ($(filter pkg.openldap.noslapd,$(DEB_BUILD_PROFILES)),)
override_dh_makeshlibs:
echo "slapd:Provides=$$(objdump -p debian/slapd/usr/lib/$(DEB_HOST_MULTIARCH)/libslapi-*.so.* \
| sed -ne '/SONAME/ { s/[[:space:]]*SONAME[[:space:]]*//; \
s/\.so\./-/; p; q }' \
)" >> debian/slapd.substvars
dh_makeshlibs -pslapd -X/usr/lib/ldap/ -V "$$(sed -ne's/slapd:Provides=//p' debian/slapd.substvars)"
dh_makeshlibs --remaining-packages
endif
ifeq ($(filter pkg.openldap.noslapd,$(DEB_BUILD_PROFILES)),)
override_dh_installdeb:
dh_installdeb
perl -w debian/dh_installscripts-common -p slapd
endif
override_dh_auto_clean:
dh_auto_clean
# Update translation templates for debconf
debconf-updatepo
ifeq ($(filter pkg.openldap.noslapd,$(DEB_BUILD_PROFILES)),)
# Remove our stripped schema from the upstream source area.
if [ -z "$(DFSG_NONFREE)" ]; then \
set -e; for s in debian/schema/*.schema debian/schema/*.ldif; do \
rm -f servers/slapd/schema/`basename $$s`; \
done; \
fi
# Clean the contrib directory
for mod in $(CONTRIB_MODULES); do \
dh_auto_clean -Dcontrib/slapd-modules/$$mod -Bcontrib/slapd-modules/$$mod || exit $?; \
done
endif