mirror of
https://github.com/pentoo/pentoo-overlay
synced 2025-12-06 08:25:01 +01:00
34 lines
867 B
Bash
34 lines
867 B
Bash
# Copyright 1999-2019 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
DESCRIPTION="Mixed Packet Injector & Network Stress Testing Tool"
|
|
HOMEPAGE="https://github.com/merces/t50"
|
|
|
|
HASH_COMMIT="b7f40164618fffcde749086f1a2025433deccf1c"
|
|
SRC_URI="https://gitlab.com/fredericopissarra/t50/-/archive/v${PV}/${P}.tar.gz"
|
|
#SRC_URI="https://gitlab.com/merces/t50/repository/${HASH_COMMIT}/archive.tar.bz2 -> ${P}.tar.bz2"
|
|
|
|
LICENSE="GPL-2"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~x86"
|
|
|
|
DEPEND=""
|
|
RDEPEND="${DEPEND}"
|
|
|
|
S=${WORKDIR}/${PN}-v${PV}-${HASH_COMMIT}
|
|
|
|
src_prepare() {
|
|
#Fix broken Makefile
|
|
sed -i "s|STRIP=-s|STRIP=|" Makefile || die
|
|
sed -i "s|\$(CFLAGS)|\$(CFLAGS) \$(LDFLAGS)|" Makefile || die
|
|
eapply_user
|
|
}
|
|
|
|
src_install() {
|
|
#It's easy to re-write the install script
|
|
# emake DESTDIR="${D}" install
|
|
dosbin bin/${PN}
|
|
doman doc/t50.8
|
|
}
|