diff options
-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 |