aboutsummaryrefslogtreecommitdiff
path: root/news/newsx
diff options
context:
space:
mode:
authorAntoine Brodin <antoine@FreeBSD.org>2016-01-03 12:04:40 +0000
committerAntoine Brodin <antoine@FreeBSD.org>2016-01-03 12:04:40 +0000
commit48edc1c9a68befd45219497e0d6d6f7eb5121ea3 (patch)
treefb72d79725068d11bcdd8620ea7bd23cc10f0a94 /news/newsx
parent29e8e073f2c92403ac70275b9137dd6248e82f5b (diff)
downloadports-48edc1c9a68befd45219497e0d6d6f7eb5121ea3.tar.gz
ports-48edc1c9a68befd45219497e0d6d6f7eb5121ea3.zip
Fix staging (as a regular user) / packaging (as root)
Reported by: pkg-fallout MFH: 2016Q1
Notes
Notes: svn path=/head/; revision=405133
Diffstat (limited to 'news/newsx')
-rw-r--r--news/newsx/files/patch-src_Makefile.in21
1 files changed, 21 insertions, 0 deletions
diff --git a/news/newsx/files/patch-src_Makefile.in b/news/newsx/files/patch-src_Makefile.in
new file mode 100644
index 000000000000..8d9442e97dbb
--- /dev/null
+++ b/news/newsx/files/patch-src_Makefile.in
@@ -0,0 +1,21 @@
+--- src/Makefile.in.orig 2003-05-18 17:26:44 UTC
++++ src/Makefile.in
+@@ -533,7 +533,7 @@ crc.h: mkcrc.c
+
+ # Prepare a place for newsx in the news spool:
+ install-exec-local:
+- if test ! -d ${INHOSTS} ; then \
++ if test ! -d ${DESTDIR}${INHOSTS} ; then \
+ if test -d ${SPOOL}/in.hosts ; then \
+ echo The default location has changed, so we move ;\
+ echo the directory ${SPOOL}/in.hosts to ${INHOSTS} ;\
+@@ -541,8 +541,7 @@ install-exec-local:
+ else \
+ echo Creating directory ${INHOSTS} ;\
+ umask @INN_NEWSUMASK@ ;\
+- mkdir ${INHOSTS} ;\
+- chown ${NEWSUSER} ${INHOSTS} ;\
++ mkdir -p ${DESTDIR}${INHOSTS} ;\
+ fi ;\
+ fi
+ # Tell versions [3.59,3.63) of GNU make to not export all variables.