Crosscompile rssh causes a problem at install, since the DESTDIR isn't used for "install-exec-hook". This patch adds DESTDIR to "install-exec-hook".

Best regards,

Marcel

--
Dipl. Ing (FH) Marcel Behlau
(Software Developer)

ELFIN GmbH
Siegburger Straße 215
50679 Köln
Germany

Tel: +49 (221) 6778932-0
Fax: +49 (221) 6778932-2
marcel.beh...@elfin.de
www.elfin.de

diff -rupN rssh-2.3.4/Makefile.am rssh-2.3.4_mod/Makefile.am
--- rssh-2.3.4/Makefile.am	2012-11-26 05:01:11.000000000 +0100
+++ rssh-2.3.4_mod/Makefile.am	2015-10-14 15:53:59.899386377 +0200
@@ -19,7 +19,7 @@ base=`echo @PACKAGE_STRING@|tr " " "-"`
 	$(CC) -c $(DEFS) $(ourdefs) $(AM_CFLAGS) $(CPPFLAGS) $(LDFLAGS) $<
 
 install-exec-hook:
-	chmod u+s $(libexecdir)/rssh_chroot_helper
+	chmod u+s $(DESTDIR)/$(libexecdir)/rssh_chroot_helper
 
 rpm:	dist
 	rpmbuild -ta --sign $(base).tar.gz
diff -rupN rssh-2.3.4/Makefile.in rssh-2.3.4_mod/Makefile.in
--- rssh-2.3.4/Makefile.in	2012-11-27 01:19:34.000000000 +0100
+++ rssh-2.3.4_mod/Makefile.in	2015-10-14 15:53:59.896052989 +0200
@@ -730,7 +730,7 @@ uninstall-man: uninstall-man1 uninstall-
 	$(CC) -c $(DEFS) $(ourdefs) $(AM_CFLAGS) $(CPPFLAGS) $(LDFLAGS) $<
 
 install-exec-hook:
-	chmod u+s $(libexecdir)/rssh_chroot_helper
+	chmod u+s $(DESTDIR)/$(libexecdir)/rssh_chroot_helper
 
 rpm:	dist
 	rpmbuild -ta --sign $(base).tar.gz
------------------------------------------------------------------------------
_______________________________________________
rssh-discuss mailing list
rssh-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rssh-discuss

Reply via email to