From 05b8b0e0af1d72e51a3ee61522941bf7605cd01c Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 4 Jul 2020 14:05:23 +0100 Subject: gentoo resync : 04.07.2020 --- net-misc/linuxptp/linuxptp-2.0-r1.ebuild | 44 ++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 net-misc/linuxptp/linuxptp-2.0-r1.ebuild (limited to 'net-misc/linuxptp/linuxptp-2.0-r1.ebuild') diff --git a/net-misc/linuxptp/linuxptp-2.0-r1.ebuild b/net-misc/linuxptp/linuxptp-2.0-r1.ebuild new file mode 100644 index 000000000000..60e25c5dd150 --- /dev/null +++ b/net-misc/linuxptp/linuxptp-2.0-r1.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2020 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 ~x86" +IUSE="" + +DEPEND="" +RDEPEND="${DEPEND}" + +CONFIG_CHECK="~PPS ~NETWORK_PHY_TIMESTAMPING ~PTP_1588_CLOCK" + +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 +} -- cgit v1.2.3