Re: how to install a port without install: in the Makefile

2009-01-30 Thread Steve Franks
On Wed, Jan 28, 2009 at 12:54 AM, Florent Thoumie f...@xbsd.org wrote:
 On Wed, Jan 28, 2009 at 4:56 AM, Dmitry Marakasov amd...@amdmi3.ru wrote:
 * Florent Thoumie (f...@xbsd.org) wrote:

  You are lucky guys you have not lived in USSR. otherwise you'd surely like
  alternative ways :)

 In soviet russia, alternative ways like you.

 I wish people remembered KISS more than TIMTOWTDI.

 PLIST_* seems S enough for me :)

 Which S are we talking about exactly? :-)

 --
 Florent Thoumie
 f...@freebsd.org
 FreeBSD Committer


portlint suggests PLIST_FILES

Steve
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: how to install a port without install: in the Makefile

2009-01-27 Thread Dmitry Marakasov
* Florent Thoumie (f...@xbsd.org) wrote:

  You are lucky guys you have not lived in USSR. otherwise you'd surely like
  alternative ways :)
 
 In soviet russia, alternative ways like you.
 
 I wish people remembered KISS more than TIMTOWTDI.

PLIST_* seems S enough for me :)

-- 
Dmitry Marakasov   .   55B5 0596 FF1E 8D84 5F56  9510 D35A 80DD F9D2 F77D
amd...@amdmi3.ru  ..:  jabber: amd...@jabber.ruhttp://www.amdmi3.ru
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: how to install a port without install: in the Makefile

2009-01-27 Thread Florent Thoumie
On Wed, Jan 28, 2009 at 4:56 AM, Dmitry Marakasov amd...@amdmi3.ru wrote:
 * Florent Thoumie (f...@xbsd.org) wrote:

  You are lucky guys you have not lived in USSR. otherwise you'd surely like
  alternative ways :)

 In soviet russia, alternative ways like you.

 I wish people remembered KISS more than TIMTOWTDI.

 PLIST_* seems S enough for me :)

Which S are we talking about exactly? :-)

-- 
Florent Thoumie
f...@freebsd.org
FreeBSD Committer
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: how to install a port without install: in the Makefile

2009-01-23 Thread Florent Thoumie
On Thu, Jan 22, 2009 at 10:05 PM, Dmitry Marakasov amd...@amdmi3.ru wrote:
 * Florent Thoumie (f...@xbsd.org) wrote:

  If it's just a single file, the preferred way is to add
 
  PLIST_FILES=bin/program_name
 
  to the Makefile and not use pkg-plist at all.

 No, no, no.

 This is not *preferred*.

 Is it not? Why? There's no reason to introduce pkg-plist for just
 a single file.

This is just an alternative way of doing it. I, for one, don't like
it. Same goes for PLIST_DIRS.

-- 
Florent Thoumie
f...@freebsd.org
FreeBSD Committer
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: how to install a port without install: in the Makefile

2009-01-23 Thread Jeremy Messenger

On Fri, 23 Jan 2009 03:47:38 -0600, Florent Thoumie f...@xbsd.org wrote:

On Thu, Jan 22, 2009 at 10:05 PM, Dmitry Marakasov amd...@amdmi3.ru  
wrote:

* Florent Thoumie (f...@xbsd.org) wrote:


 If it's just a single file, the preferred way is to add

 PLIST_FILES=bin/program_name

 to the Makefile and not use pkg-plist at all.

No, no, no.

This is not *preferred*.


Is it not? Why? There's no reason to introduce pkg-plist for just
a single file.


This is just an alternative way of doing it. I, for one, don't like
it. Same goes for PLIST_DIRS.


+1

Cheers,
Mezz


--
me...@cox.net  -  m...@freebsd.org
FreeBSD GNOME Team
http://www.FreeBSD.org/gnome/  -  gn...@freebsd.org
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: how to install a port without install: in the Makefile

2009-01-23 Thread Max Brazhnikov
On Fri, 23 Jan 2009 06:58:02 -0600, Jeremy Messenger wrote:
 On Fri, 23 Jan 2009 03:47:38 -0600, Florent Thoumie f...@xbsd.org wrote:
  On Thu, Jan 22, 2009 at 10:05 PM, Dmitry Marakasov amd...@amdmi3.ru
 
  wrote:
  * Florent Thoumie (f...@xbsd.org) wrote:
   If it's just a single file, the preferred way is to add
  
   PLIST_FILES=bin/program_name
  
   to the Makefile and not use pkg-plist at all.
 
  No, no, no.
 
  This is not *preferred*.
 
  Is it not? Why? There's no reason to introduce pkg-plist for just
  a single file.
 
  This is just an alternative way of doing it. I, for one, don't like
  it. Same goes for PLIST_DIRS.

 +1

You are lucky guys you have not lived in USSR. otherwise you'd surely like 
alternative ways :)

Max
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: how to install a port without install: in the Makefile

2009-01-23 Thread Florent Thoumie
On Fri, Jan 23, 2009 at 1:22 PM, Max Brazhnikov m...@issp.ac.ru wrote:
 On Fri, 23 Jan 2009 06:58:02 -0600, Jeremy Messenger wrote:
 On Fri, 23 Jan 2009 03:47:38 -0600, Florent Thoumie f...@xbsd.org wrote:
  On Thu, Jan 22, 2009 at 10:05 PM, Dmitry Marakasov amd...@amdmi3.ru
 
  wrote:
  * Florent Thoumie (f...@xbsd.org) wrote:
   If it's just a single file, the preferred way is to add
  
   PLIST_FILES=bin/program_name
  
   to the Makefile and not use pkg-plist at all.
 
  No, no, no.
 
  This is not *preferred*.
 
  Is it not? Why? There's no reason to introduce pkg-plist for just
  a single file.
 
  This is just an alternative way of doing it. I, for one, don't like
  it. Same goes for PLIST_DIRS.

 +1

 You are lucky guys you have not lived in USSR. otherwise you'd surely like
 alternative ways :)

In soviet russia, alternative ways like you.

I wish people remembered KISS more than TIMTOWTDI.

-- 
Florent Thoumie
f...@freebsd.org
FreeBSD Committer
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: how to install a port without install: in the Makefile

2009-01-23 Thread Steve Franks
I presume Florent's preferred method is INSTALL_PROGRAM?  So far,
the only doc I've found is that it exists.  So I put INSTALL_PROGRAM
$(WORKDIR)/$(PORTNAME) (portname just happens to be the name of the
executable) in the port Makefile, or what?  I've never been able to
'read' makefiles, so I'm not sure a look at ports.mk is going to cause
anything but frustration.  We've spent minutes arguing philisophy, can
I get a couple seconds of example? :)  Otherwise, PLIST_FILES looks
like it will work to me...

Best,
Steve

On Fri, Jan 23, 2009 at 7:19 AM, Florent Thoumie f...@xbsd.org wrote:
 On Fri, Jan 23, 2009 at 1:22 PM, Max Brazhnikov m...@issp.ac.ru wrote:
 On Fri, 23 Jan 2009 06:58:02 -0600, Jeremy Messenger wrote:
 On Fri, 23 Jan 2009 03:47:38 -0600, Florent Thoumie f...@xbsd.org wrote:
  On Thu, Jan 22, 2009 at 10:05 PM, Dmitry Marakasov amd...@amdmi3.ru
 
  wrote:
  * Florent Thoumie (f...@xbsd.org) wrote:
   If it's just a single file, the preferred way is to add
  
   PLIST_FILES=bin/program_name
  
   to the Makefile and not use pkg-plist at all.
 
  No, no, no.
 
  This is not *preferred*.
 
  Is it not? Why? There's no reason to introduce pkg-plist for just
  a single file.
 
  This is just an alternative way of doing it. I, for one, don't like
  it. Same goes for PLIST_DIRS.

 +1

 You are lucky guys you have not lived in USSR. otherwise you'd surely like
 alternative ways :)

 In soviet russia, alternative ways like you.

 I wish people remembered KISS more than TIMTOWTDI.

 --
 Florent Thoumie
 f...@freebsd.org
 FreeBSD Committer

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


Re: how to install a port without install: in the Makefile

2009-01-23 Thread Florent Thoumie
On Fri, Jan 23, 2009 at 3:46 PM, Steve Franks bahamasfra...@gmail.com wrote:
 I presume Florent's preferred method is INSTALL_PROGRAM?  So far,
 the only doc I've found is that it exists.  So I put INSTALL_PROGRAM
 $(WORKDIR)/$(PORTNAME) (portname just happens to be the name of the
 executable) in the port Makefile, or what?  I've never been able to
 'read' makefiles, so I'm not sure a look at ports.mk is going to cause
 anything but frustration.  We've spent minutes arguing philisophy, can
 I get a couple seconds of example? :)  Otherwise, PLIST_FILES looks
 like it will work to me...

It's not about installing files but rather registering them.
PLIST_FILES/PLIST_DIRS is just a way to replace pkg-plist, for wrong
reasons.

-- 
Florent Thoumie
f...@freebsd.org
FreeBSD Committer
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: how to install a port without install: in the Makefile

2009-01-23 Thread Stephen Montgomery-Smith

Steve Franks wrote:

I presume Florent's preferred method is INSTALL_PROGRAM?  So far,
the only doc I've found is that it exists.  So I put INSTALL_PROGRAM
$(WORKDIR)/$(PORTNAME) (portname just happens to be the name of the
executable) in the port Makefile, or what?  I've never been able to
'read' makefiles, so I'm not sure a look at ports.mk is going to cause
anything but frustration.  We've spent minutes arguing philisophy, can
I get a couple seconds of example? :)  Otherwise, PLIST_FILES looks
like it will work to me...


I had to do something like this in math/naturalmath.  I think this 
provides a very straightforward example of what you want.  I recall I 
copied this from other ports - I don't remember which - but you can know 
that they do exist.



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


Re: how to install a port without install: in the Makefile

2009-01-23 Thread Alexey Shuvaev
On Fri, Jan 23, 2009 at 08:46:32AM -0700, Steve Franks wrote:
 I presume Florent's preferred method is INSTALL_PROGRAM?  So far,
 the only doc I've found is that it exists.  So I put INSTALL_PROGRAM
 $(WORKDIR)/$(PORTNAME) (portname just happens to be the name of the
  ^
  WRKDIR or WRKSRC? See below.
 executable) in the port Makefile, or what?  I've never been able to
 'read' makefiles, so I'm not sure a look at ports.mk is going to cause
 anything but frustration.  We've spent minutes arguing philisophy, can
 I get a couple seconds of example? :)  Otherwise, PLIST_FILES looks
 like it will work to me...
 
As suggested by Oliver you do in the Makefile:

[...]
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/
[...]

Here you should decide yourself what is appropriate here:
WRKDIR is for example:

[wep4035] /usr/ports/x11-toolkits/slgtk make -V WRKDIR
/usr/ports/x11-toolkits/slgtk/work

while WRKSRC is:

[wep4035] /usr/ports/x11-toolkits/slgtk make -V WRKSRC
/usr/ports/x11-toolkits/slgtk/work/slgtk-0.7.3

So you should check in which directory your port extracts itself
(after make extract).
And you write in the pkg-plist:

bin/program_name

Here it is better not to bother with PORTNAME substitution and write
actual name of the program.

The documentation about internals of FreeBSD ports is available online:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/index.html

or, if you have installed (or built yourself) it, offline too:
file:///usr/share/doc/en_US.ISO8859-1/books/porters-handbook/index.html

Hope this helps,
Alexey.
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: how to install a port without install: in the Makefile

2009-01-23 Thread Doug Barton
Florent Thoumie wrote:
 It's not about installing files but rather registering them.
 PLIST_FILES/PLIST_DIRS is just a way to replace pkg-plist, for wrong
 reasons.

I respectfully disagree my friend. :)  There was a time back when
disks were a lot smaller that saving inodes was a noble thing.
Nowadays (for the most part) that is not really a consideration, but
personally I still find it convenient to list as much as possible in
the Makefile. It saves cvs churn in any case.

Doug

-- 

This .signature sanitized for your protection
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: how to install a port without install: in the Makefile

2009-01-23 Thread Florent Thoumie
On Fri, Jan 23, 2009 at 7:12 PM, Doug Barton do...@freebsd.org wrote:
 Florent Thoumie wrote:
 It's not about installing files but rather registering them.
 PLIST_FILES/PLIST_DIRS is just a way to replace pkg-plist, for wrong
 reasons.

 I respectfully disagree my friend. :)  There was a time back when
 disks were a lot smaller that saving inodes was a noble thing.
 Nowadays (for the most part) that is not really a consideration, but
 personally I still find it convenient to list as much as possible in
 the Makefile. It saves cvs churn in any case.

Come on, it was 2004, not 1994. Disks were already large and cheap.

This only adds complexity which in the end adds more code to
bsd.port.mk (which could already do with a good diet) and slows things
down (which of course is less and less of an issue, but still worth
mentioning).

-- 
Florent Thoumie
f...@freebsd.org
FreeBSD Committer
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: how to install a port without install: in the Makefile

2009-01-22 Thread Dmitry Marakasov
* Olivier SMEDTS (oliv...@gid0.org) wrote:

 and of course you must have bin/program_name in pkg-plist.

If it's just a single file, the preferred way is to add

PLIST_FILES=bin/program_name

to the Makefile and not use pkg-plist at all.

-- 
Dmitry Marakasov   .   55B5 0596 FF1E 8D84 5F56  9510 D35A 80DD F9D2 F77D
amd...@amdmi3.ru  ..:  jabber: amd...@jabber.ruhttp://www.amdmi3.ru
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: how to install a port without install: in the Makefile

2009-01-22 Thread Steve Franks

 and of course you must have bin/program_name in pkg-plist.

 If it's just a single file, the preferred way is to add

 PLIST_FILES=bin/program_name

 to the Makefile and not use pkg-plist at all.

 No, no, no.

 This is not *preferred*.


Well, what is, then? ...

Steve
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: how to install a port without install: in the Makefile

2009-01-22 Thread Dmitry Marakasov
* Florent Thoumie (f...@xbsd.org) wrote:

  If it's just a single file, the preferred way is to add
 
  PLIST_FILES=bin/program_name
 
  to the Makefile and not use pkg-plist at all.
 
 No, no, no.
 
 This is not *preferred*.

Is it not? Why? There's no reason to introduce pkg-plist for just
a single file.

-- 
Dmitry Marakasov   .   55B5 0596 FF1E 8D84 5F56  9510 D35A 80DD F9D2 F77D
amd...@amdmi3.ru  ..:  jabber: amd...@jabber.ruhttp://www.amdmi3.ru
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: how to install a port without install: in the Makefile

2009-01-22 Thread Florent Thoumie
On Thu, Jan 22, 2009 at 5:44 PM, Dmitry Marakasov amd...@amdmi3.ru wrote:
 * Olivier SMEDTS (oliv...@gid0.org) wrote:

 and of course you must have bin/program_name in pkg-plist.

 If it's just a single file, the preferred way is to add

 PLIST_FILES=bin/program_name

 to the Makefile and not use pkg-plist at all.

No, no, no.

This is not *preferred*.

-- 
Florent Thoumie
f...@freebsd.org
FreeBSD Committer
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


how to install a port without install: in the Makefile

2009-01-19 Thread Steve Franks
I got me a port that just builds a single executable.  What's the
proper way to set up the port makefile to copy that to /usr/local/bin?

Thanks,
Steve
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: how to install a port without install: in the Makefile

2009-01-19 Thread Olivier SMEDTS
2009/1/19 Olivier SMEDTS oliv...@gid0.org:
 2009/1/19 Steve Franks bahamasfra...@gmail.com:
 I got me a port that just builds a single executable.  What's the
 proper way to set up the port makefile to copy that to /usr/local/bin?

 I'd use :

 do-install:
 ${INSTALL_PROGRAM} ${WRKSRC}/program_name ${PREFIX}/bin/

and of course you must have bin/program_name in pkg-plist.


 Thanks,
 Steve
 ___
 freebsd-ports@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-ports
 To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org




 --
 Olivier Smedts _
ASCII ribbon campaign ( )
 e-mail: oliv...@gid0.org- against HTML email  vCards  X
 www: http://www.gid0.org- against proprietary attachments / \

  Il y a seulement 10 sortes de gens dans le monde :
  ceux qui comprennent le binaire,
  et ceux qui ne le comprennent pas.




-- 
Olivier Smedts _
ASCII ribbon campaign ( )
e-mail: oliv...@gid0.org- against HTML email  vCards  X
www: http://www.gid0.org- against proprietary attachments / \

  Il y a seulement 10 sortes de gens dans le monde :
  ceux qui comprennent le binaire,
  et ceux qui ne le comprennent pas.
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: how to install a port without install: in the Makefile

2009-01-19 Thread Olivier SMEDTS
2009/1/19 Steve Franks bahamasfra...@gmail.com:
 I got me a port that just builds a single executable.  What's the
 proper way to set up the port makefile to copy that to /usr/local/bin?

I'd use :

do-install:
${INSTALL_PROGRAM} ${WRKSRC}/program_name ${PREFIX}/bin/


 Thanks,
 Steve
 ___
 freebsd-ports@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-ports
 To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org




-- 
Olivier Smedts _
ASCII ribbon campaign ( )
e-mail: oliv...@gid0.org- against HTML email  vCards  X
www: http://www.gid0.org- against proprietary attachments / \

  Il y a seulement 10 sortes de gens dans le monde :
  ceux qui comprennent le binaire,
  et ceux qui ne le comprennent pas.
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: how to install a port without install: in the Makefile

2009-01-19 Thread Freddie Cash
On January 19, 2009 12:00 pm Steve Franks wrote:
 I got me a port that just builds a single executable.  What's the
 proper way to set up the port makefile to copy that to /usr/local/bin?

Add a do-install: section to the port Makefile, and put in the $INSTALL 
line(s) as needed to copy the executable from $WORKDIR to $LOCALBASE/bin

-- 
Freddie
fjwc...@gmail.com
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org