summaryrefslogtreecommitdiffstats
path: root/package/proxychains-ng/proxychains-ng.mk
diff options
context:
space:
mode:
Diffstat (limited to 'package/proxychains-ng/proxychains-ng.mk')
-rw-r--r--package/proxychains-ng/proxychains-ng.mk17
1 files changed, 12 insertions, 5 deletions
diff --git a/package/proxychains-ng/proxychains-ng.mk b/package/proxychains-ng/proxychains-ng.mk
index c38a7dbde..2020e3f9e 100644
--- a/package/proxychains-ng/proxychains-ng.mk
+++ b/package/proxychains-ng/proxychains-ng.mk
@@ -3,15 +3,22 @@
# proxychains-ng
#
#############################################################
+
PROXYCHAINS_NG_VERSION = 4.4
PROXYCHAINS_NG_SOURCE = proxychains-$(PROXYCHAINS_NG_VERSION).tar.bz2
PROXYCHAINS_NG_SITE = http://downloads.sourceforge.net/project/proxychains-ng
-define PROXYCHAINS_NG_POST_INSTALL_TARGET
- $(INSTALL) -m 644 -D $(@D)/src/proxychains.conf \
- $(TARGET_DIR)/etc/proxychains.conf
+define PROXYCHAINS_NG_CONFIGURE_CMDS
+ cd $(@D) && \
+ $(TARGET_CONFIGURE_OPTS) ./configure --prefix=/usr --sysconfdir=/etc
+endef
+
+define PROXYCHAINS_NG_BUILD_CMDS
+ $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D)
endef
-PROXYCHAINS_NG_POST_INSTALL_TARGET_HOOKS += PROXYCHAINS_NG_POST_INSTALL_TARGET
+define PROXYCHAINS_NG_INSTALL_TARGET_CMDS
+ $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) install install-config
+endef
-$(eval $(autotools-package))
+$(eval $(generic-package))