From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Apr 1 23:30: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 C42E11065674 for ; Fri, 1 Apr 2011 23:30: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 A3F358FC14 for ; Fri, 1 Apr 2011 23:30:11 +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 p31NUBEj079050 for ; Fri, 1 Apr 2011 23:30:11 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p31NUBar079040; Fri, 1 Apr 2011 23:30:11 GMT (envelope-from gnats) Resent-Date: Fri, 1 Apr 2011 23:30:11 GMT Resent-Message-Id: <201104012330.p31NUBar079040@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Philippe Pepiot Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F06C2106564A for ; Fri, 1 Apr 2011 23:27:41 +0000 (UTC) (envelope-from phil@philpep.org) Received: from diophante.philpep.org (diophante.philpep.org [95.130.12.34]) by mx1.freebsd.org (Postfix) with ESMTP id B9FDC8FC14 for ; Fri, 1 Apr 2011 23:27:41 +0000 (UTC) Received: from diophante.philpep.org (pascal.philpep.org [192.168.2.7]) by pascal.philpep.org (Postfix) with ESMTPS id 693FB6B6C; Sat, 2 Apr 2011 01:11:59 +0200 (CEST) Received: (from phil@localhost) by diophante.philpep.org (8.14.4/8.14.4/Submit) id p31NBwGe068181; Sat, 2 Apr 2011 01:11:58 +0200 (CEST) (envelope-from phil) Message-Id: <201104012311.p31NBwGe068181@diophante.philpep.org> Date: Sat, 2 Apr 2011 01:11:58 +0200 (CEST) From: Philippe Pepiot To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: bapt@FreeBSD.org Subject: ports/156118: [PATCH] devel/cgit bad variable substitution in plist X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Philippe Pepiot List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Apr 2011 23:30:11 -0000 >Number: 156118 >Category: ports >Synopsis: [PATCH] devel/cgit bad variable substitution in plist >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri Apr 01 23:30:10 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Philippe Pepiot >Release: FreeBSD 8.2-RELEASE amd64 >Organization: >Environment: System: FreeBSD diophante.philpep.org 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Thu Feb 17 02:41:51 UTC 2011 root@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 >Description: %%PORTNAME%% is used in pkg-plist and pkg-message files and isn't substitued, see SUB_LIST in bsd.port.mk >How-To-Repeat: See %PORTNAME% in +CONTENT file, and if you install package with pkg_add it will create /var/cache/%PORTNAME% :) >Fix: Proposal fix, but you maybe can do something like SUB_LIST+= PORTNAME=${PORTNAME} in Makefile. --- cgit.patch begins here --- diff -ru cgit.orig/files/pkg-message.in cgit/files/pkg-message.in --- cgit.orig/files/pkg-message.in 2008-10-16 13:26:36.000000000 +0200 +++ cgit/files/pkg-message.in 2011-04-02 00:53:49.492001592 +0200 @@ -1,5 +1,5 @@ --------------------------------------------------- -%%PORTNAME%% has been successfully installed. +cgit has been successfully installed. Now you need to change your webserver configuration as follows: diff -ru cgit.orig/pkg-plist cgit/pkg-plist --- cgit.orig/pkg-plist 2011-03-12 03:03:19.215946000 +0100 +++ cgit/pkg-plist 2011-04-02 00:53:18.604363588 +0200 @@ -8,5 +8,5 @@ @dirrm lib/cgit/filters @dirrm lib/cgit @dirrm %%WWWDIR%% -@exec mkdir -p /var/cache/%%PORTNAME%% -@unexec rmdir /var/cache/%%PORTNAME%% 2>/dev/null || true +@exec mkdir -p /var/cache/cgit +@unexec rmdir /var/cache/cgit 2>/dev/null || true --- cgit.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted: