summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
Diffstat (limited to 'debian')
-rw-r--r--debian/changelog53
-rw-r--r--debian/compat1
-rw-r--r--debian/control17
-rw-r--r--debian/copyright220
-rw-r--r--debian/docs5
-rw-r--r--debian/examples1
-rw-r--r--debian/install1
-rw-r--r--debian/mkcmake.pm99
-rwxr-xr-xdebian/rules21
-rw-r--r--debian/source/format1
-rw-r--r--debian/watch5
11 files changed, 424 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..cfb95d4
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,53 @@
+mk-configure (0.28.0-1) unstable; urgency=medium
+
+ * New upstream release.
+ * Drop an old patch and a custom sys.mk.
+
+ -- Andrew Shadura <andrewsh@debian.org> Sun, 14 Sep 2014 17:41:43 +0200
+
+mk-configure (0.27.0-1) unstable; urgency=medium
+
+ * New upstream release.
+
+ -- Andrew Shadura <andrewsh@debian.org> Fri, 22 Aug 2014 19:10:20 +0200
+
+mk-configure (0.26.0-2) unstable; urgency=low
+
+ * Fix pkg-config checks (Closes: #741837).
+
+ -- Andrew Shadura <andrewsh@debian.org> Sun, 16 Mar 2014 15:29:25 +0100
+
+mk-configure (0.26.0-1) unstable; urgency=low
+
+ * New upstream release.
+ * Update watch file.
+ * Ship presentation.pdf.
+ * Recommend pkg-config.
+
+ -- Andrew Shadura <andrewsh@debian.org> Tue, 18 Feb 2014 22:05:01 +0100
+
+mk-configure (0.25.0-1) unstable; urgency=low
+
+ * New upstream release.
+ * Drop old patches.
+ * Use bmake's .ALLTARGETS feature to check for Makefile targets presence.
+
+ -- Andrew Shadura <andrewsh@debian.org> Sun, 05 Jan 2014 22:42:41 +0100
+
+mk-configure (0.24.0-3) unstable; urgency=low
+
+ * Fix the clean-up of MKC_SOURCE_FUNCLIBS.
+
+ -- Andrew Shadura <andrewsh@debian.org> Fri, 15 Nov 2013 17:39:37 +0100
+
+mk-configure (0.24.0-2) unstable; urgency=low
+
+ * Fix the Debhelper addon.
+
+ -- Andrew Shadura <andrewsh@debian.org> Fri, 15 Nov 2013 15:44:39 +0100
+
+mk-configure (0.24.0-1) unstable; urgency=low
+
+ * Initial release.
+
+ -- Andrew Shadura <andrewsh@debian.org> Thu, 15 Aug 2013 01:02:03 +0200
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..d8e0cc1
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,17 @@
+Source: mk-configure
+Section: devel
+Priority: optional
+Maintainer: Andrew Shadura <andrewsh@debian.org>
+Build-Depends: debhelper (>= 9), bmake (>= 20131001),
+ graphviz, latex-beamer, texlive-latex-extra, texlive-fonts-recommended, ghostscript
+Standards-Version: 3.9.5
+
+Package: mk-configure
+Architecture: all
+Depends: bmake, ${misc:Depends}
+Recommends: pkgconf | pkg-config
+Description: lightweight replacement for GNU autotools
+ mk-configure is a lightweight easy-to-use replacement for GNU autotools,
+ written in bmake (portable version of NetBSD make) and POSIX tools (shell,
+ awk etc).
+
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..7b61bfb
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,220 @@
+This package was downloaded from https://github.com/cheusov/mk-configure/
+
+Upstream Author: Aleksey Cheusov <vle@gmx.net>
+
+License: BSD (see below)
+
+Debian packaging in (c) 2013—2013 Andrew Shadura <andrewsh@debian.org>
+and is licensed under the following license:
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions
+are met:
+
+1. Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+2. Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the
+ distribution.
+
+THIS SOFTWARE IS PROVIDED BY THE DEBIAN PROJECT AND
+CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
+INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS BE LIABLE FOR ANY
+DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+######################################################################
+
+Different parts of mk-configure have different copyright holders.
+All used licences are listed here.
+See individual files for details.
+
+######################################################################
+
+Copyright (c) 2009-2014 by Aleksey Cheusov
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions
+are met:
+
+1. Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+2. Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the
+ distribution.
+
+THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND
+CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
+INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS BE LIABLE FOR ANY
+DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+######################################################################
+
+Copyright (c) 1988, 1989, 1993
+ The Regents of the University of California. All rights reserved.
+Copyright (c) 1988, 1989 by Adam de Boor
+Copyright (c) 1989 by Berkeley Softworks
+
+
+This code is derived from software contributed to Berkeley
+by Adam de Boor.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions
+are met:
+1. Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+2. Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+3. Neither the name of the University nor the names of its contributors
+ may be used to endorse or promote products derived from this software
+ without specific prior written permission.
+
+
+THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS''
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS
+BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
+BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
+OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+
+######################################################################
+
+Copyright (c) 1994-2009 The NetBSD Foundation, Inc.
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions
+are met:
+1. Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+2. Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+
+THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND
+CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
+INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS BE LIABLE FOR ANY
+DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+######################################################################
+
+Copyright 1991 by the Massachusetts Institute of Technology
+Copyright 2013 by Aleksey Cheusov <vle@gmx.net>
+
+Permission to use, copy, modify, distribute, and sell this software
+and its documentation for any purpose is hereby granted without fee,
+provided that the above copyright notice appear in all copies and that
+both that copyright notice and this permission notice appear in
+supporting documentation, and that the name of M.I.T. not be used in
+advertising or publicity pertaining to distribution of the software
+without specific, written prior permission. M.I.T. makes no
+representations about the suitability of this software for any
+purpose. It is provided "as is" without express or implied warranty.
+
+######################################################################
+
+Files examples/hello_strlcpy/strlcpy.c and features/strl*/* are licensed as follows:
+
+Copyright (c) 1998 Todd C. Miller <Todd.Miller@courtesan.com>
+
+Permission to use, copy, modify, and distribute this software for any
+purpose with or without fee is hereby granted, provided that the above
+copyright notice and this permission notice appear in all copies.
+
+THE SOFTWARE IS PROVIDED "AS IS" AND TODD C. MILLER DISCLAIMS ALL
+WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
+OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL TODD C. MILLER BE LIABLE
+FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
+OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
+CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+
+######################################################################
+
+Files: features/netbsd_sys_tree.h
+Copyright: 2002 Niels Provos <provos@citi.umich.edu>
+License: BSD-2
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions
+ are met:
+ 1. Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+ 2. Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+ .
+ THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
+ IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
+ INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+ NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+######################################################################
+
+Files: features/netbsd_sys_queue.h
+Copyright: 1991, 1993 The Regents of the University of California. All rights reserved.
+License: BSD-3
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions
+ are met:
+ 1. Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+ 2. Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+ 3. Neither the name of the University nor the names of its contributors
+ may be used to endorse or promote products derived from this software
+ without specific prior written permission.
+ .
+ THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ SUCH DAMAGE.
+
diff --git a/debian/docs b/debian/docs
new file mode 100644
index 0000000..7c922dd
--- /dev/null
+++ b/debian/docs
@@ -0,0 +1,5 @@
+doc/FAQ
+doc/NEWS
+README
+doc/TODO
+presentation/presentation.pdf
diff --git a/debian/examples b/debian/examples
new file mode 100644
index 0000000..e39721e
--- /dev/null
+++ b/debian/examples
@@ -0,0 +1 @@
+examples/*
diff --git a/debian/install b/debian/install
new file mode 100644
index 0000000..56bab38
--- /dev/null
+++ b/debian/install
@@ -0,0 +1 @@
+debian/*.pm usr/share/perl5/Debian/Debhelper/Buildsystem/
diff --git a/debian/mkcmake.pm b/debian/mkcmake.pm
new file mode 100644
index 0000000..3c1e83c
--- /dev/null
+++ b/debian/mkcmake.pm
@@ -0,0 +1,99 @@
+# A debhelper build system class for handling simple mk-configure-based projects.
+#
+# Copyright: © 2008 Joey Hess
+# © 2008-2009 Modestas Vainius
+# License: GPL-2+
+
+package Debian::Debhelper::Buildsystem::mkcmake;
+
+use strict;
+use Debian::Debhelper::Dh_Lib qw(compat escape_shell clean_jobserver_makeflags dpkg_architecture_value);
+use base 'Debian::Debhelper::Buildsystem::makefile';
+
+sub DESCRIPTION {
+ "mk-configure"
+}
+
+sub exists_make_target {
+ my ($this, $target) = @_;
+
+ # Use -V .ALLTARGETS to get the list of targets; -n is
+ # needed to avoid executing anything
+ my @opts=("-n", "-V", ".ALLTARGETS");
+ my $buildpath = $this->get_buildpath();
+ unshift @opts, "-C", $buildpath if $buildpath ne ".";
+ open(SAVEDERR, ">&STDERR");
+ open(STDERR, ">/dev/null");
+ open(MAKE, "-|", $this->{makecmd}, @opts);
+ my $output=<MAKE>;
+ chomp $output;
+ close MAKE;
+ open(STDERR, ">&SAVEDERR");
+ return defined $output && grep(/^$target$/, split(" ",$output));
+}
+
+# Currently, we don't want parallel build with bmake.
+sub do_make {
+ my $this=shift;
+
+ # Avoid possible warnings about unavailable jobserver,
+ # and force make to start a new jobserver.
+ clean_jobserver_makeflags();
+
+ my @opts;
+ my $prefix = "/usr";
+ push @opts, "PREFIX=${prefix}";
+ push @opts, "MANDIR=${prefix}/share/man";
+ push @opts, "INFODIR=${prefix}/share/info";
+ push @opts, "SYSCONFDIR=/etc";
+ my $multiarch=dpkg_architecture_value("DEB_HOST_MULTIARCH");
+ if (! compat(8)) {
+ if (defined $multiarch) {
+ push @opts, "LIBDIR=${prefix}/lib/$multiarch";
+ push @opts, "LIBEXECDIR=${prefix}/lib/$multiarch";
+ }
+ else {
+ push @opts, "LIBEXECDIR=${prefix}/lib";
+ }
+ }
+ else {
+ push @opts, "LIBEXECDIR=${prefix}/lib/" . sourcepackage();
+ }
+
+ $this->doit_in_builddir($this->{makecmd}, @opts, @_);
+}
+
+sub check_auto_buildable {
+ my $this=shift;
+ my ($step)=@_;
+
+ if (-e $this->get_buildpath("makefile") ||
+ -e $this->get_buildpath("Makefile"))
+ {
+ my $ret = ($this->SUPER::check_auto_buildable(@_));
+
+ open (MAKEFILE, "makefile") || open (MAKEFILE, "Makefile") ||
+ return 0;
+
+ while (<MAKEFILE>) {
+ chomp;
+ if (/^\.?\s*include\s+<mkc/) {
+ close MAKEFILE;
+ $ret++;
+ return $ret;
+ }
+ }
+ close MAKEFILE;
+ return $ret;
+ }
+ return 0;
+}
+
+sub new {
+ my $class=shift;
+ my $this=$class->SUPER::new(@_);
+ $this->{makecmd} = "mkcmake";
+ return $this;
+}
+
+1
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..a681599
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,21 @@
+#!/usr/bin/make -f
+
+export PREFIX := /usr
+export SYSCONFDIR := /etc
+export MANDIR := $(PREFIX)/share/man
+export MKFILESDIR := $(PREFIX)/share/mk-configure/mk
+
+%:
+ dh $@ --buildsystem=bmake
+
+override_dh_auto_clean:
+ -dh_auto_clean
+ bmake cleandir-presentation
+
+override_dh_auto_build:
+ dh_auto_build
+ bmake pdf
+
+override_dh_auto_test:
+
+.PHONY: override_dh_auto_test
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..e87cb89
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,5 @@
+# Compulsory line, this is a version 3 file
+version=3
+
+http://mova.org/~cheusov/pub/mk-configure/mk-configure-(\d.*).tar.gz
+