From owner-svn-ports-head@freebsd.org  Sun Aug  9 17:01:17 2015
Return-Path: <owner-svn-ports-head@freebsd.org>
Delivered-To: svn-ports-head@mailman.ysv.freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org
 [IPv6:2001:1900:2254:206a::19:1])
 by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0354699855A;
 Sun,  9 Aug 2015 17:01:17 +0000 (UTC) (envelope-from kwm@FreeBSD.org)
Received: from repo.freebsd.org (repo.freebsd.org
 [IPv6:2001:1900:2254:2068::e6a:0])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (Client did not present a certificate)
 by mx1.freebsd.org (Postfix) with ESMTPS id CD381628;
 Sun,  9 Aug 2015 17:01:16 +0000 (UTC) (envelope-from kwm@FreeBSD.org)
Received: from repo.freebsd.org ([127.0.1.70])
 by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id t79H1Gh0031604;
 Sun, 9 Aug 2015 17:01:16 GMT (envelope-from kwm@FreeBSD.org)
Received: (from kwm@localhost)
 by repo.freebsd.org (8.15.2/8.15.2/Submit) id t79H1GZM031602;
 Sun, 9 Aug 2015 17:01:16 GMT (envelope-from kwm@FreeBSD.org)
Message-Id: <201508091701.t79H1GZM031602@repo.freebsd.org>
X-Authentication-Warning: repo.freebsd.org: kwm set sender to kwm@FreeBSD.org
 using -f
From: Koop Mast <kwm@FreeBSD.org>
Date: Sun, 9 Aug 2015 17:01:16 +0000 (UTC)
To: ports-committers@freebsd.org, svn-ports-all@freebsd.org,
 svn-ports-head@freebsd.org
Subject: svn commit: r393809 - head/sysutils/consolekit
X-SVN-Group: ports-head
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-BeenThere: svn-ports-head@freebsd.org
X-Mailman-Version: 2.1.20
Precedence: list
List-Id: SVN commit messages for the ports tree for head
 <svn-ports-head.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/options/svn-ports-head>,
 <mailto:svn-ports-head-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/svn-ports-head/>
List-Post: <mailto:svn-ports-head@freebsd.org>
List-Help: <mailto:svn-ports-head-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/svn-ports-head>,
 <mailto:svn-ports-head-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Sun, 09 Aug 2015 17:01:17 -0000

Author: kwm
Date: Sun Aug  9 17:01:15 2015
New Revision: 393809
URL: https://svnweb.freebsd.org/changeset/ports/393809

Log:
  Don't create the history log file at post-install, and don't list it in the
  plist with a fixed checksum. Move the touch command to the plist, and clean
  it up regardless of checksum.
  
  PR:		202034
  Submitted by:	peter@

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

Modified: head/sysutils/consolekit/Makefile
==============================================================================
--- head/sysutils/consolekit/Makefile	Sun Aug  9 16:46:24 2015	(r393808)
+++ head/sysutils/consolekit/Makefile	Sun Aug  9 17:01:15 2015	(r393809)
@@ -3,7 +3,7 @@
 
 PORTNAME=	consolekit
 PORTVERSION=	0.4.5
-PORTREVISION=	3
+PORTREVISION=	4
 CATEGORIES=	sysutils gnome
 MASTER_SITES=	http://www.freedesktop.org/software/ConsoleKit/dist/
 DISTFILES=	ConsoleKit-${PORTVERSION}${EXTRACT_SUFX}
@@ -33,6 +33,5 @@ post-install:
 	${INSTALL_SCRIPT} ${FILESDIR}/ck-get-x11-server-pid \
 	    	${STAGEDIR}${PREFIX}/libexec/ck-get-x11-server-pid
 	@${MKDIR} ${STAGEDIR}/var/log/ConsoleKit
-	${TOUCH} ${STAGEDIR}/var/log/ConsoleKit/history
 
 .include <bsd.port.mk>

Modified: head/sysutils/consolekit/pkg-plist
==============================================================================
--- head/sysutils/consolekit/pkg-plist	Sun Aug  9 16:46:24 2015	(r393808)
+++ head/sysutils/consolekit/pkg-plist	Sun Aug  9 17:01:15 2015	(r393809)
@@ -1,4 +1,3 @@
-/var/log/ConsoleKit/history
 bin/ck-history
 bin/ck-launch-session
 bin/ck-list-sessions
@@ -27,6 +26,8 @@ share/dbus-1/system-services/org.freedes
 share/polkit-1/actions/org.freedesktop.consolekit.policy
 @dir /var/run/ConsoleKit
 @dir /var/log/ConsoleKit
+@exec /usr/bin/touch /var/log/ConsoleKit/history
+@rmtry /var/log/ConsoleKit/history
 @dir etc/ConsoleKit/run-seat.d
 @dir etc/ConsoleKit/run-session.d
 @dir lib/ConsoleKit/run-seat.d