mirror of
https://github.com/caiwx86/small-packages.git
synced 2026-09-12 03:14:28 +08:00
update 2026-07-29 01:22:16
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
#
|
||||
# Copyright (C) 2006-2011 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=srelay
|
||||
PKG_VERSION:=0.4.8p3
|
||||
PKG_RELEASE:=8
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=@SF/socks-relay
|
||||
PKG_MD5SUM:=8121ff3d1b741de95dd6eacc5ad5811c
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/srelay
|
||||
SECTION:=net
|
||||
CATEGORY:=Network
|
||||
DEPENDS:=+libpthread
|
||||
SUBMENU:=Web Servers/Proxies
|
||||
TITLE:=A socks 4/5 proxy server
|
||||
URL:=http://www.c-wind.com/srelay/
|
||||
endef
|
||||
|
||||
define Package/srelay/conffiles
|
||||
/etc/srelay.conf
|
||||
endef
|
||||
|
||||
CONFIGURE_ARGS += \
|
||||
--enable-thread \
|
||||
--with-libwrap=no \
|
||||
|
||||
CONFIGURE_VARS += \
|
||||
CPPFLAGS="-DLINUX $$$$CPPFLAGS" \
|
||||
|
||||
define Package/srelay/install
|
||||
$(INSTALL_DIR) $(1)/usr/bin
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/bin/
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,srelay))
|
||||
@@ -0,0 +1,2 @@
|
||||
# allow local subnet to access socks proxy
|
||||
0.0.0.0 any
|
||||
Executable
+14
@@ -0,0 +1,14 @@
|
||||
#!/bin/sh /etc/rc.common
|
||||
# Copyright (C) 2006-2011 OpenWrt.org
|
||||
|
||||
START=50
|
||||
|
||||
SERVICE_USE_PID=1
|
||||
|
||||
start() {
|
||||
service_start /usr/bin/srelay -c /etc/srelay.conf -r -s
|
||||
}
|
||||
|
||||
stop() {
|
||||
service_stop /usr/bin/srelay
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
--- a/configure
|
||||
+++ b/configure
|
||||
@@ -2361,7 +2361,7 @@ test -n "$target_alias" &&
|
||||
NONENONEs,x,x, &&
|
||||
program_prefix=${target_alias}-
|
||||
|
||||
-case "$build_os" in
|
||||
+case "$host_os" in
|
||||
freebsd*)
|
||||
OS=FREEBSD
|
||||
$as_echo "#define FREEBSD 1" >>confdefs.h
|
||||
@@ -3999,11 +3999,11 @@ $as_echo_n "checking whether enabling th
|
||||
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. */
|
||||
|
||||
Reference in New Issue
Block a user