summaryrefslogtreecommitdiff
blob: cc88235d196191227019a4e301619b8c63d16111 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=5
inherit bsdmk

DESCRIPTION="pidof(1) utility for *BSD"
HOMEPAGE="https://people.freebsd.org/~novel/pidof.html"
SRC_URI="mirror://gentoo/${P}.tar.gz"

LICENSE="BSD"
SLOT="0"
KEYWORDS=""
IUSE=""

DEPEND="sys-freebsd/freebsd-mk-defs"
RDEPEND="!sys-process/psmisc"

S="${WORKDIR}/pidof"

PATCHES=( "${FILESDIR}/${P}-gfbsd.patch"
	"${FILESDIR}/${P}-firstarg.patch"
	"${FILESDIR}/${P}-pname.patch"
	"${FILESDIR}/${P}-fbsd11.patch" )

src_prepare() {
	epatch "${PATCHES[@]}"
}

src_install() {
	into /
	dobin pidof
}