Re: Adding pledge() to www/lynx

2016-03-12 Thread Theo Buehler
On Tue, Mar 01, 2016 at 08:40:10AM +0100, Theo Buehler wrote:
> On Thu, Feb 04, 2016 at 12:53:56PM +0100, Theo Buehler wrote:
> > > If you can just add comments to patches explaining why you do the
> > > getenv(HOME) dance to avoid getpw in pledge for the next guy that
> > > stumbles upon it..
> > 
> > Since that's my hack, I added a short explanation to the patch itself.
> > I also added a comment to the Makefile to explain the -DNOUSERS option.
> > 
> > ok?
> > 
> 
> Here's a new version of the patch. The only change is in the Makefile
> due to the recent update of MASTER_SITES.
> 
> ok?

ping?

> 
> Index: Makefile
> ===
> RCS file: /var/cvs/ports/www/lynx/Makefile,v
> retrieving revision 1.23
> diff -u -p -r1.23 Makefile
> --- Makefile  27 Feb 2016 22:46:10 -  1.23
> +++ Makefile  1 Mar 2016 07:08:54 -
> @@ -5,7 +5,7 @@ PL =  8
>  COMMENT =text web browser
>  DISTNAME =   lynx${V}dev.${PL}
>  PKGNAME =lynx-${V}pl${PL}
> -REVISION =   1
> +REVISION =   2
>  EXTRACT_SUFX =   .tar.bz2
>  CATEGORIES = www net
>  
> @@ -16,6 +16,7 @@ MAINTAINER =Frederic Cambus   # GPLv2 only
>  PERMIT_PACKAGE_CDROM =   Yes
>  
> +# uses pledge()
>  WANTLIB += c crypto ncurses ssl z
>  
>  MASTER_SITES =   http://lynx.invisible-island.net/current/ \
> @@ -26,11 +27,17 @@ CONFIGURE_STYLE = gnu
>  CONFIGURE_ARGS = --datarootdir="${PREFIX}/share/doc/lynx" \
>   --disable-idna \
>   --disable-nls \
> + --disable-bibp-urls \
> + --disable-dired \
> + --disable-finger \
>   --enable-default-colors \
>   --enable-ipv6 \
>   --enable-widec \
>   --with-ssl=/usr \
>   --with-zlib
> +
> +# This disables most calls to getpw*(3) so we can avoid pledge "getpw".
> +CONFIGURE_ENV =  CFLAGS="-DNOUSERS"
>  
>  MAKE_FILE =  makefile
>  
> Index: patches/patch-lynx_man
> ===
> RCS file: patches/patch-lynx_man
> diff -N patches/patch-lynx_man
> --- /dev/null 1 Jan 1970 00:00:00 -
> +++ patches/patch-lynx_man4 Feb 2016 11:37:34 -
> @@ -0,0 +1,25 @@
> +$OpenBSD$
> +--- lynx.man.origThu Oct  8 02:19:45 2015
>  lynx.man Thu Feb  4 12:37:28 2016
> +@@ -593,6 +593,21 @@ flushes the cache on a proxy server
> + allows a list of services to be disabled selectively.
> + Dashes and underscores in option names can be intermixed.
> + The following list is printed if no options are specified.
> ++.IP
> ++On OpenBSD the following restrictions are always enabled:
> ++\fBexec\fR,
> ++\fBmail\fR,
> ++and
> ++\fBshell\fR.
> ++Additionally,
> ++\fBbibp-urls\fR,
> ++\fBdired\fR,
> ++\fBfinger\fR,
> ++\fBrlogin\fR,
> ++and
> ++\fBtelnet \fR
> ++features have been disabled entirely.
> ++.IP
> + .RS
> + .TP 3
> + .B all
> Index: patches/patch-src_LYMain_c
> ===
> RCS file: patches/patch-src_LYMain_c
> diff -N patches/patch-src_LYMain_c
> --- /dev/null 1 Jan 1970 00:00:00 -
> +++ patches/patch-src_LYMain_c4 Feb 2016 11:35:38 -
> @@ -0,0 +1,25 @@
> +$OpenBSD$
> +--- src/LYMain.c.origFri Dec 18 01:34:45 2015
>  src/LYMain.c Wed Feb  3 19:50:41 2016
> +@@ -2142,6 +2142,21 @@ int main(int argc,
> + }
> + 
> + /*
> ++ * Disabling features requiring 'proc' + 'exec' and calling pledge
> ++ */
> ++no_exec = TRUE;
> ++no_mail = TRUE;
> ++no_shell = TRUE;
> ++
> ++rlogin_ok = FALSE;
> ++telnet_ok = FALSE;
> ++
> ++if (pledge("stdio rpath wpath cpath fattr dns inet tty", NULL) == -1) {
> ++fprintf(stderr, "%s: pledge: %s\n", getprogname(), strerror(errno));
> ++exit_immediately(EXIT_FAILURE);
> ++}
> ++
> ++/*
> +  * Here's where we do all the work.
> +  */
> + if (dump_output_immediately) {
> Index: patches/patch-src_LYUtils_c
> ===
> RCS file: patches/patch-src_LYUtils_c
> diff -N patches/patch-src_LYUtils_c
> --- /dev/null 1 Jan 1970 00:00:00 -
> +++ patches/patch-src_LYUtils_c   4 Feb 2016 11:52:22 -
> @@ -0,0 +1,24 @@
> +$OpenBSD$
> +
> +Use getenv("HOME") to determine the home directory instead of using getpwuid 
> in
> +order to avoid a "getpw" promise.  This is the only location not covered by 
> the
> +'-DNOUSERS' option in the Makefile.  If HOME is unset, the fallback is /tmp, 
> so
> +no breakage is to be expected from this.
> +
> +--- src/LYUtils.c.orig   Sun Mar 22 16:38:23 2015
>  src/LYUtils.cSun Jan 31 07:49:03 2016
> +@@ -5253,10 +5253,11 @@ const char *Home_Dir(void)
> + /*
> +  * One could use getlogin() and getpwnam() here instead.
> +  */
> +-struct passwd *pw = getpwuid(geteuid());

Re: NEW: misc/sword

2016-03-12 Thread Dmitrij D. Czarkoff
Aaron Poffenberger said:
> Here is a new port : misc/sword
[...]
> I'm working on porting one of the GUIs to use library but since this is
> my first port I'm sending it now for review.

You've left out dependency management (LIB_DEPENDS, WANTLIB).  Also, we
normally start SHARED_LIBS from 0.0 for new ports;  values are not
supposed to correspond to upstream's library versioning.  See attached
tarball for the fixes.

There is also issue with configuration file.  It is installed to
${PREFIX}/etc by default, which is not what we normally do.  I've set
runtime config file location to ${SYSCONFDIR}, but more work is
required:  default configuration file should be installed to
"${PREFIX}/share/examples/sword/" and @sampled to ${SYSCONFDIR} from
there.  I don't have time to finish it, so it is left for homework.  :)

Overall, I'd say not a bad job for the first port.

-- 
Dmitrij D. Czarkoff


sword-1.7.5.tgz
Description: application/tar-gz


Re: NEW: net/p5-NetAddr-MAC

2016-03-12 Thread Stuart Henderson
On 2016/03/12 03:47, Mikolaj Kucharski wrote:
> On Thu, Mar 03, 2016 at 01:14:16PM +, Mikolaj Kucharski wrote:
> > On Mon, Feb 29, 2016 at 11:07:25PM +, Stuart Henderson wrote:
> > > portgen uses cpan as a default CATEGORIES entry, but I don't think
> > > it should actually be included in port Makefiles. (If we do want to
> > > add that as a real category then it should be done in cpan.port.mk,
> > > but I don't think it's really useful).
> > > 
> > > Rest looks reasonable but DESCR could maybe do with being fleshed
> > > out a bit, the first 2 paragraphs of
> > > http://search.cpan.org/~djzort/NetAddr-MAC-0.94/lib/NetAddr/MAC.pm#DESCRIPTION
> > > look suitable.
> > 
> > - removed cpan from categories
> > - modified comment line
> > - modified description of the package
> > 
> 
> Ping
> 
> https://marc.info/?t=14567040261&r=1&w=2
> 
> -- 
> best regards
> q#
> 

OK sthen@ if someone would like to import (or give me an ok to do so)
tar.gz re-attached to make it easier.


p5-NetAddr-MAC.tgz
Description: application/tar-gz


Re: NEW: misc/sword

2016-03-12 Thread Aaron Poffenberger
> 
> On Mar 12, 2016, at 4:36 AM, Dmitrij D. Czarkoff  wrote:
> 
> Aaron Poffenberger said:
>> Here is a new port : misc/sword
> [...]
>> I'm working on porting one of the GUIs to use library but since this is
>> my first port I'm sending it now for review.
> 
> You've left out dependency management (LIB_DEPENDS, WANTLIB).  Also, we
> normally start SHARED_LIBS from 0.0 for new ports;  values are not
> supposed to correspond to upstream's library versioning.  See attached
> tarball for the fixes.
> 
> There is also issue with configuration file.  It is installed to
> ${PREFIX}/etc by default, which is not what we normally do.  I've set
> runtime config file location to ${SYSCONFDIR}, but more work is
> required:  default configuration file should be installed to
> "${PREFIX}/share/examples/sword/" and @sampled to ${SYSCONFDIR} from
> there.  I don't have time to finish it, so it is left for homework.  :)
> 
> Overall, I'd say not a bad job for the first port.
> 
> -- 
> Dmitrij D. Czarkoff
> 

Thanks, Dmitrij. Best kind of homework.

I thought the LIB_DEPENDS and WANT_LIB were suspiciously empty. I must have had 
several of the dependencies already installed. What’s the best way to find them 
in such cases?

Cheers,

—Aaron


NEW: net/sbm

2016-03-12 Thread Dimitris Papastamos
Hi,

This is a simple bandwidth monitor that I wrote and use on my systems.
It was developed on OpenBSD but seems to work on other BSDs as well.

It is a cli program and also has an option for terse output which can
be used in scripts.

Only depends on libc.

OK?


sbm.tar
Description: Unix tar archive


VLC undefined symbol '_glapi_Dispatch'

2016-03-12 Thread Stuart Henderson
Are others seeing this too or is it a local problem?


VLC media player 2.2.2 Weatherwax (revision 2.2.2-0-g6259d80)
[002ac0a71950] core xml reader error: XML reader not found
[002b32b76650] core libvlc: Running vlc with the default interface. Use 
'cvlc' to use vlc without interface.
[002b049aca50] qt4 interface error: Unable to load extensions module
vlc:/usr/X11R6/lib/modules/dri/i965_dri.so: undefined symbol '_glapi_Dispatch'
vlc:/usr/X11R6/lib/modules/dri/i965_dri.so: undefined symbol '_glapi_Context'
vlc:/usr/X11R6/lib/modules/dri/i965_dri.so: undefined symbol 
'_glapi_get_dispatch'
vlc:/usr/X11R6/lib/modules/dri/i965_dri.so: undefined symbol 
'_glapi_add_dispatch'
vlc:/usr/X11R6/lib/modules/dri/i965_dri.so: undefined symbol 
'_glapi_get_context'
vlc:/usr/X11R6/lib/modules/dri/i965_dri.so: undefined symbol 
'_glapi_get_dispatch_table_size'
vlc:/usr/X11R6/lib/modules/dri/i965_dri.so: undefined symbol 
'_glapi_check_multithread'
vlc:/usr/X11R6/lib/modules/dri/i965_dri.so: undefined symbol 
'_glapi_set_context'
vlc:/usr/X11R6/lib/modules/dri/i965_dri.so: undefined symbol 
'_glapi_set_dispatch'
libGL error: unable to load driver: i965_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: i965



update: sysutils/sysclean

2016-03-12 Thread Sebastien Marie
Hi,

Here an update for sysutils/sysclean. The new version should let
people's eyes be less bleeding while reading documentation (well, I
hope).

pkg/DESCR updated accordingly.

OK ?
-- 
Sebastien Marie


Index: Makefile
===
RCS file: /cvs/ports/sysutils/sysclean/Makefile,v
retrieving revision 1.2
diff -u -p -r1.2 Makefile
--- Makefile5 Mar 2016 15:57:07 -   1.2
+++ Makefile12 Mar 2016 15:04:21 -
@@ -1,8 +1,8 @@
 # $OpenBSD: Makefile,v 1.2 2016/03/05 15:57:07 semarie Exp $
 
-COMMENT =  help removing obsoletes files between OpenBSD upgrades
+COMMENT =  help removing obsolete files between OpenBSD upgrades
 
-V =1.0
+V =1.1
 DISTNAME = sysclean-${V}
 
 CATEGORIES =   sysutils
Index: distinfo
===
RCS file: /cvs/ports/sysutils/sysclean/distinfo,v
retrieving revision 1.2
diff -u -p -r1.2 distinfo
--- distinfo5 Mar 2016 15:57:07 -   1.2
+++ distinfo12 Mar 2016 15:04:21 -
@@ -1,2 +1,2 @@
-SHA256 (sysclean-1.0.tar.gz) = Qo73b3s8jsJG9yKQb4zAfPopznhjjwzw3R0eNp62O7g=
-SIZE (sysclean-1.0.tar.gz) = 5007
+SHA256 (sysclean-1.1.tar.gz) = 5oZI0p6mT/sAEo8ogUbUgoscbOrZN7OuUDubEk5n53s=
+SIZE (sysclean-1.1.tar.gz) = 5012
Index: pkg/DESCR
===
RCS file: /cvs/ports/sysutils/sysclean/pkg/DESCR,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 DESCR
--- pkg/DESCR   5 Mar 2016 15:33:19 -   1.1.1.1
+++ pkg/DESCR   12 Mar 2016 15:04:21 -
@@ -1,9 +1,9 @@
-sysclean is a ksh(1) script designed to the administrator to help removing
-obsoletes files between upgrades.
+sysclean is a ksh(1) script designed to help removing obsolete files between
+upgrades.
 
 sysclean works by comparing a reference root directory against currently
-installed files.  It consideres standard system files, configuration
-files installed by default, and packages files.
+installed files. It considers standard system files, configuration files
+installed by default, and packages files.
 
-sysclean doesn't remove any files on the system. It only reports obsoletes
-filenames or packages using obsoletes libraries.
+sysclean doesn't remove any files on the system. It only reports obsolete
+filenames or packages using out-of-date libraries.



Re: [update] www/kibana

2016-03-12 Thread Giovanni Bechis
On Fri, Mar 11, 2016 at 07:18:54PM +0300, Pavel Korovin wrote:
> Hi all,
> 
> Please see the patch for the latest www/kibana ports attached.
> Tested on amd64/current.
> 
> Changes: https://www.elastic.co/blog/kibana-4-4-2-and-4-3-3-and-4-1-6
> 
"This version of Kibana requires Elasticsearch ^2.2.0 on all nodes"
first we should update elasticsearch.
 Cheers
  Giovanni



Re: update: sysutils/sysclean

2016-03-12 Thread Giovanni Bechis
On Sat, Mar 12, 2016 at 04:15:50PM +0100, Sebastien Marie wrote:
> Hi,
> 
> Here an update for sysutils/sysclean. The new version should let
> people's eyes be less bleeding while reading documentation (well, I
> hope).
> 
> pkg/DESCR updated accordingly.
> 
> OK ?
sure, ok giovanni@
 Cheers
  Giovanni



Question on where a potential new port should be placed in the source tree

2016-03-12 Thread Bryan C. Everly
Hi,

I'm working on a port of a database schema management tool called Liquibase
that we use where I work.  (My goal is to eventually get our entire open
source tool chain available as packages and then I plan on using my evil
mind control power to lure other developers to OpenBSD!)

Anyhow, this tool reads text files (JSON, XML, etc.) and uses them to make
schema changes or modify data in your database in a cross-DBMS way (very
similar in concept to rake db:migrate in rails).

I'm unsure whether this should live in /devel or /databases though.

Thoughts?

Thanks,
Bryan


Re: Question on where a potential new port should be placed in the source tree

2016-03-12 Thread Adam Wolk
Dnia 2016-03-12, o godz. 11:11:01
"Bryan C. Everly"  napisał(a):

> Hi,
> 
> I'm working on a port of a database schema management tool called
> Liquibase that we use where I work.  (My goal is to eventually get
> our entire open source tool chain available as packages and then I
> plan on using my evil mind control power to lure other developers to
> OpenBSD!)
> 
> Anyhow, this tool reads text files (JSON, XML, etc.) and uses them to
> make schema changes or modify data in your database in a cross-DBMS
> way (very similar in concept to rake db:migrate in rails).
> 
> I'm unsure whether this should live in /devel or /databases though.
> 
> Thoughts?
> 
> Thanks,
> Bryan

I would suggest /usr/ports/databases. Devel is a bit overloaded and
other DB related management tools like pgadmin3 already live in
databases.

Regards,
Adam



Re: Question on where a potential new port should be placed in the source tree

2016-03-12 Thread Bryan C. Everly
Much appreciated Adam.


Thanks,
Bryan

On Sat, Mar 12, 2016 at 11:25 AM, Adam Wolk  wrote:

> Dnia 2016-03-12, o godz. 11:11:01
> "Bryan C. Everly"  napisał(a):
>
> > Hi,
> >
> > I'm working on a port of a database schema management tool called
> > Liquibase that we use where I work.  (My goal is to eventually get
> > our entire open source tool chain available as packages and then I
> > plan on using my evil mind control power to lure other developers to
> > OpenBSD!)
> >
> > Anyhow, this tool reads text files (JSON, XML, etc.) and uses them to
> > make schema changes or modify data in your database in a cross-DBMS
> > way (very similar in concept to rake db:migrate in rails).
> >
> > I'm unsure whether this should live in /devel or /databases though.
> >
> > Thoughts?
> >
> > Thanks,
> > Bryan
>
> I would suggest /usr/ports/databases. Devel is a bit overloaded and
> other DB related management tools like pgadmin3 already live in
> databases.
>
> Regards,
> Adam
>


Re: [UPDATE] net/irssi 0.8.18

2016-03-12 Thread Florian Stinglmayr
On Sun, Mar 06, 2016 at 01:48:41PM +, Stuart Henderson wrote:
> This is due to needing a version check adding, I've committed the fix
> for this to irssi-icb; the other modules will need similar. Mentioned
> offlist but irssi-otr has https://github.com/cryptodotis/irssi-otr/pull/60,
> if maintainers of any other modules would like to look for similar or
> write it themselves that'd be nice :)
>

Upstream is AWOL so a patch is attached. Can be removed if upstream
merges and releases a new version.

> There is another problem which affects at least irssi-otr and irssi-icb
> (and I suspect the others too), sending yourself a message fails like this
> (this is mentioned in https://github.com/cryptodotis/irssi-otr/pull/58)
>
> 13:44 -!- Irssi: critical privmsg_get_query: assertion 'nick != NULL' failed
> 13:44 -!- Irssi: critical query_find: assertion 'nick != NULL' failed
> 13:44 [msg()] test
>

This is also fixed in the patch below for irssi-otr.

Also +1 for the irssi patch.

Regards,
Florian

Index: Makefile
===
RCS file: /cvs/ports/net/irssi-otr/Makefile,v
retrieving revision 1.5
diff -u -p -u -r1.5 Makefile
--- Makefile29 Dec 2015 22:45:48 -  1.5
+++ Makefile12 Mar 2016 18:16:13 -
@@ -5,7 +5,7 @@ SHARED_ONLY =   Yes
 COMMENT =  OTR (off the record) encryption support for irssi
 
 V =1.0.1
-REVISION = 0
+REVISION = 1
 DISTNAME = irssi-otr-$V
 
 CATEGORIES =   net security
Index: patches/patch-src_module_c
===
RCS file: patches/patch-src_module_c
diff -N patches/patch-src_module_c
--- /dev/null   1 Jan 1970 00:00:00 -
+++ patches/patch-src_module_c  12 Mar 2016 18:16:13 -
@@ -0,0 +1,51 @@
+$OpenBSD$
+--- src/module.c.orig  Mon Sep 29 22:11:07 2014
 src/module.c   Sat Mar 12 19:03:22 2016
+@@ -32,6 +32,7 @@
+ #include "otr.h"
+ #include "otr-formats.h"
+ #include "utils.h"
++#include "irssi-version.h"
+ 
+ GCRY_THREAD_OPTION_PTHREAD_IMPL;
+ 
+@@ -90,8 +91,13 @@ end:
+ /*
+  * Pipes all incoming private messages through OTR
+  */
++#if IRSSI_VERSION_DATE > 20141206
+ void sig_message_private(SERVER_REC *server, const char *msg,
++  const char *nick, const char *address, const char *target)
++#else
++void sig_message_private(SERVER_REC *server, const char *msg,
+   const char *nick, const char *address)
++#endif
+ {
+   int ret;
+   char *new_msg = NULL;
+@@ -106,7 +112,11 @@ void sig_message_private(SERVER_REC *server, const cha
+ 
+   if (!new_msg) {
+   /* This message was not OTR */
++#if IRSSI_VERSION_DATE > 20141206
++  signal_continue(5, server, msg, nick, address, target);
++#else
+   signal_continue(4, server, msg, nick, address);
++#endif
+   } else {
+   /*
+* Check for /me IRC marker and if so, handle it so the user 
does not
+@@ -371,3 +381,13 @@ void otr_deinit(void)
+ 
+   theme_unregister();
+ }
++
++#ifdef IRSSI_ABI_VERSION
++/*
++ * irssi abicheck()
++ */
++void otr_abicheck(int *version)
++{
++  *version = IRSSI_ABI_VERSION;
++}
++#endif



Re: [update] www/kibana

2016-03-12 Thread Pavel Korovin
On 03/12, Giovanni Bechis wrote:
> "This version of Kibana requires Elasticsearch ^2.2.0 on all nodes"
> first we should update elasticsearch.
>  Cheers

Hi, Giovanni,
I've already sent elasticsearch and logstash updates to Jasper, so let's
wait until he commits it.

-- 
With best regards,
Pavel Korovin



Re: [update] ecl-16.2 take 2

2016-03-12 Thread Juan Francisco Cantero Hurtado
On Sat, Mar 12, 2016 at 08:33:54AM +0200, Timo Myyrä wrote:
> Hi,
> 
> Seems my ports@ subscription had dropped so the late reply.
> 
> Your right in that patching the missing file is a bit ugly.
> Here's take 2 to use pre-build step to issue simple copy.
> 
> Timo
> 
> Index: Makefile
> ===
> RCS file: /cvs/ports/lang/ecl/Makefile,v
> retrieving revision 1.27
> diff -u -u -p -r1.27 Makefile
> --- Makefile  25 Jan 2016 19:52:07 -  1.27
> +++ Makefile  12 Mar 2016 06:36:04 -
> @@ -7,9 +7,9 @@ BROKEN-mips64 =   ecl_min fails
>  BROKEN-sparc =   infinite loop while building
>  BROKEN-arm = infinite loop while building
>  
> -V =  16.0.0
> +V =  16.1.2
>  DISTNAME =   ecl-$V
> -SHARED_LIBS +=   ecl 4.0
> +SHARED_LIBS +=   ecl 5.0
>  SHARED_ONLY =Yes
>  
>  HOMEPAGE =   https://common-lisp.net/project/ecl/
> @@ -20,7 +20,7 @@ EXTRACT_SUFX =  .tgz
>  # GPLv2 or later
>  PERMIT_PACKAGE_CDROM =   Yes
>  
> -MASTER_SITES =   ${HOMEPAGE}files/
> +MASTER_SITES =   ${HOMEPAGE}files/release/${V}/
>  
>  CONFIGURE_STYLE =gnu
>  TEST_TARGET =check
> @@ -45,5 +45,9 @@ LIB_DEPENDS +=  devel/gmp \
>   devel/libffi
>  
>  TEST_DEPENDS =   ${BASE_PKGPATH}
> +
> +# XXX: Workaround for missing Copyright file
> +pre-build:
> + @cp ${WRKSRC}/{LICENSE,Copyright}

I would prefer "post-patch" instead of "pre-build".

BTW, why do you need copy manually the file?

>  
>  .include 
> Index: distinfo
> ===
> RCS file: /cvs/ports/lang/ecl/distinfo,v
> retrieving revision 1.7
> diff -u -u -p -r1.7 distinfo
> --- distinfo  29 Aug 2015 14:48:34 -  1.7
> +++ distinfo  12 Mar 2016 06:36:04 -
> @@ -1,2 +1,2 @@
> -SHA256 (ecl-16.0.0.tgz) = ND7Uw+SQZWJ1emA5uFzhbTPdXoAB10AEk2eVmD468DM=
> -SIZE (ecl-16.0.0.tgz) = 8009304
> +SHA256 (ecl-16.1.2.tgz) = LUgrGgpPvV2IFDRRcDInnYCMtkBeIt2R721zNTRGS5k=
> +SIZE (ecl-16.1.2.tgz) = 7449461
> Index: patches/patch-src_configure
> ===
> RCS file: /cvs/ports/lang/ecl/patches/patch-src_configure,v
> retrieving revision 1.6
> diff -u -u -p -r1.6 patch-src_configure
> --- patches/patch-src_configure   29 Aug 2015 14:48:34 -  1.6
> +++ patches/patch-src_configure   12 Mar 2016 06:36:04 -
> @@ -1,16 +1,16 @@
> -$OpenBSD: patch-src_configure,v 1.6 2015/08/29 14:48:34 jasper Exp $
>  src/configure.orig   Mon Aug 24 15:30:10 2015
> -+++ src/configureMon Aug 24 15:31:21 2015
> -@@ -4948,7 +4948,7 @@ case "${host_os}" in
> - BUNDLE_LDFLAGS="-shared ${LDFLAGS}"
> - ECL_LDRPATH="-Wl,--rpath,~A"
> - clibs="-lpthread -lm"
> --SONAME="${SHAREDPREFIX}ecl.${SHAREDEXT}.SOVERSION"
> -+SONAME="${SHAREDPREFIX}ecl.${SHAREDEXT}.${ECLLIB_VERSION}"
> - SONAME_LDFLAGS="-Wl,-soname,SONAME"
> - ;;
> - solaris*)
> -@@ -9376,7 +9376,7 @@ if test ${enable_shared} = "yes"; then
> +$OpenBSD$
> +--- src/configure.orig   Thu Mar 10 22:19:22 2016
>  src/configureThu Mar 10 22:20:21 2016
> +@@ -4966,7 +4966,7 @@ LSP_FEATURES="(cons :android ${LSP_FEATURES})"
> + BUNDLE_LDFLAGS="-shared ${LDFLAGS}"
> + ECL_LDRPATH="-Wl,--rpath,~A"
> + clibs="-lpthread -lm"
> +-SONAME="${SHAREDPREFIX}ecl.${SHAREDEXT}.SOVERSION"
> ++SONAME="${SHAREDPREFIX}ecl.${SHAREDEXT}.${ECLLIB_VERSION}"
> + SONAME_LDFLAGS="-Wl,-soname,SONAME"
> + ;;
> + solaris*)
> +@@ -9455,7 +9455,7 @@ if test ${enable_shared} = "yes"; then
>   
>   $as_echo "#define ENABLE_DLOPEN 1" >>confdefs.h
>   
> 

-- 
Juan Francisco Cantero Hurtado http://juanfra.info



Re: NEW: net/sbm

2016-03-12 Thread Jeremie Courreges-Anglas
Dimitris Papastamos  writes:

> Hi,

Hi,

> This is a simple bandwidth monitor that I wrote and use on my systems.
> It was developed on OpenBSD but seems to work on other BSDs as well.
>
> It is a cli program and also has an option for terse output which can
> be used in scripts.
>
> Only depends on libc.
>
> OK?

Looks fine to me, except for

  cc -Wall  -c sbm.c
  cc -Wall  -o sbm sbm.o

ie CFLAGS are not respected*.  I've also added a period at the end of
DESCR.  Updated tarball attached.

Can I get another ok?



sbm.tgz
Description: Binary data

-- 
jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF  DDCC 0DFA 74AE 1524 E7EE


Re: [update] ecl-16.2 take 2

2016-03-12 Thread Timo Myyrä
Juan Francisco Cantero Hurtado  writes:

> On Sat, Mar 12, 2016 at 08:33:54AM +0200, Timo Myyrä wrote:
>
>> Hi,
>> 
>> Seems my ports@ subscription had dropped so the late reply.
>> 
>> Your right in that patching the missing file is a bit ugly.
>> Here's take 2 to use pre-build step to issue simple copy.
>> 
>> Timo
>> 
>> Index: Makefile
>> ===
>> RCS file: /cvs/ports/lang/ecl/Makefile,v
>> retrieving revision 1.27
>> diff -u -u -p -r1.27 Makefile
>> --- Makefile 25 Jan 2016 19:52:07 -  1.27
>> +++ Makefile 12 Mar 2016 06:36:04 -
>> @@ -7,9 +7,9 @@ BROKEN-mips64 =  ecl_min fails
>>  BROKEN-sparc =  infinite loop while building
>>  BROKEN-arm =infinite loop while building
>>  
>> -V = 16.0.0
>> +V = 16.1.2
>>  DISTNAME =  ecl-$V
>> -SHARED_LIBS +=  ecl 4.0
>> +SHARED_LIBS +=  ecl 5.0
>>  SHARED_ONLY =   Yes
>>  
>>  HOMEPAGE =  https://common-lisp.net/project/ecl/
>> @@ -20,7 +20,7 @@ EXTRACT_SUFX = .tgz
>>  # GPLv2 or later
>>  PERMIT_PACKAGE_CDROM =  Yes
>>  
>> -MASTER_SITES =  ${HOMEPAGE}files/
>> +MASTER_SITES =  ${HOMEPAGE}files/release/${V}/
>>  
>>  CONFIGURE_STYLE =   gnu
>>  TEST_TARGET =   check
>> @@ -45,5 +45,9 @@ LIB_DEPENDS += devel/gmp \
>>  devel/libffi
>>  
>>  TEST_DEPENDS =  ${BASE_PKGPATH}
>> +
>> +# XXX: Workaround for missing Copyright file
>> +pre-build:
>> +@cp ${WRKSRC}/{LICENSE,Copyright}
>
> I would prefer "post-patch" instead of "pre-build".
>
> BTW, why do you need copy manually the file?
>
>>  
>>  .include 
>> Index: distinfo
>> ===
>> RCS file: /cvs/ports/lang/ecl/distinfo,v
>> retrieving revision 1.7
>> diff -u -u -p -r1.7 distinfo
>> --- distinfo 29 Aug 2015 14:48:34 -  1.7
>> +++ distinfo 12 Mar 2016 06:36:04 -
>> @@ -1,2 +1,2 @@
>> -SHA256 (ecl-16.0.0.tgz) = ND7Uw+SQZWJ1emA5uFzhbTPdXoAB10AEk2eVmD468DM=
>> -SIZE (ecl-16.0.0.tgz) = 8009304
>> +SHA256 (ecl-16.1.2.tgz) = LUgrGgpPvV2IFDRRcDInnYCMtkBeIt2R721zNTRGS5k=
>> +SIZE (ecl-16.1.2.tgz) = 7449461
>> Index: patches/patch-src_configure
>> ===
>> RCS file: /cvs/ports/lang/ecl/patches/patch-src_configure,v
>> retrieving revision 1.6
>> diff -u -u -p -r1.6 patch-src_configure
>> --- patches/patch-src_configure  29 Aug 2015 14:48:34 -  1.6
>> +++ patches/patch-src_configure  12 Mar 2016 06:36:04 -
>> @@ -1,16 +1,16 @@
>> -$OpenBSD: patch-src_configure,v 1.6 2015/08/29 14:48:34 jasper Exp $
>>  src/configure.orig  Mon Aug 24 15:30:10 2015
>> -+++ src/configure   Mon Aug 24 15:31:21 2015
>> -@@ -4948,7 +4948,7 @@ case "${host_os}" in
>> -BUNDLE_LDFLAGS="-shared ${LDFLAGS}"
>> -ECL_LDRPATH="-Wl,--rpath,~A"
>> -clibs="-lpthread -lm"
>> --   SONAME="${SHAREDPREFIX}ecl.${SHAREDEXT}.SOVERSION"
>> -+   SONAME="${SHAREDPREFIX}ecl.${SHAREDEXT}.${ECLLIB_VERSION}"
>> -SONAME_LDFLAGS="-Wl,-soname,SONAME"
>> -;;
>> -solaris*)
>> -@@ -9376,7 +9376,7 @@ if test ${enable_shared} = "yes"; then
>> +$OpenBSD$
>> +--- src/configure.orig  Thu Mar 10 22:19:22 2016
>>  src/configure   Thu Mar 10 22:20:21 2016
>> +@@ -4966,7 +4966,7 @@ LSP_FEATURES="(cons :android ${LSP_FEATURES})"
>> + BUNDLE_LDFLAGS="-shared ${LDFLAGS}"
>> + ECL_LDRPATH="-Wl,--rpath,~A"
>> + clibs="-lpthread -lm"
>> +-SONAME="${SHAREDPREFIX}ecl.${SHAREDEXT}.SOVERSION"
>> ++SONAME="${SHAREDPREFIX}ecl.${SHAREDEXT}.${ECLLIB_VERSION}"
>> + SONAME_LDFLAGS="-Wl,-soname,SONAME"
>> + ;;
>> + solaris*)
>> +@@ -9455,7 +9455,7 @@ if test ${enable_shared} = "yes"; then
>>   
>>   $as_echo "#define ENABLE_DLOPEN 1" >>confdefs.h
>>   
>> 

Okay, here's one with copy being done in post-configure.

The Copyright file is not present in the release tarball but is
still referenced in Makefiles. This seems to been fixed post-release:
https://gitlab.com/embeddable-common-lisp/ecl/commit/77640536476ac51c77e13f13fa06461f90abde63

Timo


Index: Makefile
===
RCS file: /cvs/ports/lang/ecl/Makefile,v
retrieving revision 1.27
diff -u -u -p -r1.27 Makefile
--- Makefile25 Jan 2016 19:52:07 -  1.27
+++ Makefile12 Mar 2016 20:18:04 -
@@ -7,9 +7,9 @@ BROKEN-mips64 = ecl_min fails
 BROKEN-sparc = infinite loop while building
 BROKEN-arm =   infinite loop while building
 
-V =16.0.0
+V =16.1.2
 DISTNAME = ecl-$V
-SHARED_LIBS += ecl 4.0
+SHARED_LIBS += ecl 5.0
 SHARED_ONLY =  Yes
 
 HOMEPAGE = https://common-lisp.net/project/ecl/
@@ -20,7 +20,7 @@ EXTRACT_SUFX =.tgz
 # GPLv2 or later
 PERMIT_PACKAGE_CDROM = Yes
 
-MASTER_SITE

devel/libexecinfo - empty patch files

2016-03-12 Thread Markus Lude
Hi Stuart,

with recent update to 0.3 of libexecinfo 2 patch files are now empty
and one could remove them.

patch-examples_backtrace_test_c
patch-libbacktrace_backtrace_h

Regards,
Markus



Re: NEW: net/sbm

2016-03-12 Thread Joerg Jung
On Sat, Mar 12, 2016 at 01:14:00PM +, Dimitris Papastamos wrote:
> 
> This is a simple bandwidth monitor that I wrote and use on my systems.
> It was developed on OpenBSD but seems to work on other BSDs as well.
> 
> It is a cli program and also has an option for terse output which can
> be used in scripts.
> 
> Only depends on libc.
> 
> OK?

Oks are for developers.

I do not see the point of this port, as one can archive similar output 
(depending on the chosen flags) using netstat from base, for example:
   
   $ netstat -b -n -w1 -h -I urtwn0

However, the port looks fine to me.  If another developer wants to
import it, then ok from me.

Regards,
Joerg 



Re: Question on where a potential new port should be placed in the source tree

2016-03-12 Thread Joerg Jung
On Sat, Mar 12, 2016 at 05:25:56PM +0100, Adam Wolk wrote:
> Dnia 2016-03-12, o godz. 11:11:01
> "Bryan C. Everly"  napisał(a):
> 
> > Hi,
> > 
> > I'm working on a port of a database schema management tool called
> > Liquibase that we use where I work.  (My goal is to eventually get
> > our entire open source tool chain available as packages and then I
> > plan on using my evil mind control power to lure other developers to
> > OpenBSD!)
> > 
> > Anyhow, this tool reads text files (JSON, XML, etc.) and uses them to
> > make schema changes or modify data in your database in a cross-DBMS
> > way (very similar in concept to rake db:migrate in rails).
> > 
> > I'm unsure whether this should live in /devel or /databases though.
> > 
> > Thoughts?
> > 
> > Thanks,
> > Bryan
> 
> I would suggest /usr/ports/databases. Devel is a bit overloaded and
> other DB related management tools like pgadmin3 already live in
> databases.

+1

If really "unsure" one could also add both/multiple categories. 



Re: [UPDATE] textproc/jo to 1.0

2016-03-12 Thread Jeremie Courreges-Anglas
Adam Wolk  writes:

> On Fri, 11 Mar 2016 20:26:28 +0100
> Frederic Cambus  wrote:
>
>> Hi ports@,
>> 
>> Here is a diff to update jo to latest version (1.0).
>> 
>> Besides adding some features, this version has been pledged upstream.
>> Also, jo now uses strlcpy instead of strcpy on systems supporting it,
>> so no more warnings at compile time.
>> 
>> Note taken regarding DESCR, if it's not updated upstream, I will write
>> a custom one.
>>
>
> Tested on amd64 snapshot March 6th. The port builds clean, installs &
> works as expected. I'm OK to commit this if I get a second OK.

ok jca@

-- 
jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF  DDCC 0DFA 74AE 1524 E7EE



NEW: graphics/cstitch

2016-03-12 Thread Adam Wolk
Hi ports@,

This one is a bit weird but required to obtain a stitch pattern hand
made puffer fish from wife.

The software is a bit mixed up to build. You can only get binaries and
icons from source forge but we have to rely on Github tags to grab
actual sources. It also needs some prodding in the build process to
generate the required files and icons downloaded from source forge need
to be extracted in a specific place.

I'm 'almost' happy with the port. Still think it will need a tweak here
and there but it's at a point where additional feedback is welcome. I
expect to finalize it tomorrow/today (2016.03.13). When testing mostly
look for build & run depends that I might have missed in the initial
attempt.

$ cat
pkg/DESCR Cstitch turns an image into a cross stitch pattern and allows
you to edit the generated pattern. The final product is a pdf of the
cross stitch pattern and a list of the colors in the pattern.

Regards,
Adam

cstitch.tar.gz
Description: application/gzip


[UPDATE] mail/offlineimap to 6.7.0

2016-03-12 Thread Remi Locherer
Hi

The offlineimap project released version 6.7.0 few days ago.
Works fine for me on amd64 -current syncing between dovecot (on 5.8) and
maildir.

Remi

Index: Makefile
===
RCS file: /cvs/ports/mail/offlineimap/Makefile,v
retrieving revision 1.31
diff -u -p -r1.31 Makefile
--- Makefile3 Jan 2016 18:01:35 -   1.31
+++ Makefile13 Mar 2016 07:44:17 -
@@ -2,14 +2,14 @@
 
 COMMENT=   powerful IMAP/Maildir synchronization and reader support
 
-MODPY_EGG_VERSION = 6.6.1
+MODPY_EGG_VERSION = 6.7.0
 GH_ACCOUNT =   OfflineIMAP
 GH_PROJECT =   offlineimap
 GH_TAGNAME =   v${MODPY_EGG_VERSION}
 DISTNAME=  offlineimap-${MODPY_EGG_VERSION}
 CATEGORIES=mail
 
-HOMEPAGE=  http://offlineimap.org/
+HOMEPAGE=  http://www.offlineimap.org/
 
 MAINTAINER=Remi Locherer 
 
Index: distinfo
===
RCS file: /cvs/ports/mail/offlineimap/distinfo,v
retrieving revision 1.20
diff -u -p -r1.20 distinfo
--- distinfo3 Jan 2016 18:01:35 -   1.20
+++ distinfo13 Mar 2016 07:44:17 -
@@ -1,2 +1,2 @@
-SHA256 (offlineimap-6.6.1.tar.gz) = 
rz/Ue6CHGA3A6NK2TPNYzn9v5Jcy0TtvzOgoU9AAS7A=
-SIZE (offlineimap-6.6.1.tar.gz) = 674730
+SHA256 (offlineimap-6.7.0.tar.gz) = 
xEb7Mb3KkMfbQUa5GK0/oF9t9TYqTMlh32p3J6iqwhA=
+SIZE (offlineimap-6.7.0.tar.gz) = 678649