r309 - x86/trunk/packages/zlib

justin at linuxfromscratch.org justin at linuxfromscratch.org
Fri Jul 8 09:57:27 PDT 2005


Author: justin
Date: 2005-07-08 10:57:26 -0600 (Fri, 08 Jul 2005)
New Revision: 309

Modified:
   x86/trunk/packages/zlib/Makefile
Log:
Updated zlib to use security_fix patch.

Modified: x86/trunk/packages/zlib/Makefile
===================================================================
--- x86/trunk/packages/zlib/Makefile	2005-07-08 10:43:59 UTC (rev 308)
+++ x86/trunk/packages/zlib/Makefile	2005-07-08 16:57:26 UTC (rev 309)
@@ -5,7 +5,9 @@
 VRS= 1.2.2
 DIR= $(NM)-$(VRS)
 FILE= $(DIR).tar.bz2
+PATCH1= $(DIR)-security_fix-1.patch
 URL= $(HTTP)/$(NM)/$(FILE)
+URL1= $(HTTP)/$(NM)/$(PATCH1)
 
 # RULES
 
@@ -20,7 +22,10 @@
 	@echo ""
 	@if [ ! -f $(SRC)/$(FILE) ] ; then $(WGET) $(URL) && \
 	 mv $(FILE) $(SRC) ; fi
-	@if [ ! -f /usr/lib/libz.so ] ; then unpack $(SRC)/$(FILE) && cd $(DIR) && \
+	@if [ ! -f $(SRC)/$(PATCH1) ] ; then $(WGET) $(URL1) && \
+         mv $(PATCH1) $(SRC) ; fi
+	@if [ ! -f /usr/lib/libz.so ] ; then unpack $(SRC)/$(FILE) && \
+	 cd $(DIR) && patch -Np1 -i $(SRC)/$(PATCH1) \
 	 ./configure --prefix=/usr --shared && \
 	 make -j3 && make install && make clean && ./configure --prefix=/usr && \
 	 make -j3 && make install && chmod 644 /usr/lib/libz.a && \




More information about the livecd mailing list