aboutsummaryrefslogtreecommitdiffstats
path: root/net/xrdp
diff options
context:
space:
mode:
authorswills <swills@FreeBSD.org>2012-07-21 04:00:43 +0800
committerswills <swills@FreeBSD.org>2012-07-21 04:00:43 +0800
commit01de37e408bb8ac8a8249f1fab4acaff98c63cda (patch)
tree5888cf7fc680b2b46ccce19f22744b96b42ca7b1 /net/xrdp
parente03733aabf3a31cadc025a9fcf20ae7836cfe636 (diff)
downloadfreebsd-ports-gnome-01de37e408bb8ac8a8249f1fab4acaff98c63cda.tar.gz
freebsd-ports-gnome-01de37e408bb8ac8a8249f1fab4acaff98c63cda.tar.zst
freebsd-ports-gnome-01de37e408bb8ac8a8249f1fab4acaff98c63cda.zip
- Remove config files if unmodified
PR: ports/170017 Submitted by: Koichiro IWAO <meta+ports@vmeta.jp>
Diffstat (limited to 'net/xrdp')
-rw-r--r--net/xrdp/Makefile1
-rw-r--r--net/xrdp/pkg-plist8
2 files changed, 9 insertions, 0 deletions
diff --git a/net/xrdp/Makefile b/net/xrdp/Makefile
index 13eaea27b36a..7cbc8fd22106 100644
--- a/net/xrdp/Makefile
+++ b/net/xrdp/Makefile
@@ -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/
diff --git a/net/xrdp/pkg-plist b/net/xrdp/pkg-plist
index f77288e5f72e..a8fafc581b08 100644
--- a/net/xrdp/pkg-plist
+++ b/net/xrdp/pkg-plist
@@ -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