Gentoo Archives: gentoo-commits

From: Patrice Clement <monsieurp@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-boot/netboot/
Date: Tue, 09 Apr 2019 08:07:59
Message-Id: 1554794743.e0aebd36bae0498e113713c32b2315bcacbef804.monsieurp@gentoo
1 commit: e0aebd36bae0498e113713c32b2315bcacbef804
2 Author: Conrad Kostecki <conrad <AT> kostecki <DOT> com>
3 AuthorDate: Wed Apr 3 10:06:48 2019 +0000
4 Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
5 CommitDate: Tue Apr 9 07:25:43 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e0aebd36
7
8 sys-boot/netboot: bump to EAPI=7.
9
10 Changes to ebuild:
11
12 * bumped from EAPI=2 to EAPI=7.
13 * license changed to GPL-2+, since GPL-2 is wrong here.
14 * added amd64 arch, as it compiles and works fine on this arch.
15 * Patched several makefiles, to install into the correct pathes.
16 * Overhauled whole build to make it more clean.
17 * Install more docs, to make it complete.
18 * Dropped unnecessary move/delete of directories/files.
19 * Added better description to ebuild and metadata.xml.
20 * Taking ownership.
21
22 Package-Manager: Portage-2.3.62, Repoman-2.3.12
23 Signed-off-by: Conrad Kostecki <conrad <AT> kostecki.com>
24 Closes: https://github.com/gentoo/gentoo/pull/11575
25 Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org>
26
27 sys-boot/netboot/metadata.xml | 18 +++++++-
28 sys-boot/netboot/netboot-0.10.2-r1.ebuild | 74 +++++++++++++++++++++++++++++++
29 2 files changed, 91 insertions(+), 1 deletion(-)
30
31 diff --git a/sys-boot/netboot/metadata.xml b/sys-boot/netboot/metadata.xml
32 index 7fcd5c3e9ed..51c8a76d3fe 100644
33 --- a/sys-boot/netboot/metadata.xml
34 +++ b/sys-boot/netboot/metadata.xml
35 @@ -1,8 +1,24 @@
36 <?xml version="1.0" encoding="UTF-8"?>
37 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
38 <pkgmetadata>
39 - <!-- maintainer-needed -->
40 + <maintainer type="person">
41 + <email>ck+gentoo@××××××××.de</email>
42 + <name>Conrad Kostecki</name>
43 + </maintainer>
44 + <maintainer type="project">
45 + <email>proxy-maint@g.o</email>
46 + <name>Proxy Maintainers</name>
47 + </maintainer>
48 + <longdescription>
49 + Netboot enables a computer with a compatible CPU to boot without access to a hdd or floppy.
50 + The computer has to be equipped so it can load the operating system over an IP network from a server.
51 + All tools required for this are included in the netboot package.
52 + </longdescription>
53 <upstream>
54 + <bugs-to>https://sourceforge.net/p/netboot/bugs/</bugs-to>
55 <remote-id type="sourceforge">netboot</remote-id>
56 </upstream>
57 + <use>
58 + <flag name="bootrom">Install the bootrom binary for creation of rom files, which can be used for booting via floppy or rom.</flag>
59 + </use>
60 </pkgmetadata>
61
62 diff --git a/sys-boot/netboot/netboot-0.10.2-r1.ebuild b/sys-boot/netboot/netboot-0.10.2-r1.ebuild
63 new file mode 100644
64 index 00000000000..64a626b5546
65 --- /dev/null
66 +++ b/sys-boot/netboot/netboot-0.10.2-r1.ebuild
67 @@ -0,0 +1,74 @@
68 +# Copyright 1999-2019 Gentoo Authors
69 +# Distributed under the terms of the GNU General Public License v2
70 +
71 +EAPI=7
72 +
73 +inherit toolchain-funcs
74 +
75 +DESCRIPTION="Allows to remote boot a computer over an IP network"
76 +HOMEPAGE="http://netboot.sourceforge.net/"
77 +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
78 +
79 +LICENSE="GPL-2+"
80 +SLOT="0"
81 +KEYWORDS="~amd64 ~x86"
82 +IUSE="berkdb +bootrom +lzo odbc static-libs"
83 +
84 +DEPEND="
85 + berkdb? ( sys-libs/db:= )
86 + lzo? ( dev-libs/lzo:2= )
87 + odbc? ( dev-db/unixODBC:= )
88 +"
89 +
90 +RDEPEND="${DEPEND}"
91 +
92 +src_prepare() {
93 + default
94 +
95 + # Respect users LDFLAGS
96 + eapply "${FILESDIR}"/"${P}"-ldflags.patch
97 +
98 + # Don't install support binaries into libdir
99 + sed -e "152s:nblibdir:bindir:" -e "153s:nblibdir:bindir:" -i misc/Makefile || die
100 +
101 + # Don't install perl script into libdir
102 + sed -e 's/nblibdir/nbmiscdir/g' -i mknbi-dos/utils/Makefile || die
103 +
104 + # Don't install vim syntax file, as it will be installed manually
105 + sed -e '/mgl.vim/d' -i mknbi-mgl/Makefile || die
106 +}
107 +
108 +src_configure() {
109 + local myeconfargs=(
110 + --datadir="/usr/share/netboot"
111 + $(use_with berkdb berkeley-db)
112 + $(use_enable bootrom)
113 + $(use_with lzo)
114 + $(use_with odbc)
115 + $(use_enable static-libs static)
116 + --with-gnu-as86="$(tc-getAS)"
117 + --with-gnu-cc86="$(tc-getCC)"
118 + --with-gnu-ld86="$(tc-getLD)"
119 + )
120 +
121 + econf "${myeconfargs[@]}"
122 +}
123 +
124 +src_compile() {
125 + # mknbi fails with parallel build
126 + emake -j1
127 +}
128 +
129 +src_install() {
130 + emake DESTDIR="${ED}" install
131 +
132 + insinto /usr/share/vim/vimfiles/syntax
133 + doins "${S}"/mknbi-mgl/misc/mgl.vim
134 +
135 + dodoc README doc/{HISTORY,PROBLEMS,README.*,Spec.doc}
136 +
137 + docinto flashcard
138 + dodoc FlashCard/README FlashCard/*.ps
139 +
140 + find "${D}" -name '*.la' -type f -delete || die
141 +}