diff options
author | Hannu Nyman <hannu.nyman@iki.fi> | 2016-09-03 11:05:29 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-03 11:05:29 +0300 |
commit | cbf33207622a11b9e02d23ad2082844044e941d8 (patch) | |
tree | 70e265eb022db4692d262c33c8fd6bb163613b6c | |
parent | def97187d25d11732925c1fc98f8c391efc08f2e (diff) | |
parent | 1b2e2dcbffa3341d2bab925cc9b40581bf1b8e47 (diff) |
Merge pull request #2729 from cshore/pull-request-wget-fix-symlink-issue
net/wget: Remove use broken use of postrm/postinst symlinks
-rw-r--r-- | net/wget/Makefile | 40 |
1 files changed, 3 insertions, 37 deletions
diff --git a/net/wget/Makefile b/net/wget/Makefile index 70db34e2e..052f2d81e 100644 --- a/net/wget/Makefile +++ b/net/wget/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=wget PKG_VERSION:=1.18 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz PKG_SOURCE_URL:=@GNU/$(PKG_NAME) @@ -86,47 +86,13 @@ endif define Package/wget/install $(INSTALL_DIR) $(1)/usr/bin $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/wget $(1)/usr/bin/wget-ssl + ln -sf wget-ssl $(1)/usr/bin/wget endef define Package/wget-nossl/install $(INSTALL_DIR) $(1)/usr/bin $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/wget $(1)/usr/bin/wget-nossl -endef - -define Package/wget/postinst -#!/bin/sh -if [ -e $${IPKG_INSTROOT}/usr/bin/wget ]; then - rm -rf $${IPKG_INSTROOT}/usr/bin/wget; -fi -ln -sf ./wget-ssl $${IPKG_INSTROOT}/usr/bin/wget -endef - -define Package/wget/postrm -#!/bin/sh -rm $${IPKG_INSTROOT}/usr/bin/wget -[ -x $${IPKG_INSTROOT}/usr/bin/wget-nossl ] && ln -s ./wget-nossl $${IPKG_INSTROOT}/usr/bin/wget || { - ln -s ../../bin/busybox $${IPKG_INSTROOT}/usr/bin/wget - $${IPKG_INSTROOT}/usr/bin/wget 2>&1 | grep 'applet not found' > /dev/null 2>&1 && rm $${IPKG_INSTROOT}/usr/bin/wget -} -exit 0 -endef - -define Package/wget-nossl/postinst -#!/bin/sh -if [ -e $${IPKG_INSTROOT}/usr/bin/wget ]; then - rm -rf $${IPKG_INSTROOT}/usr/bin/wget; -fi -ln -s ./wget-nossl $${IPKG_INSTROOT}/usr/bin/wget -endef - -define Package/wget-nossl/postrm -#!/bin/sh -rm $${IPKG_INSTROOT}/usr/bin/wget -[ -x $${IPKG_INSTROOT}/usr/bin/wget-ssl ] && ln -s ./wget-ssl $${IPKG_INSTROOT}/usr/bin/wget || { - ln -s ../../bin/busybox $${IPKG_INSTROOT}/usr/bin/wget - $${IPKG_INSTROOT}/usr/bin/wget 2>&1 | grep 'applet not found' > /dev/null 2>&1 && rm $${IPKG_INSTROOT}/usr/bin/wget -} -exit 0 + ln -sf wget-nossl $(1)/usr/bin/wget endef $(eval $(call BuildPackage,wget)) |