Bug 234069 - ports-mgmt/pkg: 12.0 pkg -r error message
Summary: ports-mgmt/pkg: 12.0 pkg -r error message
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-pkg mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-12-16 18:13 UTC by Poul-Henning Kamp
Modified: 2019-01-09 15:59 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Poul-Henning Kamp freebsd_committer 2018-12-16 18:13:38 UTC
When I install rsync with 'pkg -r somedir' I get this error:

 [1/2] Fetching rsync-3.1.3.txz: .......... done
 [2/2] Fetching libiconv-1.14_11.txz: .......... done
 Checking integrity... done (0 conflicting)
 [1/2] Installing libiconv-1.14_11...
 [1/2] Extracting libiconv-1.14_11: .......... done
 [2/2] Installing rsync-3.1.3...
 [2/2] Extracting rsync-3.1.3: .......... done
 cp: /usr/local/etc/rsync/rsyncd.conf.sample: No such file or directory
 pkg: POST-INSTALL script failed

The rsync.conf.sample file has been put into place however:

        # ls -l /mnt.newroot/usr/local/etc/rsync/rsyncd.conf.sample  
        -rw-r--r--  1 root  wheel  772 Dec  8 05:28 /mnt.newroot/usr/local/etc/rsync/rsyncd.conf.sample

Rsync is not installed on the running image I do this from, so my
theory is that the "-r somedir" is not getting applied to a cp from
'rsyncd.conf.sample' to 'rsyncd.conf'

Hope somebody with more ports-clue can untangle this...