Package: openldap2.3
Version: 2.3.25-1
Severity: wishlist
Tags: patch

Hi,

please consider making the tests for DSFG-freenes in debian/rules
optional.  This makes it easier for users who want/need to build
their own packages based on Debian's package.

The attached patch should do the trick by omitting the tests
if an environment variable DFSG_NONFREE is set.

Thanks for packaging OpenLDAP for Debian
Peter


-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.18-4-k7 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
--- rules
+++ rules
@@ -35,12 +35,16 @@
        # 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 [ -e doc/rfc ]; then exit 1; fi
+       if [ ! "$${DFSG_NONFREE}" ]; then \
+           if [ -e doc/rfc ]; then exit 1; fi; \
+       fi
 
        # Copy our stripped schema versions into where upstream expects them.
-       set -e; for s in debian/schema/*.schema debian/schema/*.ldif ; do \
-           cp $$s servers/slapd/schema/`basename $$s`; \
-       done
+       if [ ! "$${DFSG_NONFREE}" ]; then \
+           set -e; for s in debian/schema/*.schema debian/schema/*.ldif ; do \
+               cp $$s servers/slapd/schema/`basename $$s`; \
+           done; \
+       fi
 
        cp -f /usr/share/misc/config.* build/
        cp -f /usr/share/misc/config.* contrib/ldapc++/
@@ -148,9 +152,11 @@
        # Update translation templates for debconf
        debconf-updatepo
        # Remove our stripped schema from the upstream source area.
-       set -e; for s in debian/schema/*.schema debian/schema/*.ldif ; do \
-           rm -f servers/slapd/schema/`basename $$s`; \
-       done
+       if [ ! "$${DFSG_NONFREE}" ]; then \
+           set -e; for s in debian/schema/*.schema debian/schema/*.ldif ; do \
+               rm -f servers/slapd/schema/`basename $$s`; \
+           done; \
+       fi
        # Remove updated config.guess and config.sub for a clean diff.
        rm -f build/config.sub build/config.guess
        rm -f contrib/ldapc++/config.sub contrib/ldapc++/config.guess

Reply via email to