mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 14:23:38 +00:00
srelay: reduce ipk size and enable thread
This commit is contained in:
parent
3622accc8e
commit
3de61c4715
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
|||||||
|
|
||||||
PKG_NAME:=srelay
|
PKG_NAME:=srelay
|
||||||
PKG_VERSION:=0.4.8p3
|
PKG_VERSION:=0.4.8p3
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=8
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=@SF/socks-relay
|
PKG_SOURCE_URL:=@SF/socks-relay
|
||||||
@ -20,7 +20,7 @@ include $(INCLUDE_DIR)/package.mk
|
|||||||
define Package/srelay
|
define Package/srelay
|
||||||
SECTION:=net
|
SECTION:=net
|
||||||
CATEGORY:=Network
|
CATEGORY:=Network
|
||||||
DEPENDS:=+libwrap
|
DEPENDS:=+libpthread
|
||||||
SUBMENU:=Web Servers/Proxies
|
SUBMENU:=Web Servers/Proxies
|
||||||
TITLE:=A socks 4/5 proxy server
|
TITLE:=A socks 4/5 proxy server
|
||||||
URL:=http://www.c-wind.com/srelay/
|
URL:=http://www.c-wind.com/srelay/
|
||||||
@ -31,8 +31,8 @@ define Package/srelay/conffiles
|
|||||||
endef
|
endef
|
||||||
|
|
||||||
CONFIGURE_ARGS += \
|
CONFIGURE_ARGS += \
|
||||||
--disable-thread \
|
--enable-thread \
|
||||||
--with-libwrap="$(STAGING_DIR)/usr" \
|
--with-libwrap=no \
|
||||||
|
|
||||||
CONFIGURE_VARS += \
|
CONFIGURE_VARS += \
|
||||||
CPPFLAGS="-DLINUX $$$$CPPFLAGS" \
|
CPPFLAGS="-DLINUX $$$$CPPFLAGS" \
|
||||||
@ -40,8 +40,6 @@ CONFIGURE_VARS += \
|
|||||||
define Package/srelay/install
|
define Package/srelay/install
|
||||||
$(INSTALL_DIR) $(1)/usr/bin
|
$(INSTALL_DIR) $(1)/usr/bin
|
||||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/bin/
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/bin/
|
||||||
$(INSTALL_DIR) $(1)/etc
|
|
||||||
$(INSTALL_DATA) files/$(PKG_NAME).conf $(1)/etc/
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(call BuildPackage,srelay))
|
$(eval $(call BuildPackage,srelay))
|
||||||
|
19
package/lean/srelay/patches/001-compile.patch
Normal file
19
package/lean/srelay/patches/001-compile.patch
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
--- a/configure
|
||||||
|
+++ b/configure
|
||||||
|
@@ -3999,11 +3999,11 @@
|
||||||
|
LDFLAGS="$LDFLAGS -lpthread"
|
||||||
|
fi
|
||||||
|
if test "$cross_compiling" = yes; then :
|
||||||
|
- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
||||||
|
-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
||||||
|
-as_fn_error $? "cannot run test program while cross compiling
|
||||||
|
-See \`config.log' for more details" "$LINENO" 5; }
|
||||||
|
-else
|
||||||
|
+# { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
||||||
|
+#$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
||||||
|
+#as_fn_error $? "cannot run test program while cross compiling
|
||||||
|
+#See \`config.log' for more details" "$LINENO" 5; }
|
||||||
|
+#else
|
||||||
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||||
|
/* end confdefs.h. */
|
||||||
|
|
Loading…
Reference in New Issue
Block a user