Update to feh-1.8.

Use ftp from base instead of wget for remote images support.

OK sthen@
Maintainer timeout...
This commit is contained in:
dcoppa 2010-07-11 14:46:13 +00:00
parent 5d76989c91
commit 4977310d25
10 changed files with 115 additions and 55 deletions

View File

@ -1,12 +1,12 @@
# $OpenBSD: Makefile,v 1.10 2009/08/10 06:31:44 kili Exp $
# $OpenBSD: Makefile,v 1.11 2010/07/11 14:46:13 dcoppa Exp $
COMMENT= lightweight image viewer
DISTNAME= feh-1.3.4
PKGNAME= ${DISTNAME}p0
DISTNAME= feh-1.8
EXTRACT_SUFX= .tar.bz2
CATEGORIES= graphics
HOMEPAGE= http://www.linuxbrit.co.uk/feh/
HOMEPAGE= https://derf.homelinux.org/~derf/projects/feh/
MAINTAINER= Victor Sahlstedt <salan@legonet.org>
@ -15,16 +15,22 @@ PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB= Imlib2 X11 Xext c freetype jpeg m png pthread-stubs \
xcb z
MASTER_SITES= http://www.linuxbrit.co.uk/downloads/
WANTLIB= Imlib2 X11 Xinerama c m png
MASTER_SITES= ${HOMEPAGE}
LIB_DEPENDS= giblib.>=1::devel/giblib
USE_X11= Yes
CONFIGURE_STYLE=gnu
CFLAGS+= -I${LOCALBASE}/include \
-I${LOCALBASE}/include/libpng \
-I${X11BASE}/include
LDFLAGS+= -L${LOCALBASE}/lib -L${X11BASE}/lib
MAKE_FLAGS= LDFLAGS="${LDFLAGS}" man_dir="${DESTDIR}${PREFIX}/man"
FAKE_FLAGS= PREFIX="${PREFIX}"
USE_X11= Yes
USE_GMAKE= Yes
NO_REGRESS= Yes
.include <bsd.port.mk>

View File

@ -1,5 +1,5 @@
MD5 (feh-1.3.4.tar.gz) = PTW6PS8Gk7AZgAeH8RA4kQ==
RMD160 (feh-1.3.4.tar.gz) = fifTHPl0sw/DIdTb7y/Ub70h00w=
SHA1 (feh-1.3.4.tar.gz) = zwL9SDJboCRnx/eRY0oo6Y7b6AE=
SHA256 (feh-1.3.4.tar.gz) = gbnyu8Ff/aRkCVhwF1NEe5XNLL8RvI6F3QD90qL4MSQ=
SIZE (feh-1.3.4.tar.gz) = 409530
MD5 (feh-1.8.tar.bz2) = /oEzSAX02ptfHjW0XERKGg==
RMD160 (feh-1.8.tar.bz2) = H2xQ+a8iYykIgUHSaSeQcUTsyNY=
SHA1 (feh-1.8.tar.bz2) = FHtWCCgbgb6NH3z5RP12HouGrgY=
SHA256 (feh-1.8.tar.bz2) = nuPw2dG5cErgExo7UcgiDnAevj0EV64hEicz+ukVsKw=
SIZE (feh-1.8.tar.bz2) = 358172

View File

@ -1,12 +0,0 @@
$OpenBSD: patch-Makefile_in,v 1.1 2005/09/19 16:32:23 bernd Exp $
--- Makefile.in.orig Sat Jul 23 01:31:30 2005
+++ Makefile.in Mon Sep 19 18:25:12 2005
@@ -90,7 +90,7 @@ INCLUDES = -I/usr/X11R6/include $(X_CFLA
man_MANS = feh.1
docs_DATA = README AUTHORS ChangeLog TODO
-docsdir = $(prefix)/doc/feh
+docsdir = $(prefix)/share/doc/feh
EXTRA_DIST = feh.spec feh.1 $(docs_DATA)

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-config_mk,v 1.1 2010/07/11 14:46:13 dcoppa Exp $
--- config.mk.orig Fri Jun 25 17:13:11 2010
+++ config.mk Wed Jul 7 13:27:30 2010
@@ -14,7 +14,7 @@ font_dir = ${main_dir}/share/feh/fonts
# default CFLAGS
CFLAGS ?= -g -O2
-CFLAGS += -Wall -Wextra -pedantic
+CFLAGS += -Wall -pedantic
# Comment these out if you don't have libxinerama
xinerama = -DHAVE_LIBXINERAMA

View File

@ -0,0 +1,11 @@
$OpenBSD: patch-src_getopt_c,v 1.1 2010/07/11 14:46:13 dcoppa Exp $
--- src/getopt.c.orig Wed Jul 7 11:40:32 2010
+++ src/getopt.c Wed Jul 7 11:40:47 2010
@@ -36,6 +36,7 @@
#endif
#include <stdio.h>
+#include <string.h>
/* Comment out all this code if we are using the GNU C Library, and are not
actually compiling the library itself. This code is part of the GNU C

View File

@ -0,0 +1,49 @@
$OpenBSD: patch-src_imlib_c,v 1.1 2010/07/11 14:46:13 dcoppa Exp $
--- src/imlib.c.orig Fri Jun 25 17:13:11 2010
+++ src/imlib.c Wed Jul 7 12:12:42 2010
@@ -435,6 +435,7 @@ char *feh_http_load_image(char *url)
close(sockno);
fclose(fp);
} else {
+ int fd;
int pid;
int status;
@@ -443,18 +444,20 @@ char *feh_http_load_image(char *url)
free(tmpname);
return(NULL);
} else if (pid == 0) {
- char *quiet = NULL;
-
- if (!opt.verbose)
- quiet = estrdup("-q");
-
- execlp("wget", "wget", "--cache=off", "-O", tmpname, url, quiet, NULL);
- eprintf("url: exec failed: wget:");
+ if (!opt.verbose) {
+ if ((fd = open("/dev/null", O_WRONLY)) != -1) {
+ dup2(fd, fileno(stdout));
+ dup2(fd, fileno(stderr));
+ }
+ if (fd > 2) close(fd);
+ }
+ execlp("ftp", "ftp", "-o", tmpname, url, (char *)NULL);
+ eprintf("url: exec failed: ftp:");
} else {
waitpid(pid, &status, 0);
if (!WIFEXITED(status) || WEXITSTATUS(status) != 0) {
- weprintf("url: wget failed to load URL %s\n", url);
+ weprintf("url: ftp failed to load URL %s\n", url);
unlink(tmpname);
free(tmpname);
return(NULL);
@@ -962,7 +965,7 @@ void feh_edit_inplace_lossless_rotate(winwidget w, int
} else if (pid == 0) {
execlp("jpegtran", "jpegtran", "-copy", "all", "-rotate",
- rotate_str, "-outfile", file_str, file_str, NULL);
+ rotate_str, "-outfile", file_str, file_str, (char *)NULL);
eprintf("lossless rotate: exec failed: jpegtran:");
} else {

View File

@ -0,0 +1,17 @@
$OpenBSD: patch-src_keyevents_c,v 1.1 2010/07/11 14:46:13 dcoppa Exp $
--- src/keyevents.c.orig Mon Jul 5 08:53:35 2010
+++ src/keyevents.c Mon Jul 5 08:54:09 2010
@@ -261,11 +261,13 @@ void feh_event_handle_keypress(XEvent * ev)
/* erroneously recognized as '+' in the *kbuf switch. Work around this. */
len = 0;
winwid->zoom = winwid->zoom * 1.25;
+ winwidget_sanitise_offsets(winwid);
winwidget_render_image(winwid, 0, 0);
break;
case XK_KP_Subtract:
len = 0;
winwid->zoom = winwid->zoom * 0.75;
+ winwidget_sanitise_offsets(winwid);
winwidget_render_image(winwid, 0, 0);
break;
case XK_KP_Multiply:

View File

@ -1,13 +0,0 @@
$OpenBSD: patch-src_slideshow_c,v 1.1 2005/12/20 06:08:17 pvalchev Exp $
--- src/slideshow.c.orig Mon Dec 19 22:28:52 2005
+++ src/slideshow.c Mon Dec 19 22:29:04 2005
@@ -353,8 +353,8 @@ feh_action_run(feh_file * file, char *ac
D_ENTER(4);
if (action)
{
- D(3, ("Running action %s\n", action));
char *sys;
+ D(3, ("Running action %s\n", action));
sys = feh_printf(action, file);
if (opt.verbose && !opt.list && !opt.customlist)

View File

@ -1,11 +0,0 @@
--- src/support.c.orig Wed Sep 14 20:33:40 2005
+++ src/support.c Wed Sep 14 20:33:53 2005
@@ -233,7 +233,7 @@ feh_wm_set_bg(char *fil, Imlib_Image im,
char *path;
path = estrjoin("/", home, ".fehbg", NULL);
if ((fp = fopen(path, "w")) == NULL) {
- wprintf("Can't open %s for write", path);
+ printf("Can't open %s for write", path);
} else {
fprintf(fp, "%s\n", fehbg);
fclose(fp);

View File

@ -1,8 +1,10 @@
@comment $OpenBSD: PLIST,v 1.2 2004/09/15 00:50:08 espie Exp $
bin/cam
bin/feh
bin/gen_cam_menu.sh
@comment $OpenBSD: PLIST,v 1.3 2010/07/11 14:46:13 dcoppa Exp $
@bin bin/feh
bin/feh-cam
bin/gen-cam-menu
@man man/man1/feh-cam.1
@man man/man1/feh.1
@man man/man1/gen-cam-menu.1
share/doc/feh/
share/doc/feh/AUTHORS
share/doc/feh/ChangeLog
@ -18,7 +20,6 @@ share/feh/images/about.png
share/feh/images/menubg_aluminium.png
share/feh/images/menubg_aqua.png
share/feh/images/menubg_black.png
share/feh/images/menubg_britney.png
share/feh/images/menubg_brushed.png
share/feh/images/menubg_chrome.png
share/feh/images/menubg_default.png