Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Aug 2016 21:36:56 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r420374 - in head/net-p2p/uhub: . files
Message-ID:  <201608172136.u7HLauBa029264@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Wed Aug 17 21:36:55 2016
New Revision: 420374
URL: https://svnweb.freebsd.org/changeset/ports/420374

Log:
  - Clarify LICENSE
  - Add LICENSE_FILE
  - Drop uneeded flags
  - Remove SQLITE option, sqlite support is not conditional
  - Switch to opt_CMAKE_BOOL
  - Simplify installation

Modified:
  head/net-p2p/uhub/Makefile
  head/net-p2p/uhub/files/patch-src__network__openssl.c
  head/net-p2p/uhub/pkg-plist

Modified: head/net-p2p/uhub/Makefile
==============================================================================
--- head/net-p2p/uhub/Makefile	Wed Aug 17 21:19:42 2016	(r420373)
+++ head/net-p2p/uhub/Makefile	Wed Aug 17 21:36:55 2016	(r420374)
@@ -10,30 +10,26 @@ MASTER_SITES=	http://www.extatic.org/dow
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	High performance peer-to-peer hub for the ADC network
 
-LICENSE=	GPLv3
+LICENSE=	GPLv3+
+LICENSE_FILE=	${WRKSRC}/COPYING
 
 WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
 
-USERS=		uhub
-GROUPS=		uhub
-
-USES=		cmake perl5
+USES=		cmake perl5 sqlite
 USE_RC_SUBR=	uhub
 USE_PERL5=	build
 
-CFLAGS+=	-fPIC -I${LOCALBASE}/include
-LDFLAGS+=	-L${LOCALBASE}/lib
+USERS=		uhub
+GROUPS=		uhub
+
+CFLAGS+=	-fPIC
 
-OPTIONS_DEFINE=		OPENSSL SQLITE
+OPTIONS_DEFINE=		OPENSSL
 OPTIONS_DEFAULT=	OPENSSL SQLITE
 OPTIONS_SUB=		yes
 
-OPENSSL_USE=		openssl=yes
-OPENSSL_CMAKE_OFF=	-DSSL_SUPPORT:BOOL=OFF
-SQLITE_USES=		sqlite
-SQLITE_CMAKE_OFF=	-DSQLITE_SUPPORT:BOOL=OFF
-
-.include <bsd.port.options.mk>
+OPENSSL_USES=		ssl
+OPENSSL_CMAKE_BOOL=	SSL_SUPPORT
 
 post-patch:
 	@${REINPLACE_CMD} -e \
@@ -45,19 +41,13 @@ post-patch:
 		's|"/etc/uhub/|"${ETCDIR}/|' ${WRKSRC}/src/uhub.h
 
 do-install:
-	(cd ${INSTALL_WRKSRC} && ${INSTALL_PROGRAM} uhub \
-		${STAGEDIR}${PREFIX}/bin)
-.if ${PORT_OPTIONS:MSQLITE}
-	(cd ${INSTALL_WRKSRC} && ${INSTALL_PROGRAM} uhub-passwd \
-		${STAGEDIR}${PREFIX}/bin)
-.endif
+	${INSTALL_PROGRAM} ${WRKSRC}/uhub ${STAGEDIR}${PREFIX}/bin
+	${INSTALL_PROGRAM} ${WRKSRC}/uhub-passwd ${STAGEDIR}${PREFIX}/bin
 	@${MKDIR} ${STAGEDIR}${PREFIX}/lib/uhub
-	(cd ${INSTALL_WRKSRC} && ${INSTALL_LIB} mod_*.so \
-		${STAGEDIR}${PREFIX}/lib/uhub)
+	${INSTALL_LIB} ${WRKSRC}/mod_*.so ${STAGEDIR}${PREFIX}/lib/uhub
 	@${MKDIR} ${STAGEDIR}${ETCDIR}
 .for i in uhub.conf users.conf
-	(cd ${WRKSRC}/doc && ${INSTALL_DATA} ${i} \
-		${STAGEDIR}${ETCDIR}/${i}.sample)
+	${INSTALL_DATA} ${WRKSRC}/doc/${i} ${STAGEDIR}${ETCDIR}/${i}.sample
 .endfor
 .for i in motd.txt rules.txt
 	@${ECHO_CMD} -n > ${STAGEDIR}${ETCDIR}/${i}.sample

Modified: head/net-p2p/uhub/files/patch-src__network__openssl.c
==============================================================================
--- head/net-p2p/uhub/files/patch-src__network__openssl.c	Wed Aug 17 21:19:42 2016	(r420373)
+++ head/net-p2p/uhub/files/patch-src__network__openssl.c	Wed Aug 17 21:36:55 2016	(r420374)
@@ -1,6 +1,6 @@
---- src/network/openssl.c.orig
+--- src/network/openssl.c.orig	2014-08-06 18:56:07 UTC
 +++ src/network/openssl.c
-@@ -106,10 +106,12 @@
+@@ -106,10 +106,12 @@ static const SSL_METHOD* get_ssl_method(
  
  	if (!strcmp(tls_version, "1.0"))
  	  return TLSv1_method();

Modified: head/net-p2p/uhub/pkg-plist
==============================================================================
--- head/net-p2p/uhub/pkg-plist	Wed Aug 17 21:19:42 2016	(r420373)
+++ head/net-p2p/uhub/pkg-plist	Wed Aug 17 21:36:55 2016	(r420374)
@@ -1,13 +1,13 @@
 bin/uhub
-%%SQLITE%%bin/uhub-passwd
+bin/uhub-passwd
 @sample(,uhub,0640) %%ETCDIR%%/motd.txt.sample
 @sample(,uhub,0640) %%ETCDIR%%/rules.txt.sample
 @sample(,uhub,0640) %%ETCDIR%%/uhub.conf.sample
 @sample(,uhub,0640) %%ETCDIR%%/users.conf.sample
 lib/uhub/mod_auth_simple.so
-%%SQLITE%%lib/uhub/mod_auth_sqlite.so
+lib/uhub/mod_auth_sqlite.so
 lib/uhub/mod_chat_history.so
-%%SQLITE%%lib/uhub/mod_chat_history_sqlite.so
+lib/uhub/mod_chat_history_sqlite.so
 lib/uhub/mod_chat_only.so
 lib/uhub/mod_example.so
 lib/uhub/mod_logging.so



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201608172136.u7HLauBa029264>