mirror of
https://github.com/pentoo/pentoo-overlay
synced 2025-12-06 08:25:01 +01:00
ifchk-1.1.2.ebuild
This commit is contained in:
parent
98ef89f4a9
commit
6b91d55108
2 changed files with 58 additions and 1 deletions
|
|
@ -1,2 +1,2 @@
|
|||
DIST ifchk-1.1.0.tar.gz 105026 BLAKE2B 5e8eeed13ef086e7939c6a96fd4a580992a9087590d063f73c92eb80cca667b4c3ca0c686e473cbfd1bf52c00851ddaef559fd64a3b0995254f0496d5bf17a46 SHA512 8d52b41d92cf12ea08184f0c8eb37db358f4658d1eb12afc7638bd66fa06ebba34a7a32ffbfa8e8685a7f651816c911a77a9b593399c3081f041ed04ca20846e
|
||||
DIST ifchk-1.1.1.tar.gz 105318 BLAKE2B b28582bcf5a1742e7104a2784e6b9bdaf50b69939e5a7bb2d5ce20caa4b76973ee8134ab04666f5a1bb40793457d3004a2d1642529eb5e8864f4843cf56dc308 SHA512 8331007d2f8dcaa138f9b067d69d439a5147a5c8a9a191f4fcb3740537ce50869a88f3e118c58914654a5c5a3f30a3a624f583a32e72a0424f79ebbc953699b5
|
||||
DIST ifchk-1.1.2.tar.gz 107157 BLAKE2B f49e9bd269ba16eb45179d35150262f605323d697fb310029304565804fcdb433fbb1bfc7047ad8a1ea67759d2473fab405633c5bd8ae3457e22f66f7a0bc344 SHA512 655ead8744fd0dc5b166d892651e2b65a5b5f50f4d0bd6bf2b4251fa12d3dfc409ded1f7e99f56103a4f7564ca4c8fc7937c11c1e401cb3d8f4d231167e62d45
|
||||
|
|
|
|||
57
net-analyzer/ifchk/ifchk-1.1.2.ebuild
Normal file
57
net-analyzer/ifchk/ifchk-1.1.2.ebuild
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit flag-o-matic toolchain-funcs systemd
|
||||
|
||||
DESCRIPTION="A network interface promiscuous mode detection tool"
|
||||
HOMEPAGE="https://www.noorg.org/ifchk/"
|
||||
SRC_URI="https://www.noorg.org/ifchk/dist/${P}.tar.gz"
|
||||
KEYWORDS="amd64 ~arm x86"
|
||||
RESTRICT="mirror"
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
IUSE="doc"
|
||||
|
||||
RDEPEND="sys-fs/sysfsutils"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
src_prepare() {
|
||||
# Enable append *FLAGS
|
||||
sed -e "s/CFLAGS=/CFLAGS+=/" \
|
||||
-e "s/LDFLAGS=/LDFLAGS+=/" \
|
||||
-i Makefile || die 'sed failed!'
|
||||
|
||||
mv -v ifchk.conf ifchk.conf.example || die
|
||||
|
||||
eapply_user
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
filter-ldflags -Wl,--as-needed
|
||||
emake \
|
||||
BIN=${PN} \
|
||||
CC=$(tc-getCC)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
doman docs/*.{1,5}
|
||||
dodoc \
|
||||
CHANGES \
|
||||
README* \
|
||||
ifchk.conf.example \
|
||||
$(use doc && echo papers/*.{pdf,ps})
|
||||
|
||||
newinitd "${FILESDIR}"/ifchkboot.initd ifchkboot
|
||||
newconfd "${FILESDIR}"/ifchkboot.confd ifchkboot
|
||||
systemd_dounit "${FILESDIR}"/ifchkboot.service
|
||||
|
||||
insinto /etc
|
||||
newins ifchk.conf.example ifchk.conf
|
||||
|
||||
insinto /etc/logrotate.d
|
||||
newins "${FILESDIR}"/ifchkboot.logrotated ifchkboot
|
||||
|
||||
dosbin ${PN}
|
||||
}
|
||||
Loading…
Reference in a new issue