debian/0000755000000000000000000000000013100144111007150 5ustar debian/changelog0000644000000000000000000001327613100144111011033 0ustar mknbi (1.4.4-14) unstable; urgency=medium * QA upload. * Clean up leftover diversions dating back to lenny. (Closes: #861259) -- Andreas Beckmann Wed, 26 Apr 2017 18:18:17 +0200 mknbi (1.4.4-13) unstable; urgency=medium * QA upload. * Add patch from Steve Beattie to fix PIE FTBFS. (Closes: #852851) -- Adrian Bunk Sat, 28 Jan 2017 00:23:07 +0200 mknbi (1.4.4-12) unstable; urgency=medium * QA upload. * debian/control: added Vcs-Browser, Vcs-Git. * fix a misspelled override_dh_installchangelogs in debian/rules. Thanks to Chris Lamb for the patch (closes: #831776). * patch 06-reproducible-builds.patch: make the build reproducible. Thanks to Chris Lamb for the patch (closes: #831432). * normalise name of 05-gcc-5.patch -- Ralf Treinen Wed, 03 Aug 2016 14:40:44 +0200 mknbi (1.4.4-11) unstable; urgency=medium * QA upload. * Fix "ftbfs with GCC-5": add patch from Matthias Klose/Ubuntu: Build with -fgnu89-inline for GCC 5. (Closes: #778009) -- gregor herrmann Sat, 18 Jul 2015 20:55:44 +0200 mknbi (1.4.4-10) unstable; urgency=low * QA upload. * Makefile: Add -fno-stack-protector to CFLAGS (thanks, Michael Bienia; LP: #520648). -- Colin Watson Tue, 07 May 2013 17:53:26 +0100 mknbi (1.4.4-9) unstable; urgency=low * Updating to debhelper version 8. * Updating to standards version 3.9.2. * Switching to source format 3.0 (quilt). * Compacting copyright file. * Orphaning package. -- Daniel Baumann Thu, 08 Sep 2011 07:23:39 +0000 mknbi (1.4.4-8) experimental; urgency=low * Updating build-depends and architecture for kbfreebsd, thanks to Petr Salinger (Closes: #597049). -- Daniel Baumann Thu, 16 Sep 2010 09:47:35 +0200 mknbi (1.4.4-7) unstable; urgency=low * Adding patch from Colin Watson to pass appropriate options to ld and as to make multilib build work (Closes: #593609). * Updating standards version to 3.9.1. -- Daniel Baumann Wed, 01 Sep 2010 10:19:19 +0200 mknbi (1.4.4-6) unstable; urgency=low * Updating standards version to 3.9.0. * Building with gcc-multilib (Closes: #587734). -- Daniel Baumann Thu, 01 Jul 2010 14:53:45 +0200 mknbi (1.4.4-5) unstable; urgency=low * Correcting yet another spelling error in package long-description (Closes: #584708). -- Daniel Baumann Sun, 06 Jun 2010 09:35:07 +0200 mknbi (1.4.4-4) unstable; urgency=low * Correcting another spelling error in package long-description (Closes: #584618). -- Daniel Baumann Sat, 05 Jun 2010 08:32:16 +0200 mknbi (1.4.4-3) unstable; urgency=low * Updating year in copyright file. * Updating to standards 3.8.4. * Correcting spelling error in package long-description (Closes: #584131). -- Daniel Baumann Fri, 04 Jun 2010 17:30:33 +0200 mknbi (1.4.4-2) unstable; urgency=low * New maintainer, taking over package from Gergely with thanks for all his past work on it. * Redone debian packaging from scratch, including: - adding amd64 into architecture list (Closes: #427478). - adding kfreebsd-amd64 and kfreebsd-i386 into architecture list (Closes: #366409). -- Daniel Baumann Wed, 16 Dec 2009 13:51:06 +0100 mknbi (1.4.4-1.1) unstable; urgency=medium * Non-maintainer upload. * Fix bashism in debian/rules (Closes: #478407) * debian/control: - Bump Standards-Version to 3.8.0. - Move upstream URL to Homepage: field -- Chris Lamb Sat, 07 Jun 2008 22:38:23 +0100 mknbi (1.4.4-1) unstable; urgency=low * New upstream release (closes: #323733, #329453) * Improvements from Erik Schanze (closes: #329452) -- RISKO Gergely Thu, 17 Nov 2005 20:41:04 +0100 mknbi (1.4.3-2) unstable; urgency=low * fix version string bugs (probably forever with help of Mark Williams (closes: #255139) * better copyright file written and included -- RISKO Gergely Fri, 13 Aug 2004 16:24:20 +0200 mknbi (1.4.3-1) unstable; urgency=low * New upstream release -- RISKO Gergely Thu, 20 May 2004 17:11:26 +0200 mknbi (1.4.0-1) unstable; urgency=low * New upstream release (closes: #201304) -- RISKO Gergely Tue, 15 Jul 2003 11:33:47 +0200 mknbi (1.2.12-2) unstable; urgency=low * fix version in debian/rules -- RISKO Gergely Wed, 26 Mar 2003 22:37:36 +0100 mknbi (1.2.12-1) unstable; urgency=low * New upstream release (closes: #171764) -- RISKO Gergely Fri, 17 Jan 2003 15:42:52 +0100 mknbi (1.2.7-2) unstable; urgency=low * fix version string in dosnbi (closes: Bug#144498) -- RISKO Gergely Sun, 5 May 2002 16:25:03 +0200 mknbi (1.2.7-1) unstable; urgency=low * new upstream (closes: Bug#140284) -- RISKO Gergely Thu, 28 Mar 2002 14:05:26 +0100 mknbi (1.2-4) unstable; urgency=low * changed the totally bad description. (closes: Bug#133983) -- RISKO Gergely Fri, 15 Feb 2002 18:45:01 +0100 mknbi (1.2-3) unstable; urgency=high * fixed a very nasty bug (files missing from /usr/lib/mknbi) -- RISKO Gergely Thu, 27 Dec 2001 10:47:57 +0100 mknbi (1.2-2) unstable; urgency=low * divert the old netboot files (closes: Bug#122403) -- RISKO Gergely Sun, 16 Dec 2001 14:31:22 +0100 mknbi (1.2-1) unstable; urgency=low * Initial Release. (closes: Bug#119553) -- RISKO Gergely Wed, 14 Nov 2001 19:02:41 +0100 debian/compat0000644000000000000000000000000212750363114010366 0ustar 8 debian/control0000644000000000000000000000173412750363114010600 0ustar Source: mknbi Section: admin Priority: optional Maintainer: Debian QA Group Build-Depends: debhelper (>= 8), gcc-multilib [any-amd64], nasm, perl Standards-Version: 3.9.2 Homepage: http://www.etherboot.org/ Vcs-Browser: https://anonscm.debian.org/cgit/collab-maint/mknbi.git Vcs-Git: https://anonscm.debian.org/git/collab-maint/mknbi.git Package: mknbi Depends: ${misc:Depends}, perl Architecture: any-amd64 any-i386 Description: Create tagged images for Etherboot or Netboot With mknbi you can create tagged images for Etherboot. Tagged images are data files, which contain the necessary files for booting up (kernel+root for Linux, kernel+minifs for DOS, ...) bundled together with a special format. . These tagged images are downloaded and understood by Etherboot and Netboot during the boot process. . This package should be used on the server and not on the client. It doesn't contain code which handles the network card, downloads the image, etc. debian/copyright0000644000000000000000000000215312750363114011124 0ustar Files: * Copyright: (C) 1991-1992 Linus Torvalds (C) 1996-1998 Gero Kuhlmann (C) 1997 M. Gutschke (C) 2003 Robb Main (C) 2003 Eric Biederman (C) 1999-2004 Ken Yap License: GPL-2 Files: debian/* Copyright: (C) 2009-2011 Daniel Baumann License: GPL-2 License: GPL-2 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, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. . The complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL-2 file. debian/mknbi.docs0000644000000000000000000000002412750363114011136 0ustar README *.html *.txt debian/mknbi.links0000644000000000000000000000144312750363114011334 0ustar /usr/lib/mknbi/disnbi /usr/bin/disnbi /usr/lib/mknbi/mknbi /usr/bin/mkelf-linux /usr/share/man/man1/mknbi.1.gz /usr/share/man/man1/mkelf-linux.1.gz /usr/lib/mknbi/mknbi /usr/bin/mkelf-menu /usr/share/man/man1/mknbi.1.gz /usr/share/man/man1/mkelf-menu.1.gz /usr/lib/mknbi/mknbi /usr/bin/mknbi-dos /usr/share/man/man1/mknbi.1.gz /usr/share/man/man1/mknbi-dos.1.gz /usr/lib/mknbi/mknbi /usr/bin/mknbi-fdos /usr/share/man/man1/mknbi.1.gz /usr/share/man/man1/mknbi-fdos.1.gz /usr/lib/mknbi/mknbi /usr/bin/mknbi-linux /usr/share/man/man1/mknbi.1.gz /usr/share/man/man1/mknbi-linux.1.gz /usr/lib/mknbi/mknbi /usr/bin/mknbi-menu /usr/share/man/man1/mknbi.1.gz /usr/share/man/man1/mknbi-menu.1.gz /usr/lib/mknbi/mknbi /usr/bin/mknbi-rom /usr/share/man/man1/mknbi.1.gz /usr/share/man/man1/mknbi-rom.1.gz debian/mknbi.manpages0000644000000000000000000000000412750363114011777 0ustar *.1 debian/mknbi.postinst0000644000000000000000000000073413100142717012073 0ustar #!/bin/sh set -e if [ "$1" = "configure" ] && dpkg --compare-versions "$2" lt-nl "1.4.4-14~" then # remove leftover diversions dating back to lenny dpkg-divert --package mknbi --remove --rename --divert /usr/bin/mknbi-linux.netboot /usr/bin/mknbi-linux dpkg-divert --package mknbi --remove --rename --divert /usr/bin/mknbi-dos.netboot /usr/bin/mknbi-dos dpkg-divert --package mknbi --remove --rename --divert /usr/bin/mknbi-mgl.netboot /usr/bin/mknbi-mgl fi #DEBHELPER# debian/patches/0000755000000000000000000000000013042744106010616 5ustar debian/patches/01-conglomeration.patch0000644000000000000000000000070612750363114015101 0ustar Author: n/a Description: n/a diff -Naurp mknbi-1.4.4/nfl.c deb/nfl.c --- mknbi-1.4.4/nfl.c 2003-09-22 16:47:08.000000000 +0200 +++ deb/nfl.c 2009-12-16 13:21:10.000000000 +0100 @@ -124,7 +124,7 @@ static unsigned short menu_rows = 0x0800 static unsigned short menu_cols = 0x0800; /* Terminal types. */ -static int terminal = TERMINAL_CONSOLE; +int terminal = TERMINAL_CONSOLE; /* Defined in ANSI.C */ extern unsigned short rows, columns, attr; debian/patches/02-gcc-multilib.patch0000644000000000000000000000116712750363114014437 0ustar Author: Daniel Baumann Description: Build with gcc-multilib (Closes: #587734). diff -Naurp mknbi.orig//Makefile mknbi/Makefile --- mknbi.orig//Makefile 2010-07-01 14:41:36.745016394 +0200 +++ mknbi/Makefile 2010-07-01 14:41:13.661057745 +0200 @@ -18,7 +18,7 @@ ASM=nasm FIRSTRELOCS= 0x92800 0x82800 OLDGAS:= $(shell $(AS) --version | grep -q '2\.9\.1' && echo -DGAS291) CFLAGS= -I. -Os -ffreestanding -fstrength-reduce -fomit-frame-pointer \ - -mcpu=i386 \ + -m32 -mcpu=i386 \ -Wall -W -Wno-format -Wno-unused -DVERSION=\"$(VERSION)$(EXTRAVERSION)\" LDBINARYFLAG= --oformat binary FIRST32SIZE= 6144 debian/patches/03-gcc-multilib-harder.patch0000644000000000000000000000263212750363114015701 0ustar Author: Colin Watson Description: Pass appropriate options to ld and as to make multilib build work (Closes: #593609). diff -Naurp mknbi.orig/Makefile mknbi/Makefile --- mknbi.orig/Makefile 2010-09-01 08:17:50.000000000 +0000 +++ mknbi/Makefile 2010-09-01 08:17:55.000000000 +0000 @@ -20,7 +20,8 @@ OLDGAS:= $(shell $(AS) --version | grep CFLAGS= -I. -Os -ffreestanding -fstrength-reduce -fomit-frame-pointer \ -m32 -mcpu=i386 \ -Wall -W -Wno-format -Wno-unused -DVERSION=\"$(VERSION)$(EXTRAVERSION)\" -LDBINARYFLAG= --oformat binary +LDBINARYFLAG= --oformat binary -m elf_i386 +ASFLAGS= --32 FIRST32SIZE= 6144 # for first32dos @@ -101,7 +102,7 @@ first32elf@%.dos: start32@%.o first32dos $(LD) -N -Ttext $* -e _start $(LDBINARYFLAG) -o $@ start32@$*.o first32dos.o printf.o string.o start32@%.o: start32.S - gcc -E -DRELOC=$* $(OLDGAS) start32.S | $(AS) -o start32@$*.o + gcc -E -DRELOC=$* $(OLDGAS) start32.S | $(AS) $(ASFLAGS) -o start32@$*.o first32.o: first32.c etherboot.h start32.h gcc $(CFLAGS) -o first32.o -c first32.c @@ -161,7 +162,7 @@ lua/bin/lua: cd lua; make startmenu.o: startmenu.S startmenu.h - gcc -E -Ui386 -DRELOC=$(MENURELOC) $(OLDGAS) startmenu.S | $(AS) -o startmenu.o + gcc -E -Ui386 -DRELOC=$(MENURELOC) $(OLDGAS) startmenu.S | $(AS) $(ASFLAGS) -o startmenu.o menu.o: menu.c stddef.h string.h printf.h ansiesc.h \ misc.h linux-asm-io.h etherboot.h debian/patches/04-no-stack-protector.patch0000644000000000000000000000132612750363114015621 0ustar Author: Michael Bienia Description: Build with -fno-stack-protector -fstack-protector is the default on Ubuntu, but requires libc support. Bug-Ubuntu: https://bugs.launchpad.net/bugs/520648 Forwarded: no Last-Update: 2013-05-07 Index: b/Makefile =================================================================== --- a/Makefile +++ b/Makefile @@ -18,6 +18,7 @@ FIRSTRELOCS= 0x92800 0x82800 OLDGAS:= $(shell $(AS) --version | grep -q '2\.9\.1' && echo -DGAS291) CFLAGS= -I. -Os -ffreestanding -fstrength-reduce -fomit-frame-pointer \ + -fno-stack-protector \ -m32 -mcpu=i386 \ -Wall -W -Wno-format -Wno-unused -DVERSION=\"$(VERSION)$(EXTRAVERSION)\" LDBINARYFLAG= --oformat binary -m elf_i386 debian/patches/05-gcc-5.patch0000644000000000000000000000117312750363114012762 0ustar Description: fix build failure with gcc5: build with -fgnu89-inline Origin: vendor Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=778009 Author: Matthias Klose Reviewed-by: gregor herrmann Last-Update: 2015-07-18 --- a/Makefile +++ b/Makefile @@ -18,6 +18,7 @@ FIRSTRELOCS= 0x92800 0x82800 OLDGAS:= $(shell $(AS) --version | grep -q '2\.9\.1' && echo -DGAS291) CFLAGS= -I. -Os -ffreestanding -fstrength-reduce -fomit-frame-pointer \ + -fgnu89-inline \ -fno-stack-protector \ -m32 -mcpu=i386 \ -Wall -W -Wno-format -Wno-unused -DVERSION=\"$(VERSION)$(EXTRAVERSION)\" debian/patches/06-reproducible-builds.patch0000644000000000000000000000267312750363114016032 0ustar Author: Chris Lamb Description: make the build reproducible Last-Update: 2016-07-15 --- mknbi-1.4.4.orig/Makefile +++ mknbi-1.4.4/Makefile @@ -61,6 +61,11 @@ MANS= mknbi.1 disnbi.1 menuc.1 HTMLS= mknbi.html disnbi.html menuc.html DOCS= $(MANS) $(HTMLS) +ifdef SOURCE_DATE_EPOCH +BUILD_DATE= $(shell date -u -d "@$(SOURCE_DATE_EPOCH)" "+%Y-%m-%d" 2>/dev/null || date -u -r "$(SOURCE_DATE_EPOCH)" "+%Y-%m-%d" 2>/dev/null || date -u "+%Y-%m-%d") +else +BUILD_DATE= $(shell date "+%Y-%m-%d") +endif all: $(PROG) $(FIRSTS) $(RMRD) $(DOCS) @@ -210,9 +215,9 @@ $(ALTBOOT): altboot.S $(RM) altboot.s $(MANS): mknbi.pl disnbi.pl Makefile - pod2man --date=`date +%Y-%m-%d` --release="Mknbi $(VERSION)$(EXTRAVERSION)" --center="Etherboot tools" mknbi.pl > mknbi.1 - pod2man --date=`date +%Y-%m-%d` --release="Mknbi $(VERSION)$(EXTRAVERSION)" --center="Etherboot tools" disnbi.pl > disnbi.1 - pod2man --date=`date +%Y-%m-%d` --release="Mknbi $(VERSION)$(EXTRAVERSION)" --center="Etherboot tools" menuc.pl > menuc.1 + pod2man --date=$(BUILD_DATE) --release="Mknbi $(VERSION)$(EXTRAVERSION)" --center="Etherboot tools" mknbi.pl > mknbi.1 + pod2man --date=$(BUILD_DATE) --release="Mknbi $(VERSION)$(EXTRAVERSION)" --center="Etherboot tools" disnbi.pl > disnbi.1 + pod2man --date=$(BUILD_DATE) --release="Mknbi $(VERSION)$(EXTRAVERSION)" --center="Etherboot tools" menuc.pl > menuc.1 $(HTMLS): mknbi.pl disnbi.pl pod2html mknbi.pl > mknbi.html debian/patches/07-disable-pie.patch0000644000000000000000000000116213042744014014237 0ustar Author: Steve Beattie Subject: disable position independent executables by default --- Makefile | 1 + 1 file changed, 1 insertion(+) Index: b/Makefile =================================================================== --- a/Makefile +++ b/Makefile @@ -20,6 +20,7 @@ OLDGAS:= $(shell $(AS) --version | grep CFLAGS= -I. -Os -ffreestanding -fstrength-reduce -fomit-frame-pointer \ -fgnu89-inline \ -fno-stack-protector \ + -no-pie -fno-PIE \ -m32 -mcpu=i386 \ -Wall -W -Wno-format -Wno-unused -DVERSION=\"$(VERSION)$(EXTRAVERSION)\" LDBINARYFLAG= --oformat binary -m elf_i386 debian/patches/series0000644000000000000000000000025013042744106012030 0ustar 01-conglomeration.patch 02-gcc-multilib.patch 03-gcc-multilib-harder.patch 04-no-stack-protector.patch 05-gcc-5.patch 06-reproducible-builds.patch 07-disable-pie.patch debian/rules0000755000000000000000000000165512750363114010257 0ustar #!/usr/bin/make -f export FIRSTRELOCS=0x82800 0x92800 %: dh ${@} override_dh_auto_clean: rm -f nfl menu rm -f first32\@0x82800.linux rm -f first32\@0x82800.linux rm -f first32elf\@0x92800.linux rm -f first32elf\@0x92800.linux $(MAKE) clean override_dh_auto_build: $(MAKE) PREFIX=/usr override_dh_auto_install: mkdir -p debian/mknbi/usr/lib/mknbi cp mknbi debian/mknbi/usr/lib/mknbi/mknbi cp disnbi.pl debian/mknbi/usr/lib/mknbi/disnbi cp dismbr.pl debian/mknbi/usr/lib/mknbi/dismbr cp disdosbb.pl debian/mknbi/usr/lib/mknbi/disdosbb cp Nbi.pm Elf.pm TruncFD.pm \ $(foreach i,$(FIRSTRELOCS),first32@$(i).linux first32elf@$(i).linux) \ first.dos first.fdos menu debian/mknbi/usr/lib/mknbi override_dh_installchangelogs: dh_installchangelogs LOG override_dh_fixperms: dh_fixperms chmod 0644 debian/mknbi/usr/lib/mknbi/*.linux chmod 0644 debian/mknbi/usr/lib/mknbi/*.pm chmod 0644 debian/mknbi/usr/lib/mknbi/menu debian/source/0000755000000000000000000000000012750363114010470 5ustar debian/source/format0000644000000000000000000000001412750363114011676 0ustar 3.0 (quilt) debian/source/options0000644000000000000000000000005112750363114012102 0ustar compression = gzip compression-level = 9