[perl-openssl-defaults] 05/05: Build perl-openssl.make from a template

ntyni at debian.org ntyni at debian.org
Tue Dec 20 21:53:34 UTC 2016


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

ntyni pushed a commit to branch master
in repository perl-openssl-defaults.

commit ed8339437bd046054e2887a90071b0e4c0b0791f
Author: Niko Tyni <ntyni at debian.org>
Date:   Tue Dec 20 23:15:27 2016 +0200

    Build perl-openssl.make from a template
    
    This hopefully clarifies the overgrown debian/rules a bit.
---
 debian/perl-openssl.make.in | 3 +++
 debian/rules                | 9 +++------
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/debian/perl-openssl.make.in b/debian/perl-openssl.make.in
new file mode 100644
index 0000000..854dc47
--- /dev/null
+++ b/debian/perl-openssl.make.in
@@ -0,0 +1,3 @@
+# the ABI version for generating a perl-openssl-abi-* dependency.
+# See #848113.
+PERL_OPENSSL_ABI_VERSION=@PERL_OPENSSL_ABI_VERSION@
diff --git a/debian/rules b/debian/rules
index 3d61405..60fc323 100755
--- a/debian/rules
+++ b/debian/rules
@@ -16,12 +16,9 @@ debian/openssl-abiversion: $(SOFILE)
 	# fail if we could not extract the SONAME
 	[ -s $@ ]
 
-debian/perl-openssl.make: debian/openssl-abiversion
-	printf "%s\n%s\n%s\n" \
-	"# the ABI version for generating a perl-openssl-abi-* dependency." \
-	"# See #848113." \
-	"PERL_OPENSSL_ABI_VERSION=$(shell cat $<)" \
-	> $@
+debian/perl-openssl.make: debian/perl-openssl.make.in debian/openssl-abiversion
+	sed 's/@PERL_OPENSSL_ABI_VERSION@/$(shell cat debian/openssl-abiversion)/' \
+	 $< > $@
 
 debian/dh_perl_openssl.1: debian/dh_perl_openssl
 	pod2man $< $@

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/perl-openssl-defaults.git



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