summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Szuba <marecki@gentoo.org>2020-07-02 16:58:46 +0200
committerMarek Szuba <marecki@gentoo.org>2020-07-02 16:58:46 +0200
commitf3feaa11fd12f8d7b1caa99004ad1607e0e42985 (patch)
tree54daa9ffa4e55f9ec334337857b7ebd735ef9e65 /net-misc/linuxptp/linuxptp-2.0-r1.ebuild
parentnet-misc/dhcpcd: Bump to version 9.1.3 (diff)
downloadgentoo-f3feaa11fd12f8d7b1caa99004ad1607e0e42985.tar.gz
gentoo-f3feaa11fd12f8d7b1caa99004ad1607e0e42985.tar.bz2
gentoo-f3feaa11fd12f8d7b1caa99004ad1607e0e42985.zip
net-misc/linuxptp: add systemd unit for timemaster
Invoking maintainer time-out. Closes: https://bugs.gentoo.org/708614 Signed-off-by: Marek Szuba <marecki@gentoo.org>
Diffstat (limited to 'net-misc/linuxptp/linuxptp-2.0-r1.ebuild')
-rw-r--r--net-misc/linuxptp/linuxptp-2.0-r1.ebuild44
1 files changed, 44 insertions, 0 deletions
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 00000000000..60e25c5dd15
--- /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
+}