You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1010 B
49 lines
1010 B
# Copyright 1999-2021 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=7
|
|
|
|
inherit linux-info systemd toolchain-funcs
|
|
|
|
DESCRIPTION="The Linux Precision Time Protocol (PTP) implementation"
|
|
HOMEPAGE="http://linuxptp.sourceforge.net/"
|
|
SRC_URI="mirror://sourceforge/${PN}/v${PV}/${P}.tgz"
|
|
|
|
LICENSE="GPL-2"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~arm64 ~riscv ~x86"
|
|
IUSE=""
|
|
|
|
DEPEND=""
|
|
RDEPEND="${DEPEND}"
|
|
|
|
CONFIG_CHECK="~PPS ~NETWORK_PHY_TIMESTAMPING ~PTP_1588_CLOCK"
|
|
|
|
PATCHES=(
|
|
"${FILESDIR}"/${PN}-2.0_nettstamp-systypes.patch
|
|
)
|
|
|
|
pkg_setup() {
|
|
linux-info_pkg_setup
|
|
}
|
|
|
|
src_compile() {
|
|
# parse needed additional CFLAGS
|
|
export MY_FLAGS=$(./incdefs.sh)
|
|
export EXTRA_CFLAGS="${CFLAGS} ${MY_FLAGS}"
|
|
emake CC="$(tc-getCC)" prefix=/usr mandir=/usr/share/man
|
|
}
|
|
|
|
src_install() {
|
|
emake \
|
|
prefix="${D}"/usr \
|
|
mandir="${D}"/usr/share/man \
|
|
infodir="${D}"/usr/share/info \
|
|
libdir="${D}"/usr/$(get_libdir) \
|
|
install
|
|
|
|
systemd_dounit "${FILESDIR}"/timemaster.service
|
|
|
|
dodoc README.org
|
|
}
|