Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 May 2014 09:09:46 +0200
From:      Zsolt Udvari <udvzsolt@gmail.com>
To:        Perry Hutchison <perryh@pluto.rain.com>
Cc:        bapt@freebsd.org, FreeBSD Ports mailing list <freebsd-ports@freebsd.org>
Subject:   Re: Is staging a port really this simple?
Message-ID:  <CADtCJqoTpSB0E9uN8Y6CkZm_8wjU0b5Pc50vT=pB-bHjZmGpeQ@mail.gmail.com>
In-Reply-To: <538179d9.ERL3ZKEnk4pQKKib%perryh@pluto.rain.com>
References:  <524CE820.5060003@missouri.edu> <20131003061511.GF85314@ithaqua.etoilebsd.net> <538179d9.ERL3ZKEnk4pQKKib%perryh@pluto.rain.com>

next in thread | previous in thread | raw e-mail | index | archive | help
2014-05-25 7:04 GMT+02:00 Perry Hutchison <perryh@pluto.rain.com>:
>  post-install:
> -       @[ -f ${PREFIX}/etc/diskcheckd.conf ] \
> -               || ${CP} -p ${PREFIX}/etc/diskcheckd.conf.sample \
> -                       ${PREFIX}/etc/diskcheckd.conf
> +       @[ -f ${STAGEDIR}${PREFIX}/etc/diskcheckd.conf ] \
> +               || ${CP} -p ${STAGEDIR}${PREFIX}/etc/diskcheckd.conf.sample \
> +                       ${STAGEDIR}${PREFIX}/etc/diskcheckd.conf
Your condition is unneeded.
You don't need check the existence of
${STAGEDIR}${PREFIX}/etc/distcheckd.conf because you'll copy it, the
${STAGEDIR} are empty!!!!
The reason of "old" check was: shouldn't overwrite the existing
distcheckd.conf (in system, not STAGEDIR). These checks are
unnecessary, the 'pkg' does it.

Cheers,
  Zsolt



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CADtCJqoTpSB0E9uN8Y6CkZm_8wjU0b5Pc50vT=pB-bHjZmGpeQ>