added post install hook

This commit is contained in:
jsorg71 2008-08-17 23:08:17 +00:00
parent a7b624056f
commit f1ebdf189e
3 changed files with 15 additions and 0 deletions

View File

@ -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

View File

@ -58,3 +58,7 @@ sesmansysconf_DATA = \
SUBDIRS = \
libscp \
tools
# must be tab below
install-data-hook:
chmod 755 $(DESTDIR)$(sysconfdir)/xrdp/startwm.sh

View File

@ -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