Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 Mar 2014 16:38:43 +0000 (UTC)
From:      Sofian Brabez <sbz@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r347273 - head/security/rkhunter
Message-ID:  <201403061638.s26Gchta088771@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sbz
Date: Thu Mar  6 16:38:42 2014
New Revision: 347273
URL: http://svnweb.freebsd.org/changeset/ports/347273
QAT: https://qat.redports.org/buildarchive/r347273/

Log:
  - Fix checksum mismatch problem during updates by installing signatures as sample
  
  PR:		ports/182789
  Submitted by:	pirzyk

Modified:
  head/security/rkhunter/Makefile

Modified: head/security/rkhunter/Makefile
==============================================================================
--- head/security/rkhunter/Makefile	Thu Mar  6 16:37:56 2014	(r347272)
+++ head/security/rkhunter/Makefile	Thu Mar  6 16:38:42 2014	(r347273)
@@ -3,6 +3,7 @@
 
 PORTNAME=	rkhunter
 PORTVERSION=	1.4.0
+PORTREVISION=	1
 CATEGORIES=	security
 MASTER_SITES=	SF
 
@@ -57,6 +58,14 @@ post-install:
 	@if [ ! -f ${PREFIX}/etc/${PORTNAME}.conf ]; then \
 		${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.conf ${PREFIX}/etc; \
 	fi
+	${INSTALL_DATA} -m 640 ${WRKSRC}/files/programs_bad.dat ${PREFIX}/var/lib/${PORTNAME}/db/programs_bad.dat.sample
+	${INSTALL_DATA} -m 640 ${WRKSRC}/files/mirrors.dat ${PREFIX}/var/lib/${PORTNAME}/db/mirrors.dat.sample
+	@if [ ! -f ${PREFIX}/var/lib/${PORTNAME}/db/mirrors.dat ]; then \
+		${INSTALL_DATA} -m 640 ${WRKSRC}/files/mirrors.dat ${PREFIX}/var/lib/${PORTNAME}/db/mirrors.dat; \
+	fi
+	@if [ ! -f ${PREFIX}/var/lib/${PORTNAME}/db/programs_bad.dat ]; then \
+		${INSTALL_DATA} -m 640 ${WRKSRC}/files/programs_bad.dat ${PREFIX}/var/lib/${PORTNAME}/db/programs_bad.dat; \
+	fi
 	@${CAT} ${PKGMESSAGE}
 
 .include <bsd.port.post.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201403061638.s26Gchta088771>