Skip site navigation (1)Skip section navigation (2)
Date:      02 Jun 2000 12:49:37 -0700
From:      asami@freebsd.org (Satoshi - Ports Wraith - Asami)
To:        James Housley <jim@thehousleys.net>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: "Extra" files
Message-ID:  <vqc3dmvn9ri.fsf@silvia.hip.berkeley.edu>
In-Reply-To: James Housley's message of "Fri, 02 Jun 2000 15:30:52 -0400"
References:  <39380B6C.5C06B920@thehousleys.net>

next in thread | previous in thread | raw e-mail | index | archive | help
 * From: James Housley <jim@thehousleys.net>

 * 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




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