From owner-freebsd-ports Sun Aug 25 3:50:14 2002 Delivered-To: freebsd-ports@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 75CAC37B400 for ; Sun, 25 Aug 2002 03:50:05 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 29EFD43E4A for ; Sun, 25 Aug 2002 03:50:05 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g7PAo4JU049986 for ; Sun, 25 Aug 2002 03:50:04 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g7PAo4lk049984; Sun, 25 Aug 2002 03:50:04 -0700 (PDT) Date: Sun, 25 Aug 2002 03:50:04 -0700 (PDT) Message-Id: <200208251050.g7PAo4lk049984@freefall.freebsd.org> To: freebsd-ports@FreeBSD.org Cc: From: Alan E Subject: Re: ports/41994: New Port: x11-fonts/artwiz-fonts Reply-To: Alan E Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR ports/41994; it has been noted by GNATS. From: Alan E To: Dominic Marks Cc: FreeBSD Bugs Subject: Re: ports/41994: New Port: x11-fonts/artwiz-fonts Date: Sun, 25 Aug 2002 06:45:33 -0400 On Sun, Aug 25, 2002 at 10:54:58AM +0100, Dominic Marks wrote: > shar artwiz-fonts/* artwiz-fonts/files/* > artwiz-fonts.shar What you really want is: shar $(find artwiz-fonts) >artwiz-fonts.shar I also had to make some changes regarding installation and the pkg-message file. You should use ${INSTALL_DATA}, not ${CP} to install the font files. Also, you can't write outside of ${WRKDIR}. What if the user has the ports dir NFS mounted read-only (like on the build clusters)? So you have to go through some clumsy crap to modify pkg-message: PKGMESSAGE= ${WRKDIR}/pkg-message [then later] .include post-install: @${SED} 's|$${X11BASE}|${X11BASE}|g' \ ${PKGDIR}/pkg-message >${PKGMESSAGE} @${CAT} ${PKGMESSAGE} .include [isn't that fun and intuitive?] The reason that's so weird is that you have to get X11BASE and PKGDIR defined before you can do the sed, but bsd.port.mk checks for the existence (using .if exists) of PKGMESSAGE in the post section or else if won't include it in the package. Hence the PITA. I also cleaned up all the portlint warnings that were cleanable. -- AlanE KDE-FreeBSD Team (http://freebsd.kde.org/) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message