From owner-svn-ports-all@FreeBSD.ORG Tue Aug 19 08:27:56 2014 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 88CE871C; Tue, 19 Aug 2014 08:27:56 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 733E23F18; Tue, 19 Aug 2014 08:27:56 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id s7J8RuPN002297; Tue, 19 Aug 2014 08:27:56 GMT (envelope-from marino@FreeBSD.org) Received: (from marino@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id s7J8Rt4A002295; Tue, 19 Aug 2014 08:27:55 GMT (envelope-from marino@FreeBSD.org) Message-Id: <201408190827.s7J8Rt4A002295@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: marino set sender to marino@FreeBSD.org using -f From: John Marino Date: Tue, 19 Aug 2014 08:27:55 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r365365 - head/www/squid33 X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Aug 2014 08:27:56 -0000 Author: marino Date: Tue Aug 19 08:27:55 2014 New Revision: 365365 URL: http://svnweb.freebsd.org/changeset/ports/365365 QAT: https://qat.redports.org/buildarchive/r365365/ Log: www/squid33: Fix basic_auth helper, cleanup, and rework @sample files basic_db_auth ext_sql_session_acl is not installed it's perl5.16 later WARNING: no_suid: setuid(0): (1) Operation not permitted http://www.squid-cache.org/mail-archive/squid-users/201301/0390.html http://www.squid-cache.org/mail-archive/squid-dev/201305/0172.html Change to .sample from .default the configuration file name use criteria change of clang The trimmed of PLIST_FILES It does not require the deletion of .orig .bak. PR: 192824 Submitted by: takefu (airport.fm) Modified: head/www/squid33/Makefile head/www/squid33/distinfo Modified: head/www/squid33/Makefile ============================================================================== --- head/www/squid33/Makefile Tue Aug 19 07:44:30 2014 (r365364) +++ head/www/squid33/Makefile Tue Aug 19 08:27:55 2014 (r365365) @@ -18,9 +18,10 @@ PATCH_SITES= http://www.squid-cache.org/ http://www2.us.squid-cache.org/%SUBDIR%/ \ http://www1.at.squid-cache.org/%SUBDIR%/ \ http://www.eu.squid-cache.org/%SUBDIR%/ \ - http://www1.jp.squid-cache.org/%SUBDIR%/ + http://www1.jp.squid-cache.org/%SUBDIR%/ \ + http://master.squid-cache.org/~amosjeffries/patches/:nosid PATCH_SITE_SUBDIR= Versions/v3/${PORTVERSION:R}/changesets -PATCHFILES= #empty +PATCHFILES= FreeBSD_silence_nosuid_mk1.patch:nosid MAINTAINER= ports@FreeBSD.org COMMENT= HTTP Caching Proxy @@ -32,7 +33,8 @@ SQUID_STABLE_VER= 11 CONFLICTS_INSTALL= squid-2.[0-9].* squid32-* cacheboy-[0-9]* lusca-head-[0-9]* USES= perl5 tar:bzip2 shebangfix -SHEBANG_FILES= scripts/*.pl contrib/*.pl src/*.pl tools/*.pl +SHEBANG_FILES= scripts/*.pl contrib/*.pl src/*.pl tools/*.pl\ + helpers/external_acl/kerberos_ldap_group/cert_tool GNU_CONFIGURE= yes USE_RC_SUBR= squid @@ -93,6 +95,25 @@ OPTIONS_DEFAULT= AUTH_KERB AUTH_NIS FS_A ECAP_USES= pkgconfig:build +etc_files= squid/cachemgr.conf.sample\ + squid/errorpage.css.sample\ + squid/mime.conf.sample\ + squid/msntauth.conf.sample\ + squid/squid.conf.sample +change_files= ChangeLog\ + contrib/nextstep/makepkg\ + contrib/nextstep/post_install\ + errors/Makefile.am\ + errors/Makefile.in\ + helpers/basic_auth/MSNT/Makefile.am\ + helpers/basic_auth/MSNT/Makefile.in\ + src/Makefile.am\ + src/Makefile.in\ + src/cf_gen.cc\ + src/squid.8.in\ + tools/Makefile.am\ + tools/Makefile.in + icon_silk_files= application.png arrow_up.png bomb.png box.png \ bricks.png bullet_red.png cd.png chart_line.png \ compress.png computer_link.png css.png cup.png \ @@ -160,7 +181,8 @@ libexec= cachemgr.cgi \ diskd \ helper-mux.pl -.if !defined(SQUID_CONFIGURE_ARGS) || ${SQUID_CONFIGURE_ARGS:M*--disable-unlinkd*} == "" +.if !defined(SQUID_CONFIGURE_ARGS)\ + || ${SQUID_CONFIGURE_ARGS:M*--disable-unlinkd*} == "" libexec+= unlinkd .endif @@ -187,7 +209,7 @@ CONFIGURE_ARGS= --with-default-user=squi .include -.if ${CC:T:Mclang} == "clang" || ${CXX:T:Mclang++} == "clang++" \ +.if ${CC:T:Mclang*} || ${CXX:T:Mclang++*} \ || ${OPSYS} == FreeBSD && ${OSVERSION} >= 1000024 CXXFLAGS+= -Wno-unused-private-field .endif @@ -214,15 +236,12 @@ libexec+= basic_db_auth \ ext_unix_group_acl \ ntlm_fake_auth \ ntlm_smb_lm_auth -PLIST_FILES+= basic_getpwnam_auth.8.gz basic_ncsa_auth.8.gz \ - basic_pam_auth.8.gz basic_radius_auth.8.gz basic_db_auth.8.gz \ - digest_file_auth.8.gz ext_file_userip_acl.8.gz \ - ext_time_quota_acl.8.gz ext_unix_group_acl.8.gz .if ${PORT_OPTIONS:MAUTH_LDAP} USE_OPENLDAP= yes CFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib -PLIST_FILES+= basic_ldap_auth.8.gz ext_ldap_group_acl.8.gz +PLIST_FILES+= man/man8/basic_ldap_auth.8.gz\ + man/man8/ext_ldap_group_acl.8.gz basic_auth+= LDAP external_acl+= LDAP_group libexec+= basic_ldap_auth ext_ldap_group_acl @@ -232,7 +251,7 @@ LIB_DEPENDS+= libsasl2.so:${PORTSDIR}/se CFLAGS+= -I${LOCALBASE}/include CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib -PLIST_FILES+= basic_sasl_auth.8.gz +PLIST_FILES+= man/man8/basic_sasl_auth.8.gz basic_auth+= SASL libexec+= basic_sasl_auth .endif @@ -243,14 +262,14 @@ basic_auth+= SMB external_acl+= wbinfo_group libexec+= basic_smb_auth basic_smb_auth.sh \ ext_wbinfo_group_acl -PLIST_FILES+= ext_wbinfo_group_acl.8.gz +PLIST_FILES+= man/man8/ext_wbinfo_group_acl.8.gz .endif .if ${PORT_OPTIONS:MAUTH_SQL} USE_MYSQL= yes RUN_DEPENDS+= p5-DBD-mysql>=0:${PORTSDIR}/databases/p5-DBD-mysql external_acl+= SQL_session libexec+= ext_sql_session_acl -PLIST_FILES+= ext_sql_session_acl.8.gz +PLIST_FILES+= man/man8/ext_sql_session_acl.8.gz .endif # POLA: allow the old global make.conf(5) (pre src.conf(5)) defines, too: .if ${PORT_OPTIONS:MAUTH_NIS} && !defined(NO_NIS) && !defined(WITHOUT_NIS) @@ -262,7 +281,7 @@ libexec+= basic_nis_auth negotiate_auth= kerberos wrapper libexec+= negotiate_kerberos_auth negotiate_kerberos_auth_test \ negotiate_wrapper_auth -PLIST_FILES+= negotiate_kerberos_auth.8.gz +PLIST_FILES+= man/man8/negotiate_kerberos_auth.8.gz # the kerberos_ldap_group external helper depends on LDAP and SASL: .if ${PORT_OPTIONS:MAUTH_LDAP} && ${PORT_OPTIONS:MAUTH_SASL} external_acl+= kerberos_ldap_group @@ -340,7 +359,11 @@ libexec+= ssl_crtd .endif .if ${PORT_OPTIONS:MICMP} CONFIGURE_ARGS+= --enable-icmp -libexec+= pinger +PLIST_FILES+= "@mode 4510"\ + "@group squid"\ + libexec/squid/pinger\ + "@group"\ + "@mode" .endif .if ${PORT_OPTIONS:MDNS_HELPER} CONFIGURE_ARGS+= --disable-internal-dns @@ -446,14 +469,10 @@ WITH_DEBUG?= yes CONFIGURE_ARGS+= ${SQUID_CONFIGURE_ARGS} PLIST_DIRS= %%ETCDIR%%/icons/silk %%ETCDIR%%/icons libexec/squid -PLIST_FILES= "@sample %%ETCDIR%%/cachemgr.conf.sample" \ - "@sample %%ETCDIR%%/errorpage.css.sample" \ +PLIST_FILES+= ${etc_files:S,^,"@sample etc/",} \ %%ETCDIR%%/icons/SN.png \ - "@sample %%ETCDIR%%/mime.conf.sample" \ - %%ETCDIR%%/mib.txt \ - "@sample %%ETCDIR%%/msntauth.conf.sample" \ - %%ETCDIR%%/squid.conf.documented \ - "@sample %%ETCDIR%%/squid.conf.sample" \ + %%ETCDIR%%/mib.txt\ + %%ETCDIR%%/squid.conf.documented\ ${icon_silk_files:S,^,%%ETCDIR%%/icons/silk/,} \ ${libexec:S,^,libexec/squid/,} ${sbin:S,^,sbin/,} \ man/man8/cachemgr.cgi.8.gz \ @@ -465,7 +484,6 @@ PLIST_FILES= "@sample %%ETCDIR%%/cachemg man/man8/digest_file_auth.8.gz \ man/man8/ext_file_userip_acl.8.gz \ man/man8/ext_unix_group_acl.8.gz \ - man/man8/negotiate_kerberos_auth.8.gz \ man/man8/ext_time_quota_acl.8.gz \ man/man8/squid.8.gz \ man/man1/squidclient.1.gz @@ -482,10 +500,18 @@ PLIST_DIRSTRY+= %%ETCDIR%% /var/log/squi /var/squid/logs /var/squid post-patch: - @${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/src/cf.data.pre -# Prevent installation of .orig files by deleting them. - @${FIND} ${WRKSRC} -name '*.bak' -delete - @${FIND} ${WRKSRC} -name '*.orig' -delete + @${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' \ + ${WRKSRC}/src/cf.data.pre + @cd ${WRKSRC} && ${REINPLACE_CMD}\ + -e 's|\.conf\.default|.conf.sample|'\ + -e 's|)\.default|).sample|'\ + ${change_files} + @cd ${WRKSRC} && ${MV} helpers/basic_auth/MSNT/msntauth.conf.default\ + helpers/basic_auth/MSNT/msntauth.conf.sample + @cd ${WRKSRC} && ${MV} src/mime.conf.default src/mime.conf.sample + @${REINPLACE_CMD} -e 's,echo |,echo =head1 |,'\ + ${WRKSRC}/helpers/basic_auth/DB/config.test\ + ${WRKSRC}/helpers/external_acl/SQL_session/config.test post-install: .if ${PORT_OPTIONS:MEXAMPLES} @@ -493,20 +519,10 @@ post-install: ${INSTALL_DATA} ${WRKSRC}/helpers/basic_auth/DB/passwd.sql \ ${STAGEDIR}${EXAMPLESDIR} .endif -.if ${PORT_OPTIONS:MICMP} - ${CHMOD} 4510 ${STAGEDIR}${PREFIX}/libexec/squid/pinger; \ - ${CHGRP} squid ${STAGEDIR}${PREFIX}/libexec/squid/pinger -.endif .if ${PORT_OPTIONS:MDOCS} @${MKDIR} ${STAGEDIR}${DOCSDIR} cd ${WRKSRC} && ${INSTALL_DATA} ${MYDOCS} ${STAGEDIR}${DOCSDIR} .endif ${MKDIR} ${STAGEDIR}/var/squid/logs - (cd ${STAGEDIR}${ETCDIR} && \ - ${MV} cachemgr.conf.default cachemgr.conf.sample ; \ - ${MV} errorpage.css.default errorpage.css.sample ; \ - ${MV} mime.conf.default mime.conf.sample ; \ - ${MV} msntauth.conf.default msntauth.conf.sample ; \ - ${MV} squid.conf.default squid.conf.sample ) .include Modified: head/www/squid33/distinfo ============================================================================== --- head/www/squid33/distinfo Tue Aug 19 07:44:30 2014 (r365364) +++ head/www/squid33/distinfo Tue Aug 19 08:27:55 2014 (r365365) @@ -1,2 +1,4 @@ SHA256 (squid3.3/squid-3.3.11.tar.bz2) = 6b314cd706693522f01d5ab1930f3aa7a9b03a913bc0e699def16cca8d15ea54 SIZE (squid3.3/squid-3.3.11.tar.bz2) = 2989941 +SHA256 (squid3.3/FreeBSD_silence_nosuid_mk1.patch) = 6fd9e55812e18463e92c83d1376e65ca54b2857606f59f4aa1b7d2716af2b72c +SIZE (squid3.3/FreeBSD_silence_nosuid_mk1.patch) = 1295