From owner-svn-ports-head@FreeBSD.ORG Mon Aug 6 10:28:28 2012 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 06369106566C; Mon, 6 Aug 2012 10:28:28 +0000 (UTC) (envelope-from scheidell@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id DA7208FC14; Mon, 6 Aug 2012 10:28:27 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q76ASR5v025301; Mon, 6 Aug 2012 10:28:27 GMT (envelope-from scheidell@svn.freebsd.org) Received: (from scheidell@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q76ASRsG025297; Mon, 6 Aug 2012 10:28:27 GMT (envelope-from scheidell@svn.freebsd.org) Message-Id: <201208061028.q76ASRsG025297@svn.freebsd.org> From: Michael Scheidell Date: Mon, 6 Aug 2012 10:28:27 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r302156 - in head/net-p2p/uhub: . files X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Aug 2012 10:28:28 -0000 Author: scheidell Date: Mon Aug 6 10:28:27 2012 New Revision: 302156 URL: http://svn.freebsd.org/changeset/ports/302156 Log: - Update to 0.4.0 - Honour CC and CFLAGS - Convert to OPTIONSNG - Add SQLite dependency - Add DEBUG OPTION - Use DISTFILES over DISTNAME/WRKSRC override - Add LICENSE - Use USE_OPENSSL - Fix PORTLINT warnings PR: ports/168855 Submitted by: koobs Approved by: maintainer (timeout, 58 days) Modified: head/net-p2p/uhub/Makefile head/net-p2p/uhub/distinfo head/net-p2p/uhub/files/patch-GNUmakefile Modified: head/net-p2p/uhub/Makefile ============================================================================== --- head/net-p2p/uhub/Makefile Mon Aug 6 09:40:09 2012 (r302155) +++ head/net-p2p/uhub/Makefile Mon Aug 6 10:28:27 2012 (r302156) @@ -6,17 +6,19 @@ # PORTNAME= uhub -PORTVERSION= 0.3.2 -PORTREVISION= 4 +PORTVERSION= 0.4.0 CATEGORIES= net-p2p MASTER_SITES= http://www.extatic.org/downloads/uhub/ -DISTNAME= ${PORTNAME}-${PORTVERSION}-src +DISTFILES= ${PORTNAME}-${PORTVERSION}-src${EXTRACT_SUFX} MAINTAINER= yashin.dm@gmail.com COMMENT= High performance peer-to-peer hub for the ADC network +LICENSE= GPLv3 + USE_PERL5_BUILD=yes USE_GMAKE= yes +USE_SQLITE= yes USE_RC_SUBR= uhub USERS= uhub @@ -24,20 +26,32 @@ GROUPS= uhub SHAREGRP= uhub SHAREMODE= 640 -WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} MAKEFILE= ${WRKSRC}/GNUmakefile -OPTIONS= OPENSSL "Enable SSL support (experimental)" off +OPTIONS_DEFINE= DEBUG OPENSSL +OPENSSL_DESC= Enable OpenSSL Support (experimental) -.include +.include + +.if ${PORT_OPTIONS:MOPENSSL} +USE_OPENSSL= yes +MAKE_ARGS+= USE_SSL=YES +.else +MAKE_ARGS+= USE_SSL=NO +.endif -.if defined(WITH_OPENSSL) -.include "${PORTSDIR}/Mk/bsd.openssl.mk" -MAKE_ARGS= USE_SSL=YES -CFLAGS+= -I${OPENSSLINC} -LDFLAGS+= -L${OPENSSLLIB} +.if ${PORT_OPTIONS:MDEBUG} +CFLAGS+= -ggdb -DDEBUG +.else +CFLAGS+= -DNDEBUG .endif +.include + +CFLAGS+= -I./src/ -I${LOCALBASE}/include +MAKE_ARGS+= UHUB_PREFIX="${PREFIX}" UHUB_CONF_DIR="${PREFIX}/etc/uhub" \ + SILENT=NO CC="${CC}" CFLAGS="${CFLAGS}" + post-patch: @${REINPLACE_CMD} -e 's|/etc/uhub/|${PREFIX}&|' ${WRKSRC}/doc/uhub.conf @${REINPLACE_CMD} -e 's|/etc/uhub/|${PREFIX}&|' ${WRKSRC}/src/uhub.h Modified: head/net-p2p/uhub/distinfo ============================================================================== --- head/net-p2p/uhub/distinfo Mon Aug 6 09:40:09 2012 (r302155) +++ head/net-p2p/uhub/distinfo Mon Aug 6 10:28:27 2012 (r302156) @@ -1,2 +1,2 @@ -SHA256 (uhub-0.3.2-src.tar.gz) = 8503f9775e2469e271a461452cedf1ef6c0d32b38e0bec6b77170b216a5a374e -SIZE (uhub-0.3.2-src.tar.gz) = 156108 +SHA256 (uhub-0.4.0-src.tar.gz) = e6f4c35bb5d5ff973ca2428a0432d6545b6f38f08387697cf05b608b5c4525ac +SIZE (uhub-0.4.0-src.tar.gz) = 194568 Modified: head/net-p2p/uhub/files/patch-GNUmakefile ============================================================================== --- head/net-p2p/uhub/files/patch-GNUmakefile Mon Aug 6 09:40:09 2012 (r302155) +++ head/net-p2p/uhub/files/patch-GNUmakefile Mon Aug 6 10:28:27 2012 (r302156) @@ -1,36 +1,12 @@ ---- GNUmakefile.orig 2010-06-02 09:48:21.000000000 +0400 -+++ GNUmakefile 2010-06-02 09:55:21.000000000 +0400 -@@ -5,7 +5,7 @@ - - -include Makefile.private - --CC = gcc -+CC ?= gcc - LD := $(CC) - MV := mv - RANLIB := ranlib -@@ -44,10 +44,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 - -@@ -249,7 +249,8 @@ - @if [ ! -d $(UHUB_CONF_DIR) ]; then echo Creating $(UHUB_CONF_DIR); mkdir -p $(UHUB_CONF_DIR); fi - @if [ ! -f $(UHUB_CONF_DIR)/uhub.conf ]; then cp doc/uhub.conf $(UHUB_CONF_DIR); fi - @if [ ! -f $(UHUB_CONF_DIR)/users.conf ]; then cp doc/users.conf $(UHUB_CONF_DIR); fi -- @touch $(UHUB_CONF_DIR)/motd.txt +--- ./GNUmakefile.orig 2012-06-09 00:35:21.000000000 +1000 ++++ ./GNUmakefile 2012-06-09 00:37:17.000000000 +1000 +@@ -365,8 +365,8 @@ + @if [ ! -f $(UHUB_CONF_DIR)/rules.txt ]; then cp doc/rules.txt $(UHUB_CONF_DIR); fi + @if [ ! -f $(UHUB_CONF_DIR)/plugins.conf ]; then cp doc/plugins.conf $(UHUB_CONF_DIR); fi + @if [ ! -d $(UHUB_MOD_DIR) ]; then echo Creating $(UHUB_MOD_DIR); mkdir -p $(UHUB_MOD_DIR); fi + @if [ ! -f $(UHUB_CONF_DIR)/motd.txt ]; then touch $(UHUB_CONF_DIR)/motd.txt; fi -+ @if [ ! -f $(UHUB_CONF_DIR)/rules.txt ]; then touch $(UHUB_CONF_DIR)/rules.txt; fi + @cp -f mod_*.so $(UHUB_MOD_DIR) +- @touch $(UHUB_CONF_DIR)/motd.txt @echo done. endif