proxychains-ng: copy proxychains.conf to target dir
authorStefan Fröberg <stefan.froberg@petroprogram.com>
Tue, 15 Jan 2013 18:10:15 +0000 (18:10 +0000)
committerPeter Korsgaard <jacmet@sunsite.dk>
Wed, 16 Jan 2013 12:24:54 +0000 (13:24 +0100)
proxychains installation does not copy proxychains.conf to
$(TARGET_DIR)/etc anymore so we have to do it manually now.

Signed-off-by: Stefan Fröberg <stefan.froberg@petroprogram.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/proxychains-ng/proxychains-ng.mk

index 9cf24bf5d24da9808131019f4a0d5a31986b2fe7..c38a7dbde3b757dc21be0e6f1c09f6b7c7ff5511 100644 (file)
@@ -7,4 +7,11 @@ 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
+endef
+
+PROXYCHAINS_NG_POST_INSTALL_TARGET_HOOKS += PROXYCHAINS_NG_POST_INSTALL_TARGET
+
 $(eval $(autotools-package))