Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Mar 2018 23:06:10 +0000 (UTC)
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r465935 - head/sysutils/synergy
Message-ID:  <201803292306.w2TN6Apc089807@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: yuri
Date: Thu Mar 29 23:06:10 2018
New Revision: 465935
URL: https://svnweb.freebsd.org/changeset/ports/465935

Log:
  sysutils/synergy: Install config file under ${PREFIX}/etc
  
  Also move plist to pkg-plist.
  
  PR:		227095
  Submitted by:	Vidar Karlsen <vidar@karlsen.tech>

Added:
  head/sysutils/synergy/pkg-plist   (contents, props changed)
Modified:
  head/sysutils/synergy/Makefile

Modified: head/sysutils/synergy/Makefile
==============================================================================
--- head/sysutils/synergy/Makefile	Thu Mar 29 22:25:16 2018	(r465934)
+++ head/sysutils/synergy/Makefile	Thu Mar 29 23:06:10 2018	(r465935)
@@ -4,7 +4,7 @@ PORTNAME=	synergy
 DISTVERSIONPREFIX=	v
 DISTVERSION=	2.0.0
 DISTVERSIONSUFFIX=	-stable
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	sysutils
 
 MAINTAINER=	yuri@FreeBSD.org
@@ -28,13 +28,17 @@ CFLAGS+=	-I${LOCALBASE}/include -L${LOCALBASE}/lib
 
 MAKE_JOBS_UNSAFE=yes
 
-PLIST_FILES=	bin/synergyc bin/synergys bin/synergy-core \
-		man/man1/synergyc.1.gz man/man1/synergys.1.gz
 PORTEXAMPLES=	synergy.conf.example synergy.conf.example-basic \
 		synergy.conf.example-advanced
 
 OPTIONS_DEFINE=	EXAMPLES
 
+post-patch:
+	@${REINPLACE_CMD} -e 's|return "/etc"|return "${PREFIX}/etc"|' \
+		${WRKSRC}/src/lib/arch/unix/ArchFileUnix.cpp
+	@${REINPLACE_CMD} -e 's|/etc/synergy.conf|${PREFIX}/etc/synergy.conf|' \
+		${WRKSRC}/doc/synergys.man
+
 do-install:
 .for f in synergyc synergys synergy-core
 	${INSTALL_PROGRAM} ${BUILD_WRKSRC}/bin/${f} ${STAGEDIR}${PREFIX}/bin
@@ -43,6 +47,7 @@ do-install:
 	${INSTALL_MAN} ${WRKSRC}/doc/${f}.man \
 		${STAGEDIR}${MANPREFIX}/man/man1/${f}.1
 .endfor
+	${INSTALL_DATA} ${WRKSRC}/doc/synergy.conf.example-basic ${STAGEDIR}${PREFIX}/etc/synergy.conf.sample # server config
 
 do-install-EXAMPLES-on:
 	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}

Added: head/sysutils/synergy/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/synergy/pkg-plist	Thu Mar 29 23:06:10 2018	(r465935)
@@ -0,0 +1,6 @@
+bin/synergyc
+bin/synergys
+bin/synergy-core
+man/man1/synergyc.1.gz
+man/man1/synergys.1.gz
+@sample etc/synergy.conf.sample



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201803292306.w2TN6Apc089807>