From owner-freebsd-ports Fri Jun 2 12:50:40 2000 Delivered-To: freebsd-ports@freebsd.org Received: from granger.mail.mindspring.net (granger.mail.mindspring.net [207.69.200.148]) by hub.freebsd.org (Postfix) with ESMTP id 504C237BA0C for ; Fri, 2 Jun 2000 12:50:37 -0700 (PDT) (envelope-from asami@cs.berkeley.edu) Received: from silvia.hip.berkeley.edu (sji-ca41-211.ix.netcom.com [209.111.208.211]) by granger.mail.mindspring.net (8.9.3/8.8.5) with ESMTP id PAA03300; Fri, 2 Jun 2000 15:50:13 -0400 (EDT) Received: (from asami@localhost) by silvia.hip.berkeley.edu (8.9.3/8.6.9) id MAA67770; Fri, 2 Jun 2000 12:49:44 -0700 (PDT) To: James Housley Cc: freebsd-ports@freebsd.org Subject: Re: "Extra" files References: <39380B6C.5C06B920@thehousleys.net> From: asami@freebsd.org (Satoshi - Ports Wraith - Asami) Date: 02 Jun 2000 12:49:37 -0700 In-Reply-To: James Housley's message of "Fri, 02 Jun 2000 15:30:52 -0400" Message-ID: Lines: 26 X-Mailer: Gnus v5.7/Emacs 20.6 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org * From: James Housley * With respect to the discussion about build error and extra files. What * is the proper way to specify a config file in PLIST. Specifically, a * lot of ports like the apache series install a httpd.conf.dist and if * httpd.conf does not exist the httpd.conf.dist is copied to httpd.conf. * Now on unistall httpd.conf is not removed, and this is usually a good * idea for upgrading versions. You mean these lines. etc/apache/access.conf.default @exec [ ! -f %B/access.conf ] && cp %B/%f %B/access.conf Add something like @unexec if cmp -s %D/etc/apache/access.conf %D/etc/apache/access.conf.default; then rm -f %D/etc/apache/access.conf; fi *before* the "etc/apache/access.conf.default" line (so the comparison can be done). Also, the @exec line should probably be changed to use if, as the && construct will print out a warning message when it fails (of course, if that is the intention, that's fine). Satoshi To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message