Skip site navigation (1)Skip section navigation (2)
Date:      28 Apr 2009 15:35:55 +0400
From:      "Alexey V.Degtyarev" <alexey@renatasystems.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/134062: [PATCH] security/expiretable incorrect pkg-plist macroses / stop daemon on deinstall
Message-ID:  <20090428113555.74681.qmail@hs-9.renatasystems.org>
Resent-Message-ID: <200904281140.n3SBe41g026390@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         134062
>Category:       ports
>Synopsis:       [PATCH] security/expiretable incorrect pkg-plist macroses / stop daemon on deinstall
>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 Apr 28 11:40:03 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Alexey V. Degtyarev
>Release:        FreeBSD 7.1-RELEASE amd64
>Organization:
>Environment:
System: FreeBSD renatasystems.org 7.1-RELEASE FreeBSD 7.1-RELEASE #0: Thu Jan 1 08:58:24 UTC 2009 root@driscoll.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64


	
>Description:
	1. pkg-plist has an invalid @unexec command to stop the expiretable
	daemon: macroses RC_DIR, RC_SUFX are not defined in Makefile, so this
	causes errors at the deinstall routine:
	%RC_DIR%/etc/rc.d/expiretable%RC_SUFX%: not found

	2. A @stopdaemon feature has a more simple syntax.
>How-To-Repeat:
	Just install and deinstall port/package.
>Fix:

	

--- expiretable.patch begins here ---
diff -u -r expiretable.orig/pkg-plist expiretable/pkg-plist
--- expiretable.orig/pkg-plist	2006-12-28 01:46:05.000000000 +0300
+++ expiretable/pkg-plist	2009-04-28 14:31:22.000000000 +0400
@@ -1,2 +1,2 @@
+@stopdaemon expiretable
 sbin/expiretable
-@unexec %%RC_DIR%%/etc/rc.d/expiretable%%RC_SUFX%% stop 2>&1 >/dev/null || true
--- expiretable.patch ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



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