diff --git a/srcpkgs/edbrowse/patches/libressl.patch b/srcpkgs/edbrowse/patches/libressl.patch new file mode 100644 index 0000000000..b9d6e13a4f --- /dev/null +++ b/srcpkgs/edbrowse/patches/libressl.patch @@ -0,0 +1,15 @@ +--- src/tcp.c 2014-07-26 17:30:51.582554891 +0200 ++++ src/tcp.c 2014-07-26 17:31:07.547555086 +0200 +@@ -436,12 +436,6 @@ + ssl_init(void) + { + /* I don't understand any of this. */ +- char f_randfile[ABSPATH]; +- if(RAND_egd(RAND_file_name(f_randfile, sizeof (f_randfile))) < 0) { +- /* Not an EGD, so read and write to it */ +- if(RAND_load_file(f_randfile, -1)) +- RAND_write_file(f_randfile); +- } + SSLeay_add_ssl_algorithms(); + sslcx = SSL_CTX_new(SSLv23_client_method()); + SSL_CTX_set_options(sslcx, SSL_OP_ALL); diff --git a/srcpkgs/edbrowse/template b/srcpkgs/edbrowse/template new file mode 100644 index 0000000000..e9475819be --- /dev/null +++ b/srcpkgs/edbrowse/template @@ -0,0 +1,28 @@ +# Template file for 'edbrowse' +pkgname=edbrowse +version=3.4.10 +revision=1 +hostmakedepends="unzip pkg-config" +makedepends="js-devel libressl-devel pcre-devel libcurl-devel readline-devel" +short_desc="line-oriented text editor and web browser similar to ed(1)" +maintainer="Christian Neukirchen " +license="GPL-3" +homepage="http://the-brannons.com/edbrowse/" +distfiles="http://the-brannons.com/${pkgname}/${pkgname}-${version}.zip" +checksum=58089879c31b571792f76fc53c41374fcbe8386ea82fe451737ae72e8a78e826 + +do_build() { + make ${makejobs} -C src JS_CPPFLAGS="$(pkg-config mozjs185 --cflags)" +} + +do_install() { + vbin src/edbrowse + vbin doc/setup.ebrc + vsconf doc/sample.ebrc + vman doc/man-edbrowse-debian.1 edbrowse.1 + vdoc doc/usersguide.html + vdoc doc/philosophy.html + vdoc README + vdoc CHANGES + vlicense COPYING +}