python-pip: add site-wide pip.conf with defaults 2089/head
authorAlexandru Ardelean <ardeleanalex@gmail.com>
Thu, 3 Dec 2015 19:48:11 +0000 (21:48 +0200)
committerAlexandru Ardelean <ardeleanalex@gmail.com>
Wed, 9 Dec 2015 19:50:18 +0000 (21:50 +0200)
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
lang/python-pip/Makefile
lang/python-pip/files/pip.conf [new file with mode: 0644]

index f26d6ae0292410c0505c65679f241cbdc2be33d1..f260e7ffee1da6c5bff80015d278087dc2e4ede9 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=python-pip
 PKG_VERSION:=7.1.2
-PKG_RELEASE:=2
+PKG_RELEASE:=3
 
 PKG_SOURCE:=pip-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://pypi.python.org/packages/source/p/pip/
@@ -48,8 +48,9 @@ define PyPackage/python-pip/filespec
 endef
 
 define PyPackage/python-pip/install
-       $(INSTALL_DIR) $(1)/usr/bin
-       $(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin
+       $(INSTALL_DIR) $(1)/usr/bin $(1)/etc
+       $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin
+       $(INSTALL_CONF) ./files/pip.conf $(1)/etc/
 endef
 
 $(eval $(call PyPackage,python-pip))
diff --git a/lang/python-pip/files/pip.conf b/lang/python-pip/files/pip.conf
new file mode 100644 (file)
index 0000000..89339e9
--- /dev/null
@@ -0,0 +1,3 @@
+[global]
+cache-dir=/tmp/.cache
+log-file=/tmp/pip-log.txt