the makefile should not touch files outsite DESTDIR

if [ -w /etc/init.d ]; then rm -f /etc/init.d/xrdp.sh; fi   ->>>>>>>>>
NOT RECOMMENDED touching files out of DESTDIR

I belive you can remove all lines below install-data-hook:

I belive the best name for xrdp.sh is xrdp.init

and install the file instead syslinking it

you should not run this command

        $(DESTDIR)$(bindir)/xrdp-keygen xrdp 
$(DESTDIR)$(sysconfdir)/xrdp/rsakeys.ini


because this  error while loading shared libraries: libcommon.so.0:


[ita...@localhost xrdp-0.4.2]$ ldd
/home/itamar/fedora/xrdp/cvs/xrdp-0.4.2/x/usr/local/bin/xrdp-keygen
        linux-vdso.so.1 =>  (0x00007fff84bd4000)
        libcommon.so.0 => not found  -I am installing first time.
        libcrypto.so.8 => /usr/lib64/libcrypto.so.8 (0x0000003cf4000000)
        libpthread.so.0 => /lib64/libpthread.so.0 (0x0000003ce8800000)
        libc.so.6 => /lib64/libc.so.6 (0x0000003ce8400000)
        libdl.so.2 => /lib64/libdl.so.2 (0x0000003ce8c00000)
        libz.so.1 => /lib64/libz.so.1 (0x0000003ce9400000)
        /lib64/ld-linux-x86-64.so.2 (0x0000003ce8000000






if [ -w /etc/init.d ]; then ln -s
/home/itamar/fedora/xrdp/cvs/xrdp-0.4.2/x/etc/xrdp/xrdp.sh
/etc/init.d/xrdp.sh; fi
/home/itamar/fedora/xrdp/cvs/xrdp-0.4.2/x/usr/local/bin/xrdp-keygen
xrdp /home/itamar/fedora/xrdp/cvs/xrdp-0.4.2/x/etc/xrdp/rsakeys.ini
/home/itamar/fedora/xrdp/cvs/xrdp-0.4.2/x/usr/local/bin/xrdp-keygen:
error while loading shared libraries: libcommon.so.0: cannot open
shared object file: No such file or directory




# 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


-- 
------------

Itamar Reis Peixoto

e-mail/msn: ita...@ispbrasil.com.br
sip: ita...@ispbrasil.com.br
skype: itamarjp
icq: 81053601
+55 11 4063 5033
+55 34 3221 8599

------------------------------------------------------------------------------
_______________________________________________
xrdp-devel mailing list
xrdp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xrdp-devel

Reply via email to