[Forensics-changes] [fcrackzip] 06/93: debian/debian-autotools.mk: new

Giovani Augusto Ferreira giovani-guest at moszumanska.debian.org
Wed Dec 28 03:06:33 UTC 2016


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

giovani-guest pushed a commit to branch debian
in repository fcrackzip.

commit 4420dc08effbfab0d0bdebb7f57db739c394e51e
Author: Jari Aalto <jari.aalto at cante.net>
Date:   Tue Dec 29 14:15:04 2009 +0200

    debian/debian-autotools.mk: new
---
 debian/debian-autotools.mk | 106 +++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 106 insertions(+)

diff --git a/debian/debian-autotools.mk b/debian/debian-autotools.mk
new file mode 100644
index 0000000..8307256
--- /dev/null
+++ b/debian/debian-autotools.mk
@@ -0,0 +1,106 @@
+# debian-autotools.mk -- Common settings for Autotoolsx
+#
+#   Copyright
+#
+#       Copyright (C) 2008-2009 Jari Aalto <jari.aalto at cante.net>
+#
+#   License
+#
+#       This program is free software; you can redistribute it and/or modify
+#       it under the terms of the GNU General Public License as published by
+#       the Free Software Foundation; either version 2 of the License, or
+#       (at your option) any later version.
+#
+#       This program is distributed in the hope that it will be useful,
+#       but WITHOUT ANY WARRANTY; without even the implied warranty of
+#       MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+#       GNU General Public License for more details.
+#
+#       You should have received a copy of the GNU General Public License
+#       along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+#   Description
+#
+#       This is GNU makefile part, that defines common variables,
+#       targets and macros to be used from debian/rules.
+#
+#	Dealing with packages that have old Autotools config.* files
+#       we can: (1) Save package's config.* (2) Copy the latest from
+#       Debian (3) restore package's config.* files. This way the
+#       DEbian *diff.gz stays clean and understandable to examine.
+#
+#	To install, add `config-*' macro calls like this:
+#
+#           config.status: configure
+#               dh_testdir
+#               $(config-save)
+#               $(config-patch)
+#		CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info
+#
+#           binary-arch: build install
+#               ...
+#               $(config-restore)
+#               dh_builddeb
+
+ifneq (,)
+    This makefile requires GNU Make.
+endif
+
+define config-h-in-save
+        # Save original file
+        [ -f config.h.in.original ] || cp -v config.h.in config.h.in.original
+endef
+
+define config-h-in-restore
+        # Restore original file
+        [ ! -f config.h.in.original ] || mv -v config.h.in.original config.h.in
+endef
+
+define config-configure-save
+        # Save original file
+        [ -f configure.original ] || cp -v configure configure.original
+endef
+
+define config-configure-restore
+        # Restore original file
+        [ ! -f configure.original ] || mv -v configure.original configure
+endef
+
+define config-save
+        # Save original files
+        [ -f config.sub.original   ] || cp -v config.sub config.sub.original
+        [ -f config.guess.original ] || cp -v config.guess config.guess.original
+endef
+
+define config-restore
+        # Restore original files
+        [ ! -f config.sub.original   ] || mv -v config.sub.original config.sub
+        [ ! -f config.guess.original ] || mv -v config.guess.original config.guess
+endef
+
+define config-delete
+        # Delete config files
+        rm -f config.sub config.guess
+endef
+
+ifneq ($(wildcard /usr/share/misc/config.sub),)
+define config-patch-sub
+        # Use latest version from Debian
+        cp -vf /usr/share/misc/config.sub config.sub
+endef
+endif
+
+ifneq ($(wildcard /usr/share/misc/config.guess),)
+define config-patch-guess
+        # Use latest version from Debian
+        cp -vf /usr/share/misc/config.guess config.guess
+endef
+endif
+
+define config-patch
+        # config-patch: copy latest
+        $(config-patch-sub)
+        $(config-patch-guess)
+endef
+
+# End of Makefile part

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/forensics/fcrackzip.git



More information about the forensics-changes mailing list