Bug 81492 - security/aide: fix incomplete pkg-plist
Summary: security/aide: fix incomplete pkg-plist
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Cy Schubert
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-26 07:20 UTC by Boris B.Samorodov
Modified: 2005-07-20 12:57 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Boris B.Samorodov 2005-05-26 07:20:01 UTC
	The port security/aide is marked as broken (incomplete PLIST).
	Next patch fixes it.

	Hints:
	o  the patch should be applied to the port itself;
	o  I don't think that PORTREVISION should be bumpted.

Fix: ----- patch start -----


WBR
-- 
bsam--lKTYrNZuzLWgzcR0JRXXvziJqmSHZcalyOxQb5UtAEvBUXme
Content-Type: text/plain; name="file.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="file.diff"

diff -u aide.orig/Makefile aide/Makefile
--- aide.orig/Makefile	Sat May  7 06:45:57 2005
+++ aide/Makefile	Thu May 26 09:53:20 2005
@@ -26,8 +26,6 @@
 MAINTAINER=	cy@FreeBSD.org
 COMMENT=	A replacement and extension for Tripwire
 
-BROKEN=		Incomplete pkg-plist
-
 LIB_DEPENDS=	mhash.2:${PORTSDIR}/security/mhash
 
 USE_GMAKE=	yes
Only in aide: README.html
Common subdirectories: aide.orig/files and aide/files
diff -u aide.orig/pkg-plist aide/pkg-plist
--- aide.orig/pkg-plist	Fri Apr 22 05:14:57 2005
+++ aide/pkg-plist	Thu May 26 09:51:58 2005
@@ -1,5 +1,7 @@
 bin/aide
+@unexec if cmp -s %D/etc/aide.conf %D/etc/aide.conf.sample; then rm -f %D/etc/aide.conf; fi
 etc/aide.conf.sample
+@exec [ -f %B/aide.conf ] || cp %B/%f %B/aide.conf
 @exec /bin/mkdir -p /var/db/aide/databases
 @exec [ -f /var/db/aide/aide.conf ] || /usr/sbin/chown root:wheel /var/db/aide
 @exec [ -f /var/db/aide/aide.conf ] || /usr/sbin/chown root:wheel /var/db/aide/databases
----- patch stop -----
How-To-Repeat: 	Look at the port's tree.
Comment 1 Jean-Yves Lefort freebsd_committer freebsd_triage 2005-05-26 11:22:39 UTC
Responsible Changed
From-To: freebsd-ports-bugs->cy

Over to maintainer.
Comment 2 Pav Lucistnik freebsd_committer freebsd_triage 2005-07-20 12:57:50 UTC
State Changed
From-To: open->closed

Committed, thanks!