From owner-freebsd-ports@FreeBSD.ORG Wed Sep 17 05:49:44 2008 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3CC8C106566B for ; Wed, 17 Sep 2008 05:49:44 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (gate6.infracaninophile.co.uk [IPv6:2001:8b0:151:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id B4B0F8FC13 for ; Wed, 17 Sep 2008 05:49:43 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.3/8.14.3) with ESMTP id m8H5nbvk092713; Wed, 17 Sep 2008 06:49:39 +0100 (BST) (envelope-from m.seaman@infracaninophile.co.uk) X-DKIM: Sendmail DKIM Filter v2.7.1 smtp.infracaninophile.co.uk m8H5nbvk092713 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=infracaninophile.co.uk; s=200708; t=1221630579; bh=nRaMUiFZA56uV/ S/JRECOb4cGWJxzpdYCKZPpkSGUzw=; h=Message-ID:Date:From:MIME-Version: To:CC:Subject:References:In-Reply-To:Content-Type:Cc:Content-Type: Date:From:In-Reply-To:Message-ID:Mime-Version:References:To; z=Mes sage-ID:=20<48D09A6A.3060200@infracaninophile.co.uk>|Date:=20Wed,=2 017=20Sep=202008=2006:49:30=20+0100|From:=20Matthew=20Seaman=20|Organization:=20Infracaninophile|User -Agent:=20Thunderbird=202.0.0.16=20(X11/20080726)|MIME-Version:=201 .0|To:=20Francisco=20Reyes=20|CC:=20FreeBSD =20Ports=20|Subject:=20Re:=20Source=20in stall=20to=20look=20like=20installed=20package|References:=20|In-Reply-To:=20|X-Enigmail-Ve rsion:=200.95.6|Content-Type:=20multipart/signed=3B=20micalg=3Dpgp- sha256=3B=0D=0A=20protocol=3D"application/pgp-signature"=3B=0D=0A=2 0boundary=3D"------------enig3F34280BA0346CA3C31C3DE6"; b=PIfTlRLDS KrK1u39e/4LU0FY+LTYIBGJ5oanncEgP9u7xyMDZ/YSNRUGGljICMs3wFaGv6tOzdZx 1ATNPOIKfn+SADUoUdR/0uC2XSVnogR0lYiJ9ukKABzZmcxzML6CEjl9gNj5JZ2ua6N jZcGXl3Mf9AOGUDWMpatKHNawKs8= Message-ID: <48D09A6A.3060200@infracaninophile.co.uk> Date: Wed, 17 Sep 2008 06:49:30 +0100 From: Matthew Seaman Organization: Infracaninophile User-Agent: Thunderbird 2.0.0.16 (X11/20080726) MIME-Version: 1.0 To: Francisco Reyes References: In-Reply-To: X-Enigmail-Version: 0.95.6 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enig3F34280BA0346CA3C31C3DE6" X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0 (smtp.infracaninophile.co.uk [IPv6:::1]); Wed, 17 Sep 2008 06:49:39 +0100 (BST) X-Virus-Scanned: ClamAV 0.93.3/8267/Wed Sep 17 02:22:32 2008 on happy-idiot-talk.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-3.0 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VERIFIED,NO_RELAYS autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on happy-idiot-talk.infracaninophile.co.uk Cc: FreeBSD Ports Subject: Re: Source install to look like installed package X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Sep 2008 05:49:44 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig3F34280BA0346CA3C31C3DE6 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Francisco Reyes wrote: > Where could I find the structure of an installed port? The plist format is documented in pkg_create(1) -- that's the=20 bulk of what you need. pkg_add(1) contains most of the rest. =20 > I am trying to take an existing binary install and make it appear as an= =20 > installed package to facilitate uninstall. >=20 > It is the FreePascal install script. Although we have a a port, it=20 > usually is behind. > The existing script basically just untars some binaries to a user=20 > selected directory. You mean you want to generate a /var/db/pkg/portname-1.2.3 directory with appropriate contents so you can wrangle a bunch of files already on your hard drive as if they were a port? Actually, that's pretty much what the ports system does when you do an install from source. Check out the commands the 'do-package' target runs as shown in /usr/ports/Mk/bsd.port.mk Alternatively, and something which is a lot simpler: if all you want is to cleanly dispose of files installed outside the ports system and there is already a port of the software you want, then just do a forced install of the port on top of the existing files, and then pkg_delete the port. This should get rid of the vast majority if not all of those files. Submitting PRs with updates to bring the FreePascal port up to date will earn you karma points... Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW --------------enig3F34280BA0346CA3C31C3DE6 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEAREIAAYFAkjQmnEACgkQ8Mjk52CukIxUcgCdEtyxVv/xzc935D24mdmX1eaJ 0kEAn0AA4zS6L3NevthDKCZzoDGbnu09 =HpLG -----END PGP SIGNATURE----- --------------enig3F34280BA0346CA3C31C3DE6--