# # Makefile for squid Slackware package # Copyright (c) 2004 by Robert Stan # PROGNAME = squid VERSION = 2.5.STABLE5 ARCH = i486 BUILD = 1rob SOURCE = http://www.squid-cache.org/Versions/v2/2.5/squid-$(VERSION).tar.bz2 DOCS = CONTRIBUTORS COPY* CREDITS ChangeLog INSTALL QUICKSTART README RELEASENOTES.html SPONSORS CUSTNAME = $(PROGNAME) PKGNAME = $(CUSTNAME)-$(VERSION)-$(ARCH)-$(BUILD) MAINTAINER = Robert Stan CFLAGS = "-O2 -pipe -march=$(ARCH) -mcpu=i686" CXXFLAGS = $(CFLAGS) STRIPLIB = y STRIPBIN = y TMP = /var/tmp PKG = $(TMP)/package-$(PROGNAME)-$(VERSION) conf: prep cd $(PROGNAME)-$(VERSION); \ patch -p1 < ../squid-2.5.STABLE5-20040421.diff; \ patch -p1 < ../large_maxfd.patch; \ CFLAGS=$(CFLAGS) CXXFLAGS=$(CXXFLAGS) \ ./configure --prefix=/usr \ --datadir=/usr/share/squid \ --sysconfdir=/etc/squid \ --localstatedir=/var/lib/squid \ --enable-storeio="aufs,ufs,diskd,coss,null" \ --enable-removal-policies="lru,heap" \ --enable-icmp \ --enable-delay-pools \ --enable-snmp \ --enable-wccp \ --enable-arp-acl \ --enable-ssl \ --enable-linux-netfilter \ --enable-basic-auth-helpers="LDAP,NCSA,YP,multi-domain-NTLM,MSNT,SMB,getpwnam,winbind" build: conf make -j10 -C $(PROGNAME)-$(VERSION) package: build mkdir -p $(PKG)/usr/doc/$(PROGNAME)-$(VERSION) mkdir -p $(PKG)/var/lib/squid/logs cd $(PROGNAME)-$(VERSION); \ cp -a $(DOCS) $(PKG)/usr/doc/$(PROGNAME)-$(VERSION); \ make DESTDIR=$(PKG) install ( cd $(PKG)/etc/squid && rm -rf mime.conf squid.conf msntauth.conf) cat slack-desc > ../$(PKGNAME).txt cat slack-desc > $(PKG)/install/slack-desc cat doinst.sh >> $(PKG)/install/doinst.sh cat slack-required > $(PKG)/install/slack-required STRIPLIB=$(STRIPLIB) STRIPBIN=$(STRIPBIN) ../../preparepkg $(PKG) chown -R nobody.nogroup $(PKG)/var/lib/squid cd $(PKG) ; makepkg -l y -c n $(PKGNAME).tgz mv $(PKG)/$(PKGNAME).tgz .. include ../../Makefile.global