[Pkg-openldap-devel] r833 - openldap/trunk-2.3/debian

Russ Allbery rra at alioth.debian.org
Sat Jun 2 18:46:30 UTC 2007


Author: rra
Date: 2007-06-02 18:46:30 +0000 (Sat, 02 Jun 2007)
New Revision: 833

Modified:
   openldap/trunk-2.3/debian/changelog
   openldap/trunk-2.3/debian/rules
Log:
* Allow people building packages for outside Debian to skip the checks
  for non-DFSG-free material by setting a variable. Thanks, Peter
  Marschall.  (Closes: #427245)

Modified: openldap/trunk-2.3/debian/changelog
===================================================================
--- openldap/trunk-2.3/debian/changelog	2007-06-02 06:59:13 UTC (rev 832)
+++ openldap/trunk-2.3/debian/changelog	2007-06-02 18:46:30 UTC (rev 833)
@@ -24,8 +24,11 @@
   * Use variables in /etc/init.d/slapd for the paths to slapd and slurpd
     so that someone who really wants to can override them in
     /etc/default/slapd.  (Closes: #403948)
+  * Allow people building packages for outside Debian to skip the checks
+    for non-DFSG-free material by setting a variable. Thanks, Peter
+    Marschall.  (Closes: #427245)
 
- -- Russ Allbery <rra at debian.org>  Fri, 01 Jun 2007 23:59:03 -0700
+ -- Russ Allbery <rra at debian.org>  Sat, 02 Jun 2007 11:46:24 -0700
 
 openldap2.3 (2.3.35-1) unstable; urgency=low
 

Modified: openldap/trunk-2.3/debian/rules
===================================================================
--- openldap/trunk-2.3/debian/rules	2007-06-02 06:59:13 UTC (rev 832)
+++ openldap/trunk-2.3/debian/rules	2007-06-02 18:46:30 UTC (rev 833)
@@ -2,6 +2,10 @@
 
 #export DH_VERBOSE = 1
 
+# Set this variable if you're building packages outside of Debian and don't
+# want the checks for DFSG-freeness.
+#DFSG_NONFREE = 1
+
 CFLAGS = -Wall -g -D_FILE_OFFSET_BITS=64
 INSTALL = install
 INSTALL_FILE    = $(INSTALL) -p    -o root -g root  -m  644
@@ -30,17 +34,22 @@
 include /usr/share/quilt/quilt.make
 
 $(builddir)/Makefile:
-	# Check if we include the RFCs (which are non DFSG-free)
-	# You can safely remove this check 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 [ -e doc/rfc ]; then exit 1; fi
+	# Check if we include the RFCs and Internet-Drafts (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]; then exit 1; fi; \
+	    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 [ -z "$(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 +157,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 [ -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
 	# 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




More information about the Pkg-openldap-devel mailing list