Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 7 Jun 2015 16:09:00 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r388730 - head/sysutils/sysgather
Message-ID:  <201506071609.t57G904e046133@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Sun Jun  7 16:08:59 2015
New Revision: 388730
URL: https://svnweb.freebsd.org/changeset/ports/388730

Log:
  - Modernize plist, switch to @sample

Modified:
  head/sysutils/sysgather/Makefile
  head/sysutils/sysgather/pkg-plist

Modified: head/sysutils/sysgather/Makefile
==============================================================================
--- head/sysutils/sysgather/Makefile	Sun Jun  7 16:08:32 2015	(r388729)
+++ head/sysutils/sysgather/Makefile	Sun Jun  7 16:08:59 2015	(r388730)
@@ -3,6 +3,7 @@
 
 PORTNAME=	sysgather
 DISTVERSION=	1.0pre10
+PORTREVISION=	1
 CATEGORIES=	sysutils
 MASTER_SITES=	http://devel.ringlet.net/sysutils/sysgather/
 
@@ -14,15 +15,19 @@ LICENSE=	BSD2CLAUSE
 BUILD_DEPENDS=	p5-Config-IniFiles>=0:${PORTSDIR}/devel/p5-Config-IniFiles
 RUN_DEPENDS:=	${BUILD_DEPENDS}
 
-OPTIONS_DEFINE=	EXAMPLES
-
 USES=		perl5 shebangfix uidfix
 SHEBANG_FILES=	sysgather.pl
 
+OPTIONS_DEFINE=	EXAMPLES
+
 .include <bsd.port.options.mk>
 
 .if empty(PORT_OPTIONS:MEXAMPLES)
 MAKE_ENV+=	EXAMPLESDIR="${WRKDIR}"
 .endif
 
+post-install:
+	${MV} ${STAGEDIR}${PREFIX}/etc/sysgather.conf.default \
+		${STAGEDIR}${PREFIX}/etc/sysgather.conf.sample
+
 .include <bsd.port.mk>

Modified: head/sysutils/sysgather/pkg-plist
==============================================================================
--- head/sysutils/sysgather/pkg-plist	Sun Jun  7 16:08:32 2015	(r388729)
+++ head/sysutils/sysgather/pkg-plist	Sun Jun  7 16:08:59 2015	(r388730)
@@ -1,9 +1,6 @@
 bin/sysgather
-@unexec if cmp -s %D/etc/sysgather.conf %D/etc/sysgather.conf.default; then rm -f %D/etc/sysgather.conf; fi
-etc/sysgather.conf.default
-@exec [ -f %B/sysgather.conf ] || cp %B/%f %B/sysgather.conf
+@sample etc/sysgather.conf.sample
 man/man1/sysgather.1.gz
 %%PORTEXAMPLES%%%%EXAMPLESDIR%%/debian.conf
 %%PORTEXAMPLES%%%%EXAMPLESDIR%%/freebsd.conf
 %%PORTEXAMPLES%%%%EXAMPLESDIR%%/slackware.conf
-%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%



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