Help on creating a port (perl)

2013-12-29 Thread Rodrigo Mosconi
Hi,

I`m making a port of Web::Simple perl module, and I`ve got some erros on
port a dependency  (Lexical::SealRequire::Hints):

I`ve created this Makefile:
8
COMMENT =   prevent leakage of lexical hints

DISTNAME =  Lexical-SealRequireHints-0.007
MODULES =   cpan
CATEGORIES =devel
CPAN_AUTHOR =   ZEFRAM
HOMEPAGE =  https://metacpan.org/pod/Lexical::SealRequireHints
MAINTAINER =open...@mosconi.mat.br

# perl
PERMIT_PACKAGE_CDROM =  Yes
BUILD_DEPENDS = ${RUN_DEPENDS}
RUN_DEPENDS =

.include bsd.port.mk
8

When I try to create a plist I throught this steps:

tales:p5-Lexical-SealRequireHints {106} make clean
===  Cleaning for p5-Lexical-SealRequireHints-0.007
tales:p5-Lexical-SealRequireHints {107} make fetch
===  Checking files for p5-Lexical-SealRequireHints-0.007
`/home/mosconi/ports/distfiles/Lexical-SealRequireHints-0.007.tar.gz' is up
to date.
tales:p5-Lexical-SealRequireHints {108} make makesum
===  Checking files for p5-Lexical-SealRequireHints-0.007
`/home/mosconi/ports/distfiles/Lexical-SealRequireHints-0.007.tar.gz' is up
to date.
tales:p5-Lexical-SealRequireHints {109} make build
===  Checking files for p5-Lexical-SealRequireHints-0.007
`/home/mosconi/ports/distfiles/Lexical-SealRequireHints-0.007.tar.gz' is up
to date.
 (SHA256) Lexical-SealRequireHints-0.007.tar.gz: OK
===  Extracting for p5-Lexical-SealRequireHints-0.007
===  Patching for p5-Lexical-SealRequireHints-0.007
===  Configuring for p5-Lexical-SealRequireHints-0.007
# Converted to config installsitelib=/usr/local/libdata/perl5/site_perl
# Converted to config installsitearch=${INSTALLSITELIB}/i386-openbsd
# Converted to config installprivlib=/usr/./libdata/perl5
# Converted to config installarchlib=${INSTALLPRIVLIB}/i386-openbsd
# Converted to config installman1dir=/usr/local/man/man1
# Converted to config installman3dir=/usr/local/man/man3p
# Converted to config installbin=${PREFIX}/bin
# Converted to config installscript=${INSTALLBIN}
# running Build.PL --prefix /usr/local --config
installsitelib=/usr/local/libdata/perl5/site_perl --config
installsitearch=${INSTALLSITELIB}/i386-openbsd --config
installprivlib=/usr/./libdata/perl5 --config
installarchlib=${INSTALLPRIVLIB}/i386-openbsd --config
installman1dir=/usr/local/man/man1 --config
installman3dir=/usr/local/man/man3p --config installbin=${PREFIX}/bin
--config installscript=${INSTALLBIN}
Created MYMETA.yml and MYMETA.json
Creating new 'Build' script for 'Lexical-SealRequireHints' version '0.007'
===  Building for p5-Lexical-SealRequireHints-0.007
/usr/bin/perl Build --makefile_env_macros 1
Building Lexical-SealRequireHints
cc -I/usr/libdata/perl5/i386-openbsd/5.16.3/CORE -DXS_VERSION=0.007
-DVERSION=0.007 -DPIC -fPIC -c -DNO_LOCALE_NUMERIC -DNO_LOCALE_COLLATE
-fno-strict-aliasing -fno-delete-null-pointer-checks -pipe
-fstack-protector -I/usr/local/include -O2 -pipe -O2 -o
lib/Lexical/SealRequireHints.o lib/Lexical/SealRequireHints.c
ExtUtils::Mkbootstrap::Mkbootstrap('blib/arch/auto/Lexical/SealRequireHints/SealRequireHints.bs')
cc -shared -fPIC -fstack-protector -o
blib/arch/auto/Lexical/SealRequireHints/SealRequireHints.so
lib/Lexical/SealRequireHints.o
tales:p5-Lexical-SealRequireHints {110} make clean
===  Cleaning for p5-Lexical-SealRequireHints-0.007
tales:p5-Lexical-SealRequireHints {111} sudo make fake
===  Checking files for p5-Lexical-SealRequireHints-0.007
`/home/mosconi/ports/distfiles/Lexical-SealRequireHints-0.007.tar.gz' is up
to date.
 (SHA256) Lexical-SealRequireHints-0.007.tar.gz: OK
===  Extracting for p5-Lexical-SealRequireHints-0.007
===  Patching for p5-Lexical-SealRequireHints-0.007
===  Configuring for p5-Lexical-SealRequireHints-0.007
# Converted to config installsitelib=/usr/local/libdata/perl5/site_perl
# Converted to config installsitearch=${INSTALLSITELIB}/i386-openbsd
# Converted to config installprivlib=/usr/./libdata/perl5
# Converted to config installarchlib=${INSTALLPRIVLIB}/i386-openbsd
# Converted to config installman1dir=/usr/local/man/man1
# Converted to config installman3dir=/usr/local/man/man3p
# Converted to config installbin=${PREFIX}/bin
# Converted to config installscript=${INSTALLBIN}
# running Build.PL --prefix /usr/local --config
installsitelib=/usr/local/libdata/perl5/site_perl --config
installsitearch=${INSTALLSITELIB}/i386-openbsd --config
installprivlib=/usr/./libdata/perl5 --config
installarchlib=${INSTALLPRIVLIB}/i386-openbsd --config
installman1dir=/usr/local/man/man1 --config
installman3dir=/usr/local/man/man3p --config installbin=${PREFIX}/bin
--config installscript=${INSTALLBIN}
Created MYMETA.yml and MYMETA.json
Creating new 'Build' script for 'Lexical-SealRequireHints' version '0.007'
===  Building for p5-Lexical-SealRequireHints-0.007
/usr/bin/perl Build --makefile_env_macros 1
Building Lexical-SealRequireHints
cc -I/usr/libdata/perl5/i386-openbsd/5.16.3/CORE -DXS_VERSION=0.007
-DVERSION=0.007 -DPIC -fPIC -c 

Work on mongodb

2013-12-31 Thread Rodrigo Mosconi
I`ve made some changes on MongoDB port, and I could compile and started it.

This are my changes:

$ cvs diff -u databases/mongodb
retrieving revision 1.11
diff -u -r1.11 Makefile
--- databases/mongodb/Makefile  10 Dec 2013 17:30:40 -  1.11
+++ databases/mongodb/Makefile  31 Dec 2013 15:51:46 -
@@ -1,13 +1,13 @@
 # $OpenBSD: Makefile,v 1.11 2013/12/10 17:30:40 joshe Exp $

-BROKEN =   broken after rthreads switch
+#BROKEN =  broken after rthreads switch

 #atomic_int.h: error unsupported compiler or platform on other archs
 ONLY_FOR_ARCHS =   i386 amd64

 COMMENT =  scalable, high-performance document-oriented database

-DISTNAME = mongodb-src-r2.4.7
+DISTNAME = mongodb-src-r2.4.8
 PKGNAME =  ${DISTNAME:S/src-r//}

 SHARED_LIBS =  mongoclient 2.0
@@ -25,8 +25,13 @@

 MASTER_SITES = http://downloads.mongodb.org/src/

-MODULES =  devel/scons
+MODULES =  devel/scons
+MODULES +=  gcc4
+MODGCC4_ARCHS = i386 amd64
+MODGCC4_LANGS = c c++
+
 MODSCONS_FLAGS = --prefix=${PREFIX} \
+--cc=egcc --cxx=eg++ \
 --cpppath=${LOCALBASE}/include/nspr \
 --extralib=pcrecpp \
 --usev8 \
Index: databases/mongodb/distinfo
===
RCS file: /cvs/ports/databases/mongodb/distinfo,v
retrieving revision 1.5
diff -u -r1.5 distinfo
--- databases/mongodb/distinfo  10 Dec 2013 17:30:41 -  1.5
+++ databases/mongodb/distinfo  31 Dec 2013 15:51:46 -
@@ -1,2 +1,2 @@
:cvs server: Diffing databases/mongodb/files
cvs server: Diffing databases/mongodb/patches
cvs server: Diffing databases/mongodb/pkg
-SHA256 (mongodb-src-r2.4.7.tar.gz) =
aePPaXIl76Lm5l9c/cMXQvPksuBpwn2E/HE6vgv2fKc=
-SIZE (mongodb-src-r2.4.7.tar.gz) = 14157198
+SHA256 (mongodb-src-r2.4.8.tar.gz) =
/XA85eU936DMqcf7qaDEzqQXnTiXKpjGdfRdnxW0z9w=
+SIZE (mongodb-src-r2.4.8.tar.gz) = 14157223
$

I`ll make more test on it.


Re: Work on mongodb

2014-01-02 Thread Rodrigo Mosconi
A new patch, it is working on i386 ( I can start, connect, create a
database, insert elements and query):

$ cvs diff -Nup .
Index: Makefile
===
RCS file: /cvs/ports/databases/mongodb/Makefile,v
retrieving revision 1.11
diff -u -p -r1.11 Makefile
--- Makefile10 Dec 2013 17:30:40 -  1.11
+++ Makefile2 Jan 2014 10:52:13 -
@@ -1,13 +1,13 @@
 # $OpenBSD: Makefile,v 1.11 2013/12/10 17:30:40 joshe Exp $

-BROKEN =   broken after rthreads switch
+#BROKEN =  broken after rthreads switch

 #atomic_int.h: error unsupported compiler or platform on other archs
 ONLY_FOR_ARCHS =   i386 amd64

 COMMENT =  scalable, high-performance document-oriented database

-DISTNAME = mongodb-src-r2.4.7
+DISTNAME = mongodb-src-r2.4.8
 PKGNAME =  ${DISTNAME:S/src-r//}

 SHARED_LIBS =  mongoclient 2.0
@@ -25,8 +25,13 @@ WANTLIB =boost_filesystem-mt boost_prog

 MASTER_SITES = http://downloads.mongodb.org/src/

-MODULES =  devel/scons
+MODULES =  devel/scons
+MODULES +=  gcc4
+MODGCC4_ARCHS = i386 amd64
+MODGCC4_LANGS = c c++
+
 MODSCONS_FLAGS = --prefix=${PREFIX} \
+--cc=egcc --cxx=eg++ \
 --cpppath=${LOCALBASE}/include/nspr \
 --extralib=pcrecpp \
 --usev8 \
Index: distinfo
===
RCS file: /cvs/ports/databases/mongodb/distinfo,v
retrieving revision 1.5
diff -u -p -r1.5 distinfo
--- distinfo10 Dec 2013 17:30:41 -  1.5
+++ distinfo2 Jan 2014 10:52:13 -
@@ -1,2 +1,2 @@
-SHA256 (mongodb-src-r2.4.7.tar.gz) =
aePPaXIl76Lm5l9c/cMXQvPksuBpwn2E/HE6vgv2fKc=
-SIZE (mongodb-src-r2.4.7.tar.gz) = 14157198
+SHA256 (mongodb-src-r2.4.8.tar.gz) =
/XA85eU936DMqcf7qaDEzqQXnTiXKpjGdfRdnxW0z9w=
+SIZE (mongodb-src-r2.4.8.tar.gz) = 14157223


2013/12/31, Amit Kulkarni amitk...@gmail.com:
 On Tue, Dec 31, 2013 at 9:59 AM, Rodrigo Mosconi
 open...@mosconi.mat.brwrote:

 I`ve made some changes on MongoDB port, and I could compile and started
 it.

 This are my changes:

 $ cvs diff -u databases/mongodb



 No comment about the port but in future send a cvs diff -Nup




Update net/zeromq and new port net/czmq

2014-03-19 Thread Rodrigo Mosconi
Folow a update of ZeroMQ port to version 4.0.4 and a new port czmq that is
a high-level bindings of ZeroMQ.


czmq.tgz
Description: GNU Zip compressed data


zeromq.tgz
Description: GNU Zip compressed data


Re: Update net/zeromq and new port net/czmq

2014-03-21 Thread Rodrigo Mosconi
ping?


2014-03-19 23:57 GMT-03:00 Rodrigo Mosconi open...@mosconi.mat.br:

 Folow a update of ZeroMQ port to version 4.0.4 and a new port czmq that is
 a high-level bindings of ZeroMQ.



Re: Update net/zeromq and new port net/czmq

2014-03-25 Thread Rodrigo Mosconi
Are those ports ok, or has any problem?


2014-03-19 23:57 GMT-03:00 Rodrigo Mosconi open...@mosconi.mat.br:

 Folow a update of ZeroMQ port to version 4.0.4 and a new port czmq that is
 a high-level bindings of ZeroMQ.



Re: [UPDATE] cfengine master_site change

2014-06-19 Thread Rodrigo Mosconi
CFEngine can be compiled with qdbm, tokyo cabinet or lmdb.  Currently, OBSD
only includes qdbm on port, and OBSD`s CFEngine is complied with qdbm.
There is someone already working to include Tokyo Cabinet or lmdb into
ports?


2014-06-19 6:20 GMT-03:00 Jiri B ji...@devio.us:

 easy diff, let's first update our 3.4.5 version
 before trying to update to 3.6.0.

 j.

 Index: Makefile
 ===
 RCS file: /cvs/ports/sysutils/cfengine/Makefile,v
 retrieving revision 1.44
 diff -u -p -r1.44 Makefile
 --- Makefile20 Sep 2013 13:02:49 -  1.44
 +++ Makefile19 Jun 2014 09:18:52 -
 @@ -3,8 +3,7 @@
  COMMENT =  GNU system administration tool for networks

  DISTNAME = cfengine-3.4.5
 -F =${DISTNAME}${EXTRACT_SUFX}
 -DISTFILES =$F{download?file=$F}
 +REVISION = 0

  SHARED_LIBS +=  promises   0.0 # 1.0
  CATEGORIES =   sysutils
 @@ -15,7 +14,7 @@ MAINTAINER =  Martijn Rijkeboer martijn@
  # GPLv3 only
  PERMIT_PACKAGE_CDROM = Yes

 -MASTER_SITES = http://cfengine.com/source-code/
 +MASTER_SITES = https://s3.amazonaws.com/cfengine.package-repos/tarballs/

  CFENGINE_BASE =/var/cfengine
  CFENGINE_EXAMPLES =${PREFIX}/share/examples/cfengine




Re: [UPDATE] cfengine master_site change

2014-06-21 Thread Rodrigo Mosconi
2014-06-19 15:18 GMT-03:00 Jiri B ji...@devio.us:

 On Thu, Jun 19, 2014 at 02:16:30PM -0300, Rodrigo Mosconi wrote:
  CFEngine can be compiled with qdbm, tokyo cabinet or lmdb.  Currently,
 OBSD
  only includes qdbm on port, and OBSD`s CFEngine is complied with qdbm.
  There is someone already working to include Tokyo Cabinet or lmdb into
  ports?

 First you should try to compile 3.6.0 ;) They were some issues
 which should be solved soon. I hope static compilation would
 be solved as well soon.


which issues? I compiled the 3.6.0 version, but didn`t runned yet



 Try yourself, file bugs upstream.

 j.



Re: Drop maintainership sysutils/cfengine

2014-11-23 Thread Rodrigo Mosconi
2014-11-19 17:36 GMT-02:00 Jérémie Courrèges-Anglas j...@wxcvbn.org:

 Martijn Rijkeboer mart...@bunix.org writes:

  Hi,

 Hi,

  During the upgrade to 5.6 we've switched from Cfengine to Ansible.
 Therefore
  I would like to drop maintainership for sysutils/cfengine since we don't
 use
  it any more.

 Done, thanks.  Any takers?


I could take, but I can realy watch carefully after December 15.




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




UPDATE: databases/apache-couchdb

2014-12-23 Thread Rodrigo Mosconi
Patch to update couchdb from 1.0.4 to 1.6.1
Index: Makefile
===
RCS file: /cvs/ports/databases/apache-couchdb/Makefile,v
retrieving revision 1.18
diff -u -p -r1.18 Makefile
--- Makefile	21 Mar 2013 08:45:14 -	1.18
+++ Makefile	24 Dec 2014 02:37:07 -
@@ -2,13 +2,15 @@
 
 COMMENT =	distributed, document-oriented database
 
-COUCH_VER =	1.0.4
+COUCH_VER =	1.6.1
 DISTNAME =	apache-couchdb-${COUCH_VER}
 REVISION =	0
 CATEGORIES =	databases
 
 HOMEPAGE =	http://couchdb.apache.org/
 
+MAINTAINER =Rodrigo Mosconi open...@mosconi.mat.br
+
 # Apache 2.0
 PERMIT_PACKAGE_CDROM =	Yes
 
@@ -17,7 +19,7 @@ MODULES =	devel/gettext
 WANTLIB += c crypto curl icudata icui18n icuuc idn m mozjs ncurses
 WANTLIB += nspr4 plc4 plds4 pthread ssl stdc++ z
 
-MASTER_SITES =	${MASTER_SITE_APACHE:=couchdb/${COUCH_VER}/}
+MASTER_SITES =	${MASTER_SITE_APACHE:=couchdb/source/${COUCH_VER}/}
 
 BUILD_DEPENDS =	lang/erlang
 RUN_DEPENDS =	lang/erlang
Index: distinfo
===
RCS file: /cvs/ports/databases/apache-couchdb/distinfo,v
retrieving revision 1.8
diff -u -p -r1.8 distinfo
--- distinfo	7 Feb 2013 16:06:43 -	1.8
+++ distinfo	24 Dec 2014 02:37:07 -
@@ -1,2 +1,2 @@
-SHA256 (apache-couchdb-1.0.4.tar.gz) = uCBdwizsSuaRj6Zpo4wrvJWIN6ekd50i1Mwil6uvLw8=
-SIZE (apache-couchdb-1.0.4.tar.gz) = 1042922
+SHA256 (apache-couchdb-1.6.1.tar.gz) = WmAbFzczzj7TG2VIBceTqpBxMc1wsG0Dgl8WmqSMhic=
+SIZE (apache-couchdb-1.6.1.tar.gz) = 12085350
Index: pkg/PFRAG.shared
===
RCS file: /cvs/ports/databases/apache-couchdb/pkg/PFRAG.shared,v
retrieving revision 1.2
diff -u -p -r1.2 PFRAG.shared
--- pkg/PFRAG.shared	13 Sep 2010 17:31:03 -	1.2
+++ pkg/PFRAG.shared	24 Dec 2014 02:37:07 -
@@ -1,2 +1,5 @@
 @comment $OpenBSD: PFRAG.shared,v 1.2 2010/09/13 17:31:03 sebastia Exp $
+lib/couchdb/erlang/lib/couch-${COUCH_VER}/priv/lib/couch_ejson_compare.so
 lib/couchdb/erlang/lib/couch-${COUCH_VER}/priv/lib/couch_icu_driver.so
+lib/couchdb/erlang/lib/ejson-0.1.0/priv/ejson.so
+lib/couchdb/erlang/lib/snappy-1.0.5/priv/snappy_nif.so
Index: pkg/PLIST
===
RCS file: /cvs/ports/databases/apache-couchdb/pkg/PLIST,v
retrieving revision 1.7
diff -u -p -r1.7 PLIST
--- pkg/PLIST	7 Feb 2013 16:06:43 -	1.7
+++ pkg/PLIST	24 Dec 2014 02:37:07 -
@@ -2,8 +2,10 @@
 @newgroup _couchdb:621
 @newuser _couchdb:621:_couchdb:daemon:CouchDB account:/var/couchdb:/bin/sh
 %%SHARED%%
+bin/couch-config
 bin/couchdb
 bin/couchjs
+@info info/CouchDB
 lib/couchdb/
 lib/couchdb/bin/
 @bin lib/couchdb/bin/couchjs
@@ -17,6 +19,8 @@ lib/couchdb/erlang/lib/couch-${COUCH_VER
 lib/couchdb/erlang/lib/couch-${COUCH_VER}/ebin/couch_auth_cache.beam
 lib/couchdb/erlang/lib/couch-${COUCH_VER}/ebin/couch_btree.beam
 lib/couchdb/erlang/lib/couch-${COUCH_VER}/ebin/couch_changes.beam
+lib/couchdb/erlang/lib/couch-${COUCH_VER}/ebin/couch_compaction_daemon.beam
+lib/couchdb/erlang/lib/couch-${COUCH_VER}/ebin/couch_compress.beam
 lib/couchdb/erlang/lib/couch-${COUCH_VER}/ebin/couch_config.beam
 lib/couchdb/erlang/lib/couch-${COUCH_VER}/ebin/couch_config_writer.beam
 lib/couchdb/erlang/lib/couch-${COUCH_VER}/ebin/couch_db.beam
@@ -24,76 +28,118 @@ lib/couchdb/erlang/lib/couch-${COUCH_VER
 lib/couchdb/erlang/lib/couch-${COUCH_VER}/ebin/couch_db_update_notifier_sup.beam
 lib/couchdb/erlang/lib/couch-${COUCH_VER}/ebin/couch_db_updater.beam
 lib/couchdb/erlang/lib/couch-${COUCH_VER}/ebin/couch_doc.beam
+lib/couchdb/erlang/lib/couch-${COUCH_VER}/ebin/couch_drv.beam
+lib/couchdb/erlang/lib/couch-${COUCH_VER}/ebin/couch_ejson_compare.beam
 lib/couchdb/erlang/lib/couch-${COUCH_VER}/ebin/couch_event_sup.beam
 lib/couchdb/erlang/lib/couch-${COUCH_VER}/ebin/couch_external_manager.beam
 lib/couchdb/erlang/lib/couch-${COUCH_VER}/ebin/couch_external_server.beam
 lib/couchdb/erlang/lib/couch-${COUCH_VER}/ebin/couch_file.beam
 lib/couchdb/erlang/lib/couch-${COUCH_VER}/ebin/couch_httpd.beam
 lib/couchdb/erlang/lib/couch-${COUCH_VER}/ebin/couch_httpd_auth.beam
+lib/couchdb/erlang/lib/couch-${COUCH_VER}/ebin/couch_httpd_cors.beam
 lib/couchdb/erlang/lib/couch-${COUCH_VER}/ebin/couch_httpd_db.beam
 lib/couchdb/erlang/lib/couch-${COUCH_VER}/ebin/couch_httpd_external.beam
 lib/couchdb/erlang/lib/couch-${COUCH_VER}/ebin/couch_httpd_misc_handlers.beam
 lib/couchdb/erlang/lib/couch-${COUCH_VER}/ebin/couch_httpd_oauth.beam
+lib/couchdb/erlang/lib/couch-${COUCH_VER}/ebin/couch_httpd_proxy.beam
 lib/couchdb/erlang/lib/couch-${COUCH_VER}/ebin/couch_httpd_rewrite.beam
-lib/couchdb/erlang/lib/couch-${COUCH_VER}/ebin/couch_httpd_show.beam
 lib/couchdb/erlang/lib/couch-${COUCH_VER}/ebin/couch_httpd_stats_handlers.beam
-lib/couchdb/erlang/lib/couch-${COUCH_VER}/ebin/couch_httpd_view.beam
+lib/couchdb/erlang/lib/couch-${COUCH_VER}/ebin/couch_httpd_vhost.beam
 lib/couchdb/erlang

maintainer net/zeromq

2014-12-23 Thread Rodrigo Mosconi
I`m taking the maintainership of net/zeromq
Index: Makefile
===
RCS file: /cvs/ports/net/zeromq/Makefile,v
retrieving revision 1.13
diff -u -p -r1.13 Makefile
--- Makefile	15 Oct 2014 14:28:42 -	1.13
+++ Makefile	24 Dec 2014 02:41:13 -
@@ -13,6 +13,8 @@ SHARED_LIBS +=  zmq  4.0
 CATEGORIES =		net
 HOMEPAGE =		http://zeromq.org/
 
+MAINTAINER =Rodrigo Mosconi open...@mosconi.mat.br
+
 # LGPLv3
 PERMIT_PACKAGE_CDROM =	Yes
 


NEW port net/czmq

2014-12-25 Thread Rodrigo Mosconi
Follow a new port  net/czmq.  It is a high-level C bindings for zeromq.

The port is for version 2.2 of czmq.  When the new version (3.0) will be
released, I will update it.

Is this OK?


czmq.tgz
Description: GNU Zip compressed data


Re: maintainer net/zeromq

2014-12-25 Thread Rodrigo Mosconi
Follow the patch, with REVISION

Index: Makefile
===
RCS file: /cvs/ports/net/zeromq/Makefile,v
retrieving revision 1.13
diff -u -p -r1.13 Makefile
--- Makefile15 Oct 2014 14:28:42 -  1.13
+++ Makefile25 Dec 2014 19:28:44 -
@@ -13,6 +13,10 @@ SHARED_LIBS +=  zmq  4.0
CATEGORIES =   net
HOMEPAGE = http://zeromq.org/

+MAINTAINER =Rodrigo Mosconi open...@mosconi.mat.br
+
+REVISION = 1
+
# LGPLv3
PERMIT_PACKAGE_CDROM = Yes


2014-12-24 5:46 GMT-02:00 Antoine Jacoutot ajacou...@bsdfrog.org:

 On Wed, Dec 24, 2014 at 12:43:26AM -0200, Rodrigo Mosconi wrote:
  I`m taking the maintainership of net/zeromq

 I added you but you should start looking at how to maintain ports right
 away then.
 Because you missed a REVISION bump.


  Index: Makefile
  ===
  RCS file: /cvs/ports/net/zeromq/Makefile,v
  retrieving revision 1.13
  diff -u -p -r1.13 Makefile
  --- Makefile  15 Oct 2014 14:28:42 -  1.13
  +++ Makefile  24 Dec 2014 02:41:13 -
  @@ -13,6 +13,8 @@ SHARED_LIBS +=  zmq  4.0
   CATEGORIES = net
   HOMEPAGE =   http://zeromq.org/
 
  +MAINTAINER =Rodrigo Mosconi open...@mosconi.mat.br
  +
   # LGPLv3
   PERMIT_PACKAGE_CDROM =   Yes
 


 --
 Antoine



Re: maintainer net/zeromq

2014-12-25 Thread Rodrigo Mosconi
with revision=0

2014-12-25 18:32 GMT-02:00 Landry Breuil lan...@rhaalovely.net:

 On Thu, Dec 25, 2014 at 05:35:08PM -0200, Rodrigo Mosconi wrote:
  Follow the patch, with REVISION

 REVISION starts at 0

 Landry

  Index: Makefile
  ===
  RCS file: /cvs/ports/net/zeromq/Makefile,v
  retrieving revision 1.13
  diff -u -p -r1.13 Makefile
  --- Makefile15 Oct 2014 14:28:42 -  1.13
  +++ Makefile25 Dec 2014 19:28:44 -
  @@ -13,6 +13,10 @@ SHARED_LIBS +=  zmq  4.0
  CATEGORIES =   net
  HOMEPAGE = http://zeromq.org/
 
  +MAINTAINER =Rodrigo Mosconi open...@mosconi.mat.br
  +
  +REVISION = 1
  +
  # LGPLv3
  PERMIT_PACKAGE_CDROM = Yes
 
 
  2014-12-24 5:46 GMT-02:00 Antoine Jacoutot ajacou...@bsdfrog.org:
 
   On Wed, Dec 24, 2014 at 12:43:26AM -0200, Rodrigo Mosconi wrote:
I`m taking the maintainership of net/zeromq
  
   I added you but you should start looking at how to maintain ports right
   away then.
   Because you missed a REVISION bump.
  
  
Index: Makefile
===
RCS file: /cvs/ports/net/zeromq/Makefile,v
retrieving revision 1.13
diff -u -p -r1.13 Makefile
--- Makefile  15 Oct 2014 14:28:42 -  1.13
+++ Makefile  24 Dec 2014 02:41:13 -
@@ -13,6 +13,8 @@ SHARED_LIBS +=  zmq  4.0
 CATEGORIES = net
 HOMEPAGE =   http://zeromq.org/
   
+MAINTAINER =Rodrigo Mosconi open...@mosconi.mat.br
+
 # LGPLv3
 PERMIT_PACKAGE_CDROM =   Yes
   
  
  
   --
   Antoine
  


Index: Makefile
===
RCS file: /cvs/ports/net/zeromq/Makefile,v
retrieving revision 1.13
diff -u -p -r1.13 Makefile
--- Makefile	15 Oct 2014 14:28:42 -	1.13
+++ Makefile	25 Dec 2014 19:28:44 -
@@ -13,6 +13,10 @@ SHARED_LIBS +=  zmq  4.0
 CATEGORIES =		net
 HOMEPAGE =		http://zeromq.org/
 
+MAINTAINER =Rodrigo Mosconi open...@mosconi.mat.br
+
+REVISION = 		0
+
 # LGPLv3
 PERMIT_PACKAGE_CDROM =	Yes
 


Re: NEW port net/czmq

2014-12-30 Thread Rodrigo Mosconi
2014-12-25 21:57 GMT-02:00 Jérémie Courrèges-Anglas j...@wxcvbn.org:


 Hi Rodrigo, thanks for your submission.

 Rodrigo Mosconi open...@mosconi.mat.br writes:

  Follow a new port  net/czmq.  It is a high-level C bindings for zeromq.
 
  The port is for version 2.2 of czmq.  When the new version (3.0) will be
  released, I will update it.
 
  Is this OK?

 Not quite.

 - please respect the order defined in
   /usr/ports/infrastructure/templates/Makefile.template


Ok, I used some Makefile ports as template. I started it near a year ago...


 - for an initial import, or an update to a newer upstream version,

   REVISION should not be present.


ok


 - shared libs are an important subject, see the porter's handbook
   (http://www.openbsd.org/faq/ports/specialtopics.html#SharedLibs)
   Here the concern is that you shouldn't use upstream library
   versioning, but maintain your own versioning in parallel, inside the
   ports tree.  So the version should start at 0.0.


net/zeromq has SHARED_LIBS += zmq 4.0 # 4.0, so I used a similar aproach


 - the customary way to set WANTLIB is just to copy/paste the output of
   make port-lib-depends-check.  CONFIGURE_ARGS are usually split on
   several lines, one per argument.  Watch out for trailing whitespace.
   COMMENT should not start with a capital letter.

- it sounds weird to depend on settings added
   by --with-libzmq=${LOCALBASE} when other libraries (eg. libsodium)
   should also get picked up from there.  In this case I suggest using
   CONFIGURE_ENV to ensure that CPPFLAGS and LDFLAGS are sane from the
   start.


net/zeromq has --with-libsodium=${LOCALBASE}, so I used a similar aproach.


 - libuuid from e2fsprogs, asciidoc and xmlto could be picked up in bulk
   builds.  Either enable (*_DEPENDS) or disable them (see updated
   tarball). Note that there is fallback code for uuid generation but it
   isn't quite as optimal as what we have in libc.  A nice proposal for
   upstream would be to use uuid functions from libc (present on most
   recent *BSD systems).
 http://www.openbsd.org/cgi-bin/man.cgi/OpenBSD-current/man3/uuid.3


Ok, I will send a pull request to make it availiable on CZMQ version 3.



 Regarding the packaged files, now:
 - I think makecert should be renamed as czmq_makecert, at least to avoid
   a conflict with mono.
 - wtf are those gsl scripts doing in bin/? :)
   Shouldn't they go to /usr/local/share/czmq... instead?
   https://github.com/imatix/gsl


They are models files used to create source code (gsl is a code generator
from imatix).
The autoconf version from czmq-2.2 and czmq-3.0-rc1 install that files.
The cmake version doesn`t.
I`ll ask about it with the upstream.



 - I'm wondering whether czmq_selftest should be present


The cmake version doesn`t install it.




 Updated tarball, to be unpacked from mystuff/net.



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




update: sysutils/cfengine

2016-01-18 Thread Rodrigo Mosconi
Hi!

This updates sysutils/cfengine to 3.7.3.

The users promise is not enabled, because it require some PAM interface. I
didn`t looked what need, and if has a "PAM wrapper"

Comments, OK?


cfengine.tgz
Description: GNU Zip compressed data


Re: update: sysutils/cfengine

2016-01-21 Thread Rodrigo Mosconi
A new diff, now using qdbm, as before.


2016-01-20 18:51 GMT-02:00 Stuart Henderson <st...@openbsd.org>:

> On 2016/01/20 15:22, Rodrigo Mosconi wrote:
> > The upstream is dropping support for qdbm, and used tokyocabinet as main
> > dbm.  Now they prefer to use mdb as database backend
>
> We may be stuck then.
>
>
Index: Makefile
===
RCS file: /cvs/ports/sysutils/cfengine/Makefile,v
retrieving revision 1.53
diff -u -p -u -p -r1.53 Makefile
--- Makefile	29 Nov 2015 15:50:20 -	1.53
+++ Makefile	22 Jan 2016 01:46:02 -
@@ -2,8 +2,7 @@
 
 COMMENT =	GNU system administration tool for networks
 
-DISTNAME =	cfengine-3.4.5
-REVISION =	7
+DISTNAME =	cfengine-3.7.2
 
 SHARED_LIBS +=  promises	0.0 # 1.0
 CATEGORIES =	sysutils
@@ -14,29 +13,34 @@ MAINTAINER =	Rodrigo Mosconi <openbsd@mo
 # GPLv3 only
 PERMIT_PACKAGE_CDROM =	Yes
 
-MASTER_SITES =	https://s3.amazonaws.com/cfengine.package-repos/tarballs/
+MASTER_SITES =	https://cfengine-package-repos.s3.amazonaws.com/tarballs/
 
 CFENGINE_BASE =		/var/cfengine
 CFENGINE_EXAMPLES =	${PREFIX}/share/examples/cfengine
 SUBST_VARS +=		CFENGINE_BASE CFENGINE_EXAMPLES
 
-FLAVORS =		pgsql
+FLAVORS =		pgsql mysql 
 FLAVOR ?=
 
-WANTLIB =		c crypto m pcre pthread qdbm z
+WANTLIB =		c crypto m  pthread  z
+WANTLIB +=		xml2 pcre qdbm pam
+SEPARATE_BUILD = 	Yes
 CONFIGURE_STYLE =	gnu
 USE_GMAKE =		Yes
 MODULES =		converters/libiconv
 LIB_DEPENDS =		databases/qdbm \
-			devel/pcre
+			textproc/libxml \
+			devel/pcre 
 CONFIGURE_ENV +=	CPPFLAGS="-I${LOCALBASE}/include" \
 			LDFLAGS="-L${LOCALBASE}/lib"
 CONFIGURE_ARGS =	--with-openssl=/usr \
 			--with-pcre \
 			--with-qdbm \
-			--without-libxml2 \
+			--without-libacl \
 			--without-libvirt \
-			--enable-fhs \
+			--with-libxml2 \
+			--without-libyaml \
+			--disable-fhs \
 			--with-workdir=${CFENGINE_BASE}
 MAKE_FLAGS +=		examplesdir="${CFENGINE_EXAMPLES}" \
 			masterfilesdir="${CFENGINE_EXAMPLES}/CoreBase"
@@ -57,6 +61,7 @@ LIB_DEPENDS +=		databases/mariadb
 CONFIGURE_ARGS +=	--without-mysql
 .endif
 
+
 # tests not yet working
 NO_TEST =		Yes
 # also note some formatting errors with manpages (e.g. "You can think
@@ -70,8 +75,9 @@ post-extract:
 
 post-install:
 	${INSTALL_PROGRAM_DIR} ${WRKINST}${CFENGINE_BASE}/bin
-.for i in cf-agent cf-execd cf-key cf-monitord cf-promises cf-report cf-runagent cf-serverd
-	ln -s ${TRUEPREFIX}/sbin/$i ${WRKINST}${CFENGINE_BASE}/bin/
+.for i in cf-agent cf-execd cf-key cf-monitord cf-promises cf-upgrade \
+  cf-runagent cf-serverd
+	ln -s ${TRUEPREFIX}/bin/$i ${WRKINST}${CFENGINE_BASE}/bin/
 .endfor
 
 .include 
Index: distinfo
===
RCS file: /cvs/ports/sysutils/cfengine/distinfo,v
retrieving revision 1.14
diff -u -p -u -p -r1.14 distinfo
--- distinfo	20 Sep 2013 13:02:50 -	1.14
+++ distinfo	22 Jan 2016 01:46:03 -
@@ -1,2 +1,2 @@
-SHA256 (cfengine-3.4.5.tar.gz) = VCgIufUy531m3KGeg73B+ZXX0AZrlAo5vdXbmnFoABE=
-SIZE (cfengine-3.4.5.tar.gz) = 4671628
+SHA256 (cfengine-3.7.2.tar.gz) = qtmuJghkrL3yqkQcIINlRg+ajsqlNhi720ZeN670reU=
+SIZE (cfengine-3.7.2.tar.gz) = 2114764
Index: patches/patch-cf-agent_verify_files_c
===
RCS file: patches/patch-cf-agent_verify_files_c
diff -N patches/patch-cf-agent_verify_files_c
--- /dev/null	1 Jan 1970 00:00:00 -
+++ patches/patch-cf-agent_verify_files_c	22 Jan 2016 01:46:03 -
@@ -0,0 +1,18 @@
+$OpenBSD$
+--- cf-agent/verify_files.c.orig	Wed Jan 20 00:29:13 2016
 cf-agent/verify_files.c	Wed Jan 20 00:32:12 2016
+@@ -680,12 +680,12 @@ PromiseResult ScheduleEditOperation(EvalContext *ctx, 
+ if ((vp = PromiseGetConstraintAsRval(pp, "edit_line", RVAL_TYPE_FNCALL)))
+ {
+ fp = (FnCall *) vp;
+-strcpy(edit_bundle_name, fp->name);
++strlcpy(edit_bundle_name, fp->name, CF_BUFSIZE);
+ args = fp->args;
+ }
+ else if ((vp = PromiseGetConstraintAsRval(pp, "edit_line", RVAL_TYPE_SCALAR)))
+ {
+-strcpy(edit_bundle_name, (char *) vp);
++strlcpy(edit_bundle_name, (char *) vp, CF_BUFSIZE);
+ args = NULL;
+ } 
+ else
Index: patches/patch-cf-agent_verify_files_utils_c
===
RCS file: patches/patch-cf-agent_verify_files_utils_c
diff -N patches/patch-cf-agent_verify_files_utils_c
--- /dev/null	1 Jan 1970 00:00:00 -
+++ patches/patch-cf-agent_verify_files_utils_c	22 Jan 2016 01:46:03 -
@@ -0,0 +1,12 @@
+$OpenBSD$
+--- cf-agent/verify_files_utils.c.orig	Wed Jan 20 00:37:39 2016
 cf-agent/verify_files_utils.c	Wed Jan 20 00:37:57 2016
+@@ -1384,7 +1384,7 @@ bool CopyRegularFile(EvalContext *ctx, const char *sou
+ 

Re: update: sysutils/cfengine

2016-01-22 Thread Rodrigo Mosconi
even adding openpam to LIB_DEPENDS, the "user promise" support won`t be
enabled
I`m looking at


2016-01-22 9:21 GMT-02:00 Stuart Henderson <st...@openbsd.org>:

> On 2016/01/22 09:17, Rodrigo Mosconi wrote:
> > The PAM and fgetpwent/fgetgrent is required to enable users promise, ie,
> to
> > manage local users.
> > The PAM is required to test/change password, as far I looked where it is
> > used.
>
> OK, I'll add the LIB_DEPENDS and commit it then, thanks for checking.
>


Re: update: sysutils/cfengine

2016-01-22 Thread Rodrigo Mosconi
The PAM and fgetpwent/fgetgrent is required to enable users promise, ie, to
manage local users.
The PAM is required to test/change password, as far I looked where it is
used.



2016-01-22 8:48 GMT-02:00 Stuart Henderson <st...@openbsd.org>:

> On 2016/01/21 23:47, Rodrigo Mosconi wrote:
> > A new diff, now using qdbm, as before.
>
> Thanks.
>
> There are a couple of fixes needed to library dependencies but I can
> take care of those locally, no need for a new diff.
>
> One of them I need to ask about though: is the PAM support doing
> anything useful? It isn't native to OpenBSD and ports don't normally
> use it without a particular reason. Anyway we either need
> "--without-pam" or we need to add security/openpam to LIB_DEPENDS
> (just the WANTLIB by itself isn't enough) - which do you prefer?
>
>


Re: update: sysutils/cfengine

2016-01-20 Thread Rodrigo Mosconi
The upstream is dropping support for qdbm, and used tokyocabinet as main
dbm.  Now they prefer to use mdb as database backend

2016-01-20 14:42 GMT-02:00 Stuart Henderson :

> Thanks for the new diff, I haven't had time to review fully but
> from a quick read through this is looking much better.
>
> I noticed tokyocabinet though - I would recommend caution there
> as it is does not appear to be fully safe on a non-UBC system like
> OpenBSD. qdbm is better behaved in this respect.
>
>


Re: update: sysutils/cfengine

2016-01-20 Thread Rodrigo Mosconi
New diff

2016-01-19 11:51 GMT-02:00 Stuart Henderson <st...@openbsd.org>:

> On 2016/01/19 00:26, Rodrigo Mosconi wrote:
> > Follow the cvs diff
> >
> > 2016-01-19 0:15 GMT-02:00 Stuart Henderson <st...@openbsd.org>:
> >
> > On 2016/01/18 23:54, Rodrigo Mosconi wrote:
> > > Hi!
> > >
> > > This updates sysutils/cfengine to 3.7.3.
> > >
> > > The users promise is not enabled, because it require some PAM
> > interface. I
> > > didn`t looked what need, and if has a "PAM wrapper"
> > >
> > > Comments, OK?
> >
> > Please send a cvs diff. You can use "cvs add" and "cvs rm" against
> > an
> > anoncvs mirror to add/remove files, then "cvs diff -uNp".
> >
> >
> >
>
> > ? patches/patch-libpromises_evalfunction_c
> > ? patches/patch-libpromises_processes_select_c
>
> These need to be "cvs add"ed. Comments in-line from reading the diff:
>
> > Index: Makefile
> > ===
> > RCS file: /cvs/ports/sysutils/cfengine/Makefile,v
> > retrieving revision 1.53
> > diff -u -p -u -p -r1.53 Makefile
> > --- Makefile  29 Nov 2015 15:50:20 -  1.53
> > +++ Makefile  19 Jan 2016 02:25:35 -
> > @@ -2,8 +2,7 @@
> >
> >  COMMENT =GNU system administration tool for networks
> >
> > -DISTNAME =   cfengine-3.4.5
> > -REVISION =   7
> > +DISTNAME =   cfengine-3.7.2
> >
> >  SHARED_LIBS +=  promises 0.0 # 1.0
> >  CATEGORIES = sysutils
> > @@ -14,16 +13,18 @@ MAINTAINER =  Rodrigo Mosconi <openbsd@mo
> >  # GPLv3 only
> >  PERMIT_PACKAGE_CDROM =   Yes
> >
> > -MASTER_SITES =
> https://s3.amazonaws.com/cfengine.package-repos/tarballs/
> > +MASTER_SITES =
> https://cfengine-package-repos.s3.amazonaws.com/tarballs/
> >
> >  CFENGINE_BASE =  /var/cfengine
> >  CFENGINE_EXAMPLES =  ${PREFIX}/share/examples/cfengine
> >  SUBST_VARS +=CFENGINE_BASE CFENGINE_EXAMPLES
> >
> > -FLAVORS =pgsql
> > +PSEUDO_FLAVORS = fhs
>
> This changes file locations doesn't it? If so it is not going to be
> a pseudo flavour as it is going to affect the package. I do not think
> we should go there.
>
> > +FLAVORS =pgsql mysql xml yaml virt
>
> I don't think adding all of these flavours is a good idea.
> Database support makes sense, but for the others, decide if
> they're important enough, if so then include them, otherwise
> skip them. OpenBSD ports is totally aimed at building packages,
> we don't really cater for end-user tweaks like FreeBSD ports
> does. Apart from anything else, this adds dozens of combinations
> of flavours to test (even just getting the WANTLIB correct for
> the various options is going to be annoying), and we're
> unlikely to build packages for the exact combination that
> any given user wants.
>
> This is a different case to things like PHP and Asterisk,
> where there are various dependencies but they create separate
> packages containing just a dlopen() module, rather than
> completely separate builds.
>
> >  FLAVOR ?=
> >
> >  WANTLIB =c crypto m pcre pthread qdbm z
> > +SEPARATE_BUILD = Yes
> >  CONFIGURE_STYLE =gnu
> >  USE_GMAKE =  Yes
> >  MODULES =converters/libiconv
> > @@ -34,9 +35,7 @@ CONFIGURE_ENV +=CPPFLAGS="-I${LOCALBASE
> >  CONFIGURE_ARGS = --with-openssl=/usr \
> >   --with-pcre \
> >   --with-qdbm \
> > - --without-libxml2 \
> > - --without-libvirt \
> > - --enable-fhs \
> > + --without-libacl \
> >   --with-workdir=${CFENGINE_BASE}
> >  MAKE_FLAGS +=examplesdir="${CFENGINE_EXAMPLES}" \
> >   masterfilesdir="${CFENGINE_EXAMPLES}/CoreBase"
> > @@ -57,6 +56,36 @@ LIB_DEPENDS += databases/mariadb
> >  CONFIGURE_ARGS +=--without-mysql
> >  .endif
> >
> > +.if ${FLAVOR:Mxml}
> > +WANTLIB +=  xml2
> > +CONFIGURE_ARGS +=   --with-libxml2
> > +LIB_DEPENDS +=  textproc/libxml
> > +.else
> > +CONFIGURE_ARGS +=   --without-libxml2
> > +.endif
> > +
> > +.if ${FLAVOR:Myaml}
> > +WANTLIB +=  yaml
> > +CONFIGURE_ARGS +=   --with-libyaml
> > +LIB_

Re: update: sysutils/cfengine

2016-01-19 Thread Rodrigo Mosconi
Follow the cvs diff

2016-01-19 0:15 GMT-02:00 Stuart Henderson <st...@openbsd.org>:

> On 2016/01/18 23:54, Rodrigo Mosconi wrote:
> > Hi!
> >
> > This updates sysutils/cfengine to 3.7.3.
> >
> > The users promise is not enabled, because it require some PAM interface.
> I
> > didn`t looked what need, and if has a "PAM wrapper"
> >
> > Comments, OK?
>
> Please send a cvs diff. You can use "cvs add" and "cvs rm" against an
> anoncvs mirror to add/remove files, then "cvs diff -uNp".
>
>
? patches/patch-libpromises_evalfunction_c
? patches/patch-libpromises_processes_select_c
Index: Makefile
===
RCS file: /cvs/ports/sysutils/cfengine/Makefile,v
retrieving revision 1.53
diff -u -p -u -p -r1.53 Makefile
--- Makefile	29 Nov 2015 15:50:20 -	1.53
+++ Makefile	19 Jan 2016 02:25:35 -
@@ -2,8 +2,7 @@
 
 COMMENT =	GNU system administration tool for networks
 
-DISTNAME =	cfengine-3.4.5
-REVISION =	7
+DISTNAME =	cfengine-3.7.2
 
 SHARED_LIBS +=  promises	0.0 # 1.0
 CATEGORIES =	sysutils
@@ -14,16 +13,18 @@ MAINTAINER =	Rodrigo Mosconi <openbsd@mo
 # GPLv3 only
 PERMIT_PACKAGE_CDROM =	Yes
 
-MASTER_SITES =	https://s3.amazonaws.com/cfengine.package-repos/tarballs/
+MASTER_SITES =	https://cfengine-package-repos.s3.amazonaws.com/tarballs/
 
 CFENGINE_BASE =		/var/cfengine
 CFENGINE_EXAMPLES =	${PREFIX}/share/examples/cfengine
 SUBST_VARS +=		CFENGINE_BASE CFENGINE_EXAMPLES
 
-FLAVORS =		pgsql
+PSEUDO_FLAVORS =	fhs
+FLAVORS =		pgsql mysql xml yaml virt
 FLAVOR ?=
 
 WANTLIB =		c crypto m pcre pthread qdbm z
+SEPARATE_BUILD = 	Yes
 CONFIGURE_STYLE =	gnu
 USE_GMAKE =		Yes
 MODULES =		converters/libiconv
@@ -34,9 +35,7 @@ CONFIGURE_ENV +=	CPPFLAGS="-I${LOCALBASE
 CONFIGURE_ARGS =	--with-openssl=/usr \
 			--with-pcre \
 			--with-qdbm \
-			--without-libxml2 \
-			--without-libvirt \
-			--enable-fhs \
+			--without-libacl \
 			--with-workdir=${CFENGINE_BASE}
 MAKE_FLAGS +=		examplesdir="${CFENGINE_EXAMPLES}" \
 			masterfilesdir="${CFENGINE_EXAMPLES}/CoreBase"
@@ -57,6 +56,36 @@ LIB_DEPENDS +=		databases/mariadb
 CONFIGURE_ARGS +=	--without-mysql
 .endif
 
+.if ${FLAVOR:Mxml}
+WANTLIB +=  xml2
+CONFIGURE_ARGS +=   --with-libxml2
+LIB_DEPENDS +=  textproc/libxml
+.else
+CONFIGURE_ARGS +=   --without-libxml2
+.endif
+
+.if ${FLAVOR:Myaml}
+WANTLIB +=  yaml
+CONFIGURE_ARGS +=   --with-libyaml
+LIB_DEPENDS +=  devel/libyaml
+.else
+CONFIGURE_ARGS +=   --without-libyaml
+.endif
+
+.if ${FLAVOR:Mvirt}
+WANTLIB +=  virt
+CONFIGURE_ARGS +=   --with-libvirt
+LIB_DEPENDS +=  sysutils/libvirt
+.else
+CONFIGURE_ARGS +=   --without-libvirt
+.endif
+
+.if ${FLAVOR:Mfhs}
+CONFIGURE_ARGS +=   --enable-fhs
+.else
+CONFIGURE_ARGS +=   --disable-fhs
+.endif
+
 # tests not yet working
 NO_TEST =		Yes
 # also note some formatting errors with manpages (e.g. "You can think
@@ -70,7 +99,8 @@ post-extract:
 
 post-install:
 	${INSTALL_PROGRAM_DIR} ${WRKINST}${CFENGINE_BASE}/bin
-.for i in cf-agent cf-execd cf-key cf-monitord cf-promises cf-report cf-runagent cf-serverd
+.for i in cf-agent cf-execd cf-key cf-monitord cf-promises cf-report \
+  cf-runagent cf-serverd
 	ln -s ${TRUEPREFIX}/sbin/$i ${WRKINST}${CFENGINE_BASE}/bin/
 .endfor
 
Index: distinfo
===
RCS file: /cvs/ports/sysutils/cfengine/distinfo,v
retrieving revision 1.14
diff -u -p -u -p -r1.14 distinfo
--- distinfo	20 Sep 2013 13:02:50 -	1.14
+++ distinfo	19 Jan 2016 02:25:35 -
@@ -1,2 +1,2 @@
-SHA256 (cfengine-3.4.5.tar.gz) = VCgIufUy531m3KGeg73B+ZXX0AZrlAo5vdXbmnFoABE=
-SIZE (cfengine-3.4.5.tar.gz) = 4671628
+SHA256 (cfengine-3.7.2.tar.gz) = qtmuJghkrL3yqkQcIINlRg+ajsqlNhi720ZeN670reU=
+SIZE (cfengine-3.7.2.tar.gz) = 2114764
Index: pkg/PLIST
===
RCS file: /cvs/ports/sysutils/cfengine/pkg/PLIST,v
retrieving revision 1.13
diff -u -p -u -p -r1.13 PLIST
--- pkg/PLIST	1 May 2013 21:09:23 -	1.13
+++ pkg/PLIST	19 Jan 2016 02:25:36 -
@@ -1,330 +1,359 @@
-@comment $OpenBSD: PLIST,v 1.13 2013/05/01 21:09:23 sthen Exp $
-lib/cfengine/
-lib/cfengine/libpromises.la
-@lib lib/cfengine/libpromises.so.${LIBpromises_VERSION}
-@man man/man8/cf-agent.8
-@man man/man8/cf-execd.8
-@man man/man8/cf-key.8
-@man man/man8/cf-monitord.8
-@man man/man8/cf-promises.8
-@man man/man8/cf-report.8
-@man man/man8/cf-runagent.8
-@man man/man8/cf-serverd.8
-@bin sbin/cf-agent
-@bin sbin/cf-execd
-@bin sbin/cf-key
-@bin sbin/cf-monitord
-@bin sbin/cf-promises
-@bin sbin/cf-report
-@bin sbin/cf-runagent
-@bin sbin/cf-serverd
+@comment $OpenBSD$
+@bin bin/cf-agent
+@bin bin/cf-execd
+@bin bin/cf-key
+@bin bin/cf-monitord
+@bin bin/cf-promises
+@bin bin/cf-runagent

TICK stack

2017-06-10 Thread Rodrigo Mosconi
Hi,

There is someone working in port the TICK stack?
They are composed by the softwares:

Telegraf -> collect data from host
Influxdb -> A temporal series database
Chronograf -> Data visualization
Kapacitor -> Data processing

These software are written in go, and uses gmake to build.

If no one is porting, I volunteer to do it.

Thanks


[UPDATE] databases/apache-couchdb 1.6.1 -> 1.7.1

2017-11-25 Thread Rodrigo Mosconi
simple update:

Index: Makefile
===
RCS file: /cvs/ports/databases/apache-couchdb/Makefile,v
retrieving revision 1.34
diff -u -p -r1.34 Makefile
--- Makefile21 Nov 2017 00:12:59 -1.34
+++ Makefile26 Nov 2017 02:49:14 -
@@ -2,9 +2,9 @@

 COMMENT =distributed, document-oriented database

-COUCH_VER =1.6.1
+COUCH_VER =1.7.1
 DISTNAME =apache-couchdb-${COUCH_VER}
-REVISION =11
+#REVISION =11
 CATEGORIES =databases

 HOMEPAGE =http://couchdb.apache.org/
Index: distinfo
===
RCS file: /cvs/ports/databases/apache-couchdb/distinfo,v
retrieving revision 1.9
diff -u -p -r1.9 distinfo
--- distinfo28 Dec 2014 19:54:58 -1.9
+++ distinfo26 Nov 2017 02:49:14 -
@@ -1,2 +1,2 @@
-SHA256 (apache-couchdb-1.6.1.tar.gz) =
WmAbFzczzj7TG2VIBceTqpBxMc1wsG0Dgl8WmqSMhic=
-SIZE (apache-couchdb-1.6.1.tar.gz) = 12085350
+SHA256 (apache-couchdb-1.7.1.tar.gz) =
kSAKpvvG+l4vPXjvQOOdjB7HyD6hws1zDScGWHNbLK0=
+SIZE (apache-couchdb-1.7.1.tar.gz) = 9963069
Index: pkg/PLIST
===
RCS file: /cvs/ports/databases/apache-couchdb/pkg/PLIST,v
retrieving revision 1.9
diff -u -p -r1.9 PLIST
--- pkg/PLIST27 Mar 2016 15:31:23 -1.9
+++ pkg/PLIST26 Nov 2017 02:49:14 -
@@ -52,6 +52,7 @@ lib/couchdb/erlang/lib/couch-${COUCH_VER
 lib/couchdb/erlang/lib/couch-${COUCH_VER}/ebin/couch_passwords.beam
 lib/couchdb/erlang/lib/couch-${COUCH_VER}/ebin/couch_primary_sup.beam
 lib/couchdb/erlang/lib/couch-${COUCH_VER}/ebin/couch_query_servers.beam
+lib/couchdb/erlang/lib/couch-${COUCH_VER}/ebin/couch_rand.beam
 lib/couchdb/erlang/lib/couch-${COUCH_VER}/ebin/couch_ref_counter.beam
 lib/couchdb/erlang/lib/couch-${COUCH_VER}/ebin/couch_secondary_sup.beam
 lib/couchdb/erlang/lib/couch-${COUCH_VER}/ebin/couch_server.beam
@@ -139,9 +140,6 @@ lib/couchdb/erlang/lib/erlang-oauth/
 lib/couchdb/erlang/lib/erlang-oauth/ebin/
 lib/couchdb/erlang/lib/erlang-oauth/ebin/oauth.app
 lib/couchdb/erlang/lib/erlang-oauth/ebin/oauth.beam
-lib/couchdb/erlang/lib/etap/
-lib/couchdb/erlang/lib/etap/ebin/
-lib/couchdb/erlang/lib/etap/ebin/etap.beam
 lib/couchdb/erlang/lib/ibrowse-2.2.0/
 lib/couchdb/erlang/lib/ibrowse-2.2.0/ebin/
 lib/couchdb/erlang/lib/ibrowse-2.2.0/ebin/ibrowse.app
@@ -213,6 +211,7 @@ share/couchdb/www/dialog/
 share/couchdb/www/dialog/_admin_party.html
 share/couchdb/www/dialog/_change_password.html
 share/couchdb/www/dialog/_compact_cleanup.html
+share/couchdb/www/dialog/_copy_document.html
 share/couchdb/www/dialog/_create_admin.html
 share/couchdb/www/dialog/_create_config.html
 share/couchdb/www/dialog/_create_database.html
@@ -239,7 +238,6 @@ share/couchdb/www/docs/_images/intro-con
 share/couchdb/www/docs/_images/intro-consistency-06.png
 share/couchdb/www/docs/_images/intro-consistency-07.png
 share/couchdb/www/docs/_images/intro-tour-01.png
-share/couchdb/www/docs/_images/intro-tour-02.png
 share/couchdb/www/docs/_images/intro-tour-03.png
 share/couchdb/www/docs/_images/intro-tour-04.png
 share/couchdb/www/docs/_images/intro-tour-05.png
@@ -322,10 +320,6 @@ share/couchdb/www/docs/_sources/cve/2012
 share/couchdb/www/docs/_sources/cve/index.txt
 share/couchdb/www/docs/_sources/experimental.txt
 share/couchdb/www/docs/_sources/externals.txt
-share/couchdb/www/docs/_sources/fauxton/
-share/couchdb/www/docs/_sources/fauxton/addons.txt
-share/couchdb/www/docs/_sources/fauxton/index.txt
-share/couchdb/www/docs/_sources/fauxton/install.txt
 share/couchdb/www/docs/_sources/install/
 share/couchdb/www/docs/_sources/install/freebsd.txt
 share/couchdb/www/docs/_sources/install/index.txt
@@ -370,6 +364,7 @@ share/couchdb/www/docs/_sources/whatsnew
 share/couchdb/www/docs/_sources/whatsnew/1.4.txt
 share/couchdb/www/docs/_sources/whatsnew/1.5.txt
 share/couchdb/www/docs/_sources/whatsnew/1.6.txt
+share/couchdb/www/docs/_sources/whatsnew/1.7.txt
 share/couchdb/www/docs/_sources/whatsnew/index.txt
 share/couchdb/www/docs/_static/
 share/couchdb/www/docs/_static/ajax-loader.gif
@@ -463,10 +458,6 @@ share/couchdb/www/docs/cve/index.html
 share/couchdb/www/docs/download.html
 share/couchdb/www/docs/experimental.html
 share/couchdb/www/docs/externals.html
-share/couchdb/www/docs/fauxton/
-share/couchdb/www/docs/fauxton/addons.html
-share/couchdb/www/docs/fauxton/index.html
-share/couchdb/www/docs/fauxton/install.html
 share/couchdb/www/docs/http-api.html
 share/couchdb/www/docs/index.html
 share/couchdb/www/docs/install/
@@ -516,37 +507,9 @@ share/couchdb/www/docs/whatsnew/1.3.html
 share/couchdb/www/docs/whatsnew/1.4.html
 share/couchdb/www/docs/whatsnew/1.5.html
 share/couchdb/www/docs/whatsnew/1.6.html
+share/couchdb/www/docs/whatsnew/1.7.html
 share/couchdb/www/docs/whatsnew/index.html
 share/couchdb/www/document.html
-share/couchdb/www/fauxton/
-share/couchdb/www/fauxton/css/

[UPDATE] sysutils/cfengine

2017-11-25 Thread Rodrigo Mosconi
Fixed and updated the port to the latest LTS version.

Index: Makefile
===
RCS file: /cvs/ports/sysutils/cfengine/Makefile,v
retrieving revision 1.56
diff -u -p -r1.56 Makefile
--- Makefile19 Nov 2016 15:28:40 -1.56
+++ Makefile26 Nov 2017 02:38:12 -
@@ -1,10 +1,10 @@
 # $OpenBSD: Makefile,v 1.56 2016/11/19 15:28:40 sthen Exp $

-BROKEN =pkg_add fails: problem with symlinks
+#BROKEN =pkg_add fails: problem with symlinks

 COMMENT =GNU system administration tool for networks

-DISTNAME =cfengine-3.7.2
+DISTNAME =cfengine-3.10.2

 SHARED_LIBS +=  promises0.0 # 1.0
 CATEGORIES =sysutils
@@ -15,7 +15,7 @@ MAINTAINER =Rodrigo Mosconi <openbsd@mo
 # GPLv3 only
 PERMIT_PACKAGE_CDROM =Yes

-WANTLIB += c crypto iconv lzma m pam pcre pthread ssl qdbm xml2 z
+WANTLIB += c crypto iconv lzma m pcre pthread ssl tokyocabinet yaml xml2 z

 MASTER_SITES =https://cfengine-package-repos.s3.amazonaws.com/tarballs/

@@ -30,22 +30,22 @@ SEPARATE_BUILD = Yes
 CONFIGURE_STYLE =gnu
 USE_GMAKE =Yes
 LIB_DEPENDS =converters/libiconv \
-databases/qdbm \
+databases/tokyocabinet \
 devel/pcre \
-security/openpam \
-textproc/libxml
+textproc/libxml \
+devel/libyaml
 CONFIGURE_ENV +=CPPFLAGS="-I${LOCALBASE}/include" \
 LDFLAGS="-L${LOCALBASE}/lib"
 CONFIGURE_ARGS =--with-openssl=/usr \
 --without-libacl \
 --without-libvirt \
 --with-libxml2 \
---without-libyaml \
+--with-libyaml \
 --without-lmdb \
---with-pam \
+--without-pam \
 --with-pcre \
---with-qdbm \
---without-tokyocabinet \
+--without-qdbm \
+--with-tokyocabinet \
 --disable-fhs \
 --with-workdir=${CFENGINE_BASE}
 MAKE_FLAGS +=examplesdir="${CFENGINE_EXAMPLES}" \
Index: distinfo
===
RCS file: /cvs/ports/sysutils/cfengine/distinfo,v
retrieving revision 1.15
diff -u -p -r1.15 distinfo
--- distinfo22 Jan 2016 11:38:23 -1.15
+++ distinfo26 Nov 2017 02:38:12 -
@@ -1,2 +1,2 @@
-SHA256 (cfengine-3.7.2.tar.gz) =
qtmuJghkrL3yqkQcIINlRg+ajsqlNhi720ZeN670reU=
-SIZE (cfengine-3.7.2.tar.gz) = 2114764
+SHA256 (cfengine-3.10.2.tar.gz) =
1PqaxydtunuF1nV6qy8JKauNOxFcsOewz5hHYDR0Kdc=
+SIZE (cfengine-3.10.2.tar.gz) = 2366237
Index: patches/patch-cf-agent_verify_files_c
===
RCS file: patches/patch-cf-agent_verify_files_c
diff -N patches/patch-cf-agent_verify_files_c
--- patches/patch-cf-agent_verify_files_c22 Jan 2016 11:38:23 -
1.1
+++ /dev/null1 Jan 1970 00:00:00 -
@@ -1,18 +0,0 @@
-$OpenBSD: patch-cf-agent_verify_files_c,v 1.1 2016/01/22 11:38:23 sthen
Exp $
 cf-agent/verify_files.c.origWed Jan 20 00:29:13 2016
-+++ cf-agent/verify_files.cWed Jan 20 00:32:12 2016
-@@ -680,12 +680,12 @@ PromiseResult ScheduleEditOperation(EvalContext
*ctx,
- if ((vp = PromiseGetConstraintAsRval(pp, "edit_line",
RVAL_TYPE_FNCALL)))
- {
- fp = (FnCall *) vp;
--strcpy(edit_bundle_name, fp->name);
-+strlcpy(edit_bundle_name, fp->name, CF_BUFSIZE);
- args = fp->args;
- }
- else if ((vp = PromiseGetConstraintAsRval(pp, "edit_line",
RVAL_TYPE_SCALAR)))
- {
--strcpy(edit_bundle_name, (char *) vp);
-+strlcpy(edit_bundle_name, (char *) vp, CF_BUFSIZE);
- args = NULL;
- }
- else
Index: patches/patch-cf-execd_cf-execd_c
===
RCS file: patches/patch-cf-execd_cf-execd_c
diff -N patches/patch-cf-execd_cf-execd_c
--- patches/patch-cf-execd_cf-execd_c22 Jan 2016 11:38:23 -1.1
+++ /dev/null1 Jan 1970 00:00:00 -
@@ -1,12 +0,0 @@
-$OpenBSD: patch-cf-execd_cf-execd_c,v 1.1 2016/01/22 11:38:23 sthen Exp $
 cf-execd/cf-execd.c.origWed Jan 20 01:40:30 2016
-+++ cf-execd/cf-execd.cWed Jan 20 01:42:49 2016
-@@ -568,7 +568,7 @@ static bool ScheduleRun(EvalContext *ctx, Policy **pol
-
- EvalContextClear(ctx);
-
--strcpy(VDOMAIN, "undefined.domain");
-+strlcpy(VDOMAIN, "undefined.domain", sizeof(VDOMAIN));
-
- PolicyDestroy(*policy);
- *policy = NULL;
Index: patches/patch-cf-upgrade_log_c
===
RCS file: patches/patch-cf-upgrade_log_c
diff -N patches/patch-cf-upgrade_log_c
--- patches/patch-cf-upgrade_log_c22 Jan 2016 11:38:23 -1.1
+++ /dev/null1 Jan 1970 00:00:00 -
@@ -1,12 +0,0 @@
-$OpenBSD: patch