Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Jul 2013 14:42:38 +0000 (UTC)
From:      William Grzybowski <wg@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r322129 - head/misc/lxde-common
Message-ID:  <201307011442.r61EgcDD043031@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: wg
Date: Mon Jul  1 14:42:37 2013
New Revision: 322129
URL: http://svnweb.freebsd.org/changeset/ports/322129

Log:
  misc/lxde-common: preserve conf files
  
  - Fix preservation of old .conf files
  
  PR:		ports/180111
  Submitted by:	nemysis <nemysis@gmx.ch> (maintainer)

Modified:
  head/misc/lxde-common/Makefile

Modified: head/misc/lxde-common/Makefile
==============================================================================
--- head/misc/lxde-common/Makefile	Mon Jul  1 14:33:42 2013	(r322128)
+++ head/misc/lxde-common/Makefile	Mon Jul  1 14:42:37 2013	(r322129)
@@ -37,12 +37,10 @@ OPTIONS_DEFINE=	DOCS
 post-install:
 	${INSTALL_DATA} ${WRKSRC}/desktop.conf ${PREFIX}/etc/xdg/lxsession/LXDE/desktop.conf.sample
 	${INSTALL_DATA} ${WRKSRC}/pcmanfm/pcmanfm.conf ${PREFIX}/etc/xdg/pcmanfm/LXDE/pcmanfm.conf.sample
-.if ! exists(${PREFIX}/etc/xdg/lxsession/LXDE/desktop.conf)
-	${INSTALL_DATA} ${WRKSRC}/desktop.conf ${PREFIX}/etc/xdg/lxsession/LXDE/desktop.conf
-.endif
-.if ! exists(${PREFIX}/etc/xdg/pcmanfm/LXDE/pcmanfm.conf)
-	${INSTALL_DATA} ${WRKSRC}/pcmanfm/pcmanfm.conf ${PREFIX}/etc/xdg/pcmanfm/LXDE/pcmanfm.conf
-.endif
+	@[ -f ${PREFIX}/etc/xdg/lxsession/LXDE/desktop.conf ] || \
+		${INSTALL_DATA} ${WRKSRC}/desktop.conf ${PREFIX}/etc/xdg/lxsession/LXDE/desktop.conf
+	@[ -f ${PREFIX}/etc/xdg/pcmanfm/LXDE/pcmanfm.conf ] || \
+		${INSTALL_DATA} ${WRKSRC}/pcmanfm/pcmanfm.conf ${PREFIX}/etc/xdg/pcmanfm/LXDE/pcmanfm.conf
 
 .if ${PORT_OPTIONS:MDOCS}
 	@${MKDIR} ${DOCSDIR}



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