From owner-freebsd-ports@FreeBSD.ORG Fri Jan 7 18:35:27 2005 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A83BF16A4CE for ; Fri, 7 Jan 2005 18:35:27 +0000 (GMT) Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8208A43D54 for ; Fri, 7 Jan 2005 18:35:27 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (localhost.localdomain [127.0.0.1]) by odin.ac.hmc.edu (8.13.0/8.13.0) with ESMTP id j07IbO6G002954; Fri, 7 Jan 2005 10:37:24 -0800 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.13.0/8.13.0/Submit) id j07IbOUC002953; Fri, 7 Jan 2005 10:37:24 -0800 Date: Fri, 7 Jan 2005 10:37:24 -0800 From: Brooks Davis To: Jonathan Weiss Message-ID: <20050107183724.GD30931@odin.ac.hmc.edu> References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="hoZxPH4CaxYzWscb" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new X-Spam-Status: No, hits=0.0 required=8.0 tests=none autolearn=no version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on odin.ac.hmc.edu cc: FreeBSD-Ports Subject: Re: Question about optional setting of symbolic links X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Jan 2005 18:35:27 -0000 --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--