[cpp-sp] 50/78: Minor debian/rules cleanup

Scott Cantor cantor.2 at osu.edu
Thu Dec 20 19:40:25 EST 2018


This is an automated email from the git hooks/post-receive script.

scantor pushed a commit to annotated tag debian/2.0.dfsg1-1
in repository cpp-sp.

View the commit online:
http://git.shibboleth.net/view/?p=cpp-sp.git;a=commit;h=92240e9f3cbd0ca55fe4c021d494db50e76c349a

commit 92240e9f3cbd0ca55fe4c021d494db50e76c349a
Author: Russ Allbery <rra at debian.org>
AuthorDate: Wed Jun 25 14:26:06 2008 -0700

    Minor debian/rules cleanup
    
    Reorganize a little, re-add the $(SYSTEM) argument to configure
    (lost in a merge conflict), explicitly build with debugging symbols
    by default (they'll be stripped automatically unless nostrip is set),
    and wrap some longer lines.
---
 debian/rules | 32 +++++++++++++++++++-------------
 1 file changed, 19 insertions(+), 13 deletions(-)

diff --git a/debian/rules b/debian/rules
index eb48846..9067132 100755
--- a/debian/rules
+++ b/debian/rules
@@ -7,12 +7,23 @@
 # This has to be exported to make some magic below work.
 export DH_OPTIONS
 
+CFLAGS = -g
+CXXFLAGS = -g
 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
     DEBUG = --enable-debug
 else
     DEBUG =
 endif
 
+# Tell Autoconf the correct system types.
+DEB_HOST_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+ifeq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE))
+    SYSTEM = --build $(DEB_HOST_GNU_TYPE)
+else
+    SYSTEM = --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
+endif
+
 # These variable is used only by get-orig-source, which will normally only be
 # run by maintainers.
 VERSION = 2.0
@@ -32,15 +43,6 @@ get-orig-source:
 	rm -r shibboleth-sp_$(VERSION).$(DEBVERS).orig
 	gzip -9 shibboleth-sp_$(VERSION).$(DEBVERS).orig.tar
 
-# Tell Autoconf the correct system types.
-DEB_HOST_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
-DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
-ifeq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE))
-    SYSTEM = --build $(DEB_HOST_GNU_TYPE)
-else
-    SYSTEM = --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
-endif
-
 configure: configure-stamp
 configure-stamp:
 	dh_testdir
@@ -53,7 +55,8 @@ configure-stamp:
 	CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" ./configure --prefix=/usr \
 	    --sysconfdir=/etc --libexecdir=/usr/lib/shibboleth \
 	    --localstatedir=/var --enable-apache-22 \
-	    --with-apxs2=/usr/bin/apxs2 --disable-dependency-tracking
+	    --with-apxs2=/usr/bin/apxs2 --disable-dependency-tracking \
+	    $(SYSTEM)
 	touch $@
 
 build: build-arch build-indep
@@ -83,11 +86,14 @@ install-stamp:
 	rm $(CURDIR)/debian/tmp/etc/shibboleth/*.{dist,config}
 	rm $(CURDIR)/debian/tmp/etc/shibboleth/shibd-redhat
 	chmod +x $(CURDIR)/debian/tmp/etc/shibboleth/keygen.sh
-	mv $(CURDIR)/debian/tmp/etc/shibboleth/shibd-debian $(CURDIR)/debian/libapache2-mod-shib2.shibd.init
+	mv $(CURDIR)/debian/tmp/etc/shibboleth/shibd-debian \
+	    $(CURDIR)/debian/libapache2-mod-shib2.shibd.init
 	dh_installdirs -s -i
-	mv $(CURDIR)/debian/tmp/usr/lib/shibboleth/mod_shib_22.so $(CURDIR)/debian/libapache2-mod-shib2/usr/lib/apache2/modules
+	mv $(CURDIR)/debian/tmp/usr/lib/shibboleth/mod_shib_22.so \
+	    $(CURDIR)/debian/libapache2-mod-shib2/usr/lib/apache2/modules
 	rm $(CURDIR)/debian/tmp/usr/lib/shibboleth/mod_shib_22.la
-	pod2man  $(CURDIR)/debian/shibd.pod --section 8 --center 'Shibboleth' --release 2.0 \
+	pod2man $(CURDIR)/debian/shibd.pod --section 8 --center 'Shibboleth' \
+	    --release 2.0 \
 	    $(CURDIR)/debian/libapache2-mod-shib2/usr/share/man/man8/shibd.8
 	dh_install -s -i --fail-missing
 	touch $@

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list