Date: Tue, 05 Feb 2008 13:05:12 +0100 From: michael.grunewald@laposte.net (=?iso-8859-15?Q?Micha=EBl_Gr=FCnewald?=) To: freebsd-questions@freebsd.org Subject: Best practices for managing tweaked ports Message-ID: <86sl07y5fr.fsf@Llea.celt.neu>
next in thread | raw e-mail | index | archive | help
Dear FreeBSD folks, I am seeking for a word in advice in how to automatically tweak some applications, possibly making packages for them. Long version: The XDM software provides an example to illustrate the issues: I have written scripts and configuration files that tweaked XDM to my fancy, and I wonder how use them to a large (large has a magnitude of 2 :) ) scale. The current solution is: I have a post install shell script that plugs my files into appropriate location. This works but there is two drawbacks: 1. I have to run that post install shell script on each targetted machine; 2. The home-made files are alien to package management tools, and cause (little) trouble int package management tools operation. Here are solutions I envisaged, I would like to know about pitfalls, recommendations, user experience, etc., with these: 1. I do use portupgrade, so I could use A/B (afterinstall, beforebuild) switches, hooks in pkgtools.conf as a base for a simple `port tweaking framework'. This would however not produce packages with tweakings wired in. 2. I could prepare ports dedicated to tweaking, i.e. a port that installs nothing but configuration files. I am afraid this cannot be done in a straightforward manner, since a given file (say /usr/local/lib/X11/xdm/Xresources) cannot be managed by two packages (the one made from the original XDM, and the one made from the XDM tweaker port) . 3. I could prepare a port derived from the original XDM port, that adds any tweaking, and play with pkgtools.conf to remap port dependencies adequately. As stated in the introduction, I would be very glad to get your advices, from your direct experience in this topic as well as `a priori'. --=20 Many thanks for your attention. Cheers, Micha=EBl
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86sl07y5fr.fsf>