mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
net-misc/linuxptp: drop 4.1
Signed-off-by: Thomas Beierlein <tomjbe@gentoo.org>
This commit is contained in:
@@ -1,2 +1 @@
|
||||
DIST linuxptp-4.1.tgz 252373 BLAKE2B 9dc6bb69c98a8b452250554b5e06b39d445b81a3e0c7ce2beaa7bd1d2cb969928496827bd3d3e32136c9fe55f1103ab312441c2a4cdee035c7d6b7526f0c1327 SHA512 144c03677f2c61c58d05c5c5dbb771b7aac3860507d9ba814f67f6da024c3cb2019f9e8cf39b983d39a6feddd1b24a1f40a678b4ff7af8aa564ee813e322dfae
|
||||
DIST linuxptp-4.2.tgz 253861 BLAKE2B 83489edb1cb48a7f245e3224705332980a32aed14e166c3fd0d8111f4008ae42a293397a588a546e421fae634057829dcbcd94794ce539ecb166e5cf69ff6554 SHA512 479e512efd0573602379a9e1d8ef5c0ec9e033944cee5aed11c68cea5e8a3f7d4b6f2d11f6d6d4718282010da52c2c8629d675d9b388cc0c3d574845a913cdbb
|
||||
|
||||
@@ -1,21 +0,0 @@
|
||||
https://cgit.openembedded.org/meta-openembedded/commit/?h=master-next&id=aec96f23775b946cf99c39e7274bcc8fdd4711ca
|
||||
https://sourceforge.net/p/linuxptp/mailman/message/37603438/
|
||||
|
||||
From d49b4fb8063ecd89617587e5ea566cc9da9393ef Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Wed, 31 Aug 2022 19:09:18 -0700
|
||||
Subject: [PATCH] include string.h for strncpy()
|
||||
|
||||
Upstream-Status: Pending
|
||||
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
--- a/interface.c
|
||||
+++ b/interface.c
|
||||
@@ -5,6 +5,7 @@
|
||||
* @note SPDX-License-Identifier: GPL-2.0+
|
||||
*/
|
||||
#include <stdlib.h>
|
||||
+#include <string.h>
|
||||
#include "interface.h"
|
||||
|
||||
struct interface {
|
||||
@@ -1,11 +0,0 @@
|
||||
--- a/incdefs.sh
|
||||
+++ b/incdefs.sh
|
||||
@@ -27,7 +27,7 @@
|
||||
printf " -D_GNU_SOURCE"
|
||||
|
||||
# Get list of directories searched for header files.
|
||||
- dirs=$(echo "" | ${CROSS_COMPILE}cpp -Wp,-v 2>&1 >/dev/null | grep ^" /")
|
||||
+ dirs=$(echo "" | ${CPP} -Wp,-v - 2>&1 >/dev/null | grep ^" /")
|
||||
|
||||
# Look for clock_adjtime().
|
||||
for d in $dirs; do
|
||||
@@ -1,50 +0,0 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit linux-info systemd toolchain-funcs
|
||||
|
||||
DESCRIPTION="The Linux Precision Time Protocol (PTP) implementation"
|
||||
HOMEPAGE="https://linuxptp.nwtime.org/"
|
||||
SRC_URI="https://downloads.sourceforge.net/project/${PN}/v$(ver_cut 1-2)/${P}.tgz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~arm64 ~riscv ~x86"
|
||||
|
||||
DEPEND="elibc_musl? ( sys-libs/queue-standalone )"
|
||||
|
||||
CONFIG_CHECK="~NETWORK_PHY_TIMESTAMPING ~PPS ~PTP_1588_CLOCK"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-3.1.1-user_cpp.patch
|
||||
"${FILESDIR}"/${PN}-3.1.1-string-include.patch
|
||||
)
|
||||
|
||||
pkg_setup() {
|
||||
linux-info_pkg_setup
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# parse needed additional CFLAGS
|
||||
export MY_FLAGS=$(CPP="$(tc-getCPP)" ./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_newunit "${FILESDIR}"/phc2sysAT.service phc2sys@.service
|
||||
systemd_newunit "${FILESDIR}"/ptp4lAT.service ptp4l@.service
|
||||
systemd_dounit "${FILESDIR}"/timemaster.service
|
||||
|
||||
dodoc README.org
|
||||
dodoc -r configs
|
||||
}
|
||||
Reference in New Issue
Block a user