Bug 170017 - [PATCH] net/xrdp: fix plist for configuration files
Summary: [PATCH] net/xrdp: fix plist for configuration files
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Steve Wills
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-20 08:00 UTC by Koichiro Iwao
Modified: 2012-07-20 21:10 UTC (History)
1 user (show)

See Also:


Attachments
xrdp-0.6.0.20110117.patch (837 bytes, patch)
2012-07-20 08:00 UTC, Koichiro Iwao
no flags Details | Diff
patch.txt (1.30 KB, text/plain)
2012-07-20 10:10 UTC, Koichiro IWAO
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Koichiro Iwao freebsd_committer 2012-07-20 08:00:23 UTC
[DESCRIBE CHANGES]
Configuration files had been left even if users don't make changes on them.
I've just fixed pkg-plist.

beat@, thanks for informing me the problem.


Port maintainer (meta+ports@vmeta.jp) is cc'd.

Generated with FreeBSD Port Tools 0.99_6 (mode: change, diff: ports)
Comment 1 Edwin Groothuis freebsd_committer 2012-07-20 08:00:34 UTC
Responsible Changed
From-To: freebsd-ports-bugs->swills

swills@ wants his PRs (via the GNATS Auto Assign Tool)
Comment 2 Koichiro IWAO 2012-07-20 10:10:43 UTC
My first patch didn't include @exec lines.
Here's the new one.
Comment 3 Steve Wills freebsd_committer 2012-07-20 21:00:51 UTC
State Changed
From-To: open->closed

Committed. Thanks!
Comment 4 dfilter service freebsd_committer 2012-07-20 21:00:54 UTC
Author: swills
Date: Fri Jul 20 20:00:43 2012
New Revision: 301239
URL: http://svn.freebsd.org/changeset/ports/301239

Log:
  - Remove config files if unmodified
  
  PR:		ports/170017
  Submitted by:	Koichiro IWAO <meta+ports@vmeta.jp>

Modified:
  head/net/xrdp/Makefile   (contents, props changed)
  head/net/xrdp/pkg-plist   (contents, props changed)

Modified: head/net/xrdp/Makefile
==============================================================================
--- head/net/xrdp/Makefile	Fri Jul 20 19:58:16 2012	(r301238)
+++ head/net/xrdp/Makefile	Fri Jul 20 20:00:43 2012	(r301239)
@@ -7,6 +7,7 @@
 
 PORTNAME=	xrdp
 PORTVERSION=	0.6.0.20110117
+PORTREVISION=	1
 CATEGORIES=	net
 MASTER_SITES=	http://www.club.kyutech.ac.jp/~meta/distfiles/ \
 		http://key2.jp/~meta/distfiles/

Modified: head/net/xrdp/pkg-plist
==============================================================================
--- head/net/xrdp/pkg-plist	Fri Jul 20 19:58:16 2012	(r301238)
+++ head/net/xrdp/pkg-plist	Fri Jul 20 20:00:43 2012	(r301239)
@@ -14,10 +14,18 @@ etc/xrdp/km-041d.ini
 %%JP106%%etc/xrdp/km-e0200411.ini
 %%JP106%%etc/xrdp/km-e0010411.ini
 %%JP106%%etc/xrdp/km-e0210411.ini
+@unexec if cmp -s %D/etc/xrdp/rsakeys.ini.sample %D/etc/xrdp/rsakeys.ini; then rm -f %D/etc/xrdp/rsakeys.ini; fi
+@unexec if cmp -s %D/etc/xrdp/sesman.ini.sample %D/etc/xrdp/sesman.ini; then rm -f %D/etc/xrdp/sesman.ini; fi
+@unexec if cmp -s %D/etc/xrdp/startwm.sh.sample %D/etc/xrdp/startwm.sh; then rm -f %D/etc/xrdp/startwm.sh; fi
+@unexec if cmp -s %D/etc/xrdp/xrdp.ini.sample %D/etc/xrdp/xrdp.ini; then rm -f %D/etc/xrdp/xrdp.ini; fi
 etc/xrdp/rsakeys.ini.sample
 etc/xrdp/sesman.ini.sample
 etc/xrdp/startwm.sh.sample
 etc/xrdp/xrdp.ini.sample
+@exec [ -f %D/etc/xrdp/rsakeys.ini ] || cp -p %D/etc/xrdp/rsakeys.ini.sample %D/etc/xrdp/rsakeys.ini
+@exec [ -f %D/etc/xrdp/sesman.ini ] || cp -p %D/etc/xrdp/sesman.ini.sample %D/etc/xrdp/sesman.ini
+@exec [ -f %D/etc/xrdp/startwm.sh ] || cp -p %D/etc/xrdp/startwm.sh.sample %D/etc/xrdp/startwm.sh
+@exec [ -f %D/etc/xrdp/xrdp.ini ] || cp -p %D/etc/xrdp/xrdp.ini.sample %D/etc/xrdp/xrdp.ini
 etc/xrdp/xrdp.sh
 lib/xrdp/libcommon.a
 lib/xrdp/libcommon.la
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"