components/squid/Makefile
changeset 211 f37f16a2a99c
parent 181 87e11e685b1f
child 609 775168282b2f
equal deleted inserted replaced
210:678da3f391ca 211:f37f16a2a99c
    25 
    25 
    26 include ../../make-rules/shared-macros.mk
    26 include ../../make-rules/shared-macros.mk
    27 
    27 
    28 PATH=/usr/bin:/usr/gnu/bin:/usr/sbin:/usr/perl5/bin
    28 PATH=/usr/bin:/usr/gnu/bin:/usr/sbin:/usr/perl5/bin
    29 
    29 
    30 COMPONENT_NAME=		squid
    30 COMPONENT_NAME=         squid
    31 COMPONENT_VERSION=	2.7.STABLE9
    31 COMPONENT_VERSION=      3.1.8
    32 COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
    32 COMPONENT_SRC=          $(COMPONENT_NAME)-$(COMPONENT_VERSION)
    33 COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
    33 COMPONENT_ARCHIVE=      $(COMPONENT_SRC).tar.gz
    34 COMPONENT_ARCHIVE_HASH=	sha1:6d90fe06468b662b2eefd7ffeb47b9a78f0a871d
    34 COMPONENT_ARCHIVE_HASH= sha1:1b3e14e653a77462607aefa7931605a5e24829b9
    35 COMPONENT_ARCHIVE_URL=	http://www.squid-cache.org/Versions/v2/2.7/$(COMPONENT_ARCHIVE)
    35 COMPONENT_ARCHIVE_URL=  http://www.squid-cache.org/Versions/v3/3.1/$(COMPONENT_ARCHIVE)
    36 
    36 
    37 include ../../make-rules/prep.mk
    37 include ../../make-rules/prep.mk
    38 include ../../make-rules/configure.mk
    38 include ../../make-rules/configure.mk
    39 include ../../make-rules/ips.mk
    39 include ../../make-rules/ips.mk
    40 
    40 
    41 IPS_COMPONENT_VERSION=	2.7.9
    41 COMPILER = gcc
    42 
    42 
    43 CFLAGS += -I/usr/include/kerberosv5
    43 CFLAGS += -I/usr/include/kerberosv5
    44 CFLAGS += -DSOLARIS_11
       
    45 CFLAGS += -D__BIG_ENDIAN__
       
    46 CFLAGS += $(CPP_LARGEFILES)
    44 CFLAGS += $(CPP_LARGEFILES)
    47 CFLAGS += $(studio_FEATURES_EXTENSIONS)
       
    48 
       
    49 
    45 
    50 # Squid has own prefix
    46 # Squid has own prefix
    51 CONFIGURE_PREFIX =	/usr/squid
    47 CONFIGURE_PREFIX =	/usr/squid
    52 
    48 
    53 CONFIGURE_OPTIONS +=   CFLAGS="$(CFLAGS)"
    49 CONFIGURE_OPTIONS +=   CFLAGS="$(CFLAGS)"
    71 CONFIGURE_OPTIONS += --enable-htcp
    67 CONFIGURE_OPTIONS += --enable-htcp
    72 CONFIGURE_OPTIONS += --enable-icmp
    68 CONFIGURE_OPTIONS += --enable-icmp
    73 CONFIGURE_OPTIONS += --enable-large-cache-files
    69 CONFIGURE_OPTIONS += --enable-large-cache-files
    74 CONFIGURE_OPTIONS += --enable-multicast-miss
    70 CONFIGURE_OPTIONS += --enable-multicast-miss
    75 CONFIGURE_OPTIONS += --enable-negotiate-auth-helpers='squid_kerb_auth'
    71 CONFIGURE_OPTIONS += --enable-negotiate-auth-helpers='squid_kerb_auth'
    76 CONFIGURE_OPTIONS += --enable-ntlm-auth-helpers='SMB,fakeauth,no_check'
    72 CONFIGURE_OPTIONS += --enable-ntlm-auth-helpers='smb_lm,fakeauth,no_check'
    77 CONFIGURE_OPTIONS += --enable-ntlm-fail-open
    73 CONFIGURE_OPTIONS += --enable-ntlm-fail-open
    78 CONFIGURE_OPTIONS += --enable-referer-log
    74 CONFIGURE_OPTIONS += --enable-referer-log
    79 CONFIGURE_OPTIONS += --enable-removal-policies='heap,lru'
    75 CONFIGURE_OPTIONS += --enable-removal-policies='heap,lru'
    80 CONFIGURE_OPTIONS += --enable-snmp
    76 CONFIGURE_OPTIONS += --enable-snmp
    81 CONFIGURE_OPTIONS += --enable-ssl
    77 CONFIGURE_OPTIONS += --enable-ssl
    82 CONFIGURE_OPTIONS += --enable-storeio='aufs,coss,diskd,ufs,null'
    78 CONFIGURE_OPTIONS += --enable-storeio='aufs,diskd,ufs'
    83 CONFIGURE_OPTIONS += --enable-useragent-log
    79 CONFIGURE_OPTIONS += --enable-useragent-log
    84 CONFIGURE_OPTIONS += --enable-x-accelerator-vary
    80 CONFIGURE_OPTIONS += --enable-x-accelerator-vary
    85 CONFIGURE_OPTIONS += --with-aio
    81 CONFIGURE_OPTIONS += --with-aio
    86 CONFIGURE_OPTIONS += --with-aufs-threads=8
    82 CONFIGURE_OPTIONS += --with-aufs-threads=8
    87 CONFIGURE_OPTIONS += --with-large-files
    83 CONFIGURE_OPTIONS += --with-large-files
    88 CONFIGURE_OPTIONS += --with-build-environment=POSIX_V6_ILP32_OFFBIG
    84 CONFIGURE_OPTIONS += --with-build-environment=POSIX_V6_ILP32_OFFBIG
    89 CONFIGURE_OPTIONS += --with-pthreads
    85 CONFIGURE_OPTIONS += --with-pthreads
    90 
    86 
    91 COMPONENT_POST_BUILD_ACTION= \
    87 COMPONENT_POST_BUILD_ACTION= \
    92 		(cd $(@D) ; $(PERL) -pi \
    88                 (cd $(COMPONENT_DIR) ; \
    93                 -e 'print q{visible_hostname localhost} if $$. == 1;' \
    89                  $(CP) squid.conf.default $(@D)/src)
    94                 -e 's/^\# +cache_effective_user.*/cache_effective_user webservd/g;' \
       
    95                 -e 's/^\# +dns_testnames.*/dns_testnames localhost/g' \
       
    96                		src/squid.conf.default )
       
    97 
    90 
    98 # common targets
    91 # common targets
    99 build:		$(BUILD_32) 
    92 build:		$(BUILD_32) 
   100 
    93 
   101 install:	$(INSTALL_32) 
    94 install:	$(INSTALL_32)