components/pconsole/patches/Makefile.in.patch
changeset 5682 94c0ca64c022
equal deleted inserted replaced
5681:b8fe51f35344 5682:94c0ca64c022
       
     1 Honor DESTDIR when installing files; simplifies build and packaging.
       
     2 
       
     3 Appropriate for upstream.
       
     4 --- pconsole-1.0.old/Makefile.in	2001-04-06 18:38:45.000000000 -0700
       
     5 +++ pconsole-1.0/Makefile.in	2015-12-09 14:18:22.312611616 -0800
       
     6 @@ -79,19 +79,19 @@
       
     7  install: all
       
     8  	@( \
       
     9  		echo "installing pconsole ..."; \
       
    10 -		mkdir -p $(bindir) 2>/dev/null ; \
       
    11 -		@INSTALL_PROGRAM@ pconsole $(bindir) ;		\
       
    12 -		@INSTALL_SCRIPT@ pconsole.sh $(bindir) ;	\
       
    13 -		@INSTALL_SCRIPT@ ssh.sh $(bindir) ;			\
       
    14 +		mkdir -p "$(DESTDIR)$(bindir)" 2>/dev/null ; \
       
    15 +		@INSTALL_PROGRAM@ pconsole "$(DESTDIR)$(bindir)" ;		\
       
    16 +		@INSTALL_SCRIPT@ pconsole.sh "$(DESTDIR)$(bindir)" ;	\
       
    17 +		@INSTALL_SCRIPT@ ssh.sh "$(DESTDIR)$(bindir)" ;			\
       
    18  		echo ;	\
       
    19  		echo "Note: You may want to make pconsole setuid root with the following commands:";	\
       
    20  		echo ;	\
       
    21 -		echo "   chown root $(bindir)/pconsole ; chmod 4110 $(bindir)/pconsole" ; \
       
    22 +		echo "   chown root $(DESTDIR)$(bindir)/pconsole ; chmod 4110 $(DESTDIR)$(bindir)/pconsole" ; \
       
    23  		echo \
       
    24  	)
       
    25  
       
    26  uninstall:
       
    27 -	rm -f $(bindir)/pconsole $(bindir)/pconsole.sh $(bindir)/ssh.sh ; \
       
    28 -	rmdir $(bindir) 2>/dev/null
       
    29 +	rm -f $(DESTDIR)$(bindir)/pconsole $(DESTDIR)$(bindir)/pconsole.sh $(DESTDIR)$(bindir)/ssh.sh ; \
       
    30 +	rmdir $(DESTDIR)$(bindir) 2>/dev/null
       
    31  
       
    32  # EOB