Bug 136400 - New port: www/woof
Summary: New port: www/woof
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Martin Wilke
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-07 05:00 UTC by dereckson
Modified: 2009-07-07 23:30 UTC (History)
0 users

See Also:


Attachments
file.shar (1.72 KB, text/plain)
2009-07-07 05:00 UTC, dereckson
no flags Details
patch.txt (452 bytes, text/plain; charset=US-ASCII)
2009-07-07 22:28 UTC, dereckson
no flags Details
patch.txt (452 bytes, text/plain; charset=US-ASCII)
2009-07-07 22:42 UTC, dereckson
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description dereckson 2009-07-07 05:00:10 UTC
Woof (Web Offer One File) is a Python small webserver designed to serve one or
several times a file, then shutdown.

http://www.home.unix-ag.org/simon/woof.html

* * * 

This port is a one file non compressed python script.

The way I handled it seems clumsy as I never seen a direct copy from distfiles to final directory.

DISTNAME=               woof
EXTRACT_SUFX=
EXTRACT_ONLY=

do-install:
        ${INSTALL} -o ${SHAREOWN} -g ${SHAREGRP} -m 0755 \
        ${DISTDIR}/woof ${PREFIX}/bin/woof

Is the correct way to do?

Fix: Patch attached with submission follows:
Comment 1 Martin Wilke freebsd_committer freebsd_triage 2009-07-07 12:01:25 UTC
Responsible Changed
From-To: freebsd-ports-bugs->miwi

I'll take it.
Comment 2 Martin Wilke freebsd_committer freebsd_triage 2009-07-07 19:43:42 UTC
State Changed
From-To: open->closed

New port added. Thanks!
Comment 3 dfilter service freebsd_committer freebsd_triage 2009-07-07 19:44:08 UTC
miwi        2009-07-07 18:43:54 UTC

  FreeBSD ports repository

  Modified files:
    www                  Makefile 
  Added files:
    www/woof             Makefile distinfo pkg-descr 
  Log:
  Woof (Web Offer One File) is a Python small webserver designed to serve one or
  several times a file, then shutdown.
  
  Woof serves autogenerated archives, when a directory is specified.
  
  WWW: http://www.home.unix-ag.org/simon/woof.html
  
  PR:             ports/136400
  Submitted by:   Dereckson <dereckson at gmail.com>
  
  Revision  Changes    Path
  1.2392    +1 -0      ports/www/Makefile
  1.1       +26 -0     ports/www/woof/Makefile (new)
  1.1       +3 -0      ports/www/woof/distinfo (new)
  1.1       +6 -0      ports/www/woof/pkg-descr (new)
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 4 dereckson 2009-07-07 22:28:07 UTC
Hi,

You've replaced my install sequence by this:
${INSTALL_DATA} ${DISTDIR}/woof ${PREFIX}/bin/woof

This line is executed as:
install  -o root -g wheel -m 444 /usr/ports/distfiles/woof /usr/local/bin/woof

So woof isn't excutable.

It should be INSTALL_SCRIPT, to give a 555 chmod, shouldn't be?
Comment 5 dereckson 2009-07-07 22:42:01 UTC
Patch seems ugly at first transfer.
Comment 6 dereckson 2009-07-07 23:28:40 UTC
Gmail doesn't seem to like its patch.

http://pastebin.com/m3c8c4432