Add a new port to track PTP version 2 release candidates and

to generally keep up with the head of development in the PTP project.

Add CONFLICTS statements to the original ptpd2 port so that the devel
and the released versions cannot be simultaneously installed on the
same system.

Approved by: skreuzer (mentor)
This commit is contained in:
George V. Neville-Neil 2012-04-11 21:00:51 +00:00
parent c52f3b5260
commit 39062bb788
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=294674
6 changed files with 68 additions and 0 deletions

View file

@ -852,6 +852,7 @@
SUBDIR += prtunnel
SUBDIR += ptpd
SUBDIR += ptpd2
SUBDIR += ptpd2-devel
SUBDIR += ptunnel
SUBDIR += pure-sockets
SUBDIR += pvm

36
net/ptpd2-devel/Makefile Normal file
View file

@ -0,0 +1,36 @@
# New ports collection makefile for: ptpd
# Date created: 11 April 2012
# Whom: George V. Neville-Neil <gnn@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= ptpd
DISTVERSION= 2-RC-0
CATEGORIES= net
MASTER_SITES= SF/${PORTNAME}/$(PORTNAME)/2-RC/
MAINTAINER= gnn@FreeBSD.org
COMMENT= Release candidate for the precision time protocol IEEE 1588-2008
LICENSE= BSD
WRKSRC= ${WRKDIR}/ptpd-${DISTVERSION}/src
CONFLICTS= ptpd-2.[0-9].*
PLIST_FILES= sbin/ptpd2
PORTDOCS= *
USE_RC_SUBR= ptpd2
MAN8= ptpd2.8
do-install::
${INSTALL_PROGRAM} ${WRKSRC}/ptpd2 ${PREFIX}/sbin
${INSTALL_MAN} ${WRKSRC}/${MAN8} ${MANPREFIX}/man/man8/${MAN8}
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
cd ${WRKDIR}/ptpd-${DISTVERSION}/doc && ${COPYTREE_SHARE} . ${DOCSDIR}
.endif
.include <bsd.port.mk>

2
net/ptpd2-devel/distinfo Normal file
View file

@ -0,0 +1,2 @@
SHA256 (ptpd-2-RC-0.tar.gz) = b479215983e1e82bd8917e885035fd8ff944b87461cee0af08791e21a8e78c4e
SIZE (ptpd-2-RC-0.tar.gz) = 631328

View file

@ -0,0 +1,24 @@
#!/bin/sh
#
# $FreeBSD: /tmp/pcvs/ports/net/ptpd2-devel/files/ptpd2.in,v 1.1 2012-04-11 21:00:51 gnn Exp $
#
# PROVIDE: ptpd
# REQUIRE: NETWORKING DAEMON
# KEYWORD: nojail
#
# Add the following lines to /etc/rc.conf to enable ptpd
#
# ptpd_enable (bool): Set to "NO" by default
# Set it to "YES" to enable ptpd
. /etc/rc.subr
name="ptpd2"
rcvar=`set_rcvar`
command="%%PREFIX%%/sbin/${name}"
ptpd2_enable=${ptpd2_enable:-"NO"}
load_rc_config $name
run_rc_command "$1"

View file

@ -0,0 +1,4 @@
This port follows the release candidates from the PTP project. If you
want the official, released, version of ptp please see net/ptpd2.
WWW: http://ptpd.sourceforge.net/

View file

@ -9,6 +9,7 @@ PORTNAME= ptpd
DISTVERSION= 2.2.0
CATEGORIES= net
MASTER_SITES= SF
CONFLICTS= ptpd-2.r.*
MAINTAINER= skreuzer@FreeBSD.org
COMMENT= Implementation of the precision time protocol IEEE 1588-2008