On Sun, Aug 1, 2010 at 5:29 PM, Timothy Rice <t.r...@ms.unimelb.edu.au> wrote: > --------------- Idea #2 --------------- > > The original hint does not provide much guidance for what group name to > assign to each package. I think it is good practice, where possible, to > make the user name equal to "<group name>-<version number>". > > For example, when installing man-pages according to LFS 6.6, the command > would be, > > install_package \ > 'The Man-pages package contains over 1,900 man pages.' \ > man-pages-3.23 man-pages > > Then make the default home directory /usr/<group>/<user>, eg > /usr/man-pages/man-pages-3.23. > > The reason to do this is that it helps implement versioning control. If > you ever need to manage/update/downgrade man-pages, you know to go to > /usr/man-pages, and you can see there every single version you've ever had > on your system. > > Furthermore, most source comes bundled as archives having names like > "man-pages-3.23.tar.bz2". Following the above naming scheme helps automate > the extraction of any sources that follow this standard. > > A final advantage comes from combining idea #2 with idea #1. Instead of > installing to "/usr/installation_directory", you can install to > "/usr/<group>/installation_directory". > > That way if you forget to remove the installation_directory used by a > different package, you don't get conflicts. If you want, you can keep > "/usr/<group>/installation_directory" around, as a record or as a backup. > > To implement idea #2 it is only necessary (IIRC) to modify one line of > "add_package_user", where the default home directory is defined. For > people new to package users, the Hint only needs to recommend the naming > scheme I've suggested, and point out how to modify if desired. I like Idea 2 the best. The only thing is, I want the home directory to be /usr/src/pkgusr/(package name)/(package version), if that's possible, or /usr/src/pkgusr/(package name)/(package name-version) if the former isn't possible. Also, the long user name should be like 'Manual pages for Linux' for the Man-pages, and the description should go into a .project file in the user's home directory.
-- William Immendorf The ultimate in free computing. Messages in plain text, please, no HTML. GPG key ID: 1697BE98 If it's not signed, it's not from me. -------------- "Every nonfree program has a lord, a master -- and if you use the program, he is your master." Richard Stallman -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page