svn commit: r375806 - in head/net/turnserver: . files

Baptiste Daroussin bapt at FreeBSD.org
Mon Dec 29 22:40:59 UTC 2014


Author: bapt
Date: Mon Dec 29 22:40:57 2014
New Revision: 375806
URL: https://svnweb.freebsd.org/changeset/ports/375806
QAT: https://qat.redports.org/buildarchive/r375806/

Log:
  Update to 3.2.5.3 [1]
  While here few cleanup:
  - Cleanup plist
  - Avoid extending PORTDOCS in post-install target we prefer to separate targets
    and variable definitions
  - Remove useless post-install
  - Recommend configuration in ${PREFIX}/etc instead of /etc, the binary also look
    for its configurations files in the directory
  - Cleanup EOL spaces in pkg-message
  
  PR:		196126 [1]
  Submitted by:	Bradley T. Hughes <bradleythughes at fastmail.fm>
  Approved by:	maintainer [1]

Modified:
  head/net/turnserver/Makefile
  head/net/turnserver/distinfo
  head/net/turnserver/files/pkg-message.in
  head/net/turnserver/pkg-plist

Modified: head/net/turnserver/Makefile
==============================================================================
--- head/net/turnserver/Makefile	Mon Dec 29 21:36:30 2014	(r375805)
+++ head/net/turnserver/Makefile	Mon Dec 29 22:40:57 2014	(r375806)
@@ -1,7 +1,7 @@
 # $FreeBSD$
 
 PORTNAME=	turnserver
-PORTVERSION=	3.2.5.2
+PORTVERSION=	3.2.5.3
 CATEGORIES=	net
 MASTER_SITES=	http://turnserver.open-sys.org/downloads/v${PORTVERSION}/:prog \
 		http://turnserver.open-sys.org/downloads/extradocs/:xdocs \
@@ -41,44 +41,46 @@ REDIS_DESC=	Redis support for user datab
 
 OPTIONS_DEFAULT=	MYSQL PGSQL REDIS
 
-.include <bsd.port.options.mk>
-
-PORTDOCS=	html TURNServerRESTAPI.pdf TurnNetworks.pdf
+DOCS=	html TURNServerRESTAPI.pdf TurnNetworks.pdf
 PORTREADMEDOCS=	LICENSE README.turnserver README.turnadmin README.turnutils INSTALL
+PORTDOCS=	${DOCS} ${PORTREADMEDOCS} postinstall.txt schema.sql \
+		schema.userdb.redis schema.stats.redis
 
 _BIN_UTILS=	peer stunclient uclient
 
 _ETC_EXAMPLES=	turnserver.conf turnuserdb.conf turn_client_cert.pem \
 		turn_client_pkey.pem turn_server_cert.pem turn_server_pkey.pem
 _SCRIPT_EXAMPLES=	peer.sh	\
-basic/relay.sh basic/dos_attack.sh \
-basic/tcp_client_c2c_tcp_relay.sh basic/udp_c2c_client.sh \
-basic/udp_client.sh basic/tcp_client.sh \
-loadbalance/master_relay.sh loadbalance/slave_relay_1.sh loadbalance/slave_relay_2.sh \
-loadbalance/udp_c2c.sh loadbalance/tcp_c2c_tcp_relay.sh \
-longtermsecure/secure_dtls_client.sh longtermsecure/secure_relay.sh \
-longtermsecure/secure_tls_client_cert.sh longtermsecure/secure_dtls_client_cert.sh \
-longtermsecure/secure_relay_cert.sh \
-longtermsecure/secure_tcp_client_c2c_tcp_relay.sh longtermsecure/secure_tcp_client.sh \
-longtermsecure/secure_tls_client_c2c_tcp_relay.sh longtermsecure/secure_tls_client.sh \
-longtermsecure/secure_udp_c2c.sh longtermsecure/secure_udp_client.sh \
-longtermsecure/secure_dos_attack.sh longtermsecure/secure_udp_client.sh \
-longtermsecuredb/secure_relay_with_db_psql.sh longtermsecuredb/secure_relay_with_db_mysql.sh \
-longtermsecuredb/secure_relay_with_db_mysql_ssl.sh \
-longtermsecuredb/secure_relay_with_db_redis.sh \
-restapi/secure_relay_secret.sh restapi/secure_relay_secret_with_db_mysql.sh \
-restapi/secure_relay_secret.sh restapi/secure_relay_secret_with_db_redis.sh \
-restapi/secure_udp_client_with_secret.sh \
-restapi/secure_relay_secret_with_db_psql.sh \
-restapi/shared_secret_maintainer.pl \
-shorttermsecure/secure_tcp_client_c2c_tcp_relay_short_term.sh \
-shorttermsecure/secure_udp_client_short_term.sh \
-shorttermsecure/secure_relay_short_term_mech.sh \
-selfloadbalance/secure_dos_attack.sh \
-selfloadbalance/secure_relay.sh
+	basic/relay.sh basic/dos_attack.sh \
+	basic/tcp_client_c2c_tcp_relay.sh basic/udp_c2c_client.sh \
+	basic/udp_client.sh basic/tcp_client.sh \
+	loadbalance/master_relay.sh loadbalance/slave_relay_1.sh loadbalance/slave_relay_2.sh \
+	loadbalance/udp_c2c.sh loadbalance/tcp_c2c_tcp_relay.sh \
+	longtermsecure/secure_dtls_client.sh longtermsecure/secure_relay.sh \
+	longtermsecure/secure_tls_client_cert.sh longtermsecure/secure_dtls_client_cert.sh \
+	longtermsecure/secure_relay_cert.sh \
+	longtermsecure/secure_tcp_client_c2c_tcp_relay.sh longtermsecure/secure_tcp_client.sh \
+	longtermsecure/secure_tls_client_c2c_tcp_relay.sh longtermsecure/secure_tls_client.sh \
+	longtermsecure/secure_udp_c2c.sh longtermsecure/secure_udp_client.sh \
+	longtermsecure/secure_dos_attack.sh longtermsecure/secure_udp_client.sh \
+	longtermsecuredb/secure_relay_with_db_psql.sh longtermsecuredb/secure_relay_with_db_mysql.sh \
+	longtermsecuredb/secure_relay_with_db_mysql_ssl.sh \
+	longtermsecuredb/secure_relay_with_db_redis.sh \
+	restapi/secure_relay_secret.sh restapi/secure_relay_secret_with_db_mysql.sh \
+	restapi/secure_relay_secret.sh restapi/secure_relay_secret_with_db_redis.sh \
+	restapi/secure_udp_client_with_secret.sh \
+	restapi/secure_relay_secret_with_db_psql.sh \
+	restapi/shared_secret_maintainer.pl \
+	shorttermsecure/secure_tcp_client_c2c_tcp_relay_short_term.sh \
+	shorttermsecure/secure_udp_client_short_term.sh \
+	shorttermsecure/secure_relay_short_term_mech.sh \
+	selfloadbalance/secure_dos_attack.sh \
+	selfloadbalance/secure_relay.sh
 
 CONFIGURE_ENV+=	PTHREAD_LIBS=-pthread TURN_DISABLE_RPATH=1
 
+.include <bsd.port.options.mk>
+
 .if ${PORT_OPTIONS:MPGSQL}
 USES+=		pgsql
 .else
@@ -137,7 +139,7 @@ do-install:
 .endif
 .if ${PORT_OPTIONS:MDOCS}
 	${MKDIR} ${STAGEDIR}${DOCSDIR}
-.for f in ${PORTDOCS}
+.for f in ${DOCS}
 	(cd ${WRKSRC}/../turndocs/docs/ && ${COPYTREE_SHARE} ${f} ${STAGEDIR}${DOCSDIR})
 .endfor
 .for f in ${PORTREADMEDOCS}
@@ -147,12 +149,8 @@ do-install:
 	${INSTALL_DATA} ${WRKSRC}/turndb/schema.sql ${STAGEDIR}${DOCSDIR}/schema.sql
 	${INSTALL_DATA} ${WRKSRC}/turndb/schema.userdb.redis ${STAGEDIR}${DOCSDIR}/schema.userdb.redis
 	${INSTALL_DATA} ${WRKSRC}/turndb/schema.stats.redis ${STAGEDIR}${DOCSDIR}/schema.stats.redis
-PORTDOCS+=	postinstall.txt ${PORTREADMEDOCS} schema.sql schema.userdb.redis schema.stats.redis
 .endif
 
-post-install:
-	${CAT} ${PKGMESSAGE}
-
 regression-test: build
 	@(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} test)
 

Modified: head/net/turnserver/distinfo
==============================================================================
--- head/net/turnserver/distinfo	Mon Dec 29 21:36:30 2014	(r375805)
+++ head/net/turnserver/distinfo	Mon Dec 29 22:40:57 2014	(r375806)
@@ -1,4 +1,4 @@
-SHA256 (turnserver-3.2.5.2.tar.gz) = 1a53d38dfd22cc27bf77f6682077a20b42740a599a278fff4864a06d33d18c43
-SIZE (turnserver-3.2.5.2.tar.gz) = 307252
+SHA256 (turnserver-3.2.5.3.tar.gz) = 850260ec71c543000dfbd7dce80bf34dec74e22fea8d7ddc45b1447337dd7611
+SIZE (turnserver-3.2.5.3.tar.gz) = 307986
 SHA256 (turn.extra.docs-2.0.0.1.tar.gz) = 3a86600fd0a30ce7aeb547e80402ce68ea9959f7dd58697e5b47fda6e33ab9ce
 SIZE (turn.extra.docs-2.0.0.1.tar.gz) = 485379

Modified: head/net/turnserver/files/pkg-message.in
==============================================================================
--- head/net/turnserver/files/pkg-message.in	Mon Dec 29 21:36:30 2014	(r375805)
+++ head/net/turnserver/files/pkg-message.in	Mon Dec 29 22:40:57 2014	(r375806)
@@ -1,14 +1,14 @@
 ==================================================================
 
 1) You can start and stop the turnserver manually. But, if you want
-to enable turnserver as an automatically started system service, 
+to enable turnserver as an automatically started system service,
 you have to:
 
-	a) Create and edit /etc/turnserver.conf file.
+	a) Create and edit %%PREFIX%%/etc/turnserver.conf file.
 	Use %%PREFIX%%/etc/turnserver.conf.default as an example.
 
-	b) For user accounts settings, if using the turnserver 
-	with authentication: create and edit /etc/turnuserdb.conf 
+	b) For user accounts settings, if using the turnserver
+	with authentication: create and edit %%PREFIX%%/etc/turnuserdb.conf
 	file, or set up PostgreSQL or MySQL or Redis database for user accounts.
 	Use %%PREFIX%%/etc/turnuserdb.conf.default as example for flat file DB,
 	or use %%DATADIR%%/schema.sql as database schema,
@@ -20,21 +20,21 @@ you have to:
 	e) If you are using a non-default PREFIX (other than /usr/local),
 	then edit /usr/local/etc/rc.d/turnserver file, according to
 	your system settings.
-	
+
 	f) Restart the system or run the command:
 	$ %%PREFIX%%/etc/rc.d/turnserver start
-     
-2) If you do not want the turnserver to be a system service, 
-   then you can start/stop it "manually", using the "turnserver" 
+
+2) If you do not want the turnserver to be a system service,
+   then you can start/stop it "manually", using the "turnserver"
    executable with appropriate options (see the documentation).
-   
+
 3) To create database schema, use schema in file %%DATADIR%%/schema.sql.
-   
+
 4) For additional information, run:
- 
+
    $ man turnserver
    $ man turnadmin
    $ man turnutils
-	
+
 ==================================================================
  

Modified: head/net/turnserver/pkg-plist
==============================================================================
--- head/net/turnserver/pkg-plist	Mon Dec 29 21:36:30 2014	(r375805)
+++ head/net/turnserver/pkg-plist	Mon Dec 29 22:40:57 2014	(r375806)
@@ -17,14 +17,12 @@ man/man1/rfc5766-turn-server.1.gz
 %%DATADIR%%/schema.userdb.redis
 %%DATADIR%%/schema.stats.redis
 %%DATADIR%%/testredisdbsetup.sh
- at dir %%DATADIR%%
 %%PORTEXAMPLES%%%%EXAMPLESDIR%%/etc/turnserver.conf
 %%PORTEXAMPLES%%%%EXAMPLESDIR%%/etc/turnuserdb.conf
 %%PORTEXAMPLES%%%%EXAMPLESDIR%%/etc/turn_client_cert.pem
 %%PORTEXAMPLES%%%%EXAMPLESDIR%%/etc/turn_client_pkey.pem
 %%PORTEXAMPLES%%%%EXAMPLESDIR%%/etc/turn_server_cert.pem
 %%PORTEXAMPLES%%%%EXAMPLESDIR%%/etc/turn_server_pkey.pem
-%%PORTEXAMPLES%%@dir %%EXAMPLESDIR%%/etc
 %%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/readme.txt
 %%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/peer.sh
 %%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/basic/relay.sh
@@ -65,15 +63,6 @@ man/man1/rfc5766-turn-server.1.gz
 %%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/shorttermsecure/secure_relay_short_term_mech.sh
 %%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/selfloadbalance/secure_dos_attack.sh
 %%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/selfloadbalance/secure_relay.sh
-%%PORTEXAMPLES%%@dir %%EXAMPLESDIR%%/scripts/basic
-%%PORTEXAMPLES%%@dir %%EXAMPLESDIR%%/scripts/loadbalance
-%%PORTEXAMPLES%%@dir %%EXAMPLESDIR%%/scripts/longtermsecure
-%%PORTEXAMPLES%%@dir %%EXAMPLESDIR%%/scripts/longtermsecuredb
-%%PORTEXAMPLES%%@dir %%EXAMPLESDIR%%/scripts/restapi
-%%PORTEXAMPLES%%@dir %%EXAMPLESDIR%%/scripts/shorttermsecure
-%%PORTEXAMPLES%%@dir %%EXAMPLESDIR%%/scripts/selfloadbalance
-%%PORTEXAMPLES%%@dir %%EXAMPLESDIR%%/scripts
-%%PORTEXAMPLES%%@dir %%EXAMPLESDIR%%
 include/turn/ns_turn_defs.h
 include/turn/client/TurnMsgLib.h
 include/turn/client/ns_turn_ioaddr.h


More information about the svn-ports-head mailing list