Hello,

I've noticed that the "installdropbearmulti" target creates symlinks that point 
to a path relative to $DESTDIR. The attached patch correctly creates symlinks 
that point to a path relative to /.

This patch also creates $DESTDIR/$sbindir and $DESTDIR/$bindir before trying to 
create symlinks in them.

Makefile.in is the only file modified by this patch.

If there are any questions, please CC me on replies, as I am not subscribed.

Thanks!

Scottie Shore
iders, inc.

<html>
<body>
Scottie Shore Embedded Software Developer Iders Incorporated 27047 Oakwood Road 
Oakbank, MB R0E 1J2 Tel (204) 444-5200 ext 282 Fax: (204) 444-5900 
[http://www.iders.ca/IDERS_logo.jpg] ________________________________ Iders 
Incorporated Confidential: ________________________________
 This message is intended solely for the use of the designated recipient(s) and 
their appointed delegates, and may contain confidential information. Any 
unauthorized disclosure, copying or distribution of its contents is strictly 
prohibited. If you have received
 this message in error, please destroy it and advise the sender immediately by 
phone, Email or facsimile.
</body>
</html>
Index: Makefile.in
===================================================================
RCS file: /usr/local/CVSroot/dropbear-0.53.1/Makefile.in,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 Makefile.in
--- Makefile.in	6 Jul 2011 20:21:09 -0000	1.1.1.1
+++ Makefile.in	7 Jul 2011 14:15:03 -0000
@@ -129,12 +129,14 @@
 	-chgrp 0 $(DESTDIR)$(bindir)/dropbearmulti$(EXEEXT)
 
 insmultidropbear: dropbearmulti
+	$(INSTALL) -d -m 755 $(DESTDIR)$(sbindir)
 	-rm -f $(DESTDIR)$(sbindir)/dropbear$(EXEEXT)
-	-ln -s $(DESTDIR)$(bindir)/dropbearmulti$(EXEEXT) $(DESTDIR)$(sbindir)/dropbear$(EXEEXT) 
+	-ln -s $(bindir)/dropbearmulti$(EXEEXT) $(DESTDIR)$(sbindir)/dropbear$(EXEEXT) 
 
 insmulti%: dropbearmulti
+	$(INSTALL) -d -m 755 $(DESTDIR)$(bindir)
 	-rm -f $(DESTDIR)$(bindir)/$*$(EXEEXT) 
-	-ln -s $(DESTDIR)$(bindir)/dropbearmulti$(EXEEXT) $(DESTDIR)$(bindir)/$*$(EXEEXT) 
+	-ln -s $(bindir)/dropbearmulti$(EXEEXT) $(DESTDIR)$(bindir)/$*$(EXEEXT) 
 
 # dropbear should go in sbin, so it needs a seperate rule
 inst_dropbear: dropbear

Reply via email to