summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormaya <maya@pkgsrc.org>2017-05-28 11:50:07 +0000
committermaya <maya@pkgsrc.org>2017-05-28 11:50:07 +0000
commitf20a8f8237c9bbf664b70ab4f1d875fb6835b5f6 (patch)
tree292f87a0bc8ea7211d58022ba437af9df3d1b242
parent336565a3b5a5e68d5115530e2e3d4cd1568cfbca (diff)
downloadpkgsrc-f20a8f8237c9bbf664b70ab4f1d875fb6835b5f6.tar.gz
dcc: update to 1.3.159
1.3.159 Stop using /usr/share/mk Makefiles on BSD systems in order to allow building on FreeBSD 11. Add ./configure --with-install-cmd=X --enable-pkg-make to facilitate as FreeBSD port without patches. Use /proc/uptime to compute boottime on Linux. Ignore host names defined as 0.0.0.0. Don't let the Received: header parsing for the sender IP address in dccifd and dccproc be fooled by HELO values like "[127.0.0.1]" Change URLs to use https From Petar Bogdanovic (OWNER).
-rw-r--r--mail/dcc/Makefile24
-rw-r--r--mail/dcc/PLIST3
-rw-r--r--mail/dcc/distinfo18
-rw-r--r--mail/dcc/patches/patch-Makefile.inc.in50
-rw-r--r--mail/dcc/patches/patch-Makefile.inc2.in16
-rw-r--r--mail/dcc/patches/patch-configure35
-rw-r--r--mail/dcc/patches/patch-homedir_Makefile.in10
7 files changed, 69 insertions, 87 deletions
diff --git a/mail/dcc/Makefile b/mail/dcc/Makefile
index d85db123cc8..e0c3389d7eb 100644
--- a/mail/dcc/Makefile
+++ b/mail/dcc/Makefile
@@ -1,13 +1,13 @@
-# $NetBSD: Makefile,v 1.12 2016/07/09 06:38:28 wiz Exp $
+# $NetBSD: Makefile,v 1.13 2017/05/28 11:50:07 maya Exp $
-DISTNAME= dcc-1.3.158
-PKGREVISION= 2
+DISTNAME= dcc-1.3.159
+#PKGREVISION= 2
CATEGORIES= mail
-MASTER_SITES= http://www.rhyolite.com/dcc/source/old/
+MASTER_SITES= https://www.dcc-servers.net/src/dcc/old/
EXTRACT_SUFX= .tar.Z
OWNER= petar@smokva.net
-HOMEPAGE= http://www.rhyolite.com/dcc/
+HOMEPAGE= https://www.dcc-servers.net/dcc/
COMMENT= Anti-spam content filter
LICENSE= dcc-free-license
@@ -18,13 +18,6 @@ DCC_GROUP?= dcc
DCC_HOME?= ${VARBASE}/dcc
DCC_RUN?= ${VARBASE}/run/dcc
-# dcc already implements $DESTDIR as $installroot but also prepends
-# $installroot to $BINDIR, which bsd.prog.mk subsequently extends to
-# $DESTDIR/$BINDIR, effectively doubling the $DESTDIR prefix. The
-# following bit of make dances around the issue and avoids adding
-# $DESTDIR when evaluated within a bsd.prog.mk target.
-DCC_DESTDIR= $${"$${@:Mproginstall-*}"=="":?$${DESTDIR}:}
-
# expanded in files/dcc*.sh
FILES_SUBST+= DCC_HOME=${DCC_HOME}
FILES_SUBST+= DCC_EGDIR=${DCC_EGDIR}
@@ -66,17 +59,14 @@ CONFIGURE_ARGS+= --with-rundir=${DCC_RUN}
CONFIGURE_ARGS+= --with-uid=${DCC_USER}
CONFIGURE_ARGS+= --with-make-cmd=${MAKE_PROGRAM:Q}
CONFIGURE_ARGS+= --with-fetch-cmd=${TOOLS_PATH.ftp:Q}
-CONFIGURE_ARGS+= --with-installroot=\$$\(DCC_DESTDIR\)
-CONFIGURE_ARGS+= --disable-sys-inst
+CONFIGURE_ARGS+= --with-installroot=${DESTDIR:Q}
+CONFIGURE_ARGS+= --enable-pkg-make
CONFIGURE_ARGS+= --disable-dccm
-USE_BSD_MAKEFILE= yes
MAKE_JOBS_SAFE= no
# PKGSRC_DCC_EGDIR is for homedir/Makefile
MAKE_ENV+= PKGSRC_DCC_EGDIR=${DCC_EGDIR}
-MAKE_ENV+= DCC_DESTDIR=${DCC_DESTDIR:Q}
-MAKE_ENV+= NO_SUID=yes
BUILD_DEFS+= VARBASE
diff --git a/mail/dcc/PLIST b/mail/dcc/PLIST
index b040a5b4527..8b5a9bde20b 100644
--- a/mail/dcc/PLIST
+++ b/mail/dcc/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.3 2015/06/05 13:43:20 gdt Exp $
+@comment $NetBSD: PLIST,v 1.4 2017/05/28 11:50:07 maya Exp $
bin/cdcc
bin/dccif-test
bin/dccproc
@@ -19,7 +19,6 @@ libexec/dns-helper
libexec/dump-clients
libexec/fetch-testmsg-whitelist
libexec/fetchblack
-libexec/fetchids
libexec/fix-map
libexec/hackmc
libexec/list-clients
diff --git a/mail/dcc/distinfo b/mail/dcc/distinfo
index 321d099ef4d..7b332ae5ddd 100644
--- a/mail/dcc/distinfo
+++ b/mail/dcc/distinfo
@@ -1,10 +1,10 @@
-$NetBSD: distinfo,v 1.6 2015/11/03 23:27:03 agc Exp $
+$NetBSD: distinfo,v 1.7 2017/05/28 11:50:07 maya Exp $
-SHA1 (dcc-1.3.158.tar.Z) = 016442e1cf87f50588787cd5632b345bb15e6335
-RMD160 (dcc-1.3.158.tar.Z) = 00676a5fbb52cd3971a764f1b4244296e90c2dba
-SHA512 (dcc-1.3.158.tar.Z) = 24fba5ea713e8df1468644508c323d64b3868685716b7cc02263933476940a807cfc4593432a9195371308c83d4ea93653e89634681d95dcb32f5d65c7274599
-Size (dcc-1.3.158.tar.Z) = 1714175 bytes
-SHA1 (patch-Makefile.inc.in) = 9cd0fb433697d1864dde3314bed08f5a78bf3e7e
-SHA1 (patch-Makefile.inc2.in) = 16e3fdd5933048ea31f90a6e1b2dad2949deb2a3
-SHA1 (patch-configure) = c1a1c536cd2643043f2eb2ede2acc4b9f000f4b4
-SHA1 (patch-homedir_Makefile.in) = f1097124734b848140cd7ea7827b67c7e3855680
+SHA1 (dcc-1.3.159.tar.Z) = 05be2fdca4484434f25afb7d23e0c17b3e074620
+RMD160 (dcc-1.3.159.tar.Z) = f98e75c224f3a5411e1552e2b6fbab7a80547cf9
+SHA512 (dcc-1.3.159.tar.Z) = 5abb938a5a22bb8315d90797551be3eda3a9cdf2e6479e4ae561d3946fd1cc1a0db0562315b8741cc3e70a7e5c61460643cffb77adf4110b81060920362168d7
+Size (dcc-1.3.159.tar.Z) = 1606625 bytes
+SHA1 (patch-Makefile.inc.in) = a58beebf596bf4ef648a7f5e3202869b474d54a5
+SHA1 (patch-configure) = 6510a44febf3004df88e0d67484f0a04d33694c0
+SHA1 (patch-homedir_Makefile.in) = 6d01cb4fe1dd3412a50cc419045e3ffdbd3ec07c
+SHA1 (patch-homedir_fix-map.in) = 620fe1a7e4d0abdac31f466c9d78f817c5424d17
diff --git a/mail/dcc/patches/patch-Makefile.inc.in b/mail/dcc/patches/patch-Makefile.inc.in
index b293de345ba..e6a9df4db39 100644
--- a/mail/dcc/patches/patch-Makefile.inc.in
+++ b/mail/dcc/patches/patch-Makefile.inc.in
@@ -1,14 +1,42 @@
-$NetBSD: patch-Makefile.inc.in,v 1.1 2015/06/05 13:43:20 gdt Exp $
+$NetBSD: patch-Makefile.inc.in,v 1.2 2017/05/28 11:50:07 maya Exp $
-NO_SYS_INSTALL shouldn't prevent man pages from being installed.
+make will otherwise try to exec ""
---- Makefile.inc.in.orig 2014-08-06 14:43:42.000000000 +0000
+--- Makefile.inc.in.orig 2017-02-04 19:18:07.000000000 +0000
+++ Makefile.inc.in
-@@ -124,7 +124,6 @@ MANOWN =$(DCC_OWN)
- MANMODE =444
-
- @MAKE_DOT@ifdef NO_SYS_INSTALL
--NOMAN =no
- SET_BINOWN=
- SET_MANOWN=
- SET_DCCOWN=
+@@ -52,7 +52,7 @@ clean cleandir:
+ # do not let clean be the default target
+ # and silence gmake "nothing to be done" noise
+ all:
+- @
++ @:
+ ###########################################################################
+ @endif@
+
+@@ -231,7 +231,7 @@ maninstall:
+ done
+ @endif@
+ @endif@
+- @
++ @:
+
+ $(MANDIR)8:
+ @ifndef@ NOMAN
+@@ -239,7 +239,7 @@ $(MANDIR)8:
+ $(INSTALL) -d $(SET_MANOWN) -m 755 $(MANDIR)8
+ @endif@
+ @endif@
+- @
++ @:
+
+
+ uninstall delete:deinstall
+@@ -252,7 +252,7 @@ progdelete:
+ @ifdef@ PROG
+ rm -f $(BINDIR)/$(PROG)
+ @endif@
+- @
++ @:
+
+ beforedelete:progdelete
+ @ifdef@ SUBDIR
diff --git a/mail/dcc/patches/patch-Makefile.inc2.in b/mail/dcc/patches/patch-Makefile.inc2.in
deleted file mode 100644
index 0f44b4f35a9..00000000000
--- a/mail/dcc/patches/patch-Makefile.inc2.in
+++ /dev/null
@@ -1,16 +0,0 @@
-$NetBSD: patch-Makefile.inc2.in,v 1.1 2015/06/05 13:43:20 gdt Exp $
-
-Prepending `depend' and `all' during the install stage will cause at
-least two ambiguous errors. Remove the whole dependency because it
-doesn't seem to have much use anyway.
-
---- Makefile.inc2.in.orig 2014-08-06 14:43:42.000000000 +0000
-+++ Makefile.inc2.in
-@@ -47,7 +47,6 @@ INSTALL =@DCCINSTALL@
- BININSTALL=$(INSTALL) -c $(SET_BINOWN) -m $(BINMODE)
-
- # create the DCC home directory before trying to install files
--beforeinstall:$(BINDIR) $(MANDIR)8 depend all
- $(BINDIR):
- $(INSTALL) -d $(SET_BINOWN) -m 755 $(BINDIR)
-
diff --git a/mail/dcc/patches/patch-configure b/mail/dcc/patches/patch-configure
index 889755b12cf..2e565c3dc06 100644
--- a/mail/dcc/patches/patch-configure
+++ b/mail/dcc/patches/patch-configure
@@ -1,10 +1,10 @@
-$NetBSD: patch-configure,v 1.2 2015/07/11 23:44:21 sevan Exp $
+$NetBSD: patch-configure,v 1.3 2017/05/28 11:50:07 maya Exp $
Always install man-pages.
---- configure.orig 2014-08-06 14:43:42.000000000 +0000
+--- configure.orig 2015-05-22 18:00:33.000000000 +0000
+++ configure
-@@ -1920,93 +1920,10 @@ fi
+@@ -1925,76 +1922,8 @@ fi
# decide whether to install .8 or .0 files.
MANXFILE=
MAN0AS8='/`expr $$NM : "\(.*\)".0`.8'
@@ -12,29 +12,24 @@ Always install man-pages.
- Linux)
- # default to /usr/local/man/man8 and use roff files
- mancat=man
-- MANX='$(MAN8)'
-- USE_DCCMANINSTALL='USE_DCCMANINSTALL=yes'
+- MANX='$(MANGZ)'
- ;;
- OpenBSD)
- # default to /usr/local/man/cat8 and .0 names
- mancat=cat
- MANX='$(MAN0)'
-- USE_DCCMANINSTALL='USE_DCCMANINSTALL=yes'
- ;;
- HP-UX)
-- # default to /usr/local/man/cat8 and use cleartext files and
-- # .8 names
+- # default to /usr/local/man/cat8 and use cleartext files and .8 names
- mancat=cat
- MANX='$(MAN0)'
- MANXFILE="$MAN8AS8"
-- USE_DCCMANINSTALL='USE_DCCMANINSTALL=yes'
- ;;
- IRIX*)
- # default to /usr/local/man/man8 and use cleartext files and .8 names
- mancat=man
- MANX='$(MAN0)'
- MANXFILE="$MAN8AS8"
-- USE_DCCMANINSTALL='USE_DCCMANINSTALL=yes'
- ;;
- SunOS)
- # default to /usr/local/man/cat8 and use cleartext files,
@@ -42,35 +37,27 @@ Always install man-pages.
- mancat=cat
- MANX='$(MAN0)'
- MANXFILE="$MAN8AS8"
-- USE_DCCMANINSTALL='USE_DCCMANINSTALL=yes'
- ;;
- FreeBSD|DragonFly)
-- # default to /usr/local/man/man8 and use nroff files, possibly
-- # compressed via /usr/share/mk
+- # default to /usr/local/man/man8 and use nroff files
- mancat=man
-- MANX='$(MAN8)'
-- USE_DCCMANINSTALL='# USE_DCCMANINSTALL=no'
+- MANX='$(MANGZ)'
- ;;
- Darwin)
- # default to /usr/local/man/man8 and use nroff files
- mancat=man
- MANX='$(MAN8)'
-- USE_DCCMANINSTALL='USE_DCCMANINSTALL=yes'
- ;;
- NetBSD)
- # use text output to avoid running groff on every `man` command
- mancat=cat
- MANX='$(MAN0)'
-- # force NetBSD to install the man pages
-- USE_DCCMANINSTALL='USE_DCCMANINSTALL=yes\
--install:maninstall'
- ;;
- BSD/OS)
- # default to /usr/local/man/cat8 and use cleartext files, possibly
- # compressed via /usr/share/mk, and named .0
- mancat=cat
- MANX='$(MAN0)'
-- USE_DCCMANINSTALL='# USE_DCCMANINSTALL=no'
- ;;
- AIX)
- # default to /usr/local/man/cat8, use our installation rule,
@@ -78,27 +65,21 @@ Always install man-pages.
- mancat=cat
- MANX='$(MAN0)'
- MANXFILE="$MAN8AS8"
-- USE_DCCMANINSTALL='USE_DCCMANINSTALL=yes'
- ;;
- OpenUNIX)
-- # default to /usr/local/man/cat8 and use cleartext files named
-- # .8
+- # default to /usr/local/man/cat8 and use cleartext files named .8
- mancat=cat
- MANX='$(MAN0)'
- MANXFILE="$MAN8AS8"
-- USE_DCCMANINSTALL='USE_DCCMANINSTALL=yes'
- ;;
- *)
- echo "warning: *** Cannot install man pages on unfamiliar systems ***" 1>&2
- mancat=fixme
- MANX=
-- USE_DCCMANINSTALL='USE_DCCMANINSTALL=yes'
- ;;
-esac
-+# default to /usr/local/man/man8 and use nroff files
+mancat=man
+MANX='$(MAN8)'
-+USE_DCCMANINSTALL='USE_DCCMANINSTALL=yes'
if test "$mandir" = '${prefix}/man'; then
if test "$DCC_MANDIR"SET != SET; then
mandir="$DCC_MANDIR"
diff --git a/mail/dcc/patches/patch-homedir_Makefile.in b/mail/dcc/patches/patch-homedir_Makefile.in
index 506e1bf5f4e..4bb357f79dd 100644
--- a/mail/dcc/patches/patch-homedir_Makefile.in
+++ b/mail/dcc/patches/patch-homedir_Makefile.in
@@ -1,4 +1,4 @@
-$NetBSD: patch-homedir_Makefile.in,v 1.1 2015/06/05 13:43:20 gdt Exp $
+$NetBSD: patch-homedir_Makefile.in,v 1.2 2017/05/28 11:50:07 maya Exp $
Install configuration files into PKGSRC_DCC_EGDIR.
@@ -8,7 +8,7 @@ end up in any of the installed files.
Also, skip make-dcc_conf (there is nothing to merge) and fix-map (moved
into rc-files as start_precmd check).
---- homedir/Makefile.in.orig 2014-08-06 14:43:42.000000000 +0000
+--- homedir/Makefile.in.orig 2017-01-16 06:22:01.000000000 +0000
+++ homedir/Makefile.in
@@ -39,7 +39,7 @@
DEPTH =..
@@ -19,9 +19,9 @@ into rc-files as start_precmd check).
MAP =$(HD)/map@configsuffix@
MAPTXT =$(HD)/map.txt@configsuffix@
IDS =$(HD)/ids@configsuffix@
-@@ -60,14 +60,12 @@ DCC_BINDIR=@installroot@@libexecdir@
- all:
- @:
+@@ -55,14 +55,12 @@ SSCRIPTS=fix-map
+ DCC_BINDIR=@installroot@@libexecdir@
+ @INCLUDE_INC@
-install:$(HD) $(HD)/log
+install:$(HD)