r26260 - /trunk/libpoe-perl/debian/rules

gregoa at users.alioth.debian.org gregoa at users.alioth.debian.org
Sun Oct 26 16:34:23 UTC 2008


Author: gregoa
Date: Sun Oct 26 16:34:21 2008
New Revision: 26260

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=26260
Log:
resurrect network check in debian/rules

Modified:
    trunk/libpoe-perl/debian/rules

Modified: trunk/libpoe-perl/debian/rules
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libpoe-perl/debian/rules?rev=26260&op=diff
==============================================================================
--- trunk/libpoe-perl/debian/rules (original)
+++ trunk/libpoe-perl/debian/rules Sun Oct 26 16:34:21 2008
@@ -6,7 +6,12 @@
 
 build: build-stamp
 build-stamp: $(QUILT_STAMPFN)
-	dh build
+	dh build --before dh_auto_configure
+	# Run network tests only if localhost is reachable, the perl snippet prints
+	# "n" when reachable.
+	$(PERL) -MNet::Ping -e 'print (Net::Ping->new()->ping("127.0.0.1", 1) ? \
+		"n" : "y", "\n");' | $(PERL) Makefile.PL INSTALLDIRS=vendor
+	dh build --after dh_auto_configure
 	touch $@
 
 clean: unpatch




More information about the Pkg-perl-cvs-commits mailing list