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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Thu Jul 9 06:39:06 2015 UTC (4 years, 4 months ago) by mgorny
Branch: MAIN
CVS Tags: HEAD
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 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: $
4
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 +pcap snmp slave-only +statistics"
18 RDEPEND="
19 pcap? ( net-libs/libpcap )
20 snmp? ( net-analyzer/net-snmp )"
21 DEPEND="${RDEPEND}"
22 RDEPEND="${RDEPEND}
23 ntp? ( net-misc/ntp )"
24
25 src_prepare() {
26 eautoreconf
27 }
28
29 src_configure() {
30 append-flags -fno-strict-aliasing
31 econf \
32 --enable-daemon \
33 $(use_enable snmp) \
34 $(use_enable experimental experimental-options) \
35 $(use_enable statistics) \
36 $(use_enable debug runtime-debug) \
37 $(use_enable pcap) \
38 $(use_enable slave-only)
39 }
40
41 src_install() {
42 emake install DESTDIR="${D}"
43
44 insinto /etc
45 newins "src/ptpd2.conf.minimal" ptpd2.conf
46
47 newinitd "${FILESDIR}/ptpd2.rc" ptpd2
48 newconfd "${FILESDIR}/ptpd2.confd" ptpd2
49
50 systemd_dounit "${FILESDIR}/ptpd2.service"
51 }
52
53 pkg_postinst() {
54 elog "Do not forget to setup correct network interface."
55 elog "Change the config file /etc/ptpd2.conf to suit your needs."
56 }

  ViewVC Help
Powered by ViewVC 1.1.20