Question about optional setting of symbolic links

Brooks Davis brooks at
Fri Jan 7 10:35:27 PST 2005

On Fri, Jan 07, 2005 at 04:14:34PM +0100, Jonathan Weiss wrote:
> Hi folks,
> I'm working on a port of foomatic-filters and I want to optionaly set up a
> symbolic link if CUPS-support is wanted (in order to register foomatic-rip
> as a filter for cups).
> How do I do this?
> I looked through the porters handbook and could not find something to
> symbolic links.
> I want to do something like this:
> #.if defined(WITH_CUPS)
> #ln -s /usr/local/bin/foomatic-rip
> /usr/local/libexec/cups/filter/foomatic-rip
> #.endif
> How do I remove this link later?

Put it in your plist if you create it.  You could also use pkg-install
and deinstall scripts to create it if ${LOCALBASE}/libexec/cups/filter/
exists and destroy it if it exists when you uninstall.  The nice thing
about that is that the package works without requiring that you depend
on CUPS.

-- Brooks

Any statement of the form "X is the one, true Y" is FALSE.
PGP fingerprint 655D 519C 26A7 82E7 2529  9BF0 5D8E 8BE9 F238 1AD4
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url :

More information about the freebsd-ports mailing list