# $FreeBSD: head/www/ufdbguard/Makefile 432897 2017-01-31 03:40:46Z linimon $
PORTNAME= ufdbGuard
PORTVERSION= 1.32.4
PORTVERSION= 1.33.1
CATEGORIES= www
MASTER_SITES= SF/ufdbguard/1.32
MASTER_SITES= SF/ufdbguard/1.33
MAINTAINER= timp87@gmail.com
COMMENT= URL filter for the Squid web proxy
UNIXSOCKETS_DESC= Unix sockets support
.include <bsd.port.pre.mk>
.if ${SSL_DEFAULT:Mopenssl-devel}
BROKEN= Does not build with openssl-devel
.endif
.if ${SSL_DEFAULT:Mlibressl-devel}
BROKEN= Does not build with libressl-devel
post-install:
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/ufdbguardd \
${STAGEDIR}${PREFIX}/bin/ufdbgclient \
${STAGEDIR}${PREFIX}/bin/ufdbAnalyse \
${STAGEDIR}${PREFIX}/bin/ufdbhttpd
.include <bsd.port.mk>
.include <bsd.port.post.mk>
TIMESTAMP = 1480157749
SHA256 (ufdbGuard-1.32.4.tar.gz) = 037d2652087a544e4bfa10fefcb9e155e730536baf39331b3e9dca26c605e3df
SHA256 (ufdbGuard-1.33.1.tar.gz) = f927410049e0ba8d1757daf3de67bb1bb1bf1e5caa1d51f19ed052b52f135a92
SIZE (ufdbGuard-1.32.4.tar.gz) = 2499206
SIZE (ufdbGuard-1.33.1.tar.gz) = 2481303
--- src/Makefile.in.orig 2016-10-19 19:37:29 UTC
--- src/Makefile.in.orig 2017-03-14 18:52:13 UTC
+++ src/Makefile.in
@@ -224,7 +224,7 @@ install.bin: ufdbGenTable ufdbAnalyse uf
$(INSTALL_PROGRAM) ufdb_top_urls.pl $(DESTDIR)$(bindir)/ufdb_top_urls
--- src/check_config_file.orig 2015-06-09 01:03:32 UTC
--- src/check_config_file.orig 2017-03-01 14:25:22 UTC
+++ src/check_config_file
@@ -32,16 +32,6 @@ then
exit 1
fi
-if [ ! -f $CONFIG.pre-v1.32 ]
-if [ ! -f $CONFIG.pre-v1.33 ]
-then
- cp $CONFIG $CONFIG.pre-v1.32
- cp $CONFIG $CONFIG.pre-v1.33
- if [ ! -f $CONFIG.pre-v1.32 ]
- if [ ! -f $CONFIG.pre-v1.33 ]
- then
- echo "cannot copy configuration file to $CONFIG.pre-v1.32"
- echo "cannot copy configuration file to $CONFIG.pre-v1.33"
- exit 1
- fi
-fi
if [ ! -w $CONFIG ]
then
chmod u+w $CONFIG
@@ -340,7 +330,6 @@ then
@@ -496,7 +486,6 @@ then
echo "It is recommended to verify all ACLs for the inclusion of these URL categories ******"
-echo "The original configuration file is saved in $CONFIG.pre-v1.32"
-echo "The original configuration file is saved in $CONFIG.pre-v1.33"
echo
exit 0
--- src/install_etcfiles.sh.in.orig 2016-08-02 02:36:07 UTC
--- src/install_etcfiles.sh.in.orig 2017-02-27 13:27:26 UTC
+++ src/install_etcfiles.sh.in
@@ -25,15 +25,6 @@ then
DESTDIR=${RPM_BUILD_ROOT:-}
esac
@@ -395,14 +384,3 @@ fi
@@ -395,16 +384,3 @@ fi
# TODO: copy parameters from ufdbUpdate to $SYSCFGFILE ************************************************************
fix_piddir_permissions
-
-SERVICE=`grep -E -e ufdbguardd /etc/services`
-# the addition of the ufdbguardd service to /etc/services is deiabled since
-if [ "$SERVICE" = "" ]
-# ufdbguardd uses by default a named socket.
-# SERVICE=`grep -E -e ufdbguardd $DESTDIR/etc/services`
- (
-# if [ "$SERVICE" = "" ]
- echo ""
-# then
- echo "# for URLfilterDB daemon : "
-# (
- echo "ufdbguardd 3977/tcp"
-# echo ""
- ) >> /etc/services
-# echo "# for URLfilterDB daemon : "
-# echo "ufdbguardd 3977/tcp"
-# ) >> $DESTDIR/etc/services
-# fi
--- src/sg.h.in.orig 2017-03-26 18:55:50 UTC
+++ src/sg.h.in
@@ -56,6 +56,8 @@ extern "C" {
#define YY_NEVER_INTERACTIVE 1
+#include <netinet/in.h>
+#include <sys/socket.h>
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
--- src/ufdbGuard.conf.in.orig 2016-10-16 22:05:14 UTC
--- src/ufdbGuard.conf.in.orig 2017-03-08 20:47:38 UTC
+++ src/ufdbGuard.conf.in
@@ -33,7 +33,7 @@ logall off
# valid version numbers are: 2.6, 2.7, 3.0, 3.1, 3.2, 3.3, 3.4, 3.5 and 4.0