Skip to content

Instantly share code, notes, and snippets.

@Haruroid
Last active November 10, 2020 13:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Haruroid/7f5c1cabf918986f103e4341df33e78e to your computer and use it in GitHub Desktop.
Save Haruroid/7f5c1cabf918986f103e4341df33e78e to your computer and use it in GitHub Desktop.
desproxy 0.1.0-pre3 Makefile for OpenWrt
include $(TOPDIR)/rules.mk
PKG_NAME:=desproxy
PKG_VERSION:=0.1.0-pre3
PKG_RELEASE:=1
PKG_SOURCE:=desproxy-0.1.0-pre3.tar.gz
PKG_SOURCE_URL:=https://haruroid.com/static/openwrt/
PKG_HASH:=6604b60e2d389f5c2500e7becc6e21ffdb282de6fbee9da474ed887f75a93736
PKG_MAINTAINER:=test <root@localhost>
PKG_LICENSE:=GPL-2.0
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
include $(INCLUDE_DIR)/package.mk
TARGET_CFLAGS += -ffunction-sections -fdata-sections
TARGET_LDFLAGS += -Wl,--gc-sections
CONFIGURE_VARS += \
BUILD_CC="$(TARGET_CC)" \
HOSTCC="$(HOSTCC)"
MAKE_FLAGS := CCOPT="$(TARGET_CFLAGS)" INCLS="-I. $(TARGET_CPPFLAGS)"
define Package/desproxy
SECTION:=net
CATEGORY:=Network
DEPENDS:=+libpthread
TITLE:=a TCP tunnel for HTTP proxies
URL:=http://desproxy.sourceforge.net/
endef
define Package/desproxy/install
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/desproxy $(1)/usr/sbin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/desproxy-dns $(1)/usr/sbin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/desproxy-inetd $(1)/usr/sbin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/desproxy-socksserver $(1)/usr/sbin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/socket2socket $(1)/usr/sbin/
endef
$(eval $(call BuildPackage,desproxy))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment