NEW: security/argon2

2018-03-04 Thread Rafael Sadowski
The upcoming keepassxc is dependent on Argon2 to support KDBX 4.0.

Tested with keepassxc 2.3.0 (separate E-Mail) and KDBX 4.0. Works fine
on amd64.

OK to import?

$ pkg/DESCR
C implementation of Argon2, the password-hashing function that won the Password
Hashing Competition (PHC).

Argon2 is a password-hashing function that summarizes the state of the art in
the design of memory-hard functions and can be used to hash passwords for
credential storage, key derivation, or other applications.

It has a simple design aimed at the highest memory filling rate and effective
use of multiple computing units, while still providing defense against tradeoff
attacks (by exploiting the cache and memory organization of the recent
processors).


argon2.tar.gz
Description: Binary data


UPDATE: devel/sdcc 3.6.0 => 3.7.0

2018-03-04 Thread Brian Callahan

Hi ports --

Attached is a diff to update sdcc to its new version. I worked with 
upstream a bit a couple of months ago to make sure everything would work 
swimmingly, and it should. Tests and oks appreciated.


~Brian

Index: Makefile
===
RCS file: /cvs/ports/devel/sdcc/Makefile,v
retrieving revision 1.20
diff -u -p -r1.20 Makefile
--- Makefile	26 Dec 2017 17:08:02 -	1.20
+++ Makefile	5 Mar 2018 01:30:28 -
@@ -5,18 +5,17 @@ BROKEN-sparc64=	illegal operands buildin
 BROKEN-alpha=	sdcc segfaults when building the device library
 BROKEN-aarch64=	*** BFD does not support target aarch64-unknown-openbsd6.2.
 
-DISTNAME=	sdcc-src-3.6.0
+DISTNAME=	sdcc-src-3.7.0
 PKGNAME=	${DISTNAME:S/-src//}
-REVISION =	2
 EXTRACT_SUFX=	.tar.bz2
 CATEGORIES=	devel
 
 HOMEPAGE=	http://sdcc.sourceforge.net/
 MAINTAINER=	Brian Callahan 
 
-# GPL
+# GPLv2+
 PERMIT_PACKAGE_CDROM=	Yes
-WANTLIB=		c m ${COMPILER_LIBCXX} readline termcap z
+WANTLIB=		c curses m ${COMPILER_LIBCXX} readline z
 
 MASTER_SITES=		${MASTER_SITE_SOURCEFORGE:=sdcc/}
 
@@ -33,6 +32,6 @@ CONFIGURE_ENV+=		sdcc_cv_CCggdb=no \
 
 USE_GMAKE=		Yes
 
-WRKDIST=		${WRKDIR}/${PKGNAME}
+WRKDIST=		${WRKDIR}/sdcc
 
 .include 
Index: distinfo
===
RCS file: /cvs/ports/devel/sdcc/distinfo,v
retrieving revision 1.6
diff -u -p -r1.6 distinfo
--- distinfo	14 Jun 2017 07:38:17 -	1.6
+++ distinfo	5 Mar 2018 01:30:28 -
@@ -1,2 +1,2 @@
-SHA256 (sdcc-src-3.6.0.tar.bz2) = 6F3OsR4B/++1Rew4nakSZRMMkZU1iTkt3dLl7At8o3Q=
-SIZE (sdcc-src-3.6.0.tar.bz2) = 17993788
+SHA256 (sdcc-src-3.7.0.tar.bz2) = hU1HCUaYsGFC3z1fxka7VA1JerQHOtLwUbjsIUHflI4=
+SIZE (sdcc-src-3.7.0.tar.bz2) = 17944920
Index: patches/patch-sim_ucsim_cmd_src_Makefile_in
===
RCS file: patches/patch-sim_ucsim_cmd_src_Makefile_in
diff -N patches/patch-sim_ucsim_cmd_src_Makefile_in
--- /dev/null	1 Jan 1970 00:00:00 -
+++ patches/patch-sim_ucsim_cmd_src_Makefile_in	5 Mar 2018 01:30:28 -
@@ -0,0 +1,32 @@
+$OpenBSD$
+
+Allow use of in-base yacc.
+
+Index: sim/ucsim/cmd.src/Makefile.in
+--- sim/ucsim/cmd.src/Makefile.in.orig
 sim/ucsim/cmd.src/Makefile.in
+@@ -96,13 +96,13 @@ installdirs:
+ # -
+ dep: Makefile.dep
+ 
+-Makefile.dep: $(SOURCES) $(LOCAL_SOURCES) $(srcdir)/*.h cmdpars.hh cmdpars.cc
++Makefile.dep: $(SOURCES) $(LOCAL_SOURCES) $(srcdir)/*.h cmdpars.h cmdpars.cc
+ 	$(MAKEDEP) $(CPPFLAGS) $(SOURCES) $(LOCAL_SOURCES) >Makefile.dep
+ 
+ -include Makefile.dep
+ include $(srcdir)/clean.mk
+ 
+-cmdlex.cc: cmdlex.l cmdpars.hh
++cmdlex.cc: cmdlex.l cmdpars.h
+ 
+ # My rules
+ # 
+@@ -116,7 +116,7 @@ $(top_builddir)/libcmd.a: $(OBJECTS) $(LOCAL_OBJECTS)
+ .cc.o:
+ 	$(CXX) $(CXXFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c $< -o $@
+ 
+-cmdpars.hh: cmdpars.cc
++cmdpars.h: cmdpars.cc
+ 
+ cmdpars.cc: cmdpars.y
+ 	$(YACC) -d -o $@ $<
Index: patches/patch-sim_ucsim_cmd_src_cmdlex_cc
===
RCS file: patches/patch-sim_ucsim_cmd_src_cmdlex_cc
diff -N patches/patch-sim_ucsim_cmd_src_cmdlex_cc
--- /dev/null	1 Jan 1970 00:00:00 -
+++ patches/patch-sim_ucsim_cmd_src_cmdlex_cc	5 Mar 2018 01:30:28 -
@@ -0,0 +1,16 @@
+$OpenBSD$
+
+Allow use of in-base yacc.
+
+Index: sim/ucsim/cmd.src/cmdlex.cc
+--- sim/ucsim/cmd.src/cmdlex.cc.orig
 sim/ucsim/cmd.src/cmdlex.cc
+@@ -490,7 +490,7 @@ char *yytext;
+ #include 
+ //#include 
+ #include "cmdlexcl.h"
+-#include "cmdpars.hh"
++#include "cmdpars.h"
+ 
+ static int uc_yy_check_id(char *token);
+ static int uc_yy_input(char *buf, int max_size);
Index: patches/patch-sim_ucsim_cmd_src_cmdlex_l
===
RCS file: patches/patch-sim_ucsim_cmd_src_cmdlex_l
diff -N patches/patch-sim_ucsim_cmd_src_cmdlex_l
--- /dev/null	1 Jan 1970 00:00:00 -
+++ patches/patch-sim_ucsim_cmd_src_cmdlex_l	5 Mar 2018 01:30:28 -
@@ -0,0 +1,16 @@
+$OpenBSD$
+
+Allow use of in-base yacc.
+
+Index: sim/ucsim/cmd.src/cmdlex.l
+--- sim/ucsim/cmd.src/cmdlex.l.orig
 sim/ucsim/cmd.src/cmdlex.l
+@@ -2,7 +2,7 @@
+ #include 
+ //#include 
+ #include "cmdlexcl.h"
+-#include "cmdpars.hh"
++#include "cmdpars.h"
+ 
+ static int uc_yy_check_id(char *token);
+ static int uc_yy_input(char *buf, int max_size);
Index: patches/patch-sim_ucsim_cmd_src_newcmdposixcl_h
===
RCS file: patches/patch-sim_ucsim_cmd_src_newcmdposixcl_h
diff -N patches/patch-sim_ucsim_cmd_src_newcmdposixcl_h
--- patches/patch-sim_ucsim_cmd_src_newcmdposixcl_h	10 Sep 2016 13:03:41 -	1.1
+++ /dev/null	1 Jan 1970 00:00:00 -
@@ -1,11 +0,0 @@
-$OpenBSD: patch-sim_ucsim_cmd_src_newcmdposixcl_h,v 1.1 2016/09/10 13:03:41 ajacoutot Exp $
 sim/ucsim/cmd.src/newcmdposixcl.h.orig	Sat Sep 10 10:48:28 2016
-+++ sim/ucsim/cmd.src/newcmdposixcl.h	Sat 

[UPDATE] games/cataclysm-dda to 20180201

2018-03-04 Thread trondd
Update Cataclysm DDA to development as of 2018-02-01.

Tim.


Index: Makefile
===
RCS file: /cvs/ports/games/cataclysm-dda/Makefile,v
retrieving revision 1.3
diff -u -p -r1.3 Makefile
--- Makefile27 Dec 2017 22:00:17 -  1.3
+++ Makefile5 Mar 2018 00:23:51 -
@@ -1,12 +1,12 @@
 # $OpenBSD: Makefile,v 1.3 2017/12/27 22:00:17 bcallah Exp $
 
 COMMENT=   rogue-like zombie survival game
-DISTNAME=  cataclysm-dda-2017.12.14
+DISTNAME=  cataclysm-dda-2018.02.01
 CATEGORIES=games
 
 GH_ACCOUNT=CleverRaven
 GH_PROJECT=Cataclysm-DDA
-GH_COMMIT= a2cff93463812d7d318c23db864cad7dfef992bd
+GH_COMMIT= cf64a8836391ba742ce1eca500e1e0409a654d83
 
 HOMEPAGE=  http://en.cataclysmdda.com
 MAINTAINER=Tim Meunier 
Index: distinfo
===
RCS file: /cvs/ports/games/cataclysm-dda/distinfo,v
retrieving revision 1.2
diff -u -p -r1.2 distinfo
--- distinfo27 Dec 2017 22:00:17 -  1.2
+++ distinfo5 Mar 2018 00:23:51 -
@@ -1,2 +1,2 @@
-SHA256 (cataclysm-dda-2017.12.14-a2cff934.tar.gz) = 
ZWERVchcr/nYXdtKV2j9T1lExnlP1mte4lTut00IzqI=
-SIZE (cataclysm-dda-2017.12.14-a2cff934.tar.gz) = 55792459
+SHA256 (cataclysm-dda-2018.02.01-cf64a883.tar.gz) = 
PqoXPbvHznM8ezzgbiejZZ7xuyzhI+iyWlBB7bXgHTk=
+SIZE (cataclysm-dda-2018.02.01-cf64a883.tar.gz) = 60095165
Index: patches/patch-Makefile
===
RCS file: /cvs/ports/games/cataclysm-dda/patches/patch-Makefile,v
retrieving revision 1.3
diff -u -p -r1.3 patch-Makefile
--- patches/patch-Makefile  27 Dec 2017 22:00:17 -  1.3
+++ patches/patch-Makefile  5 Mar 2018 00:23:51 -
@@ -49,7 +49,7 @@ Index: Makefile
  PKG_CONFIG = $(CROSS)pkg-config
  SDL2_CONFIG = $(CROSS)sdl2-config
  
-@@ -706,7 +699,6 @@ $(BUILD_PREFIX)$(TARGET_NAME).a: $(ODIR) $(OBJS)
+@@ -716,7 +709,6 @@ $(BUILD_PREFIX)$(TARGET_NAME).a: $(ODIR) $(OBJS)
  .PHONY: version json-verify
  version:
@( VERSION_STRING=$(VERSION) ; \
@@ -57,7 +57,7 @@ Index: Makefile
  [ -e "$(SRC_DIR)/version.h" ] && OLDVERSION=$$(grep VERSION 
$(SRC_DIR)/version.h|cut -d '"' -f2) ; \
  if [ "x$$VERSION_STRING" != "x$$OLDVERSION" ]; then echo "#define 
VERSION \"$$VERSION_STRING\"" | tee $(SRC_DIR)/version.h ; fi \
   )
-@@ -760,35 +752,35 @@ distclean:
+@@ -770,35 +762,35 @@ distclean:
  bindist: $(BINDIST)
  
  ifeq ($(TARGETSYSTEM), LINUX)
@@ -112,7 +112,7 @@ Index: Makefile
mkdir -p $(LOCALE_DIR)
  ifdef LANGUAGES
LOCALE_DIR=$(LOCALE_DIR) lang/compile_mo.sh $(LANGUAGES)
-@@ -956,11 +948,6 @@ astyle: $(ASTYLED_WHITELIST)
+@@ -966,11 +958,6 @@ astyle: $(ASTYLED_WHITELIST)
  astyle-all: $(SOURCES) $(HEADERS) $(TESTSRC) $(TESTHDR) $(TOOLSRC)
$(ASTYLE_BINARY) --options=.astylerc -n $(SOURCES) $(HEADERS)
$(ASTYLE_BINARY) --options=.astylerc -n $(TESTSRC) $(TESTHDR)
Index: pkg/PFRAG.no-no_x11
===
RCS file: /cvs/ports/games/cataclysm-dda/pkg/PFRAG.no-no_x11,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 PFRAG.no-no_x11
--- pkg/PFRAG.no-no_x11 29 Oct 2017 17:27:19 -  1.1.1.1
+++ pkg/PFRAG.no-no_x11 5 Mar 2018 00:23:51 -
@@ -56,6 +56,13 @@ share/cataclysm-dda/gfx/MShock32TilesetM
 share/cataclysm-dda/gfx/MShock32TilesetModded/tile_config.json
 share/cataclysm-dda/gfx/MShock32TilesetModded/tiles.png
 share/cataclysm-dda/gfx/MShock32TilesetModded/tileset.txt
+share/cataclysm-dda/gfx/MshockXotto+/
+share/cataclysm-dda/gfx/MshockXotto+/expan.png
+share/cataclysm-dda/gfx/MshockXotto+/fallback.png
+share/cataclysm-dda/gfx/MshockXotto+/tile_config.json
+share/cataclysm-dda/gfx/MshockXotto+/tiles.png
+share/cataclysm-dda/gfx/MshockXotto+/tileset.txt
+share/cataclysm-dda/gfx/MshockXotto+/tree.png
 share/cataclysm-dda/gfx/RetroASCIITileset/
 share/cataclysm-dda/gfx/RetroASCIITileset/retroasciitiles.png
 share/cataclysm-dda/gfx/RetroASCIITileset/tile_config.json
Index: pkg/PLIST
===
RCS file: /cvs/ports/games/cataclysm-dda/pkg/PLIST,v
retrieving revision 1.2
diff -u -p -r1.2 PLIST
--- pkg/PLIST   27 Dec 2017 22:00:17 -  1.2
+++ pkg/PLIST   5 Mar 2018 00:23:52 -
@@ -345,6 +345,8 @@ share/cataclysm-dda/json/mapgen/hardware
 share/cataclysm-dda/json/mapgen/hardware4.json
 share/cataclysm-dda/json/mapgen/homeimprovement.json
 share/cataclysm-dda/json/mapgen/homeimprovement_superstore.json
+share/cataclysm-dda/json/mapgen/hospital/
+share/cataclysm-dda/json/mapgen/hospital/hospital.json
 share/cataclysm-dda/json/mapgen/hotel_tower.json
 share/cataclysm-dda/json/mapgen/house/
 share/cataclysm-dda/json/mapgen/house/house04.json
@@ -458,8 +460,19 @@ share/cataclysm-dda/json/mapgen/s_liquor
 share/cataclysm-dda

UPDATE: devel/dfu-programmer 0.6.2 to 0.7.2

2018-03-04 Thread Kaashif Hymabaccus
This is an update for dfu-programmer, program for uploading programs
to Atmel microcontrollers.

There is a small patch because the author forgot to include stdlib.h
in atmel.c. Also their website changed to a GitHub page, but their
release tarballs are still kept on SourceForge, which is a bit weird,
there aren't any actual release tarballs on GitHub (just autogenerated
ones).

I have tested it with an Atmel AT90USB162 and it works fine with the
launch, read, erase, flash, get commands. I don't have any hardware
which supports the other commands, I'd appreciate if someone could
test those if they have a board they can program through DFU.

diff --git Makefile Makefile
index 699f98ebe20..9683ffcae30 100644
--- Makefile
+++ Makefile
@@ -1,20 +1,21 @@
 # $OpenBSD: Makefile,v 1.4 2014/01/09 12:06:18 stsp Exp $
 
 COMMENT =  Device Firmware Update-based programmer for Atmel chips
-V =0.6.2
-DISTNAME = dfu-programmer-${V}
+DISTNAME = dfu-programmer-0.7.2
 CATEGORIES =   devel
-HOMEPAGE = http://dfu-programmer.sourceforge.net/
+HOMEPAGE = http://dfu-programmer.github.io/
 
 # GPLv2+
 PERMIT_PACKAGE_CDROM = Yes
 
-WANTLIB =  c pthread usb-1.0
-LIB_DEPENDS =  devel/libusb1
+WANTLIB =  c usb-1.0
+
 MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=dfu-programmer/}
-CONFIGURE_STYLE =  autoconf
-AUTOCONF_VERSION = 2.68
-CONFIGURE_ENV =CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include" \
+
+LIB_DEPENDS =  devel/libusb1
+
+CONFIGURE_STYLE =  gnu
+CONFIGURE_ENV+=CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include" \
CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \
LDFLAGS="${CFLAGS} -L${LOCALBASE}/lib"
 
diff --git distinfo distinfo
index e0400b79212..db8d0b973a0 100644
--- distinfo
+++ distinfo
@@ -1,2 +1,2 @@
-SHA256 (dfu-programmer-0.6.2.tar.gz) = 
ASCWakJN2YEkliBVdQ6Qy9bHtrD79bGHv0Ndqgokr2U=
-SIZE (dfu-programmer-0.6.2.tar.gz) = 134941
+SHA256 (dfu-programmer-0.7.2.tar.gz) = 
HbTTaxrtqyrcl26PqlSV3zz4LcS/iDYz3GunH3xK+ZU=
+SIZE (dfu-programmer-0.7.2.tar.gz) = 146613
diff --git patches/patch-configure_ac patches/patch-configure_ac
deleted file mode 100644
index 163e7d8cab2..000
--- patches/patch-configure_ac
+++ /dev/null
@@ -1,14 +0,0 @@
-$OpenBSD: patch-configure_ac,v 1.1 2014/01/09 12:06:18 stsp Exp $
 configure.ac.orig  Tue Jan  7 13:28:50 2014
-+++ configure.ac   Tue Jan  7 13:29:52 2014
-@@ -28,8 +28,8 @@ if test "$disable_libusb_1_0" = "no"; then
-   ifdef([PKG_CHECK_MODULES],
- [PKG_CHECK_MODULES(LIBUSB_1_0, [ libusb-1.0 >= 1.0.0 ], 
have_libusb_1_0=yes, have_libusb_1_0=no)],
- [have_libusb_1_0=yes
--  LIBUSB_1_0_CFLAGS=-I/usr/include/libusb-1.0
--  LIBUSB_1_0_LIBS=-lusb-1.0])
-+  LIBUSB_1_0_CFLAGS="`pkg-config --cflags libusb-1.0`"
-+  LIBUSB_1_0_LIBS="`pkg-config --libs libusb-1.0`"])
-   if test "$have_libusb_1_0" = "yes"; then
- AS_ECHO("using libusb_1.0");
- CFLAGS="$CFLAGS $LIBUSB_1_0_CFLAGS"



Re: New port: arx-libertatis

2018-03-04 Thread Thomas Frohwein
On Sun, Mar 04, 2018 at 05:31:31PM +1100, Jonathan Gray wrote:
> 1.1.2-r1 may map to 1.1.2pl1 (1.1.2 patch level 1) if I read
> packages-specs(7) correctly as there was a 1.1.2 release prior to r1.

I looked through packages. There are a few packages with pl0 (apvlv,
inotify-tools, and xarchiver) and since we also start with v0 and p0, I set this
to arx-libertatis-1.1.2pl0.

> The manual page is not installed into the right place.

Now the man pages are in the right place. I set up a do-install target and now
everything should be in the right place. The arx-install-data script runs
(but not with '--gui' which IMO is expendable).

I reinstalled it with the arx-install-data tool from gog.com and it works, so
I adjusted the readme to refer to this script

I updated PLIST again because update-desktop-database should really be in
there AFAIU. Not sure if the @cwd /usr/local is needed, but it seemed safer to
put it in there. Built it again and ran it without any issues.

> The arx-install-data script the installing under linux page references
> isn't installed into $PREFIX/bin not sure if that is desirable.

Installed it there and it works. See above.

> Same with arxsavetool/arxunpak.

I tested both (arxsavetool only with the 'view' action) and they work so I
added them to $PREFIX/bin


arx-libertatis.tgz
Description: Binary data


Re: NEW: devel/kf5/{purpose,kholidays}

2018-03-04 Thread Rafael Sadowski
kf5 5.43.0 is in, so let's go in with the modules. ok?

On Wed Feb 14, 2018 at 07:12:18AM +0100, Rafael Sadowski wrote:
> Hi All,
> 
> please find attached the two new KF5 modules. 
> 
> New modules
> 
> - KHolidays: Holiday calculation library
> 
> This library provides a C++ API that determines holiday and other
> special events for a geographical region.
> 
> - Purpose: Offers available actions for a specific purpose
> 
> This framework offers the possibility to create integrate services and
> actions on any application without having to implement them
> specifically. Purpose will offer them mechanisms to list the different
> alternatives to execute given the requested action type and will
> facilitate components so that all the plugins can receive all the
> information they need.
> 
> A quick review would be enough, it's a really simple port without
> consumers yet.
> 
> ok to import after KF5 5.43.0 update?
> 
> Best regards,
> 
> Rafael Sadowski
> 



Re: NEW: databases/kexi (devel/kproperty devel/kreport databases/kdb)

2018-03-04 Thread Rafael Sadowski
ping...

On Sun Feb 25, 2018 at 06:31:40PM +0100, Rafael Sadowski wrote:
> Hi All!
> 
> Attached is a new port: Kexi and all dependencies. Kexi has a long
> history in our CVS tree. Since Calligra 3.0 it is a stand-alone project.
> This means that since r1.19 (2017/05/30 18:57:20) it is no longer in the
> tree.
> 
> As usual I add the following lines into kexi:
> 
> @conflict koffice-*
> @conflict calligra-<3.0.0
> 
> Anyway It was always on my port TODO list. Manuel Solis requested and
> supported the work on kexi,
> 
> kexi.tar.gz  includes the following ports/files:
> devel/kproperty
> devel/kproperty/Makefile
> devel/kproperty/distinfo
> devel/kproperty/pkg
> devel/kproperty/pkg/DESCR
> devel/kproperty/pkg/PLIST
> devel/kreport
> devel/kreport/Makefile
> devel/kreport/distinfo
> devel/kreport/pkg
> devel/kreport/pkg/DESCR
> devel/kreport/pkg/PLIST
> databases/kdb
> databases/kdb/Makefile
> databases/kdb/distinfo
> databases/kdb/patches
> databases/kdb/patches/patch-src_CMakeLists_txt
> databases/kdb/pkg
> databases/kdb/pkg/DESCR
> databases/kdb/pkg/PLIST
> databases/kexi
> databases/kexi/Makefile
> databases/kexi/distinfo
> databases/kexi/pkg
> databases/kexi/pkg/DESCR
> databases/kexi/pkg/PLIST
> 
> $ cat databases/kexi/pkg/DESCR
> Kexi is a visual database applications creator. It can be used for creating
> database schemas, inserting data, performing queries, and processing data.
> Forms can be created to provide a custom interface to your data. All database
> objects - tables, queries and forms - are stored in the database, making it
> easy to share data and design.
> 
> $ cat databases/kdb/pkg/DESCR
> 
> KDb is a database connectivity and creation framework, consisted of a
> general-purpose C++ Qt library and set of plugins delivering support for
> various database vendors.
> 
> It is a part of the Kexi project
> 
> $ cat devel/kproperty/pkg/DESCR
> 
> KProperty is a property editing framework with editor widget similar to what 
> is
> known from Qt Designer.  It is used in Kexi and KReport
> 
> $ cat devel/kreport/pkg/DESCR
> 
> KReport is a framework for the creation and generation of reports in multiple
> formats.  It is used by Kexi and Calligra Plan.
> 
> Ok to import?
> 
> Best regards,
> 
> Rafael Sadowski




New port: sysutils/nnn

2018-03-04 Thread Ljuba Nedeljkovic
Hello,

I'm about to get my hands a bit dirty with first stub at porting to
OpenBSD with `nnn` (https://github.com/jarun/nnn).  If someone is
already working on it, please let me know.

Also, sorry about previous half-baked email that went out by
accident (ashamed).

-ljuba



New port: sysutils/nnn

2018-03-04 Thread Ljuba Nedeljkovic
Hello,

I'm about to get my hands a bit dirty with first stub at porting software
to OpenBSD.


[-stable update] tor 0.3.2.10

2018-03-04 Thread Pascal Stumpf
The tor 0.3.0.x series is no longer supported upstream and does not
receive security fixes.  Therefore, I think it would be best to update
the 6.2-stable tor package to the 0.3.2.x series.  Any objections?


Index: Makefile
===
RCS file: /cvs/ports/net/tor/Makefile,v
retrieving revision 1.105.2.1
diff -u -p -r1.105.2.1 Makefile
--- Makefile17 Dec 2017 02:25:46 -  1.105.2.1
+++ Makefile4 Mar 2018 14:15:31 -
@@ -2,7 +2,7 @@
 
 COMMENT=   anonymity service using onion routing
 
-DISTNAME=  tor-0.3.0.13
+DISTNAME=  tor-0.3.2.10
 CATEGORIES=net
 HOMEPAGE=  https://www.torproject.org/
 
Index: distinfo
===
RCS file: /cvs/ports/net/tor/distinfo,v
retrieving revision 1.86.2.1
diff -u -p -r1.86.2.1 distinfo
--- distinfo17 Dec 2017 02:25:46 -  1.86.2.1
+++ distinfo4 Mar 2018 14:15:31 -
@@ -1,2 +1,2 @@
-SHA256 (tor-0.3.0.13.tar.gz) = bgE5uo3JXeJUkaAXHcwDr24Fmid9OW8lmZianJDVLkM=
-SIZE (tor-0.3.0.13.tar.gz) = 5913752
+SHA256 (tor-0.3.2.10.tar.gz) = YN93wx3PlP3WhsjKjDTztwJDszpzROzAtxnVyiYXy+4=
+SIZE (tor-0.3.2.10.tar.gz) = 6421984
Index: patches/patch-src_config_torrc_sample_in
===
RCS file: /cvs/ports/net/tor/patches/patch-src_config_torrc_sample_in,v
retrieving revision 1.18
diff -u -p -r1.18 patch-src_config_torrc_sample_in
--- patches/patch-src_config_torrc_sample_in27 Apr 2017 19:55:56 -  
1.18
+++ patches/patch-src_config_torrc_sample_in4 Mar 2018 14:15:31 -
@@ -1,6 +1,7 @@
 $OpenBSD: patch-src_config_torrc_sample_in,v 1.18 2017/04/27 19:55:56 pascal 
Exp $
 src/config/torrc.sample.in.origSun Mar  5 01:44:57 2017
-+++ src/config/torrc.sample.in Thu Apr 27 08:26:18 2017
+Index: src/config/torrc.sample.in
+--- src/config/torrc.sample.in.orig
 src/config/torrc.sample.in
 @@ -39,18 +39,18 @@
  ## Send every possible message to @LOCALSTATEDIR@/log/tor/debug.log
  #Log debug file @LOCALSTATEDIR@/log/tor/debug.log
@@ -36,7 +37,7 @@ $OpenBSD: patch-src_config_torrc_sample_
  #HiddenServicePort 80 127.0.0.1:80
  #HiddenServicePort 22 127.0.0.1:22
  
-@@ -189,6 +189,8 @@
+@@ -204,6 +204,8 @@
  ## and any public IPv4 and IPv6 addresses on any interface on the relay.
  ## See the man page entry for ExitPolicyRejectPrivate if you want to allow
  ## "exit enclaving".



Re: [update] devel/zeal use release tarballs

2018-03-04 Thread Adam Wolk
On Sun, Mar 04, 2018 at 01:27:48PM +, Stuart Henderson wrote:
> Please use a temporary DISTFILES rename (see fs2open) to avoid changing the
> distfile under the same name, bulk builds don't handle it well.
> 
> -- 
>  Sent from a phone, apologies for poor formatting.
> 

same diff, switched to using EXTRACT_SUFX= .tar.xz to avoid DITFILES mangling.

OK?
Index: Makefile
===
RCS file: /cvs/ports/devel/zeal/Makefile,v
retrieving revision 1.9
diff -u -p -r1.9 Makefile
--- Makefile28 Feb 2018 22:52:53 -  1.9
+++ Makefile4 Mar 2018 13:55:43 -
@@ -5,9 +5,9 @@ USE_WXNEEDED =  Yes
 
 COMMENT =  simple offline API documentation browser
 
-GH_ACCOUNT =   zealdocs
-GH_PROJECT =   zeal
-GH_TAGNAME =   v0.6.0
+V =0.6.0
+DISTNAME = zeal-${V}
+REVISION = 0
 
 CATEGORIES =   devel
 
@@ -23,9 +23,9 @@ WANTLIB += Qt5WebKitWidgets Qt5Widgets Q
 WANTLIB += archive c m sqlite3 xcb xcb-keysyms
 WANTLIB += ${COMPILER_LIBCXX}
 
-WANTLIB += ICE Qt5Concurrent Qt5Core Qt5Gui Qt5Network Qt5WebKit
-WANTLIB += Qt5WebKitWidgets Qt5Widgets Qt5X11Extras SM X11 Xext
-WANTLIB += archive c m sqlite3 xcb xcb-keysyms
+MASTER_SITES = https://github.com/zealdocs/zeal/releases/download/v${V}/
+
+EXTRACT_SUFX = .tar.xz
 
 MODULES =  devel/cmake x11/qt5
 BUILD_DEPENDS =devel/kf5/extra-cmake-modules
Index: distinfo
===
RCS file: /cvs/ports/devel/zeal/distinfo,v
retrieving revision 1.5
diff -u -p -r1.5 distinfo
--- distinfo28 Feb 2018 22:52:53 -  1.5
+++ distinfo4 Mar 2018 13:55:43 -
@@ -1,2 +1,2 @@
-SHA256 (zeal-0.6.0.tar.gz) = 7zB9OtTwPHb6X8JJ+OfgTeh5qnV0vsH/i+VI28LAKXM=
-SIZE (zeal-0.6.0.tar.gz) = 1062223
+SHA256 (zeal-0.6.0.tar.xz) = 2eBFhGAbxQRh2Z41RRbkaJO/Leu+N3yxc9FUHU/glYo=
+SIZE (zeal-0.6.0.tar.xz) = 670416


Re: NEW: textproc/solr

2018-03-04 Thread Stuart Henderson
On 2018/03/04 13:18, Stuart Henderson wrote:
> OK to import?
> 
> $ cat pkg/DESCR
> Solr is a standalone enterprise search server with a REST-like API
> supporting JSON, XML, CSV or binary over HTTP for document addition
> and searches.

PS: I'm using this with Dovecot, basically following these instructions:

https://wiki.idefix.fechner.net/freebsd:postfix_dovecot_virtual#solr_integration_in_dovecot

The only changes compared to those docs are _solr for the uid and using
rcctl instead of FreeBSD's "service".

I've considered adding information about this to Dovecot's pkg-readme,
but it's a bit unwieldy for that file (it needs a schema file as the
one provided in Dovecot only works for an older version or solr),
and really when that's updated, Dovecot's own docs should be
sufficient.



py libs to make Ansible winrm transport working (Windows mgmt)

2018-03-04 Thread Jiri B
Hi,

I need to manage multiple Windows ADs at work thus I made couple of
new python lib ports to have Ansible working with winrm transport
and thus have possibility to use OpenBSD and Ansible to manage remote
Windows boxes.

Tested with remote Windows 2016 with ntlm, kerberos auth.

Only thing is I'm not really sure I made correctly py-kerberos port,
I could not manage to have port-lib-depends-check without some bogus
output (read Heimdal involved here).

There's no difference between OpenBSD and other *nix system to
make winrm working. But if you would need some 'howto', I can provide
steps.

Jiri

sysutils/py-winrm (default is with ntlm support)

- textproc/py-xmltodict [new]
- py-requests-ntlm [new]
  - security/py-ntlm-auth [new]
- devel/py-six
- devel/py-six
- www/requests

sysutils/py-winrm + kerberos support


- textproc/py-xmltodict [new]
- py-requests-ntlm [new]
  - security/py-ntlm-auth [new]
- devel/py-six
- devel/py-six
- www/requests
- (optional) www/py-requests-kerberos [new]
  - www/py-requests
  - security/py-cryptography
  - security/py-kerberos [new]

sysutils/py-winrm + credssp support
---
- textproc/py-xmltodict [new]
- py-requests-ntlm [new]
  - security/py-ntlm-auth [new]
- devel/py-six
- devel/py-six
- www/requests
- (optional) www/py-requests-credssp [new]
  - security/py-ntlm-auth [new]
  - security/py-openssl
  - www/py-requests


py-kerberos.tgz
Description: application/tar-gz


py-ntlm-auth.tgz
Description: application/tar-gz


py-requests-credssp.tgz
Description: application/tar-gz


py-requests-kerberos.tgz
Description: application/tar-gz


py-requests-ntlm.tgz
Description: application/tar-gz


py-winrm.tgz
Description: application/tar-gz


py-xmltodict.tgz
Description: application/tar-gz


Re: [update] devel/zeal use release tarballs

2018-03-04 Thread Stuart Henderson
Please use a temporary DISTFILES rename (see fs2open) to avoid changing the 
distfile under the same name, bulk builds don't handle it well.


--
 Sent from a phone, apologies for poor formatting.



On 4 March 2018 12:36:13 Adam Wolk  wrote:


Hi ports@,

devel/zeal upstream started doing release tarballs:
https://github.com/zealdocs/zeal/issues/897

Here is a diff to switch our port to them, additionally
I noticed that I accidentally duplicated WANTLIB during
the upgrade to 0.4 so while here drop the duplicated
lines.

Feedback? OK's?

Regards,
Adam






NEW: textproc/solr

2018-03-04 Thread Stuart Henderson
OK to import?

$ cat pkg/DESCR
Solr is a standalone enterprise search server with a REST-like API
supporting JSON, XML, CSV or binary over HTTP for document addition
and searches.


solr.tgz
Description: application/tar-gz


[update] devel/zeal use release tarballs

2018-03-04 Thread Adam Wolk
Hi ports@,

devel/zeal upstream started doing release tarballs:
https://github.com/zealdocs/zeal/issues/897

Here is a diff to switch our port to them, additionally
I noticed that I accidentally duplicated WANTLIB during
the upgrade to 0.4 so while here drop the duplicated
lines.

Feedback? OK's?

Regards,
Adam
? zeal-0.3.1.diff
? zeal-0.4.0.diff
? zeal-0.5.0.diff
? zeal-0.6.0.diff
? zeal-0.6.0p0.diff
Index: Makefile
===
RCS file: /cvs/ports/devel/zeal/Makefile,v
retrieving revision 1.9
diff -u -p -r1.9 Makefile
--- Makefile28 Feb 2018 22:52:53 -  1.9
+++ Makefile4 Mar 2018 12:32:01 -
@@ -5,9 +5,9 @@ USE_WXNEEDED =  Yes
 
 COMMENT =  simple offline API documentation browser
 
-GH_ACCOUNT =   zealdocs
-GH_PROJECT =   zeal
-GH_TAGNAME =   v0.6.0
+V =0.6.0
+DISTNAME = zeal-${V}
+REVISION = 0
 
 CATEGORIES =   devel
 
@@ -23,9 +23,7 @@ WANTLIB += Qt5WebKitWidgets Qt5Widgets Q
 WANTLIB += archive c m sqlite3 xcb xcb-keysyms
 WANTLIB += ${COMPILER_LIBCXX}
 
-WANTLIB += ICE Qt5Concurrent Qt5Core Qt5Gui Qt5Network Qt5WebKit
-WANTLIB += Qt5WebKitWidgets Qt5Widgets Qt5X11Extras SM X11 Xext
-WANTLIB += archive c m sqlite3 xcb xcb-keysyms
+MASTER_SITES = https://github.com/zealdocs/zeal/releases/download/v${V}/
 
 MODULES =  devel/cmake x11/qt5
 BUILD_DEPENDS =devel/kf5/extra-cmake-modules
Index: distinfo
===
RCS file: /cvs/ports/devel/zeal/distinfo,v
retrieving revision 1.5
diff -u -p -r1.5 distinfo
--- distinfo28 Feb 2018 22:52:53 -  1.5
+++ distinfo4 Mar 2018 12:32:01 -
@@ -1,2 +1,2 @@
-SHA256 (zeal-0.6.0.tar.gz) = 7zB9OtTwPHb6X8JJ+OfgTeh5qnV0vsH/i+VI28LAKXM=
-SIZE (zeal-0.6.0.tar.gz) = 1062223
+SHA256 (zeal-0.6.0.tar.gz) = BPkpAOosxAmXZ0Lxt/Y5QxZIicH5HK14lRbolO6uGv8=
+SIZE (zeal-0.6.0.tar.gz) = 1060066