FreeBSD Bugzilla – Attachment 173975 Details for
Bug 212044
[NEW PORT] www/ufdbguard: squidGuard fork compatible with newer squid versions
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
new port
ufdbguard.shar2 (text/plain), 13.13 KB, created by
Pavel Timofeev
on 2016-08-23 17:49:39 UTC
(
hide
)
Description:
new port
Filename:
MIME Type:
Creator:
Pavel Timofeev
Created:
2016-08-23 17:49:39 UTC
Size:
13.13 KB
patch
obsolete
># This is a shell archive. Save it in a file, remove anything before ># this line, and then unpack it by entering "sh file". Note, it may ># create directories; files and directories will be owned by you and ># have default permissions. ># ># This archive contains: ># ># ufdbguard ># ufdbguard/pkg-plist ># ufdbguard/files ># ufdbguard/files/patch-src_Makefile.in ># ufdbguard/files/patch-src_check__config__file ># ufdbguard/files/patch-src_install__etcfiles.sh.in ># ufdbguard/files/patch-src_ufdbGuard.conf.in ># ufdbguard/files/ufdbguardd.in ># ufdbguard/files/pkg-message.in ># ufdbguard/distinfo ># ufdbguard/Makefile ># ufdbguard/pkg-descr ># >echo c - ufdbguard >mkdir -p ufdbguard > /dev/null 2>&1 >echo x - ufdbguard/pkg-plist >sed 's/^X//' >ufdbguard/pkg-plist << '8892ae647df494b32ca744a05e01e866' >Xbin/ufdb-pstack >Xbin/ufdbAnalyse >Xbin/ufdbConvertDB >Xbin/ufdbGenTable >Xbin/ufdbUpdate >Xbin/ufdb_analyse_urls >Xbin/ufdb_analyse_users >Xbin/ufdb_top_urls >Xbin/ufdb_top_users >Xbin/ufdbgclient >Xbin/ufdbguardd >Xbin/ufdbhttpd >Xbin/ufdbsignal >X@sample %%ETCDIR%%/ufdbGuard.conf.sample >Xman/man1/ufdb_analyse_urls.1.gz >Xman/man1/ufdb_analyse_users.1.gz >Xman/man1/ufdb_top_urls.1.gz >Xman/man1/ufdb_top_users.1.gz >Xman/man8/ufdbgclient.8.gz >Xman/man8/ufdbguardd.8.gz >Xman/man8/ufdbhttpd.8.gz >Xman/man8/ufdbupdate.8.gz >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/URLblocked.cgi >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/execdomainlist.sh >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/execuserlist.sh >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/images/default.flv >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/images/default.mp3 >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/images/default.mpeg >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/images/default.wmv >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/images/forbidden-normal-de.png >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/images/forbidden-normal-en.png >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/images/forbidden-normal-es.png >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/images/forbidden-normal-fr.png >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/images/forbidden-normal-it.png >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/images/forbidden-normal-nl.png >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/images/forbidden-normal-pl.png >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/images/forbidden-normal-pt.png >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/images/forbidden-normal-sv.png >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/images/forbidden-normal-tr.png >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/images/no-ads.png >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/images/smallcross.png >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/images/square.png >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/images/transparent.png >X@sample %%DBDIR%%/security/cacerts.sample >X@dir(%%USERS%%,%%GROUPS%%,750) %%DBDIR%%/security >X@dir(%%USERS%%,%%GROUPS%%,750) %%DBDIR%% >X@dir(%%USERS%%,%%GROUPS%%,750) %%LOGDIR%% >X@dir(%%USERS%%,%%GROUPS%%,750) %%RUNDIR%% >8892ae647df494b32ca744a05e01e866 >echo c - ufdbguard/files >mkdir -p ufdbguard/files > /dev/null 2>&1 >echo x - ufdbguard/files/patch-src_Makefile.in >sed 's/^X//' >ufdbguard/files/patch-src_Makefile.in << 'bc3cfa0f77abd6e508deff2c5003e38c' >X--- src/Makefile.in.orig 2016-02-18 17:47:07 UTC >X+++ src/Makefile.in >X@@ -210,7 +210,7 @@ install.bin: ufdbGenTable ufdbAnalyse uf >X $(INSTALL_PROGRAM) ufdb_top_urls.pl $(DESTDIR)$(bindir)/ufdb_top_urls >X $(INSTALL_PROGRAM) ufdb_top_users.pl $(DESTDIR)$(bindir)/ufdb_top_users >X @if [ -f ufdbpeek ] ; then $(INSTALL_PROGRAM) ufdbpeek $(DESTDIR)$(bindir)/ufdbpeek ; fi >X- @if [ -f $(DESTDIR)$(cfgdir)/ufdbGuard.conf ] ; then echo "$(DESTDIR)$(cfgdir)/ufdbGuard.conf already exists." ; else $(INSTALL_DATA) ufdbGuard.conf $(DESTDIR)$(cfgdir)/ufdbGuard.conf ; fi >X+ @if [ -f $(DESTDIR)$(cfgdir)/ufdbGuard.conf ] ; then echo "$(DESTDIR)$(cfgdir)/ufdbGuard.conf already exists." ; else $(INSTALL_DATA) ufdbGuard.conf $(DESTDIR)$(cfgdir)/ufdbGuard.conf.sample ; fi >X >X install.pid:: >X if [ $(piddir) != /var/tmp ] ; then $(INSTALL) -d $(DESTDIR)$(piddir) ; fi >X@@ -221,10 +221,10 @@ install.update:: >X >X install.security:: >X echo "Installing SSL root certificates" >X- $(INSTALL_DATA) security/cacerts $(DESTDIR)$(dbhome)/security/cacerts >X+ $(INSTALL_DATA) security/cacerts $(DESTDIR)$(dbhome)/security/cacerts.sample >X >X install.etc:: >X- sh ./install_etcfiles.sh $(DESTDIR)$(cfgdir) $(DESTDIR)$(bindir) $(DESTDIR)$(syscfgfile) >X+ sh ./install_etcfiles.sh $(DESTDIR)$(cfgdir) $(DESTDIR)$(bindir) >X >X install.webmin:: >X @echo >bc3cfa0f77abd6e508deff2c5003e38c >echo x - ufdbguard/files/patch-src_check__config__file >sed 's/^X//' >ufdbguard/files/patch-src_check__config__file << '3b926666e5de9899de824a1abc5f555a' >X--- src/check_config_file.orig 2015-06-09 01:03:38 UTC >X+++ src/check_config_file >X@@ -32,16 +32,6 @@ then >X exit 1 >X fi >X >X-if [ ! -f $CONFIG.pre-v1.31 ] >X-then >X- cp $CONFIG $CONFIG.pre-v1.31 >X- if [ ! -f $CONFIG.pre-v1.31 ] >X- then >X- echo "cannot copy configuration file to $CONFIG.pre-v1.31" >X- exit 1 >X- fi >X-fi >X- >X if [ ! -w $CONFIG ] >X then >X chmod u+w $CONFIG >X@@ -301,7 +291,6 @@ then >X echo "It is recommended to verify all ACLs for the inclusion of these URL categories *****" >X fi >X >X-echo "The original configuration file is saved in $CONFIG.pre-v1.31" >X echo >X >X exit 0 >3b926666e5de9899de824a1abc5f555a >echo x - ufdbguard/files/patch-src_install__etcfiles.sh.in >sed 's/^X//' >ufdbguard/files/patch-src_install__etcfiles.sh.in << '63870ea47cf02841ec1685de90206b32' >X--- src/install_etcfiles.sh.in.orig 2015-06-09 01:25:36 UTC >X+++ src/install_etcfiles.sh.in >X@@ -335,10 +335,8 @@ fix_piddir_permissions () { >X >X >X case $OS in >X- freebsd) install_freebsd ;; >X solaris_smf) install_solaris_smf ;; >X linux_systemd) install_linux_systemd ;; >X- *) install_unix ;; >X esac >X >X >X@@ -355,14 +353,3 @@ fi >X # TODO: copy parameters from ufdbUpdate to $SYSCFGFILE ************************************************************ >X >X fix_piddir_permissions >X- >X-SERVICE=`grep -E -e ufdbguardd /etc/services` >X-if [ "$SERVICE" = "" ] >X-then >X- ( >X- echo "" >X- echo "# for URLfilterDB daemon : " >X- echo "ufdbguardd 3977/tcp" >X- ) >> /etc/services >X-fi >X- >63870ea47cf02841ec1685de90206b32 >echo x - ufdbguard/files/patch-src_ufdbGuard.conf.in >sed 's/^X//' >ufdbguard/files/patch-src_ufdbGuard.conf.in << '81c5ed14cc9e92683d0ffa631974c0a8' >X--- src/ufdbGuard.conf.in.orig 2016-02-22 21:37:07 UTC >X+++ src/ufdbGuard.conf.in >X@@ -28,7 +28,7 @@ logall off >X # communicates with Squid using the version-dependent protocol. >X # valid version numbers are: 2.6, 2.7, 3.0, 3.1, 3.2, 3.3, 3.4 and 3.5 >X ## EDIT THE NEXT LINE FOR LOCAL CONFIGURATION: >X-squid-version "3.3" >X+squid-version "3.5" >X >X # When a URL database is reloaded/updated, it is not possible to >X # perform URL lookups. The next parameters defines what to respond >81c5ed14cc9e92683d0ffa631974c0a8 >echo x - ufdbguard/files/ufdbguardd.in >sed 's/^X//' >ufdbguard/files/ufdbguardd.in << 'ea9a054ae0b4a235e0b22b26e17ed542' >X#!/bin/sh >X# >X# $FreeBSD: $ >X# >X# PROVIDE: ufdbguardd >X# REQUIRE: LOGIN >X# KEYWORD: shutdown >X# >X >X# You can activate this daemon and set its options in any of the following files: >X# /etc/rc.conf >X# /etc/rc.conf.local >X# /etc/rc.conf.d/ufdbguardd >X# /etc/rc.conf.d/ufdbguardd/${anyfile} >X# ${local_startup}/rc.conf.d/ufdbguardd >X# ${local_startup}/rc.conf.d/ufdbguardd/${anyfile} >X# >X# Note: ${local_startup} is usually /usr/local/etc >X# >X# Variables you can define in one of these files: >X# ufdbguardd_enable (str): Activates the daemon. >X# Default: NO >X# ufdbguardd_flags (str): Additional flags passed to the daemon as cmd args. >X# Default: none >X# ufdbguardd_conf (str): The configuration file that ufdbguardd should use. >X# Default: %%ETCDIR%%/ufdbGuard.conf >X# ufdbguardd_user (str): The user that should be used to run the ufdbguardd. >X# Default: %%USERS%% >X# ufdbguardd_dbdir (str): The dir where ufdbguardd gets URL filter databases. >X# Default: %%DBDIR%% >X >X. /etc/rc.subr >X >Xname=ufdbguardd >Xrcvar=ufdbguardd_enable >X >Xcommand="%%PREFIX%%/bin/${name}" >X >Xextra_commands="configtest monitor reload rotatelog" >Xconfigtest_cmd=ufdbguardd_configtest >Xrotatelog_cmd=ufdbguardd_rotatelog >Xmonitor_cmd=ufdbguardd_monitor >Xreload_precmd=ufdbguardd_configtest >Xrestart_precmd=ufdbguardd_configtest >Xstart_precmd=ufdbguardd_prestart >X >Xufdbguardd_load_rc_config() >X{ >X : ${ufdbguardd_dbdir:=%%DBDIR%%} >X : ${ufdbguardd_conf:=%%ETCDIR%%/ufdbGuard.conf} >X : ${ufdbguardd_enable:=NO} >X : ${ufdbguardd_user:=%%USERS%%} >X >X ufdbguardd_unixsocket="/tmp/ufdbguardd-[0-9]*" >X >X required_dirs="$ufdbguardd_dbdir %%RUNDIR%%" >X required_files="$ufdbguardd_conf" >X pidfile="%%RUNDIR%%/${name}.pid" >X command_args="-c $ufdbguardd_conf -U $ufdbguardd_user" >X} >X >Xufdbguardd_configtest() >X{ >X echo "Performing sanity check on $name configuration." >X if $command $command_args -C verify; then >X echo "Configuration for $name passes." >X return 0 >X else >X return $? >X fi >X} >X >Xufdbguardd_checksocket() >X{ >X echo "Checking if $name unix socket exists." >X if test -e $ufdbguardd_unixsocket; then >X echo "Unix socket $ufdbguardd_unixsocket exists. Probably stale file after abnormal shutdown. Removing it." >X rm -f $ufdbguardd_unixsocket >X fi >X} >X >Xufdbguardd_prestart() >X{ >X ufdbguardd_configtest && \ >X ufdbguardd_checksocket >X} >X >Xufdbguardd_rotatelog() >X{ >X echo "Rotating $name logfiles." >X sig_reload=USR1 >X unset reload_precmd >X run_rc_command "reload" >X} >X >Xufdbguardd_monitor() >X{ >X echo "Invoking monitor command for $name." >X sig_reload=USR2 >X unset reload_precmd >X run_rc_command "reload" >X} >X >Xload_rc_config $name >Xufdbguardd_load_rc_config >Xrun_rc_command "$1" >ea9a054ae0b4a235e0b22b26e17ed542 >echo x - ufdbguard/files/pkg-message.in >sed 's/^X//' >ufdbguard/files/pkg-message.in << '5153b8be009263a01d7f56c3b67aa7ee' >XPlease, note the following statements about %%PORTNAME%% port: >X >X o it's decided during compilation if ufdbguardd will work through Unix >X or TCP socket. It's set to Unix socket by default and if you want it >X to work via TCP socket unset UNIXSOCKETS port option and rebuild it. >X >X o ufdbUpdate script is left in non-working state for now. >X The only purpose of this script is to download URLfilterDB updates >X using paid subscription and to run it by cron. The script implies on >X sysconfig configuration file which is usuall only for linux systems. >X To make ufdbUpdate work it should be significantly rewritten for >X non-linux systems. It's not worth it due to the fact ufdbUpdate can >X be replaced by much more simple script written by local administator. >5153b8be009263a01d7f56c3b67aa7ee >echo x - ufdbguard/distinfo >sed 's/^X//' >ufdbguard/distinfo << 'bedd708d0404e7dcbd8bb29ff2f740cf' >XSHA256 (ufdbGuard-1.31-16.tar.gz) = 98f491a19a806760374bf2e8441a1cd6a5fb38d168d7ffd576faa81c86db2c83 >XSIZE (ufdbGuard-1.31-16.tar.gz) = 1916237 >bedd708d0404e7dcbd8bb29ff2f740cf >echo x - ufdbguard/Makefile >sed 's/^X//' >ufdbguard/Makefile << '4792a3d42d85f598f3a8ad6bf8707e73' >X# Created by: Pavel Timofeev <timp87@gmail.com> >X# $FreeBSD: >X >XPORTNAME= ufdbGuard >XPORTVERSION= 1.31 >XDISTVERSIONSUFFIX= -16 >XCATEGORIES= www >XMASTER_SITES= SF/ufdbguard/${PORTVERSION} >X >XMAINTAINER= timp87@gmail.com >XCOMMENT= URL filter for the Squid web proxy >X >XLICENSE= GPLv2 >XLICENSE_FILE= ${WRKSRC}/COPYING >X >XWRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} >X >XUSES= perl5 shebangfix ssl >XSHEBANG_FILES= samples/URLblocked.cgi src/ufdb_analyse_urls.pl src/ufdb_top_urls.pl \ >X src/ufdb_analyse_users.pl src/ufdb_top_users.pl >XGNU_CONFIGURE= yes >XUSE_RC_SUBR= ufdbguardd >X >XUSERS= ufdb >XGROUPS= ${USERS} >X >XRUNDIR= /var/run/${PORTNAME} >XDBDIR= /var/db/${PORTNAME} >XLOGDIR= /var/log/${PORTNAME} >X >XPLIST_SUB= USERS=${USERS} \ >X GROUPS=${GROUPS} \ >X RUNDIR=${RUNDIR} \ >X DBDIR=${DBDIR} \ >X LOGDIR=${LOGDIR} >X >XSUB_LIST= PORTNAME=${PORTNAME} \ >X USERS=${USERS} \ >X RUNDIR=${RUNDIR} \ >X DBDIR=${DBDIR} >X >XSUB_FILES= pkg-message >X >XCONFIGURE_ARGS= --with-ssl=${OPENSSLBASE} \ >X --with-ssl-lib=${OPENSSLLIB} \ >X --with-ssl-inc=${OPENSSLINC} \ >X --with-bz2=/usr \ >X --with-bz2-lib=/usr/lib \ >X --with-bz2-inc=/usr/include \ >X --with-ufdb-user=root \ >X --with-ufdb-mandir=${MANPREFIX}/man \ >X --with-ufdb-logdir=${LOGDIR} \ >X --with-ufdb-piddir=${RUNDIR} \ >X --with-ufdb-samplesdir=${EXAMPLESDIR} \ >X --with-ufdb-config=${ETCDIR} \ >X --with-ufdb-dbhome=${DBDIR} \ >X --with-ufdb-images_dir=${EXAMPLESDIR}/images >X >XOPTIONS_DEFINE= UNIXSOCKETS >XOPTIONS_DEFAULT= UNIXSOCKETS >X >XUNIXSOCKETS_CONFIGURE_ON= --with-unix-sockets >XUNIXSOCKETS_CONFIGURE_OFF= --without-unix-sockets >X >XUNIXSOCKETS_DESC= Unix sockets support >X >Xpost-install: >X ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/ufdbguardd \ >X ${STAGEDIR}${PREFIX}/bin/ufdbgclient \ >X ${STAGEDIR}${PREFIX}/bin/ufdbsignal \ >X ${STAGEDIR}${PREFIX}/bin/ufdbGenTable \ >X ${STAGEDIR}${PREFIX}/bin/ufdbAnalyse \ >X ${STAGEDIR}${PREFIX}/bin/ufdbhttpd >X >X.include <bsd.port.mk> >4792a3d42d85f598f3a8ad6bf8707e73 >echo x - ufdbguard/pkg-descr >sed 's/^X//' >ufdbguard/pkg-descr << 'f1b5ec0781eed97ff7d76224ad68cfd8' >XufdbGuard is a URL filter for the Squid web proxy. Besides blocking access from >XPCs and smartphones to undesired websites, ufdbGuard has safety features to make >Xbrowsing safer and to block remote access. ufdbGuard supports configuration of >Xgroups with different web access policies, SafeSearch enforcement, SSH tunnel >Xdetection, safer HTTPS traffic, time-based access rules and much more. >X >XWWW: https://www.urlfilterdb.com/ >f1b5ec0781eed97ff7d76224ad68cfd8 >exit >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
timp87
:
maintainer-approval+
Actions:
View
|
Diff
Attachments on
bug 212044
:
173929
|
173975
|
173987