From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Oct 11 14:00:18 2011 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 063471065670 for ; Tue, 11 Oct 2011 14:00:17 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id B71C58FC22 for ; Tue, 11 Oct 2011 14:00:17 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p9BE0HCK062070 for ; Tue, 11 Oct 2011 14:00:17 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p9BE0HkQ062069; Tue, 11 Oct 2011 14:00:17 GMT (envelope-from gnats) Resent-Date: Tue, 11 Oct 2011 14:00:17 GMT Resent-Message-Id: <201110111400.p9BE0HkQ062069@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Jim Pirzyk Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4EBE41065673 for ; Tue, 11 Oct 2011 13:54:44 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 3F42C8FC0A for ; Tue, 11 Oct 2011 13:54:44 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p9BDsiNT005186 for ; Tue, 11 Oct 2011 13:54:44 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id p9BDsh1d005185; Tue, 11 Oct 2011 13:54:44 GMT (envelope-from nobody) Message-Id: <201110111354.p9BDsh1d005185@red.freebsd.org> Date: Tue, 11 Oct 2011 13:54:44 GMT From: Jim Pirzyk To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/161490: rkhunter.conf file overwrote after upgrade X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Oct 2011 14:00:18 -0000 >Number: 161490 >Category: ports >Synopsis: rkhunter.conf file overwrote after upgrade >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Oct 11 14:00:16 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Jim Pirzyk >Release: 8.2-RELEASE >Organization: >Environment: FreeBSD amigo.home.pirzyk.org 8.2-RELEASE-p3 FreeBSD 8.2-RELEASE-p3 #0: Tue Sep 27 18:45:57 UTC 2011 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 >Description: When upgrading the rkhunter port, the rkhunter.conf file (a config file) gets overwrote by the package. Per the Porter's handbook (7.3), attached is a patch to the pkg-plist. The Makefile was doing the update properly. >How-To-Repeat: >Fix: Patch attached with submission follows: --- ./pkg-plist.orig 2011-04-20 08:53:50.000000000 -0400 +++ ./pkg-plist 2011-10-11 09:45:21.870038241 -0400 @@ -1,7 +1,9 @@ @comment $FreeBSD: ports/security/rkhunter/pkg-plist,v 1.10 2011/04/20 12:53:50 sbz Exp $ bin/rkhunter etc/periodic/security/415.rkhunter -etc/rkhunter.conf +@unexec if cmp -s %D/etc/rkhunter.conf.sample %D/etc/rkhunter.conf; then rm -f %D/etc/rkhunter.conf; fi +etc/rkhunter.conf.sample +@exec if [ ! -f %D/etc/rkhunter.conf ] ; then cp -p %D/%F %B/rkhunter.conf; fi lib/rkhunter/scripts/check_modules.pl lib/rkhunter/scripts/filehashsha.pl lib/rkhunter/scripts/readlink.sh >Release-Note: >Audit-Trail: >Unformatted: