From owner-freebsd-questions@FreeBSD.ORG Sat Jul 20 12:53:56 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 65DB7105 for ; Sat, 20 Jul 2013 12:53:56 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (smtp6.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3cd3:cd67:fafa:3d78]) by mx1.freebsd.org (Postfix) with ESMTP id ECF54CA for ; Sat, 20 Jul 2013 12:53:55 +0000 (UTC) Received: from seedling.black-earth.co.uk (seedling.black-earth.co.uk [81.2.117.99]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.7/8.14.7) with ESMTP id r6KCrn1n060998 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO) for ; Sat, 20 Jul 2013 13:53:50 +0100 (BST) (envelope-from m.seaman@infracaninophile.co.uk) DKIM-Filter: OpenDKIM Filter v2.8.3 smtp.infracaninophile.co.uk r6KCrn1n060998 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=infracaninophile.co.uk; s=201001-infracaninophile; t=1374324830; bh=VfPiFpzbnHzPvPfhP52KHzLR4sru7eB80llWO517btE=; h=Date:From:To:Subject:References:In-Reply-To; z=Date:=20Sat,=2020=20Jul=202013=2013:53:41=20+0100|From:=20Matthew =20Seaman=20|To:=20freebsd-questi ons@freebsd.org|Subject:=20Re:=20HOWTO=20monitor=20changes=20in=20 installed=20packages=20within=20jails?|References:=20|In-Reply-To:=20; b=gyGiTkRSGohWZ7pzVnAhPVBEqAqnLAjonNYZJp+jOK0Ei5WMcueowFHSNgwy03/k5 lNNchE5v7xuDIpdioaMlWF9Lsqg1zdBxWddMpvTh0CUq8qLn7DOunRE5ZMouUmyz7F 3TBDSnEnUm82xoP279BsQiZ9Nws5FYJ4cM7X43hw= Message-ID: <51EA8855.7070109@infracaninophile.co.uk> Date: Sat, 20 Jul 2013 13:53:41 +0100 From: Matthew Seaman User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:17.0) Gecko/20130620 Thunderbird/17.0.7 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Re: HOWTO monitor changes in installed packages within jails? References: In-Reply-To: X-Enigmail-Version: 1.5.1 OpenPGP: id=60AE908C Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="----enig2EMWEAXMRBMTLDOVLKIOG" X-Virus-Scanned: clamav-milter 0.97.8 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.0 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,SPF_FAIL,SPF_HELO_FAIL autolearn=no version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on lucid-nonsense.infracaninophile.co.uk X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Jul 2013 12:53:56 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) ------enig2EMWEAXMRBMTLDOVLKIOG Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 20/07/2013 12:09, Michael Grimm wrote: > I did migrate to pkgng some month ago, and ever since I am curious > how to monitor changes in installed packages within jails. I am > looking for a functionality/port that works like 490.status- > pkg-changes for my host. >=20 > Question: is there any functionality within the periodic system or a > port that I might have missed to find? You can't just run 490.status-pkg-changes directly in your jail? Try this patch: lucid-nonsense:/tmp:% diff -u 490.status-pkg-changes{.orig,} --- 490.status-pkg-changes.orig 2013-07-20 13:43:44.306303775 +0100 +++ 490.status-pkg-changes 2013-07-20 13:44:42.055327506 +0100 @@ -10,7 +10,7 @@ case "$daily_status_pkg_changes_enable" in [Yy][Ee][Ss]) - pkgcmd=3D/usr/local/sbin/pkg + pkgcmd=3D/usr/local/sbin/pkg $daily_status_pkg_changes_flags echo echo 'Changes in installed packages:' Then add something like the following to /etc/periodic.conf: daily_status_pkg_changes_flags=3D'-j jailname' Of course, this only lets you monitor changes in one jail at a time. You can cover more by copying the script and changing its name eg. sed -e 's/daily_status_pkg_changes/daily_status_pkg_changes2/g' \ < 490.status-pkg-changes > 490.status-pkg-changes2 Then add appropriate "daily_status_pkg_changes2_flags=3D'-j otherjail'" settings to periodic.conf Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. PGP: http://www.infracaninophile.co.uk/pgpkey JID: matthew@infracaninophile.co.uk ------enig2EMWEAXMRBMTLDOVLKIOG Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.16 (Darwin) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iEYEARECAAYFAlHqiF0ACgkQ8Mjk52CukIwYvgCgjo+wLDfS9WLQrRJ1R5F5DxpG Sk4AnjIpFN1gkszZ9q+VCsocYhTyxdkM =oPHv -----END PGP SIGNATURE----- ------enig2EMWEAXMRBMTLDOVLKIOG--