svn commit: r322765 - in head/comms/anyremote: . files

William Grzybowski wg at FreeBSD.org
Thu Jul 11 12:14:58 UTC 2013


Author: wg
Date: Thu Jul 11 12:14:56 2013
New Revision: 322765
URL: http://svnweb.freebsd.org/changeset/ports/322765

Log:
  comms/anyremote: update to 6.3.1
  
  - Update to 6.3.1 [1]
  - Trim Makefile header
  - Add DOCS to options
  - Remove unneeded pre/post mk
  - Convert empty() to simple var checks to be consistent
  - Remove ABI version from LIB_DEPENDS
  
  Changes:
  http://sourceforge.net/p/anyremote/code/756/tree/anyremote/trunk/ChangeLog
  
  PR:		ports/180431
  Submitted by:	Alex Samorukov <samm os2.kiev.ua> (maintainer)

Added:
  head/comms/anyremote/files/patch-src_pr_web.c   (contents, props changed)
  head/comms/anyremote/files/patch-src_sys_util.c   (contents, props changed)
Modified:
  head/comms/anyremote/Makefile
  head/comms/anyremote/distinfo
  head/comms/anyremote/pkg-descr
  head/comms/anyremote/pkg-plist   (contents, props changed)

Modified: head/comms/anyremote/Makefile
==============================================================================
--- head/comms/anyremote/Makefile	Thu Jul 11 11:48:18 2013	(r322764)
+++ head/comms/anyremote/Makefile	Thu Jul 11 12:14:56 2013	(r322765)
@@ -1,12 +1,8 @@
-# New ports collection makefile for:	anyremote
-# Date created:		2008-11-05
-# Whom:			Alex Samorukov <samm at os2.kiev.ua>
-#
+# Created by: Alex Samorukov <samm at os2.kiev.ua>
 # $FreeBSD$
-#
 
 PORTNAME=	anyremote
-PORTVERSION=	6.1.1
+PORTVERSION=	6.3.1
 CATEGORIES=	comms
 MASTER_SITES=	SF
 
@@ -20,22 +16,23 @@ GNU_CONFIGURE=	yes
 CPPFLAGS+=	-I${LOCALBASE}/include
 LDFLAGS+=	-L${LOCALBASE}/lib
 
-OPTIONS_DEFINE=	DBUS X11
+OPTIONS_DEFINE=	DOCS DBUS X11
 OPTIONS_DEFAULT=	DBUS X11
 
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
 
-.if empty(PORT_OPTIONS:MDBUS)
+.if ! ${PORT_OPTIONS:MDBUS}
 CONFIGURE_ARGS+=--disable-dbus
 .else
-LIB_DEPENDS+=	dbus-glib-1.2:${PORTSDIR}/devel/dbus-glib
+LIB_DEPENDS+=	dbus-glib-1:${PORTSDIR}/devel/dbus-glib
 .endif
 
-.if empty(PORT_OPTIONS:MX11)
+.if ! ${PORT_OPTIONS:MX11}
 CONFIGURE_ARGS+=--disable-xtest
 .else
 USE_XORG=	x11 xtst
 .endif
+
 MAKE_ARGS+=	LDFLAGS="-L${LOCALBASE}/lib"
 
 MAN1=		anyremote.1
@@ -48,4 +45,4 @@ post-patch:
 	@${REINPLACE_CMD} -e '/doc\/${PORTNAME}/d' ${WRKSRC}/Makefile.in
 .endif
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>

Modified: head/comms/anyremote/distinfo
==============================================================================
--- head/comms/anyremote/distinfo	Thu Jul 11 11:48:18 2013	(r322764)
+++ head/comms/anyremote/distinfo	Thu Jul 11 12:14:56 2013	(r322765)
@@ -1,2 +1,2 @@
-SHA256 (anyremote-6.1.1.tar.gz) = 411760b74d9888378bb269a8e0172f5a1b8249b5e6834fdf06af5cd20eff1abd
-SIZE (anyremote-6.1.1.tar.gz) = 2281355
+SHA256 (anyremote-6.3.1.tar.gz) = 0d0a99c12630d462186b4468288a1ba2adef1e70c95bdd35f3165116cb8f4dd6
+SIZE (anyremote-6.3.1.tar.gz) = 2423381

Added: head/comms/anyremote/files/patch-src_pr_web.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/comms/anyremote/files/patch-src_pr_web.c	Thu Jul 11 12:14:56 2013	(r322765)
@@ -0,0 +1,46 @@
+--- src/pr_web.c	2013-07-10 11:07:03.922188287 +0200
++++ src/pr_web.c	2013-07-10 11:27:16.319193955 +0200
+@@ -33,7 +33,11 @@
+ #include <netinet/in.h>
+ #include <netdb.h>
+ #include <unistd.h>
++#ifdef __FreeBSD__
++#include <sys/uio.h>
++#else
+ #include <sys/sendfile.h>
++#endif
+ 
+ #define SERVER     "webserver/1.1"
+ #define PROTOCOL   "HTTP/1.1"
+@@ -272,7 +276,7 @@
+ static void sendFile(_WebClientConnection* cc, char *path, struct stat *statbuf)
+ {
+     int fd = cc->connDescriptor;
+-    int bytes_sent;
++    ssize_t bytes_sent;
+ 
+     INFO2("[WS]: sendFile %s",path);
+ 
+@@ -293,8 +297,12 @@
+         int length = S_ISREG(statbuf->st_mode) ? statbuf->st_size : -1;
+         sendHeaders(cc, 200, "OK", NULL, get_mime_type(path), length, statbuf->st_mtime);
+ 
++#ifdef __FreeBSD__
++        int err = sendfile(fdout, fd, 0, length, NULL, &bytes_sent, 0);
++#else
+         bytes_sent = sendfile(fd,fdout,NULL,length);
+-    
++        int err = 0;
++#endif
+         /*while ((n = fread(data, 1, sizeof(data), file)) > 0) {
+             //INFO2("read %d bytes from file",n);
+ 
+@@ -305,7 +313,7 @@
+             }
+         }*/
+     
+-        if (length != bytes_sent) {
++        if (err || length != bytes_sent) {
+             ERROR2("[WS]: Error on send file %s", path);
+         }
+ 

Added: head/comms/anyremote/files/patch-src_sys_util.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/comms/anyremote/files/patch-src_sys_util.c	Thu Jul 11 12:14:56 2013	(r322765)
@@ -0,0 +1,17 @@
+--- src/sys_util.c	2013-07-10 14:49:42.461289772 +0200
++++ src/sys_util.c	2013-07-10 14:49:02.000000000 +0200
+@@ -24,13 +24,13 @@
+ #include <dirent.h>
+ #include <errno.h>
+ #include <fcntl.h>
+-#include <net/if.h>
+ #include <netinet/in.h>
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <string.h>
+ #include <sys/ioctl.h>
+ #include <sys/socket.h>
++#include <net/if.h>
+ #include <sys/stat.h>
+ #include <sys/types.h>
+ #include <sys/wait.h>

Modified: head/comms/anyremote/pkg-descr
==============================================================================
--- head/comms/anyremote/pkg-descr	Thu Jul 11 11:48:18 2013	(r322764)
+++ head/comms/anyremote/pkg-descr	Thu Jul 11 12:14:56 2013	(r322765)
@@ -8,4 +8,4 @@ It was developed as thin communication l
 capabled phone and UNIX, and in principle could be configured to manage almost
 any software.
 
-WWW:	http://anyremote.sourceforge.net/
+WWW: http://anyremote.sourceforge.net/

Modified: head/comms/anyremote/pkg-plist
==============================================================================
--- head/comms/anyremote/pkg-plist	Thu Jul 11 11:48:18 2013	(r322764)
+++ head/comms/anyremote/pkg-plist	Thu Jul 11 12:14:56 2013	(r322765)
@@ -1,11 +1,14 @@
- at comment $FreeBSD$
 bin/anyremote
+%%DATADIR%%/cfg-data/Utils/weather.sh
+%%DATADIR%%/cfg-data/Utils/imdb-mf.sh
+%%DATADIR%%/cfg-data/Utils/generate_cover.sh
+%%DATADIR%%/cfg-data/Utils/registry.sh
+%%DATADIR%%/cfg-data/Utils/generate_poster.sh
 %%DATADIR%%/cfg-data/Utils/aliases-bemused.cfg
 %%DATADIR%%/cfg-data/Utils/aliases-server.cfg
 %%DATADIR%%/cfg-data/Utils/aliases-iviewer.cfg
 %%DATADIR%%/cfg-data/Utils/getPlayList.sh
 %%DATADIR%%/cfg-data/Utils/aliases-server-presentation.cfg
-%%DATADIR%%/cfg-data/Utils/xmms_is_playing
 %%DATADIR%%/cfg-data/Utils/aliases-server-pix-viewer.cfg
 %%DATADIR%%/cfg-data/Utils/aliases-server-player.cfg
 %%DATADIR%%/cfg-data/Utils/aliases-at.cfg
@@ -15,7 +18,6 @@ bin/anyremote
 %%DATADIR%%/cfg-data/Utils/all-in-1.py
 %%DATADIR%%/cfg-data/Utils/aliases-server-video-player.cfg
 %%DATADIR%%/cfg-data/Utils/aliases-server-fbrowser-v3i.cfg
-%%DATADIR%%/cfg-data/Utils/gradient.png
 %%DATADIR%%/cfg-data/Utils/run-or-switch-to.sh
 %%DATADIR%%/cfg-data/Utils/anyremote.gui
 %%DATADIR%%/cfg-data/Utils/iViewer/next-active.png
@@ -42,6 +44,7 @@ bin/anyremote
 %%DATADIR%%/cfg-data/Utils/iViewer/next.png
 %%DATADIR%%/cfg-data/Utils/iViewer/stop.png
 %%DATADIR%%/cfg-data/Utils/iViewer/pause-active.png
+%%DATADIR%%/cfg-data/Icons/128/transparent.png
 %%DATADIR%%/cfg-data/Icons/128/favorites.png
 %%DATADIR%%/cfg-data/Icons/128/minus.png
 %%DATADIR%%/cfg-data/Icons/128/right.png
@@ -79,6 +82,7 @@ bin/anyremote
 %%DATADIR%%/cfg-data/Icons/128/file.png
 %%DATADIR%%/cfg-data/Icons/128/last.png
 %%DATADIR%%/cfg-data/Icons/16/record.png
+%%DATADIR%%/cfg-data/Icons/16/transparent.png
 %%DATADIR%%/cfg-data/Icons/16/first.png
 %%DATADIR%%/cfg-data/Icons/16/eject.png
 %%DATADIR%%/cfg-data/Icons/16/favorites.png
@@ -117,6 +121,7 @@ bin/anyremote
 %%DATADIR%%/cfg-data/Icons/16/vol_up.png
 %%DATADIR%%/cfg-data/Icons/anyRemote.png
 %%DATADIR%%/cfg-data/Icons/48/bottom.png
+%%DATADIR%%/cfg-data/Icons/48/transparent.png
 %%DATADIR%%/cfg-data/Icons/48/vol_up.png
 %%DATADIR%%/cfg-data/Icons/48/prev.png
 %%DATADIR%%/cfg-data/Icons/48/vol_down.png
@@ -152,6 +157,7 @@ bin/anyremote
 %%DATADIR%%/cfg-data/Icons/48/favorites.png
 %%DATADIR%%/cfg-data/Icons/48/up.png
 %%DATADIR%%/cfg-data/Icons/48/record.png
+%%DATADIR%%/cfg-data/Icons/32/transparent.png
 %%DATADIR%%/cfg-data/Icons/32/plus.png
 %%DATADIR%%/cfg-data/Icons/32/down.png
 %%DATADIR%%/cfg-data/Icons/32/mute.png
@@ -190,6 +196,7 @@ bin/anyremote
 %%DATADIR%%/cfg-data/Icons/32/minus.png
 %%DATADIR%%/cfg-data/Icons/32/none.png
 %%DATADIR%%/cfg-data/Icons/64/first.png
+%%DATADIR%%/cfg-data/Icons/64/transparent.png
 %%DATADIR%%/cfg-data/Icons/64/folder.png
 %%DATADIR%%/cfg-data/Icons/64/up.png
 %%DATADIR%%/cfg-data/Icons/64/vol_down.png
@@ -225,6 +232,14 @@ bin/anyremote
 %%DATADIR%%/cfg-data/Icons/64/left.png
 %%DATADIR%%/cfg-data/Icons/64/launch.png
 %%DATADIR%%/cfg-data/Icons/64/click_icon.png
+%%DATADIR%%/cfg-data/Icons/common/cover-video.png
+%%DATADIR%%/cfg-data/Icons/common/cover-weather.png
+%%DATADIR%%/cfg-data/Icons/common/cover-pix.png
+%%DATADIR%%/cfg-data/Icons/common/cover-setup.png
+%%DATADIR%%/cfg-data/Icons/common/cover-computer.png
+%%DATADIR%%/cfg-data/Icons/common/cover-files.png
+%%DATADIR%%/cfg-data/Icons/common/cover-presentation.png
+%%DATADIR%%/cfg-data/Icons/common/cover-audio.png
 %%DATADIR%%/cfg-data/Bemused-emulation/rhythmbox.cfg
 %%DATADIR%%/cfg-data/Bemused-emulation/quodlibet.cfg
 %%DATADIR%%/cfg-data/Bemused-emulation/exaile.cfg
@@ -269,6 +284,11 @@ bin/anyremote
 %%DATADIR%%/cfg-data/AT-mode/audacious.cfg
 %%DATADIR%%/cfg-data/AT-mode/totem.cfg
 %%DATADIR%%/cfg-data/AT-mode/example-lirc.cfg
+%%DATADIR%%/cfg-data/Server-mode/djview.cfg
+%%DATADIR%%/cfg-data/Server-mode/mediacenter.cfg
+%%DATADIR%%/cfg-data/Server-mode/noise.cfg
+%%DATADIR%%/cfg-data/Server-mode/tomahawk.cfg
+%%DATADIR%%/cfg-data/Server-mode/foobnix.cfg
 %%DATADIR%%/cfg-data/Server-mode/qwerty-device-test.cfg
 %%DATADIR%%/cfg-data/Server-mode/mpd.cfg
 %%DATADIR%%/cfg-data/Server-mode/xbmc.cfg
@@ -282,7 +302,6 @@ bin/anyremote
 %%DATADIR%%/cfg-data/Server-mode/nokia-e70.cfg
 %%DATADIR%%/cfg-data/Server-mode/xine.cfg
 %%DATADIR%%/cfg-data/Server-mode/exampleFont.cfg
-%%DATADIR%%/cfg-data/Server-mode/amarok-v3.cfg
 %%DATADIR%%/cfg-data/Server-mode/totem.cfg
 %%DATADIR%%/cfg-data/Server-mode/nokia-e61.cfg
 %%DATADIR%%/cfg-data/Server-mode/fileManager3.cfg
@@ -309,7 +328,6 @@ bin/anyremote
 %%DATADIR%%/cfg-data/Server-mode/gpicview.cfg
 %%DATADIR%%/cfg-data/Server-mode/fileManager2.cfg
 %%DATADIR%%/cfg-data/Server-mode/evince.cfg
-%%DATADIR%%/cfg-data/Server-mode/amarok-v2.cfg
 %%DATADIR%%/cfg-data/Server-mode/autoUpload.cfg
 %%DATADIR%%/cfg-data/Server-mode/winManager.cfg
 %%DATADIR%%/cfg-data/Server-mode/imageViewer.cfg
@@ -351,7 +369,6 @@ bin/anyremote
 %%DATADIR%%/cfg-data/Server-mode/deadbeef.cfg
 %%DATADIR%%/cfg-data/Server-mode/mplayer.cfg
 %%DATADIR%%/cfg-data/Server-mode/wmctrl.cfg
-%%DATADIR%%/cfg-data/Server-mode/banshee-v2.cfg
 %%DATADIR%%/cfg-data/Server-mode/template-presentation.cfg
 %%DATADIR%%/cfg-data/Server-mode/exampleEditField.cfg
 %%DATADIR%%/cfg-data/Server-mode/gnomeShortcuts.cfg
@@ -365,6 +382,7 @@ bin/anyremote
 @dirrm %%DATADIR%%/cfg-data/Icons/48
 @dirrm %%DATADIR%%/cfg-data/Icons/64
 @dirrm %%DATADIR%%/cfg-data/Icons/128
+ at dirrm %%DATADIR%%/cfg-data/Icons/common
 @dirrm %%DATADIR%%/cfg-data/Icons
 @dirrm %%DATADIR%%/cfg-data/iViewer
 @dirrm %%DATADIR%%/cfg-data/Server-mode
@@ -372,6 +390,7 @@ bin/anyremote
 @dirrm %%DATADIR%%/cfg-data/Utils
 @dirrm %%DATADIR%%/cfg-data
 @dirrm %%DATADIR%%
+%%PORTDOCS%%%%DOCSDIR%%/doc-html/data/aac-cf2.jpg
 %%PORTDOCS%%%%DOCSDIR%%/doc-html/data/jc/themes/echo-player.png
 %%PORTDOCS%%%%DOCSDIR%%/doc-html/data/jc/themes/human-player.png
 %%PORTDOCS%%%%DOCSDIR%%/doc-html/data/jc/themes/bluecurve-arrows.png
@@ -513,7 +532,6 @@ bin/anyremote
 %%PORTDOCS%%%%DOCSDIR%%/doc-html/data/aac-cf.jpg
 %%PORTDOCS%%%%DOCSDIR%%/doc-html/data/aac-search.jpg
 %%PORTDOCS%%%%DOCSDIR%%/doc-html/man.html
-%%PORTDOCS%%%%DOCSDIR%%/doc-html/dcop.html
 %%PORTDOCS%%%%DOCSDIR%%/doc-html/cfg-howto.html
 %%PORTDOCS%%%%DOCSDIR%%/doc-html/conf-server-ex.html
 %%PORTDOCS%%%%DOCSDIR%%/doc-html/conf-server.html
@@ -564,6 +582,7 @@ bin/anyremote
 %%PORTDOCS%%%%DOCSDIR%%/doc-html/dbus.html
 %%PORTDOCS%%%%DOCSDIR%%/doc-html/android-client.html
 %%PORTDOCS%%%%DOCSDIR%%/doc-html/cm-xml.html
+%%PORTDOCS%%%%DOCSDIR%%/doc-html/cfg-server-status.html
 %%PORTDOCS%%%%DOCSDIR%%/AUTHORS
 %%PORTDOCS%%%%DOCSDIR%%/COPYING
 %%PORTDOCS%%%%DOCSDIR%%/README


More information about the svn-ports-all mailing list