Re: Source install to look like installed package

2008-09-18 Thread Peter Pentchev
On Wed, Sep 17, 2008 at 04:40:59PM -0400, Francisco Reyes wrote:
 Matthew Seaman writes:
 
  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?
 
 Yes.
  
  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
 
 
 Ok.
  
  Submitting PRs with updates to bring the FreePascal port up to date
  will earn you karma points...
 
 I am thinking perhaps start out with a binary port or a package until I 
 get familiar with the port system.

In most cases that's actually a bit harder than doing a simple port :)
Of course, there are applications that do not lend themselves to
porting simply, but in most cases even the Quick Porting procedure
described in the Porters Handbook[1] is enough to get you a working,
albeit not picture-perfect, package.

[1] http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/

G'luck,
Peter

-- 
Peter Pentchev  [EMAIL PROTECTED][EMAIL PROTECTED][EMAIL PROTECTED]
PGP key:http://people.FreeBSD.org/~roam/roam.key.asc
Key fingerprint FDBA FD79 C26F 3C51 C95E  DF9E ED18 B68D 1619 4553
You have, of course, just begun reading the sentence that you have just 
finished reading.


pgpJvoNTRvwDE.pgp
Description: PGP signature


Re: Source install to look like installed package

2008-09-17 Thread Francisco Reyes

Matthew Seaman writes:


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?


Yes.


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



Ok.


Submitting PRs with updates to bring the FreePascal port up to date
will earn you karma points...


I am thinking perhaps start out with a binary port or a package until I 
get familiar with the port system.


Thanks for the pointers.
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to [EMAIL PROTECTED]


Source install to look like installed package

2008-09-16 Thread Francisco Reyes

Where could I find the structure of an installed port?

I am trying to take an existing binary install and make it appear as an 
installed package to facilitate uninstall.


It is the FreePascal install script. Although we have a a port, it usually 
is behind. 

The existing script basically just untars some binaries to a user 
selected directory.


___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Source install to look like installed package

2008-09-16 Thread Matthew Seaman

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 
bulk of what you need.  pkg_add(1) contains most of the rest.


I am trying to take an existing binary install and make it appear as an 
installed package to facilitate uninstall.


It is the FreePascal install script. Although we have a a port, it 
usually is behind.
The existing script basically just untars some binaries to a user 
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

--
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
 Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
 Kent, CT11 9PW



signature.asc
Description: OpenPGP digital signature