commit:     ca71b9d1ba90ab82b1200c15200536710ba056bc
Author:     Jan Breuer <jan.breuer <AT> jaybee <DOT> cz>
AuthorDate: Tue Jul 12 18:07:12 2016 +0000
Commit:     Patrice Clement <monsieurp <AT> gentoo <DOT> org>
CommitDate: Mon Aug  8 08:14:45 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ca71b9d1

net-misc/ptpd: fix bug #587328 dep/snmp.c:224:9: error: unknown type name ‘U64’

Closes: https://github.com/gentoo/gentoo/pull/1878

Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org>

 net-misc/ptpd/ptpd-2.3.1-r1.ebuild | 60 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 60 insertions(+)

diff --git a/net-misc/ptpd/ptpd-2.3.1-r1.ebuild 
b/net-misc/ptpd/ptpd-2.3.1-r1.ebuild
new file mode 100644
index 0000000..aa050b1
--- /dev/null
+++ b/net-misc/ptpd/ptpd-2.3.1-r1.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+inherit autotools eutils flag-o-matic systemd
+
+DESCRIPTION="Precision Time Protocol daemon"
+HOMEPAGE="https://github.com/ptpd/ptpd";
+
+SRC_URI="https://github.com/ptpd/ptpd/archive/${P}.tar.gz";
+KEYWORDS="~amd64 ~arm ~x86"
+
+LICENSE="BSD"
+SLOT="0"
+IUSE="debug experimental ntp +pcap snmp slave-only +statistics"
+RDEPEND="
+       pcap? ( net-libs/libpcap )
+       snmp? ( net-analyzer/net-snmp )"
+DEPEND="${RDEPEND}"
+RDEPEND="${RDEPEND}
+       ntp? ( net-misc/ntp )"
+
+S=${WORKDIR}/ptpd-${P}
+
+src_prepare() {
+       eapply_user
+       sed -i -e 's/U64/struct counter64/' src/dep/snmp.c || die "sed failed"
+       eautoreconf
+}
+
+src_configure() {
+       append-flags -fno-strict-aliasing
+       econf \
+               --enable-daemon \
+               $(use_enable snmp) \
+               $(use_enable experimental experimental-options) \
+               $(use_enable statistics) \
+               $(use_enable debug runtime-debug) \
+               $(use_enable pcap) \
+               $(use_enable slave-only)
+}
+
+src_install() {
+       emake install DESTDIR="${D}"
+
+       insinto /etc
+       newins "src/ptpd2.conf.minimal" ptpd2.conf
+
+       newinitd "${FILESDIR}/ptpd2.rc" ptpd2
+       newconfd "${FILESDIR}/ptpd2.confd" ptpd2
+
+       systemd_dounit "${FILESDIR}/ptpd2.service"
+}
+
+pkg_postinst() {
+       elog "Do not forget to setup correct network interface."
+       elog "Change the config file /etc/ptpd2.conf to suit your needs."
+}

Reply via email to