--- ./Makefile.orig Fri Mar 3 22:02:01 2006 +++ ./Makefile Sun Apr 29 12:42:28 2007 @@ -3,7 +3,6 @@ CFGDIR = /etc/xrdp PIDDIR = /var/run MANDIR = /usr/local/man -DOCDIR = /usr/doc/xrdp all: world @@ -38,7 +37,6 @@ mkdir -p $(CFGDIR) mkdir -p $(PIDDIR) mkdir -p $(MANDIR) - mkdir -p $(DOCDIR) make -C vnc install make -C libxrdp install make -C xrdp install @@ -46,9 +44,7 @@ make -C sesman install make -C xup install make -C docs install - if [ -d /etc/pam.d ]; then install instfiles/pam.d/sesman /etc/pam.d/sesman; fi - install instfiles/xrdpstart.sh $(DESTDIR)/xrdpstart.sh - install instfiles/xrdp_control.sh $(DESTDIR)/xrdp_control.sh + if [ -d $(PREFIX)/etc/pam.d ]; then $(BSD_INSTALL_DATA) instfiles/pam.d/sesman $(PREFIX)/etc/pam.d/xrdp_sesman; fi installdeb: mkdir -p $(DESTDIRDEB)/usr/xrdp