FreeBSD Port: bacula-1.32f5 updating destroys prior bacula conf files

Michael Edenfield kutulu at
Thu May 13 18:15:18 PDT 2004

* Ben Bangert <ben at> [040513 20:28]:
> Ummmmm
> I ran portupgrade the other day on bacula. Christ was that a mistake. I 
> had the absurd idea that as portupgrade has always done with every port 
> thus upgraded, it would save a copy of the conf files for the port. 
> Prolly to .old or something.

If upgrading the port removed your config files, then the port is most
likely to blame, not portupgrade.  The only backups (AFAIK) that
portupgrade keeps are old shared libraries, and if requested, a backup
of the old packages.

The way most ports work (and SHOULD work), the port installs a "sample"
copy of the config files as filename.conf.{sample,dist,default,etc}.  If
there is no live copy of the config file present, and a config file is
required, this sample is copied over.  Since the live config file is
never part of the pkg-plist, it doesn't get removed during a pkg_delete
or make deinstall.

The bacula port looks like it does the exact opposite, for some reason.
It includes the following in it's post-install target:

        if [ -f ${PREFIX}/etc/ ]; then \
                ${ECHO_CMD} "etc/" >> ${TMPPLIST}; \
        elif [ -f ${PREFIX}/etc/bconsole.conf ]; then \
                ${MV} ${PREFIX}/etc/bconsole.conf ${PREFIX}/etc/bconsole.conf.sample; \
                ${ECHO_CMD} "etc/bconsole.conf.sample" >> ${TMPPLIST}; \

If I'm reading that correctly, if there's an existing config file it
will get moved out of the way on upgrade, and then (since it's now in
the pkg-plist), REMOVED on uninstall.  

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url :

More information about the freebsd-ports mailing list