summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjsorg71 <jsorg71>2008-08-17 23:08:17 +0000
committerjsorg71 <jsorg71>2008-08-17 23:08:17 +0000
commitf1ebdf189e36a59afc14cd58b05f2fa2dc57d9b5 (patch)
tree5e6a2c0f2d83e59160259dc4c1c969748e55dc4d
parenta7b624056ff8c08a9c2267a842ccf1c0fa9cfab2 (diff)
downloadxrdp-proprietary-f1ebdf189e36a59afc14cd58b05f2fa2dc57d9b5.tar.gz
xrdp-proprietary-f1ebdf189e36a59afc14cd58b05f2fa2dc57d9b5.zip
added post install hook
-rw-r--r--instfiles/Makefile.am7
-rw-r--r--sesman/Makefile.am4
-rw-r--r--xrdp/Makefile.am4
3 files changed, 15 insertions, 0 deletions
diff --git a/instfiles/Makefile.am b/instfiles/Makefile.am
index 505ddf30..8f8616c5 100644
--- a/instfiles/Makefile.am
+++ b/instfiles/Makefile.am
@@ -6,3 +6,10 @@ startscriptdir=$(sysconfdir)/xrdp
startscript_DATA = \
xrdp.sh
+
+# must be tab below
+install-data-hook:
+ chmod 755 $(DESTDIR)$(sysconfdir)/xrdp/xrdp.sh
+ if [ -w /etc/init.d ]; then rm -f /etc/init.d/xrdp.sh; fi
+ if [ -w /etc/init.d ]; then $(LN_S) $(DESTDIR)$(sysconfdir)/xrdp/xrdp.sh /etc/init.d/xrdp.sh; fi
+ $(DESTDIR)$(bindir)/xrdp-keygen xrdp $(DESTDIR)$(sysconfdir)/xrdp/rsakeys.ini
diff --git a/sesman/Makefile.am b/sesman/Makefile.am
index 5d29643e..22736e61 100644
--- a/sesman/Makefile.am
+++ b/sesman/Makefile.am
@@ -58,3 +58,7 @@ sesmansysconf_DATA = \
SUBDIRS = \
libscp \
tools
+
+# must be tab below
+install-data-hook:
+ chmod 755 $(DESTDIR)$(sysconfdir)/xrdp/startwm.sh
diff --git a/xrdp/Makefile.am b/xrdp/Makefile.am
index cb82b990..32dd4122 100644
--- a/xrdp/Makefile.am
+++ b/xrdp/Makefile.am
@@ -36,3 +36,7 @@ pkgdata_DATA = \
sans-10.fv1 \
cursor0.cur \
cursor1.cur
+
+# must be tab below
+install-data-hook:
+ chmod 600 $(DESTDIR)$(sysconfdir)/xrdp/rsakeys.ini