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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Thu Jul 9 06:39:06 2015 UTC (5 years, 3 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 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/ptpd/ptpd-2.3.1_rc4.ebuild,v 1.1 2015/06/12 10:55:53 mgorny Exp $
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 MY_PV=${PV/_rc*/}
13 MY_P=${P/_rc/-rc}
14
15 SRC_URI="mirror://sourceforge/ptpd/${MY_PV}/${MY_P}.tar.gz"
16 KEYWORDS="~amd64 ~arm ~x86"
17
18 LICENSE="BSD"
19 SLOT="0"
20 IUSE="debug experimental ntp +pcap snmp slave-only +statistics"
21 RDEPEND="
22 pcap? ( net-libs/libpcap )
23 snmp? ( net-analyzer/net-snmp )"
24 DEPEND="${RDEPEND}"
25 RDEPEND="${RDEPEND}
26 ntp? ( net-misc/ntp )"
27
28 S="${WORKDIR}/${MY_P}"
29
30 src_prepare() {
31 # QA
32 epatch "${FILESDIR}/${P}-debug-display.patch"
33
34 eautoreconf
35 }
36
37 src_configure() {
38 append-flags -fno-strict-aliasing
39 econf \
40 --enable-daemon \
41 $(use_enable snmp) \
42 $(use_enable experimental experimental-options) \
43 $(use_enable statistics) \
44 $(use_enable debug runtime-debug) \
45 $(use_enable pcap) \
46 $(use_enable slave-only)
47 }
48
49 src_install() {
50 emake install DESTDIR="${D}"
51
52 insinto /etc
53 newins "src/ptpd2.conf.minimal" ptpd2.conf
54
55 newinitd "${FILESDIR}/ptpd2.rc" ptpd2
56 newconfd "${FILESDIR}/ptpd2.confd" ptpd2
57
58 systemd_dounit "${FILESDIR}/ptpd2.service"
59 }
60
61 pkg_postinst() {
62 elog "Do not forget to setup correct network interface."
63 elog "Change the config file /etc/ptpd2.conf to suit your needs."
64 }

  ViewVC Help
Powered by ViewVC 1.1.20