svn commit: r405133 - head/news/newsx/files

Antoine Brodin antoine at FreeBSD.org
Sun Jan 3 12:04:42 UTC 2016


Author: antoine
Date: Sun Jan  3 12:04:40 2016
New Revision: 405133
URL: https://svnweb.freebsd.org/changeset/ports/405133

Log:
  Fix staging (as a regular user) / packaging (as root)
  
  Reported by:	pkg-fallout
  MFH:		2016Q1

Added:
  head/news/newsx/files/patch-src_Makefile.in   (contents, props changed)

Added: head/news/newsx/files/patch-src_Makefile.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/news/newsx/files/patch-src_Makefile.in	Sun Jan  3 12:04:40 2016	(r405133)
@@ -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.


More information about the svn-ports-head mailing list