From owner-svn-ports-all@freebsd.org Sun Jan 3 12:04:42 2016 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 06C7BA5F34E; Sun, 3 Jan 2016 12:04:42 +0000 (UTC) (envelope-from antoine@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C963E1EF0; Sun, 3 Jan 2016 12:04:41 +0000 (UTC) (envelope-from antoine@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u03C4eAW080066; Sun, 3 Jan 2016 12:04:40 GMT (envelope-from antoine@FreeBSD.org) Received: (from antoine@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u03C4eO2080065; Sun, 3 Jan 2016 12:04:40 GMT (envelope-from antoine@FreeBSD.org) Message-Id: <201601031204.u03C4eO2080065@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: antoine set sender to antoine@FreeBSD.org using -f From: Antoine Brodin Date: Sun, 3 Jan 2016 12:04:40 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r405133 - head/news/newsx/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Jan 2016 12:04:42 -0000 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.