diff options
author | David Seifert <soap@gentoo.org> | 2019-08-18 13:41:19 +0200 |
---|---|---|
committer | David Seifert <soap@gentoo.org> | 2019-08-18 13:41:19 +0200 |
commit | 750bb26e8807aa63a8f9e6fa46664f07b6373d3a (patch) | |
tree | 9326807b69832559f35deaef0d623ba3cafc8de4 | |
parent | media-video/mpglen: Port to EAPI 7 (diff) | |
download | gentoo-750bb26e8807aa63a8f9e6fa46664f07b6373d3a.tar.gz gentoo-750bb26e8807aa63a8f9e6fa46664f07b6373d3a.tar.bz2 gentoo-750bb26e8807aa63a8f9e6fa46664f07b6373d3a.zip |
net-misc/dcetest: Port to EAPI 7
Package-Manager: Portage-2.3.71, Repoman-2.3.17
Signed-off-by: David Seifert <soap@gentoo.org>
-rw-r--r-- | net-misc/dcetest/Manifest | 2 | ||||
-rw-r--r-- | net-misc/dcetest/dcetest-2.0.ebuild | 29 | ||||
-rw-r--r-- | net-misc/dcetest/files/dcetest-2.0-fix-build-system.patch | 23 |
3 files changed, 36 insertions, 18 deletions
diff --git a/net-misc/dcetest/Manifest b/net-misc/dcetest/Manifest index 7f16738eb51a..8c1f72f9d423 100644 --- a/net-misc/dcetest/Manifest +++ b/net-misc/dcetest/Manifest @@ -1 +1 @@ -DIST dcetest.tar 133120 BLAKE2B 23896f8e40711f8e5123bc24194d302d6ad697e7412d98b7d53f0f89d308a52139e3c892a6de9e55dbfa10cc8e0b24d70fd6284b7d1ea5e461146edb27653fec SHA512 ac14f753fbd88be14a4d060f24773200967228154be0d3eb19becb38fd90093e0feca0d9a43873ffad59f5ea2489d35de5e4958f72c2064f98506954b698afdf +DIST dcetest-2.0.tar 133120 BLAKE2B 23896f8e40711f8e5123bc24194d302d6ad697e7412d98b7d53f0f89d308a52139e3c892a6de9e55dbfa10cc8e0b24d70fd6284b7d1ea5e461146edb27653fec SHA512 ac14f753fbd88be14a4d060f24773200967228154be0d3eb19becb38fd90093e0feca0d9a43873ffad59f5ea2489d35de5e4958f72c2064f98506954b698afdf diff --git a/net-misc/dcetest/dcetest-2.0.ebuild b/net-misc/dcetest/dcetest-2.0.ebuild index b88a73a876f2..b0b822c166a4 100644 --- a/net-misc/dcetest/dcetest-2.0.ebuild +++ b/net-misc/dcetest/dcetest-2.0.ebuild @@ -1,32 +1,27 @@ -# Copyright 1999-2018 Gentoo Foundation +# Copyright 1999-2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=0 +EAPI=7 + +inherit flag-o-matic toolchain-funcs DESCRIPTION="dcetest is a clone of the Windows rpcinfo" HOMEPAGE="http://www.atstake.com/research/tools/info_gathering/" -SRC_URI="http://www.atstake.com/research/tools/info_gathering/dcetest.tar" +SRC_URI="mirror://gentoo/${PN}.tar -> ${P}.tar" + LICENSE="GPL-2" SLOT="0" KEYWORDS="ppc x86" -IUSE="" -DEPEND="sys-apps/sed" -RDEPEND="" -S=${WORKDIR}/${PN} -src_unpack() { - unpack ${A} - cd "${S}" - # cleanup the makefile a little - sed -e '/^CC/d' -i Makefile - sed -e 's/CFLAGS.*/CFLAGS += -Wall -funsigned-char -fPIC/g' -i Makefile -} +S="${WORKDIR}/${PN}" +PATCHES=( "${FILESDIR}"/${PN}-2.0-fix-build-system.patch ) -src_compile() { - emake || die +src_configure() { + tc-export CC + append-cflags -funsigned-char -Wall } src_install() { - dobin dcetest || die + dobin dcetest dodoc CHANGELOG README VERSION nt4sp6adefault.txt out out.txt out2.txt w2ksp0.txt } diff --git a/net-misc/dcetest/files/dcetest-2.0-fix-build-system.patch b/net-misc/dcetest/files/dcetest-2.0-fix-build-system.patch new file mode 100644 index 000000000000..af7736a31448 --- /dev/null +++ b/net-misc/dcetest/files/dcetest-2.0-fix-build-system.patch @@ -0,0 +1,23 @@ +--- a/Makefile ++++ b/Makefile +@@ -1,19 +1 @@ +-.SUFFIXES: .a .o .c +-CC = gcc +-CFLAGS = -Wall -funsigned-char -c -fPIC -ggdb +- +-BINS = dcetest +-ALL = $(BINS) +- +-DCE_OBJS = dcetest.o tcpstuff.o +- +-dcetest: $(DCE_OBJS) +- $(CC) -o dcetest $(DCE_OBJS) +- +-clean: +- rm -f *~ *.bak +- rm -f include/*~ include/*.bak +- rm -f *.o +- rm -f dcetest +- +- ++dcetest: tcpstuff.o |