Date: Fri, 7 Jan 2005 10:37:24 -0800 From: Brooks Davis <brooks@one-eyed-alien.net> To: Jonathan Weiss <tomonage2@gmx.de> Cc: FreeBSD-Ports <ports@freebsd.org> Subject: Re: Question about optional setting of symbolic links Message-ID: <20050107183724.GD30931@odin.ac.hmc.edu> In-Reply-To: <BE0465EA.15028%tomonage2@gmx.de> References: <BE0465EA.15028%tomonage2@gmx.de>
next in thread | previous in thread | raw e-mail | index | archive | help
--hoZxPH4CaxYzWscb Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jan 07, 2005 at 04:14:34PM +0100, Jonathan Weiss wrote: > Hi folks, >=20 >=20 > 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). >=20 > How do I do this? >=20 > I looked through the porters handbook and could not find something to > symbolic links. >=20 > I want to do something like this: >=20 > #.if defined(WITH_CUPS) > #ln -s /usr/local/bin/foomatic-rip > /usr/local/libexec/cups/filter/foomatic-rip > #.endif >=20 > 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 --=20 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 --hoZxPH4CaxYzWscb Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFB3tbjXY6L6fI4GtQRAh5SAJ9XDhvCADoSWhi962bChpsh1d/hOACfXkQo pHp/NxAmV9U/PedQ1HVUyc0= =oukD -----END PGP SIGNATURE----- --hoZxPH4CaxYzWscb--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050107183724.GD30931>