From owner-freebsd-ports@FreeBSD.ORG Sat Apr 27 13:37:54 2013 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 9FF73928 for ; Sat, 27 Apr 2013 13:37:54 +0000 (UTC) (envelope-from utisoft@gmail.com) Received: from mail-ie0-x22b.google.com (mail-ie0-x22b.google.com [IPv6:2607:f8b0:4001:c03::22b]) by mx1.freebsd.org (Postfix) with ESMTP id 774031AFA for ; Sat, 27 Apr 2013 13:37:54 +0000 (UTC) Received: by mail-ie0-f171.google.com with SMTP id e11so5964303iej.30 for ; Sat, 27 Apr 2013 06:37:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=ApO9VVLo+kZHPORsCri0QyaCSPRsNhe2wm1cw3MItZw=; b=P6m5RrBW3Bdo+WGIZ5vMvgaxtnS2xQlORzhnHFcEjmoXOa+xdnvAcJGHzLYRmwrCzn Pync8tU0CsxF2Zn/JRHtxXwjljSZpv+a08SUhxYUk7gnyDRPz9SUIvW1U5ho4/4k1A4d qUH+rla8WkGkqU1KGSyQihcNZYqZf5nhUebF8Vj4ViBUIbuYtTs1m09tk8aov2G96DsK BbrnMB9BFT4NtJSwE7rDQy1B/q7X9Ij1X+/1Riy3DmtSr9MRXDLt9VVR2s9JvLgetYyA xFZZq64Qj8i7midV7+23Ov7OKwB7sRcMCY0O5PxD4nHgwb7R2AX6ogQRIK4Mq8GNddXt VrXw== MIME-Version: 1.0 X-Received: by 10.50.47.10 with SMTP id z10mr4396299igm.15.1367069874167; Sat, 27 Apr 2013 06:37:54 -0700 (PDT) Received: by 10.64.58.52 with HTTP; Sat, 27 Apr 2013 06:37:53 -0700 (PDT) Received: by 10.64.58.52 with HTTP; Sat, 27 Apr 2013 06:37:53 -0700 (PDT) In-Reply-To: References: Date: Sat, 27 Apr 2013 14:37:53 +0100 Message-ID: Subject: Re: removing file doing uninstall From: Chris Rees To: FreeBSD Mailing List Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Apr 2013 13:37:54 -0000 On 27 Apr 2013 14:12, "Carmel" wrote: > > How do I remove a file from an older release that is no longer in the > newer release. > > Assume: > > "Release.html" is in the older port version. In the newer port version, > it has been replaced by "Release.pdf". > > I tried placing this in the "pkg-plist"file. > > @unexec if %%PORTDOCS%%%%DOCSDIR%%/Release.html; then rm -f %%PORTDOCS%%%%DOCSDIR%%/Release.html; fi > > However, while "portlint -A" has no problem with it, I receive: > > share/doc/scamp/Release.html: not found > pkg_delete: unable to completely remove directory > > when running "make deinstall" > > @unexec if %%PORTDOCS%%%%DOCSDIR%%/Release.html; then rm -f %%PORTDOCS%%%%DOCSDIR%%/Release.html; fi No need. The file is deleted when the older package is deinstalled. Chris