From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Jan 11 21:40:11 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 100431065673 for ; Tue, 11 Jan 2011 21:40:11 +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 D80838FC15 for ; Tue, 11 Jan 2011 21:40:10 +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 p0BLeAlo029817 for ; Tue, 11 Jan 2011 21:40:10 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p0BLeAv5029816; Tue, 11 Jan 2011 21:40:10 GMT (envelope-from gnats) Date: Tue, 11 Jan 2011 21:40:10 GMT Message-Id: <201101112140.p0BLeAv5029816@freefall.freebsd.org> To: freebsd-ports-bugs@FreeBSD.org From: Sofian Brabez Cc: Subject: Re: ports/153024: security/rkhunter should not overwrite /usr/local/etc/rkhunter.conf X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Sofian Brabez List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Jan 2011 21:40:11 -0000 The following reply was made to PR ports/153024; it has been noted by GNATS. From: Sofian Brabez To: bug-followup@FreeBSD.org, Trond.Endrestol@ximalas.info Cc: Subject: Re: ports/153024: security/rkhunter should not overwrite /usr/local/etc/rkhunter.conf Date: Tue, 11 Jan 2011 22:30:26 +0100 Hi Trond, Normally security/rkhunter during an update renamed your old configuration with the following scheme : ${RKHINST_ETC_DIR}rkhunter.conf`date +%Y%m%d%H%M%S`, so your old configuration is never delete or overwrite. By default RKHINST_ETC_DIR is set to /usr/local/etc/ folder. You just have to renamed it to keep your old configuration, it's done like that because rkhunter handle internally the update. If you want to know more about this, you could check the source code into installer.sh file For example, below I've updated it and I got two files, my old created the 27 November 2010 and my new of 11 January 2011: (root@freebsd81:/tmp/) # stat /usr/local/etc/rkhunter.conf.20101127023538 73 391826 -rw-r----- 1 root wheel 1599104 37308 "Jan 11 23:11:10 2011" "Nov 27 02:35:38 2010" "Nov 27 02:35:38 2010" "Nov 27 02:35:38 2010" 16384 76 0 /usr/local/etc/rkhunter.conf.20101127023538 (root@freebsd81:/tmp/rkhunter) # ls -l /usr/local/etc/rkhunter* -rw-r----- 1 root wheel 37308 Jan 11 23:10 /usr/local/etc/rkhunter.conf -rw-r----- 1 root wheel 37308 Nov 27 02:35 /usr/local/etc/rkhunter.conf.20101127023538 Sorry for my late answer. Regards -- sbz