diff --git a/www/ufdbguard/Makefile b/www/ufdbguard/Makefile index 7101df5a4ffb..9cb76966c5f2 100644 --- a/www/ufdbguard/Makefile +++ b/www/ufdbguard/Makefile @@ -1,70 +1,66 @@ PORTNAME= ufdbGuard -PORTVERSION= 1.35.3 -PORTREVISION= 1 +PORTVERSION= 1.35.7 CATEGORIES= www MASTER_SITES= SF/${PORTNAME:tl}/1.35 MAINTAINER= timp87@gmail.com COMMENT= URL filter for the Squid web proxy WWW= https://www.urlfilterdb.com/ LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/COPYING USES= compiler:c11 perl5 shebangfix ssl USE_RC_SUBR= ufdbguardd SHEBANG_FILES= samples/URLblocked.cgi GNU_CONFIGURE= yes -CONFIGURE_ARGS= --with-ssl=${OPENSSLBASE} \ - --with-ssl-lib=${OPENSSLLIB} \ - --with-ssl-inc=${OPENSSLINC} \ - --with-bz2=/usr \ +CONFIGURE_ARGS= --with-bz2-inc=/usr/include \ --with-bz2-lib=/usr/lib \ - --with-bz2-inc=/usr/include \ - --with-ufdb-user=root \ - --with-ufdb-mandir=${PREFIX}/share/man \ + --with-bz2=/usr \ + --with-ssl-inc=${OPENSSLINC} \ + --with-ssl-lib=${OPENSSLLIB} \ + --with-ssl=${OPENSSLBASE} \ + --with-ufdb-config=${ETCDIR} \ + --with-ufdb-dbhome=${DBDIR} \ + --with-ufdb-imagesdir=${EXAMPLESDIR}/images \ --with-ufdb-logdir=${LOGDIR} \ + --with-ufdb-mandir=${PREFIX}/share/man \ --with-ufdb-piddir=${RUNDIR} \ --with-ufdb-samplesdir=${EXAMPLESDIR} \ - --with-ufdb-config=${ETCDIR} \ - --with-ufdb-dbhome=${DBDIR} \ - --with-ufdb-imagesdir=${EXAMPLESDIR}/images + --with-ufdb-user=root MAKE_JOBS_UNSAFE= yes SUB_FILES= pkg-message -SUB_LIST= PORTNAME=${PORTNAME} \ - USERS=${USERS} \ +SUB_LIST= DBDIR=${DBDIR} \ + PORTNAME=${PORTNAME} \ RUNDIR=${RUNDIR} \ - DBDIR=${DBDIR} + USERS=${USERS} USERS= ufdb GROUPS= ${USERS} -PLIST_SUB= USERS=${USERS} \ +PLIST_SUB= DBDIR=${DBDIR} \ GROUPS=${GROUPS} \ + LOGDIR=${LOGDIR} \ RUNDIR=${RUNDIR} \ - DBDIR=${DBDIR} \ - LOGDIR=${LOGDIR} - -OPTIONS_DEFINE= UNIXSOCKETS EXAMPLES + USERS=${USERS} -UNIXSOCKETS_DESC= Unix sockets support -UNIXSOCKETS_CONFIGURE_WITH= unix-sockets +OPTIONS_DEFINE= EXAMPLES DBDIR= /var/db/${PORTNAME} LOGDIR= /var/log/${PORTNAME} RUNDIR= /var/run/${PORTNAME} post-install: @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/ufdbguardd \ ${STAGEDIR}${PREFIX}/bin/ufdbgclient \ ${STAGEDIR}${PREFIX}/bin/ufdbsignal \ ${STAGEDIR}${PREFIX}/bin/ufdbGenTable \ ${STAGEDIR}${PREFIX}/bin/ufdbAnalyse \ ${STAGEDIR}${PREFIX}/bin/ufdbhttpd .include diff --git a/www/ufdbguard/distinfo b/www/ufdbguard/distinfo index c2e6f20fdff3..901500a810ab 100644 --- a/www/ufdbguard/distinfo +++ b/www/ufdbguard/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1604849332 -SHA256 (ufdbGuard-1.35.3.tar.gz) = eb6134b2b5430da3006cd28a0977034f3ff8df9d5a72058e2e9d956f2d57c449 -SIZE (ufdbGuard-1.35.3.tar.gz) = 1738159 +TIMESTAMP = 1712588046 +SHA256 (ufdbGuard-1.35.7.tar.gz) = 2707c6786fe3cf0b1199f0f970883838e8dd529741db7c4a728788824fcec8a4 +SIZE (ufdbGuard-1.35.7.tar.gz) = 1711624 diff --git a/www/ufdbguard/files/patch-configure b/www/ufdbguard/files/patch-configure new file mode 100644 index 000000000000..38d7189990fc --- /dev/null +++ b/www/ufdbguard/files/patch-configure @@ -0,0 +1,18 @@ +--- configure.orig 2024-03-20 15:31:17 UTC ++++ configure +@@ -7847,7 +7847,6 @@ then + echo " The bash package is most likely on your UNIX distribution media." + echo " It is required to install the bash package and rerun configure." + echo +- exit 1 + fi + + # Extract the first word of "wget", so it can be a program name with args. +@@ -7905,7 +7904,6 @@ then + echo " The wget package is most likely on your UNIX distribution media." + echo " It is required to install the wget package and rerun configure." + echo +- exit 1 + fi + + # Extract the first word of "curl", so it can be a program name with args. diff --git a/www/ufdbguard/files/patch-src_Makefile.in b/www/ufdbguard/files/patch-src_Makefile.in index e2e5372afed4..ed838ade98a4 100644 --- a/www/ufdbguard/files/patch-src_Makefile.in +++ b/www/ufdbguard/files/patch-src_Makefile.in @@ -1,24 +1,32 @@ ---- src/Makefile.in.orig 2019-02-04 19:45:45 UTC +--- src/Makefile.in.orig 2024-03-21 13:58:11 UTC +++ src/Makefile.in -@@ -227,7 +227,7 @@ install.bin: ufdbGenTable ufdbAnalyse ufdbhttpd create +@@ -237,7 +237,7 @@ install.bin: ufdbGenTable ufdbAnalyse ufdbhttpd create $(INSTALL_PROGRAM) ufdb_top_urls.pl $(DESTDIR)$(bindir)/ufdb_top_urls $(INSTALL_PROGRAM) ufdb_top_users.pl $(DESTDIR)$(bindir)/ufdb_top_users @if [ -f ufdbpeek ] ; then $(INSTALL_PROGRAM) ufdbpeek $(DESTDIR)$(bindir)/ufdbpeek ; fi - @if [ -f $(DESTDIR)$(cfgdir)/ufdbGuard.conf ] ; then echo "$(DESTDIR)$(cfgdir)/ufdbGuard.conf already exists." ; else $(INSTALL_DATA) ufdbGuard.conf $(DESTDIR)$(cfgdir)/ufdbGuard.conf ; fi + @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 install.pid:: if [ $(piddir) != /var/tmp ] ; then $(INSTALL) -d $(DESTDIR)$(piddir) ; fi -@@ -239,10 +239,10 @@ install.update:: +@@ -249,10 +249,10 @@ install.update:: install.security:: echo "Installing SSL root certificates" - $(INSTALL_DATA) security/cacerts $(DESTDIR)$(dbhome)/security/cacerts + $(INSTALL_DATA) security/cacerts $(DESTDIR)$(dbhome)/security/cacerts.sample install.etc:: - sh ./install_etcfiles.sh $(DESTDIR)$(cfgdir) $(DESTDIR)$(bindir) $(DESTDIR)$(syscfgfile) + sh ./install_etcfiles.sh $(DESTDIR)$(cfgdir) $(DESTDIR)$(bindir) install.debug:: -if [ -x /usr/bin/debuginfo-install ] ; then /usr/bin/debuginfo-install glibc ; fi +@@ -269,7 +269,6 @@ install.log:: + + createdirs:: + echo "Creating directories ..." +- $(INSTALL) -d $(DESTDIR)/usr/lib/systemd/system + $(INSTALL) -d $(DESTDIR)$(bindir) + $(INSTALL) -o $(RUNAS) -d $(DESTDIR)$(logdir) + $(INSTALL) -d $(DESTDIR)$(cfgdir) diff --git a/www/ufdbguard/files/patch-src_install__etcfiles.sh.in b/www/ufdbguard/files/patch-src_install__etcfiles.sh.in index 5fa9195cd556..6a4e7f76e729 100644 --- a/www/ufdbguard/files/patch-src_install__etcfiles.sh.in +++ b/www/ufdbguard/files/patch-src_install__etcfiles.sh.in @@ -1,35 +1,35 @@ ---- src/install_etcfiles.sh.in.orig 2019-02-27 23:03:09 UTC +--- src/install_etcfiles.sh.in.orig 2024-03-22 12:30:31 UTC +++ src/install_etcfiles.sh.in @@ -22,19 +22,6 @@ else DESTDIR="" fi -# the installer must be root to install files under /etc and we check for this -# but the exception is rpmbuild. When a package is made using rpmbuild, -# it is comon practise to _NOT_ run the install as root. -ID=`id -un` -if [ "$ID" != root -a $PKGNAME != ufdbGuard ] -then - echo - echo "*** You must be root but you appear to be $ID. ***" - echo "The ufdb startup script cannot be installed..." - echo - exit 1 -fi - OS="@ufdb_os_type@" INITDIR="@ufdb_initdir@" -@@ -281,12 +268,10 @@ fix_piddir_permissions () { +@@ -293,12 +280,10 @@ fix_piddir_permissions () { case $OS in - freebsd) install_freebsd ;; openbsd) install_openbsd ;; linux_systemd) install_linux_systemd ;; smoothwall) install_smoothwall ;; solaris_smf) install_solaris_smf ;; - *) install_unix ;; esac diff --git a/www/ufdbguard/files/patch-src_mtserver_Makefile.in b/www/ufdbguard/files/patch-src_mtserver_Makefile.in index 37ac2487116b..ac158fced37c 100644 --- a/www/ufdbguard/files/patch-src_mtserver_Makefile.in +++ b/www/ufdbguard/files/patch-src_mtserver_Makefile.in @@ -1,11 +1,11 @@ ---- src/mtserver/Makefile.in.orig 2020-11-01 13:42:44 UTC +--- src/mtserver/Makefile.in.orig 2024-03-21 13:58:11 UTC +++ src/mtserver/Makefile.in @@ -16,7 +16,7 @@ CC = @CC@ CXX = @CXX@ --CFLAGS = @CFLAGS@ -I. -I.. # -DUFDB_TEST_PROXY -+CFLAGS = @CFLAGS@ -D__BSD_VISIBLE=1 -I. -I.. - CXXFLAGS= @CXXFLAGS@ -I. -I.. +-CFLAGS = @CFLAGS@ -I. -I.. -Wall -Wextra -Wmissing-prototypes -Wstrict-prototypes -Wold-style-definition ++CFLAGS = @CFLAGS@ -D__BSD_VISIBLE=1 -I. -I.. -Wall -Wextra -Wmissing-prototypes -Wstrict-prototypes -Wold-style-definition + CXXFLAGS= @CXXFLAGS@ -I. -I.. -Wall -Wextra -Wmissing-declarations CPPFLAGS= @CPPFLAGS@ - LDFLAGS = @LDFLAGS@ + LDFLAGS = @LDFLAGS@ # -Wl,-z,relro -Wl,-z,now diff --git a/www/ufdbguard/files/pkg-message.in b/www/ufdbguard/files/pkg-message.in index fa4f167cd4db..32510a1d6d67 100644 --- a/www/ufdbguard/files/pkg-message.in +++ b/www/ufdbguard/files/pkg-message.in @@ -1,19 +1,15 @@ [ { type: install message: <