Author: alexander Date: 2005-07-08 01:47:45 -0600 (Fri, 08 Jul 2005) New Revision: 307
Modified: x86/branches/6.1/packages/zlib/Makefile Log: Applied zlib security fix. Modified: x86/branches/6.1/packages/zlib/Makefile =================================================================== --- x86/branches/6.1/packages/zlib/Makefile 2005-07-08 07:44:19 UTC (rev 306) +++ x86/branches/6.1/packages/zlib/Makefile 2005-07-08 07:47:45 UTC (rev 307) @@ -5,8 +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://www.linuxfromscratch.org/patches/downloads/$(NM)/$(PATCH1) # RULES .PHONY: chroot stage2 clean @@ -20,7 +21,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 && \ -- http://linuxfromscratch.org/mailman/listinfo/livecd FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
