Changeset 38864


Ignore:
Timestamp:
2013-11-19T02:35:08+01:00 (4 years ago)
Author:
tripolar
Message:

[packages] openssh: remove ssh and scp symlinks to dropbear when openssh-client is
installed and create them again when openssh-client is removed and dropbear is installed

Signed-off-by: Peter Wagner <tripolar@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • packages/net/openssh/Makefile

    r38821 r38864  
    1010PKG_NAME:=openssh 
    1111PKG_VERSION:=6.4p1 
    12 PKG_RELEASE:=4 
     12PKG_RELEASE:=5 
    1313 
    1414PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 
     
    182182endef 
    183183 
     184define Package/openssh-client/preinst 
     185#!/bin/sh 
     186if [ -L $${IPKG_INSTROOT}/usr/bin/ssh ] && [ -L $${IPKG_INSTROOT}/usr/bin/scp ]; then 
     187  rm -f $${IPKG_INSTROOT}/usr/bin/ssh $${IPKG_INSTROOT}/usr/bin/scp; 
     188fi 
     189exit 0 
     190endef 
     191 
     192define Package/openssh-client/postrm 
     193#!/bin/sh 
     194rm -f $${IPKG_INSTROOT}/usr/bin/ssh $${IPKG_INSTROOT}/usr/bin/scp; 
     195if [ -x $${IPKG_INSTROOT}/usr/sbin/dropbear ] ; then 
     196  ln -s /usr/sbin/dropbear $${IPKG_INSTROOT}/usr/bin/ssh; 
     197  ln -s /usr/sbin/dropbear $${IPKG_INSTROOT}/usr/bin/scp; 
     198fi 
     199exit 0 
     200endef 
     201 
    184202define Package/openssh-moduli/install 
    185203        $(INSTALL_DIR) $(1)/etc/ssh 
Note: See TracChangeset for help on using the changeset viewer.