diff --git a/textproc/urlview/Makefile b/textproc/urlview/Makefile index cf2c4bd8316..39e0408978e 100644 --- a/textproc/urlview/Makefile +++ b/textproc/urlview/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.7 2003/09/23 15:29:41 sturm Exp $ +# $OpenBSD: Makefile,v 1.8 2003/09/23 15:49:49 sturm Exp $ COMMENT= "curses-based URL ripper" @@ -29,6 +29,9 @@ CONFIGURE_ARGS= --with-slang=${LOCALBASE} CONFIGURE_ENV= LIBS=-lcurses .endif +pre-build: + @perl -pi -e "s,%%SYSCONFDIR%%,${SYSCONFDIR}," ${WRKSRC}/urlview.c + post-install: ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/urlview ${INSTALL_DATA} ${WRKSRC}/sample.urlview ${WRKSRC}/url_handler.sh \ diff --git a/textproc/urlview/patches/patch-urlview_c b/textproc/urlview/patches/patch-urlview_c new file mode 100644 index 00000000000..72bf3257847 --- /dev/null +++ b/textproc/urlview/patches/patch-urlview_c @@ -0,0 +1,12 @@ +$OpenBSD: patch-urlview_c,v 1.1 2003/09/23 15:49:49 sturm Exp $ +--- urlview.c.orig 2003-09-09 10:22:06.000000000 +0200 ++++ urlview.c 2003-09-09 10:22:21.000000000 +0200 +@@ -48,7 +48,7 @@ + + #define DEFAULT_REGEXP "(((https?|ftp|gopher)://|(mailto|file|news):)[^' \t<>\"]+|(www|web|w3)\\.[-a-z0-9.]+)[^' \t.,;<>\"\\):]" + #define DEFAULT_COMMAND "url_handler.sh %s" +-#define SYSTEM_INITFILE "/etc/urlview.conf" ++#define SYSTEM_INITFILE "%%SYSCONFDIR%%/urlview.conf" + + #define OFFSET 2 + #define PAGELEN (LINES - 1 - OFFSET)