Bug 139670 - New port: net-p2p/uhub uHub is a high performance peer-to-peer hub for the ADC network
Summary: New port: net-p2p/uhub uHub is a high performance peer-to-peer hub for the AD...
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: Dmitry Marakasov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-16 07:20 UTC by Dmitry Yashin
Modified: 2009-11-11 16:50 UTC (History)
0 users

See Also:


Attachments
file.shar (4.94 KB, text/plain)
2009-10-16 07:20 UTC, Dmitry Yashin
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry Yashin 2009-10-16 07:20:00 UTC
Fix: Patch attached with submission follows:
Comment 1 Gavin Atkinson freebsd_committer freebsd_triage 2009-10-18 13:29:16 UTC
Responsible Changed
From-To: freebsd-bugs->freebsd-ports-bugs

Ports PR
Comment 2 Edwin Groothuis freebsd_committer freebsd_triage 2009-10-18 13:30:03 UTC
Class Changed
From-To: update->change-request

Fix category (new ports should be change-requests) (via the GNATS Auto 
Assign Tool)
Comment 3 Dmitry Marakasov freebsd_committer freebsd_triage 2009-10-19 18:04:51 UTC
Responsible Changed
From-To: freebsd-ports-bugs->amdmi3

I'll take it.
Comment 4 Dmitry Marakasov 2009-10-19 18:59:01 UTC
* Dmitry Yashin (yashin.dm@gmail.com) wrote:

> >Synopsis:       New port: net-p2p/uhub uHub is a high performance peer-to-peer hub for the ADC network

etc/* files are not listed in the plist. These also require special
handling:

http://www.freebsd.org/doc/en/books/porters-handbook/plist-config.html

Also, the port doesn't respect PREFIX and LOCALBASE, makefile patch
should be like this:

--- patch-GNUmakefile begins here ---
--- GNUmakefile.orig	2009-03-24 02:21:38.000000000 +0300
+++ GNUmakefile	2009-10-19 21:02:02.000000000 +0400
@@ -31,10 +31,10 @@
 BIN_EXT       ?= .exe
 else
 DESTDIR       ?= /
-UHUB_CONF_DIR ?= $(DESTDIR)/etc/uhub
-UHUB_PREFIX   ?= $(DESTDIR)/usr/local
-CFLAGS        += -I/usr/local/include
-LDFLAGS       += -L/usr/local/lib
+UHUB_PREFIX   ?= $(PREFIX)
+UHUB_CONF_DIR ?= $(UHUB_PREFIX)/etc/uhub
+CFLAGS        += -I${LOCALBASE}/include
+LDFLAGS       += -L$(LOCALBASE)/lib
 BIN_EXT       ?=
 endif
 
--- patch-GNUmakefile ends here ---

another place is configuration files, I suggest you to use @{REINPLACE_CMD}
-e 's|/etc/uhub|${PREFIX}&|' instead of patching config file.

Finally, you shouldn't redefine uhub_start/stop targets if you do basically
the same thing that is done by rc.subr by default. SIGKILL is very suspicious too
- if the software doesn't handle sinals correctly, it should be
patched in the code.

-- 
Dmitry Marakasov   .   55B5 0596 FF1E 8D84 5F56  9510 D35A 80DD F9D2 F77D
amdmi3@amdmi3.ru  ..:  jabber: amdmi3@jabber.ru    http://www.amdmi3.ru
Comment 5 Dmitry Marakasov freebsd_committer freebsd_triage 2009-10-19 18:59:23 UTC
State Changed
From-To: open->feedback

Awaiting submitters feedback
Comment 6 dfilter service freebsd_committer freebsd_triage 2009-11-11 16:44:13 UTC
amdmi3      2009-11-11 16:43:59 UTC

  FreeBSD ports repository

  Modified files:
    net-p2p              Makefile 
  Added files:
    net-p2p/uhub         Makefile distinfo pkg-descr pkg-plist 
    net-p2p/uhub/files   patch-GNUmakefile patch-main.c_add_pid 
                         uhub.sh.in 
  Log:
  uHub is a high performance peer-to-peer hub for the ADC network.
  Its low memory footprint allows it to handle several thousand users
  on high-end servers, or a small private hub on embedded hardware.
  
  WWW: http://www.extatic.org/uhub/
  
  PR:             139670
  Submitted by:   Dmitry Yashin <yashin.dm@gmail.com>
  
  Revision  Changes    Path
  1.79      +1 -0      ports/net-p2p/Makefile
  1.1       +37 -0     ports/net-p2p/uhub/Makefile (new)
  1.1       +3 -0      ports/net-p2p/uhub/distinfo (new)
  1.1       +35 -0     ports/net-p2p/uhub/files/patch-GNUmakefile (new)
  1.1       +91 -0     ports/net-p2p/uhub/files/patch-main.c_add_pid (new)
  1.1       +55 -0     ports/net-p2p/uhub/files/uhub.sh.in (new)
  1.1       +5 -0      ports/net-p2p/uhub/pkg-descr (new)
  1.1       +11 -0     ports/net-p2p/uhub/pkg-plist (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 7 Dmitry Marakasov freebsd_committer freebsd_triage 2009-11-11 16:44:32 UTC
State Changed
From-To: feedback->open

Updated patch received
Comment 8 Dmitry Marakasov freebsd_committer freebsd_triage 2009-11-11 16:44:40 UTC
State Changed
From-To: open->closed

New port added. Thanks!