diff options
Diffstat (limited to 'www/uzbl')
-rw-r--r-- | www/uzbl/Makefile | 89 | ||||
-rw-r--r-- | www/uzbl/distinfo | 2 | ||||
-rw-r--r-- | www/uzbl/files/patch-examples__data__scripts__auth.py | 9 | ||||
-rw-r--r-- | www/uzbl/files/patch-examples__data__uzbl__scripts__uzbl-cookie-daemon | 29 | ||||
-rw-r--r-- | www/uzbl/files/patch-examples__uzbl-cookie-manager.c | 26 | ||||
-rw-r--r-- | www/uzbl/files/patch-src__cookie-jar.c | 11 | ||||
-rw-r--r-- | www/uzbl/files/patch-src__util.c | 8 | ||||
-rw-r--r-- | www/uzbl/files/patch-src__uzbl-browser | 11 | ||||
-rw-r--r-- | www/uzbl/files/patch-uzbl-core.c | 10 | ||||
-rw-r--r-- | www/uzbl/pkg-descr | 6 | ||||
-rw-r--r-- | www/uzbl/pkg-plist | 6 |
11 files changed, 207 insertions, 0 deletions
diff --git a/www/uzbl/Makefile b/www/uzbl/Makefile new file mode 100644 index 000000000..3bfe434e6 --- /dev/null +++ b/www/uzbl/Makefile @@ -0,0 +1,89 @@ +# Ports collection makefile for: uzbl +# Date created: 2009/12/14 +# Whom: aehlig@linta.de +# +# $FreeBSD: ports/www/uzbl/Makefile,v 1.9 2010/12/01 12:48:45 pav Exp $ +# + +PORTNAME= uzbl +DISTVERSION= 0.0.0.${GITDATE} +PORTREVISION= 1 +CATEGORIES= www +MASTER_SITES= http://www.linta.de/distfiles/ + +MAINTAINER= aehlig@linta.de +COMMENT= Web interface tools which adhere to the unix philosophy + +LIB_DEPENDS= webkitgtk-1.0:${PORTSDIR}/www/webkit-gtk2 +RUN_DEPENDS= socat:${PORTSDIR}/net/socat + +USE_GNOME= gtk20 +USE_LDCONFIG= yes +USE_GMAKE= yes + +GITDATE= 2010.11.25 +GITVERSION= 5180049 + +WRKSRC= ${WRKDIR}/Dieterbe-uzbl-${GITVERSION} + +LICENSE= GPLv3 +LICENSE_FILE= ${WRKSRC}/LICENSE + +.if !defined(NOPORTDOCS) +PORTDOCS= AUTHORS README COMMUNITY CONTRIBUTING FAQ INSTALL TODO config-syntax \ + multiple-instances-management performance url-editing config.h vim README.cookies +.endif + +.if !defined(NOPORTDATA) +PORTDATA= examples +.endif + +post-patch: + @${REINPLACE_CMD} -e "s|/usr/local|${PREFIX}|" \ + ${WRKSRC}/examples/config/config \ + ${WRKSRC}/src/uzbl-browser \ + ${WRKSRC}/examples/data/scripts/uzbl-event-manager + @${REINPLACE_CMD} -e "s|share/uzbl|${DATADIR_REL}|" \ + ${WRKSRC}/examples/config/config \ + ${WRKSRC}/src/uzbl-browser \ + ${WRKSRC}/examples/data/scripts/uzbl-event-manager + @${REINPLACE_CMD} -e "s|/usr/share/uzbl|${DATADIR}|" \ + ${WRKSRC}/examples/data/scripts/uzbl-tabbed + +post-build: + @${FIND} ${WRKSRC} \( -name "*.orig" -or -name "*.bak" \) -exec ${RM} -f {} \; + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/uzbl-core ${PREFIX}/bin + ${INSTALL_PROGRAM} ${WRKSRC}/uzbl-cookie-manager ${PREFIX}/bin + ${INSTALL_SCRIPT} ${WRKSRC}/src/uzbl-browser ${PREFIX}/bin +.for f in uzbl-event-manager uzbl-cookie-daemon uzbl-tabbed + ${INSTALL_SCRIPT} ${WRKSRC}/examples/data/scripts/${f} ${PREFIX}/bin +.endfor +.if !defined(NOPORTDOCS) + ${MKDIR} ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/src/config.h ${DOCSDIR} +.for f in COMMUNITY CONTRIBUTING FAQ INSTALL TODO config-syntax \ + multiple-instances-management performance url-editing README.cookies + ${INSTALL_DATA} ${WRKSRC}/docs/${f} ${DOCSDIR}/${f} +.endfor +.for f in AUTHORS README + ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}/${f} +.endfor + (cd ${WRKSRC}/extras && ${COPYTREE_SHARE} vim ${DOCSDIR}) +.endif +.if !defined(NOPORTDATA) + ${MKDIR} ${DATADIR}/examples/data/dforms ${DATADIR}/examples/config +.for f in data/bookmarks \ + data/dforms/bbs.archlinux.org \ + data/style.css data/uzbl.png + ${INSTALL_DATA} ${WRKSRC}/examples/${f} ${DATADIR}/examples/${f} +.endfor + ${INSTALL_DATA} ${WRKSRC}/examples/config/config ${DATADIR}/examples/config/config + (cd ${WRKSRC}/examples/data && \ + ${COPYTREE_BIN} plugins ${DATADIR}/examples/data/) + (cd ${WRKSRC}/examples/data && \ + ${COPYTREE_BIN} scripts ${DATADIR}/examples/data/) +.endif + +.include <bsd.port.mk> diff --git a/www/uzbl/distinfo b/www/uzbl/distinfo new file mode 100644 index 000000000..e43300904 --- /dev/null +++ b/www/uzbl/distinfo @@ -0,0 +1,2 @@ +SHA256 (uzbl-0.0.0.2010.11.25.tar.gz) = 715163193b1c15377a1caaf2e993ef56584e356e6e62e74184b0acdb0c76bbd3 +SIZE (uzbl-0.0.0.2010.11.25.tar.gz) = 145473 diff --git a/www/uzbl/files/patch-examples__data__scripts__auth.py b/www/uzbl/files/patch-examples__data__scripts__auth.py new file mode 100644 index 000000000..acf48c790 --- /dev/null +++ b/www/uzbl/files/patch-examples__data__scripts__auth.py @@ -0,0 +1,9 @@ +--- examples/data/scripts/auth.py.orig 2010-04-09 13:34:30.000000000 +0200 ++++ examples/data/scripts/auth.py 2010-04-09 13:35:05.000000000 +0200 +@@ -1,4 +1,5 @@ +-#!/usr/bin/python ++#!/usr/bin/env python ++ + + import gtk + import sys diff --git a/www/uzbl/files/patch-examples__data__uzbl__scripts__uzbl-cookie-daemon b/www/uzbl/files/patch-examples__data__uzbl__scripts__uzbl-cookie-daemon new file mode 100644 index 000000000..6e000260f --- /dev/null +++ b/www/uzbl/files/patch-examples__data__uzbl__scripts__uzbl-cookie-daemon @@ -0,0 +1,29 @@ +--- ./examples/data/scripts/uzbl-cookie-daemon.orig 2010-01-05 20:17:29.000000000 +0100 ++++ ./examples/data/scripts/uzbl-cookie-daemon 2010-01-07 13:24:58.000000000 +0100 +@@ -187,7 +187,7 @@ + raise Exception("directory at %r is not a socket" % cookie_socket) + + try: +- sock = socket.socket(socket.AF_UNIX, socket.SOCK_SEQPACKET) ++ sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) + sock.connect(cookie_socket) + sock.close() + echo("detected daemon listening on %r" % cookie_socket) +@@ -210,7 +210,7 @@ + return False + + try: +- sock = socket.socket(socket.AF_UNIX, socket.SOCK_SEQPACKET) ++ sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) + sock.connect(cookie_socket) + sock.send(cmd) + sock.close() +@@ -420,7 +420,7 @@ + mkbasedir(cookie_socket) + + self.server_socket = socket.socket(socket.AF_UNIX, +- socket.SOCK_SEQPACKET) ++ socket.SOCK_STREAM) + + self.server_socket.bind(cookie_socket) + diff --git a/www/uzbl/files/patch-examples__uzbl-cookie-manager.c b/www/uzbl/files/patch-examples__uzbl-cookie-manager.c new file mode 100644 index 000000000..87a2fdb37 --- /dev/null +++ b/www/uzbl/files/patch-examples__uzbl-cookie-manager.c @@ -0,0 +1,26 @@ +--- examples/uzbl-cookie-manager.c.orig 2010-11-25 05:56:44.000000000 +0100 ++++ examples/uzbl-cookie-manager.c 2010-12-01 00:18:04.000000000 +0100 +@@ -1,5 +1,3 @@ +-#define _POSIX_SOURCE +- + #include <stdio.h> + #include <errno.h> + #include <string.h> +@@ -10,7 +8,7 @@ + #include <sys/socket.h> + #include <sys/un.h> + #include <sys/select.h> +-#include <sys/unistd.h> ++#include <unistd.h> + + #include <sys/stat.h> + #include <sys/file.h> +@@ -36,7 +34,7 @@ + /* delete the cookie socket if it was left behind on a previous run */ + unlink(cookied_socket_path); + +- int socket_fd = socket(AF_UNIX, SOCK_SEQPACKET, 0); ++ int socket_fd = socket(AF_UNIX, SOCK_STREAM, 0); + + if(socket_fd < 0) { + fprintf(stderr, "socket failed (%s)\n", strerror(errno)); diff --git a/www/uzbl/files/patch-src__cookie-jar.c b/www/uzbl/files/patch-src__cookie-jar.c new file mode 100644 index 000000000..f4d247c2d --- /dev/null +++ b/www/uzbl/files/patch-src__cookie-jar.c @@ -0,0 +1,11 @@ +--- src/cookie-jar.c.orig 2010-11-29 21:00:58.000000000 +0100 ++++ src/cookie-jar.c 2010-11-29 21:01:17.000000000 +0100 +@@ -211,7 +211,7 @@ + sa.sun_family = AF_UNIX; + + /* create socket file descriptor and connect it to path */ +- fd = socket(AF_UNIX, SOCK_SEQPACKET, 0); ++ fd = socket(AF_UNIX, SOCK_STREAM, 0); + if(fd == -1) { + g_printerr("connect_cookie_socket: creating socket failed (%s)\n", strerror(errno)); + return; diff --git a/www/uzbl/files/patch-src__util.c b/www/uzbl/files/patch-src__util.c new file mode 100644 index 000000000..62c38281a --- /dev/null +++ b/www/uzbl/files/patch-src__util.c @@ -0,0 +1,8 @@ +--- src/util.c.orig 2010-11-30 23:22:23.000000000 +0100 ++++ src/util.c 2010-11-30 23:23:09.000000000 +0100 +@@ -1,5 +1,3 @@ +-#define _POSIX_SOURCE +- + #include <stdlib.h> + #include <unistd.h> + #include <string.h> diff --git a/www/uzbl/files/patch-src__uzbl-browser b/www/uzbl/files/patch-src__uzbl-browser new file mode 100644 index 000000000..423cf86d0 --- /dev/null +++ b/www/uzbl/files/patch-src__uzbl-browser @@ -0,0 +1,11 @@ +--- src/uzbl-browser.orig 2010-12-01 00:06:50.000000000 +0100 ++++ src/uzbl-browser 2010-12-01 00:07:09.000000000 +0100 +@@ -74,7 +74,7 @@ + DAEMON_SOCKET="$XDG_CACHE_HOME"/uzbl/event_daemon + #if [ ! -f "$DAEMON_SOCKET".pid ] + #then +- ${UZBL_EVENT_MANAGER:-uzbl-event-manager -va start} ++ ${UZBL_EVENT_MANAGER:-uzbl-event-manager} -va start + #fi + + exec uzbl-core "$@" ${config_file:+--config "$config_file"} --connect-socket $DAEMON_SOCKET diff --git a/www/uzbl/files/patch-uzbl-core.c b/www/uzbl/files/patch-uzbl-core.c new file mode 100644 index 000000000..244b699ee --- /dev/null +++ b/www/uzbl/files/patch-uzbl-core.c @@ -0,0 +1,10 @@ +--- src/uzbl-core.c.orig 2010-11-29 20:00:45.000000000 +0100 ++++ src/uzbl-core.c 2010-11-29 19:59:16.000000000 +0100 +@@ -29,6 +29,7 @@ + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + ++#include <sys/errno.h> + #include "uzbl-core.h" + #include "callbacks.h" + #include "events.h" diff --git a/www/uzbl/pkg-descr b/www/uzbl/pkg-descr new file mode 100644 index 000000000..6f83044a9 --- /dev/null +++ b/www/uzbl/pkg-descr @@ -0,0 +1,6 @@ +Uzbl is a collection of web interface tools that follow the UNIX philosophy - +"Write programs that do one thing and do it well. Write programs to work +together. Write programs to handle text streams, because that is a universal +interface." + +WWW: http://www.uzbl.org diff --git a/www/uzbl/pkg-plist b/www/uzbl/pkg-plist new file mode 100644 index 000000000..83dbd337d --- /dev/null +++ b/www/uzbl/pkg-plist @@ -0,0 +1,6 @@ +bin/uzbl-core +bin/uzbl-browser +bin/uzbl-cookie-daemon +bin/uzbl-cookie-manager +bin/uzbl-event-manager +bin/uzbl-tabbed |