Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 05 Aug 2014 10:03:55 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 192396] ports-mgmt/jailaudit: cannot create /usr/local/jailaudit/tmp/_jailaudit_allports: No such file or directory
Message-ID:  <bug-192396-13-GYDczAMGfG@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-192396-13@https.bugs.freebsd.org/bugzilla/>
References:  <bug-192396-13@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=192396

--- Comment #5 from Philipp Wuensche <cryx-ports@h3q.com> ---
Okay this bug was introduced when I converted the port to StageDir support. If
I understand https://wiki.freebsd.org/ports/StageDir correctly "For pkg_tools
compatibility add: @exec install -d -o user -g group -m mode %D/directory."
then this patch to the port will solve the issue. I've tested this now on a old
pkg host and there it works for me as well as on a pkgng host.

diff -ruN /usr/ports/ports-mgmt/jailaudit/Makefile freebsd-port/Makefile
--- /usr/ports/ports-mgmt/jailaudit/Makefile    2014-08-04 23:47:15.000000000
+0200
+++ freebsd-port/Makefile    2014-08-05 12:02:31.228606222 +0200
@@ -1,8 +1,9 @@
 # Created by: Philipp Wuensche <cryx-ports@h3q.com>
-# $FreeBSD: head/ports-mgmt/jailaudit/Makefile 364056 2014-08-04 21:47:15Z wg
$
+# $FreeBSD$

 PORTNAME=    jailaudit
 PORTVERSION=    1.5.1
+PORTREVISION=    1
 CATEGORIES=    ports-mgmt
 MASTER_SITES=    http://outpost.h3q.com/software/jailaudit/

diff -ruN /usr/ports/ports-mgmt/jailaudit/pkg-plist freebsd-port/pkg-plist
--- /usr/ports/ports-mgmt/jailaudit/pkg-plist    2014-02-14 11:01:37.000000000
+0100
+++ freebsd-port/pkg-plist    2014-08-05 12:02:31.225608011 +0200
@@ -1,7 +1,9 @@
 bin/jailaudit
 %%ETCDIR%%.conf.sample
 %%PERIODICDIR%%/security/410.jailaudit
+@exec install -d -o root -g wheel -m 755 %D/jailaudit/tmp
 @dirrmtry %%XTMPDIR%%
+@exec install -d -o root -g wheel -m 755 %D/jailaudit/reports
 @dirrmtry %%REPORTDIR%%
 @dirrmtry jailaudit
 @dirrmtry %%PERIODICDIR%%/security

-- 
You are receiving this mail because:
You are the assignee for the bug.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-192396-13-GYDczAMGfG>