aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordinoex <dinoex@FreeBSD.org>2014-02-14 22:33:24 +0800
committerdinoex <dinoex@FreeBSD.org>2014-02-14 22:33:24 +0800
commit4fee6106f56d6575a6ccd0da5765e8d7daf43a93 (patch)
tree262a39a76958c15fd2851ccd9e12ce3637240035
parent3fcf2ea039500a0dd961466bec4ebb9539761671 (diff)
downloadfreebsd-ports-gnome-4fee6106f56d6575a6ccd0da5765e8d7daf43a93.tar.gz
freebsd-ports-gnome-4fee6106f56d6575a6ccd0da5765e8d7daf43a93.tar.zst
freebsd-ports-gnome-4fee6106f56d6575a6ccd0da5765e8d7daf43a93.zip
- preserve etc/hosts.hfaxd
PR: 185589 Reported by: Georg Altmann
-rw-r--r--comms/hylafax/Makefile4
-rw-r--r--comms/hylafax/pkg-plist4
2 files changed, 6 insertions, 2 deletions
diff --git a/comms/hylafax/Makefile b/comms/hylafax/Makefile
index 3bc7cf8f5832..5bc4ee05c592 100644
--- a/comms/hylafax/Makefile
+++ b/comms/hylafax/Makefile
@@ -3,6 +3,7 @@
PORTNAME= hylafax
PORTVERSION= 6.0.6
+PORTREVISION= 1
CATEGORIES= comms
MASTER_SITES= ftp://ftp.hylafax.org/source/
@@ -15,7 +16,6 @@ LIB_DEPENDS= libtiff.so:${PORTSDIR}/graphics/tiff \
libjbig.so:${PORTSDIR}/graphics/jbigkit
MAKE_JOBS_UNSAFE= yes
-#NO_STAGE= yes
NEED_ROOT= yes
USE_GHOSTSCRIPT=yes
@@ -85,6 +85,8 @@ post-patch:
${WRKSRC}/configure
${REINPLACE_CMD} -e 's,-O hfaxd.conf,-O hfaxd.conf-dist,' \
${WRKSRC}/hfaxd/Makefile.in
+ ${REINPLACE_CMD} -e 's,hosts.hfaxd,hosts.hfaxd-dist,' \
+ ${WRKSRC}/etc/Makefile.in
${REINPLACE_CMD} -e 's,-O typerules,-O typerules-dist,' \
-e 's,-O pagesizes,-O pagesizes-dist -src pagesizes,' \
${WRKSRC}/libhylafax/Makefile.in
diff --git a/comms/hylafax/pkg-plist b/comms/hylafax/pkg-plist
index 5effa4f209cf..d92dec1c66e3 100644
--- a/comms/hylafax/pkg-plist
+++ b/comms/hylafax/pkg-plist
@@ -253,7 +253,9 @@ config/sierra
etc/dpsprinter.ps
etc/cover.templ
etc/xferfaxlog
-etc/hosts.hfaxd
+@unexec if cmp -s %D/etc/hosts.hfaxd %D/etc/hosts.hfaxd-dist; then rm -f %D/etc/hosts.hfaxd; fi
+etc/hosts.hfaxd-dist
+@exec [ -f %B/hosts.hfaxd ] || cp %B/%f %B/hosts.hfaxd
etc/dialrules
etc/dialrules.sf-ba
etc/dialrules.europe