diff options
author | wg <wg@FreeBSD.org> | 2013-07-01 22:42:37 +0800 |
---|---|---|
committer | wg <wg@FreeBSD.org> | 2013-07-01 22:42:37 +0800 |
commit | 6e558a7970bd43bc66615bfc70ac5f8975ec2b97 (patch) | |
tree | 79bed9af4c9d2b499e0ebf92ad7bfbebfbb4c74f /misc/lxde-common | |
parent | 1e6acc0e54be641045d2f239e1fc4c832e5941a7 (diff) | |
download | freebsd-ports-gnome-6e558a7970bd43bc66615bfc70ac5f8975ec2b97.tar.gz freebsd-ports-gnome-6e558a7970bd43bc66615bfc70ac5f8975ec2b97.tar.zst freebsd-ports-gnome-6e558a7970bd43bc66615bfc70ac5f8975ec2b97.zip |
misc/lxde-common: preserve conf files
- Fix preservation of old .conf files
PR: ports/180111
Submitted by: nemysis <nemysis@gmx.ch> (maintainer)
Diffstat (limited to 'misc/lxde-common')
-rw-r--r-- | misc/lxde-common/Makefile | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/misc/lxde-common/Makefile b/misc/lxde-common/Makefile index d33ef95d52b5..54794a9a17d4 100644 --- a/misc/lxde-common/Makefile +++ b/misc/lxde-common/Makefile @@ -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} |