/[gentoo-x86]/net-misc/ptpd/ptpd-2.3.0.ebuild
Gentoo

Contents of /net-misc/ptpd/ptpd-2.3.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Thu Jul 9 06:39:06 2015 UTC (5 years, 4 months ago) by mgorny
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Version bump with a lot of improvements. https://github.com/gentoo/gentoo-portage-rsync-mirror/pull/159 by j123b567.

(Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key EFB4464E!)

1 mgorny 1.1 # Copyright 1999-2015 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 mgorny 1.2 # $Header: /var/cvsroot/gentoo-x86/net-misc/ptpd/ptpd-2.3.0.ebuild,v 1.1 2015/06/12 10:55:53 mgorny Exp $
4 mgorny 1.1
5     EAPI=5
6    
7     inherit autotools eutils flag-o-matic systemd
8    
9     DESCRIPTION="Precision Time Protocol daemon"
10     HOMEPAGE="http://ptpd.sf.net"
11    
12     SRC_URI="mirror://sourceforge/ptpd/${PV}/${P}.tar.gz"
13     KEYWORDS="~amd64 ~arm ~x86"
14    
15     LICENSE="BSD"
16     SLOT="0"
17     IUSE="debug experimental ntp snmp +statistics"
18     RDEPEND="
19     ntp? ( net-misc/ntp )
20     snmp? ( net-analyzer/net-snmp:= )
21     net-libs/libpcap:="
22     DEPEND="${RDEPEND}"
23    
24     src_prepare() {
25     # QA
26     epatch "${FILESDIR}/${P}-statistics-clear.patch"
27     epatch "${FILESDIR}/${P}-ntpdc.patch"
28    
29     eautoreconf
30     }
31    
32     src_configure() {
33     append-flags -fno-strict-aliasing
34     econf \
35     --enable-daemon \
36     $(use_enable snmp) \
37     $(use_enable experimental experimental-options) \
38     $(use_enable statistics) \
39     $(use_enable ntp ntpdc) \
40     $(use_enable debug runtime-debug)
41     }
42    
43     src_install() {
44     emake install DESTDIR="${D}"
45    
46     insinto /etc
47     newins "src/ptpd2.conf.minimal" ptpd2.conf
48    
49     dodoc "src/ptpd2.conf.default-full"
50     dodoc "src/ptpd2.conf.minimal"
51    
52     newinitd "${FILESDIR}/ptpd2.rc" ptpd2
53     newconfd "${FILESDIR}/ptpd2.confd" ptpd2
54    
55     systemd_dounit "${FILESDIR}/ptpd2.service"
56     }
57    
58     pkg_postinst() {
59     elog "Do not forget to setup correct network interface."
60     elog "Change the config file /etc/ptpd2.conf to suit your needs."
61     }

  ViewVC Help
Powered by ViewVC 1.1.20