Date: Fri, 5 Aug 2016 20:16:50 +0100 From: Andrew Wood <andrewjameswood@ymail.com> To: freebsd-questions@freebsd.org Subject: Re: Creating a pkg Message-ID: <2532ed27-902f-67ad-8dc2-0a1da9874f79@ymail.com> In-Reply-To: <e493d7ea-9c94-c929-bb46-a2f86a6447a1@ymail.com> References: <981a28ca-09a4-995b-fee3-55d4a6dc5fb3@ymail.com> <ab6bf712-f7ff-f5c6-3dc8-3b3980a3e33d@freebsd.org> <889eda92-91ce-ecd0-3426-97b688093102@ymail.com> <4e9ba369-ea20-03d4-f549-17a5bd73e66e@FreeBSD.org> <e493d7ea-9c94-c929-bb46-a2f86a6447a1@ymail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 29/07/16 18:33, Andrew Wood via freebsd-questions wrote: > On 28/07/16 22:14, Matthew Seaman wrote: > >> Note that >> pkg(8) will automatically calculate the file checksums so you can >> leave those bits out of >> your manifest > What is the syntax for doing this, what would I put in the files {} > section where the hash would normally go? > > OK after trial and error not helped by the fact that different docs seems to have different syntax, Ive managed to put together a pkg which will install all the files at the desired location and remove them again when the pkg is uninstalled. I can also set the file permissions but not the owner or group owner, which Im doing like this: files: { /path/to/file: {uname: 'username', gname: 'groupname',perm: 644}; } I suspect theres nothing wrong with that, the problem is simply that it isnt creating the user or group in the first place. Am I right in assuming that is the purpose of users: ["username"]; groups: ["groupname", "groupname2"]; If so why is it not making the necessary entries in the /etc/passwd or /etc/group files? Thanks Andrew
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2532ed27-902f-67ad-8dc2-0a1da9874f79>