Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions

9
sysutils/cfengine3/DESCR Normal file
View File

@@ -0,0 +1,9 @@
Cfengine, or the "configuration engine" is a very high level language
for building expert systems which administrate and configure large
computer networks. Cfengine uses the idea of classes and a primitive
form of intelligence to define and automate the configuration of
large systems in the most economical way possible. Cfengine is
designed to be a part of computer immune system.
Cfengine 3 is operationally backwards compatible with Cfengine 2, but the
language is not. Cfengine 3 is not a drop-in replacement for Cfengine 2.

View File

@@ -0,0 +1,8 @@
# $NetBSD: INSTALL,v 1.2 2013/02/17 16:15:42 fhajny Exp $
case ${STAGE} in
POST-INSTALL)
${LN} -sf @PKG_SYSCONFDIR@ @CFENGINE_DIR@/inputs
${LN} -sf @PREFIX@/sbin @CFENGINE_DIR@/bin
@PREFIX@/sbin/cf-key
esac

View File

@@ -0,0 +1,9 @@
===========================================================================
$NetBSD: MESSAGE,v 1.1.1.1 2010/11/05 13:57:21 pettai Exp $
IMPORTANT NOTE:
Cfengine 3 is operationally backwards compatible with Cfengine 2, but the
language is not. Cfengine 3 is not a drop-in replacement for Cfengine 2.
===========================================================================

View File

@@ -0,0 +1,58 @@
# $NetBSD: Makefile,v 1.10 2013/03/02 20:33:33 wiz Exp $
#
DISTNAME= cfengine-3.4.2
PKGREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= http://cfengine.com/source-code/download?file=
MAINTAINER= pettai@NetBSD.org
HOMEPAGE= http://cfengine.com/pages/community
COMMENT= Tool for automating system administration
LICENSE= gnu-gpl-v3
USE_LANGUAGES= c c++ c99
USE_LIBTOOL= yes
USE_TOOLS+= gmake
.include "options.mk"
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --enable-fhs
CONFIGURE_ARGS+= --docdir=${DOCDIR}
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFBASE:Q}
CONFIGURE_ARGS+= --with-workdir=${CFENGINE_DIR:Q}
CONFIGURE_ARGS+= --with-openssl=${BUILDLINK_PREFIX.openssl:Q}
CONFIGURE_ARGS+= --with-pcre=${BUILDLINK_PREFIX.pcre:Q}
BUILD_DEFS+= VARBASE CFENGINE_DIR
FILES_SUBST+= CFENGINE_DIR=${CFENGINE_DIR}
CFENGINE_DIR?= ${VARBASE}/cfengine
DOCDIR= ${PREFIX}/share/doc/${PKGBASE}
EGDIR= ${PREFIX}/share/examples/${PKGBASE}
PKG_SYSCONFSUBDIR= cfengine
CFILES= cf-sketch-runfile.cf def.cf promises.cf
CFILES+= controls/cf_agent.cf controls/cf_execd.cf
CFILES+= controls/cf_monitord.cf controls/cf_report.cf
CFILES+= controls/cf_runagent.cf controls/cf_serverd.cf
CFILES+= libraries/cfengine_stdlib.cf services/init_msg.cf
.for file in ${CFILES}
CONF_FILES+= ${EGDIR}/CoreBase/${file} ${PKG_SYSCONFDIR}/${file}
.endfor
RCD_SCRIPTS= cfserverd cfexecd cfmonitord
INSTALL_MAKE_FLAGS+= ${MAKE_FLAGS} sysconfdir=${PKG_SYSCONFDIR} docdir=${DOCDIR} examplesdir=${EGDIR} masterfilesdir=${EGDIR}/CoreBase projlibdir=${PREFIX}/lib
MAKE_DIRS= ${CFENGINE_DIR}
MAKE_DIRS+= ${PKG_SYSCONFDIR}/controls ${PKG_SYSCONFDIR}/libraries
MAKE_DIRS+= ${PKG_SYSCONFDIR}/services
.include "../../devel/pcre/buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"
.include "../../textproc/libxml2/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

300
sysutils/cfengine3/PLIST Normal file
View File

@@ -0,0 +1,300 @@
@comment $NetBSD: PLIST,v 1.5 2013/02/20 08:36:34 fhajny Exp $
lib/libpromises.la
man/man8/cf-agent.8
man/man8/cf-execd.8
man/man8/cf-key.8
man/man8/cf-monitord.8
man/man8/cf-promises.8
man/man8/cf-report.8
man/man8/cf-runagent.8
man/man8/cf-serverd.8
sbin/cf-agent
sbin/cf-execd
sbin/cf-key
sbin/cf-monitord
sbin/cf-promises
sbin/cf-report
sbin/cf-runagent
sbin/cf-serverd
share/doc/cfengine/ChangeLog
share/doc/cfengine/README
share/examples/cfengine/CoreBase/cf-sketch-runfile.cf
share/examples/cfengine/CoreBase/controls/cf_agent.cf
share/examples/cfengine/CoreBase/controls/cf_execd.cf
share/examples/cfengine/CoreBase/controls/cf_monitord.cf
share/examples/cfengine/CoreBase/controls/cf_report.cf
share/examples/cfengine/CoreBase/controls/cf_runagent.cf
share/examples/cfengine/CoreBase/controls/cf_serverd.cf
share/examples/cfengine/CoreBase/def.cf
share/examples/cfengine/CoreBase/libraries/cfengine_stdlib.cf
share/examples/cfengine/CoreBase/promises.cf
share/examples/cfengine/CoreBase/services/init_msg.cf
share/examples/cfengine/CoreBase/update.cf
share/examples/cfengine/active_directory.cf
share/examples/cfengine/app_baseline.cf
share/examples/cfengine/guest_environment_kvm.cf
share/examples/cfengine/hostswithclass.cf
share/examples/cfengine/motd.cf
share/examples/cfengine/package_windows_feature.cf
share/examples/cfengine/promise_knowledge.cf
share/examples/cfengine/service_catalogue.cf
share/examples/cfengine/service_catalogue_separate.cf
share/examples/cfengine/sql_table_structure.cf
share/examples/cfengine/unit_abort.cf
share/examples/cfengine/unit_accessed_before.cf
share/examples/cfengine/unit_accumulated_time.cf
share/examples/cfengine/unit_acl.cf
share/examples/cfengine/unit_acl_generic.cf
share/examples/cfengine/unit_acl_ntfs.cf
share/examples/cfengine/unit_acl_secret.cf
share/examples/cfengine/unit_activedirectory_listusers.cf
share/examples/cfengine/unit_activedirectory_showuser.cf
share/examples/cfengine/unit_ago.cf
share/examples/cfengine/unit_arrays.cf
share/examples/cfengine/unit_backreferences_files.cf
share/examples/cfengine/unit_badpromise.cf
share/examples/cfengine/unit_badtype.cf
share/examples/cfengine/unit_bsdflags.cf
share/examples/cfengine/unit_bundle_return_values.cf
share/examples/cfengine/unit_cf2_integration.cf
share/examples/cfengine/unit_change_detect.cf
share/examples/cfengine/unit_changedbefore.cf
share/examples/cfengine/unit_chdir.cf
share/examples/cfengine/unit_classes_global.cf
share/examples/cfengine/unit_classmatch.cf
share/examples/cfengine/unit_classvar_convergence.cf
share/examples/cfengine/unit_commands.cf
share/examples/cfengine/unit_compare.cf
share/examples/cfengine/unit_control_expand.cf
share/examples/cfengine/unit_controlclasses.cf
share/examples/cfengine/unit_copy.cf
share/examples/cfengine/unit_copy_classes.cf
share/examples/cfengine/unit_copy_copbl.cf
share/examples/cfengine/unit_copy_edit.cf
share/examples/cfengine/unit_copydir_copbl.cf
share/examples/cfengine/unit_copylinks.cf
share/examples/cfengine/unit_countclassesmatching.cf
share/examples/cfengine/unit_countlinesmatching.cf
share/examples/cfengine/unit_create_filedir.cf
share/examples/cfengine/unit_createdb.cf
share/examples/cfengine/unit_customize_by_named_list.cf
share/examples/cfengine/unit_defaults.cf
share/examples/cfengine/unit_defaults2.cf
share/examples/cfengine/unit_defaults3.cf
share/examples/cfengine/unit_definitions.cf
share/examples/cfengine/unit_deletelines.cf
share/examples/cfengine/unit_depends_on.cf
share/examples/cfengine/unit_depends_on2.cf
share/examples/cfengine/unit_disable.cf
share/examples/cfengine/unit_disable_and_rotate_files.cf
share/examples/cfengine/unit_diskfree.cf
share/examples/cfengine/unit_dollar.cf
share/examples/cfengine/unit_edit_column_files.cf
share/examples/cfengine/unit_edit_comment_lines.cf
share/examples/cfengine/unit_edit_deletenotmatch.cf
share/examples/cfengine/unit_edit_insert_fuzzylines.cf
share/examples/cfengine/unit_edit_insert_lines.cf
share/examples/cfengine/unit_edit_insert_lines_silly.cf
share/examples/cfengine/unit_edit_passwd_file.cf
share/examples/cfengine/unit_edit_passwd_file_basic.cf
share/examples/cfengine/unit_edit_replace_string.cf
share/examples/cfengine/unit_edit_sectioned_file.cf
share/examples/cfengine/unit_edit_setvar.cf
share/examples/cfengine/unit_edit_template.cf
share/examples/cfengine/unit_edit_triggerclass.cf
share/examples/cfengine/unit_env.cf
share/examples/cfengine/unit_epimenides.cf
share/examples/cfengine/unit_escape.cf
share/examples/cfengine/unit_exec_args.cf
share/examples/cfengine/unit_exec_in_sequence.cf
share/examples/cfengine/unit_execd.cf
share/examples/cfengine/unit_execresult.cf
share/examples/cfengine/unit_expand.cf
share/examples/cfengine/unit_failedcommand.cf
share/examples/cfengine/unit_failsafe.cf
share/examples/cfengine/unit_file_change_detection.cf
share/examples/cfengine/unit_file_owner_list_template.cf
share/examples/cfengine/unit_fileexists.cf
share/examples/cfengine/unit_filenames.cf
share/examples/cfengine/unit_fileperms.cf
share/examples/cfengine/unit_filesexist.cf
share/examples/cfengine/unit_filesexist2.cf
share/examples/cfengine/unit_filesize.cf
share/examples/cfengine/unit_fix_names.cf
share/examples/cfengine/unit_getenv.cf
share/examples/cfengine/unit_getfields.cf
share/examples/cfengine/unit_getgid.cf
share/examples/cfengine/unit_getindices.cf
share/examples/cfengine/unit_getindices_and_values.cf
share/examples/cfengine/unit_getmacaddress.cf
share/examples/cfengine/unit_getregistry.cf
share/examples/cfengine/unit_getuid.cf
share/examples/cfengine/unit_getusers.cf
share/examples/cfengine/unit_global_list_expansion.cf
share/examples/cfengine/unit_global_list_expansion_2.cf
share/examples/cfengine/unit_grep.cf
share/examples/cfengine/unit_groupexists.cf
share/examples/cfengine/unit_hash.cf
share/examples/cfengine/unit_hashcomment.cf
share/examples/cfengine/unit_hashmatch.cf
share/examples/cfengine/unit_hashuncomment.cf
share/examples/cfengine/unit_helloworld.cf
share/examples/cfengine/unit_host2ip.cf
share/examples/cfengine/unit_hostrange.cf
share/examples/cfengine/unit_hostsseen.cf
share/examples/cfengine/unit_hub.cf
share/examples/cfengine/unit_id.cf
share/examples/cfengine/unit_inherit.cf
share/examples/cfengine/unit_insert_users.cf
share/examples/cfengine/unit_intarray.cf
share/examples/cfengine/unit_inventory_cpu.cf
share/examples/cfengine/unit_iprange.cf
share/examples/cfengine/unit_irange.cf
share/examples/cfengine/unit_isdir.cf
share/examples/cfengine/unit_islink.cf
share/examples/cfengine/unit_isnewerthan.cf
share/examples/cfengine/unit_isplain.cf
share/examples/cfengine/unit_isvariable.cf
share/examples/cfengine/unit_iteration.cf
share/examples/cfengine/unit_join.cf
share/examples/cfengine/unit_knowledge_driver.cf
share/examples/cfengine/unit_knowledge_txt.cf
share/examples/cfengine/unit_lastnode.cf
share/examples/cfengine/unit_ldap.cf
share/examples/cfengine/unit_linking.cf
share/examples/cfengine/unit_literal_server.cf
share/examples/cfengine/unit_locate_files_and_compress.cf
share/examples/cfengine/unit_log_private.cf
share/examples/cfengine/unit_loops.cf
share/examples/cfengine/unit_lsdir.cf
share/examples/cfengine/unit_maplist.cf
share/examples/cfengine/unit_measure_log.cf
share/examples/cfengine/unit_measurements.cf
share/examples/cfengine/unit_menu.cf
share/examples/cfengine/unit_meta.cf
share/examples/cfengine/unit_method.cf
share/examples/cfengine/unit_method_polymorph.cf
share/examples/cfengine/unit_method_validate.cf
share/examples/cfengine/unit_method_var.cf
share/examples/cfengine/unit_method_var2.cf
share/examples/cfengine/unit_module_exec.cf
share/examples/cfengine/unit_module_exec_2.cf
share/examples/cfengine/unit_monitord.cf
share/examples/cfengine/unit_mount_fs.cf
share/examples/cfengine/unit_multipassvars.cf
share/examples/cfengine/unit_namespace.cf
share/examples/cfengine/unit_namespace1.cf
share/examples/cfengine/unit_namespace2.cf
share/examples/cfengine/unit_namespace3.cf
share/examples/cfengine/unit_namespace_class1.cf
share/examples/cfengine/unit_namespace_classes.cf
share/examples/cfengine/unit_namespace_var_meta.cf
share/examples/cfengine/unit_namespace_var_meta2.cf
share/examples/cfengine/unit_neighbourhood_watch.cf
share/examples/cfengine/unit_null_config.cf
share/examples/cfengine/unit_occurrences.cf
share/examples/cfengine/unit_orchestrate_chain1.cf
share/examples/cfengine/unit_orchestrate_chain2.cf
share/examples/cfengine/unit_orchestrate_dominoes1.cf
share/examples/cfengine/unit_orchestrate_dominoes2.cf
share/examples/cfengine/unit_orchestrate_dragon.cf
share/examples/cfengine/unit_orchestrate_dragon_load_balancer.cf
share/examples/cfengine/unit_orchestrate_n_of_m.cf
share/examples/cfengine/unit_orchestration_hostlist.cf
share/examples/cfengine/unit_ordering.cf
share/examples/cfengine/unit_package_apt.cf
share/examples/cfengine/unit_package_freebsd.cf
share/examples/cfengine/unit_package_latest.cf
share/examples/cfengine/unit_package_msi_file.cf
share/examples/cfengine/unit_package_msi_version.cf
share/examples/cfengine/unit_package_rpm.cf
share/examples/cfengine/unit_package_solaris.cf
share/examples/cfengine/unit_package_yum.cf
share/examples/cfengine/unit_package_zypper.cf
share/examples/cfengine/unit_parallel_exec.cf
share/examples/cfengine/unit_parsestringarray.cf
share/examples/cfengine/unit_pathtype.cf
share/examples/cfengine/unit_pattern_and_edit.cf
share/examples/cfengine/unit_peers.cf
share/examples/cfengine/unit_postfix.cf
share/examples/cfengine/unit_process_kill.cf
share/examples/cfengine/unit_process_matching.cf
share/examples/cfengine/unit_process_matching2.cf
share/examples/cfengine/unit_process_matching3.cf
share/examples/cfengine/unit_process_restart.cf
share/examples/cfengine/unit_process_restart_basic.cf
share/examples/cfengine/unit_process_signalling.cf
share/examples/cfengine/unit_product.cf
share/examples/cfengine/unit_promises.cf
share/examples/cfengine/unit_readlist.cf
share/examples/cfengine/unit_readtcp.cf
share/examples/cfengine/unit_reg_multiline.cf
share/examples/cfengine/unit_regarray.cf
share/examples/cfengine/unit_regex_win.cf
share/examples/cfengine/unit_regextract.cf
share/examples/cfengine/unit_registry.cf
share/examples/cfengine/unit_registry_cache.cf
share/examples/cfengine/unit_regline.cf
share/examples/cfengine/unit_reglist.cf
share/examples/cfengine/unit_remoteclasses.cf
share/examples/cfengine/unit_remoteclasses2.cf
share/examples/cfengine/unit_remotescalar.cf
share/examples/cfengine/unit_remove_deadlinks.cf
share/examples/cfengine/unit_rename.cf
share/examples/cfengine/unit_repairedcommand.cf
share/examples/cfengine/unit_report_custom.cf
share/examples/cfengine/unit_report_diffs.cf
share/examples/cfengine/unit_report_state.cf
share/examples/cfengine/unit_reporting.cf
share/examples/cfengine/unit_reporttofile.cf
share/examples/cfengine/unit_resolveconf.cf
share/examples/cfengine/unit_returnszero.cf
share/examples/cfengine/unit_root_passwd.cf
share/examples/cfengine/unit_select_class.cf
share/examples/cfengine/unit_select_mode.cf
share/examples/cfengine/unit_select_region.cf
share/examples/cfengine/unit_select_size.cf
share/examples/cfengine/unit_selectservers.cf
share/examples/cfengine/unit_server_callback.cf
share/examples/cfengine/unit_server_copy_localhost.cf
share/examples/cfengine/unit_server_copy_purge.cf
share/examples/cfengine/unit_server_copy_remote.cf
share/examples/cfengine/unit_server_flatcopy_localhost.cf
share/examples/cfengine/unit_service_disable.cf
share/examples/cfengine/unit_service_start.cf
share/examples/cfengine/unit_services_concept.cf
share/examples/cfengine/unit_services_win.cf
share/examples/cfengine/unit_setuidlog.cf
share/examples/cfengine/unit_setvar.cf
share/examples/cfengine/unit_software_dist.cf
share/examples/cfengine/unit_software_update_version_yum.cf
share/examples/cfengine/unit_splitstring.cf
share/examples/cfengine/unit_storage.cf
share/examples/cfengine/unit_strcmp.cf
share/examples/cfengine/unit_stringarray.cf
share/examples/cfengine/unit_switchcase.cf
share/examples/cfengine/unit_syslog.cf
share/examples/cfengine/unit_syslog2.cf
share/examples/cfengine/unit_template.cf
share/examples/cfengine/unit_template2.cf
share/examples/cfengine/unit_test_environment.cf
share/examples/cfengine/unit_tidy_all_files.cf
share/examples/cfengine/unit_translatepath.cf
share/examples/cfengine/unit_update.cf
share/examples/cfengine/unit_user_edit.cf
share/examples/cfengine/unit_user_edit_method.cf
share/examples/cfengine/unit_userexists.cf
share/examples/cfengine/unit_varclass.cf
share/examples/cfengine/unit_varexpansion.cf
share/examples/cfengine/unit_varnet.cf
share/examples/cfengine/unit_vars.cf
share/examples/cfengine/unit_warnifline.cf
share/examples/cfengine/unit_webserver.cf
share/examples/cfengine/unit_zenoss.cf
share/examples/cfengine/win_dns_client.cf
share/examples/cfengine/win_emergency.cf
share/examples/cfengine/win_registry.cf
share/examples/cfengine/win_schedule.cf
share/examples/rc.d/cfexecd
share/examples/rc.d/cfmonitord
share/examples/rc.d/cfserverd

View File

@@ -0,0 +1,7 @@
$NetBSD: distinfo,v 1.5 2013/02/17 16:15:42 fhajny Exp $
SHA1 (cfengine-3.4.2.tar.gz) = 83d6eb3e8c8ed16bf6364a41d216cf96499749c6
RMD160 (cfengine-3.4.2.tar.gz) = b1c2bfa74c517efd9d26445ff148b8a93cb173b8
Size (cfengine-3.4.2.tar.gz) = 4687590 bytes
SHA1 (patch-ext_Makefile.in) = 63d2c3ef7d94a11a98177d2dd3c2820662bc06f9
SHA1 (patch-src_unix.c) = 5b64998d5f9d7d3d158aa1384c134fac686865f3

View File

@@ -0,0 +1,15 @@
#!@RCD_SCRIPTS_SHELL@
#
# $NetBSD: cfexecd.sh,v 1.1 2011/02/06 18:44:23 pettai Exp $
# PROVIDE: cfexecd
. /etc/rc.subr
name="cfexecd"
rcvar=$name
command="@PREFIX@/sbin/cf-execd"
required_files="/var/cfengine/inputs/promises.cf"
load_rc_config $name
run_rc_command "$1"

View File

@@ -0,0 +1,15 @@
#!@RCD_SCRIPTS_SHELL@
#
# $NetBSD: cfmonitord.sh,v 1.1 2011/02/06 18:44:23 pettai Exp $
# PROVIDE: cfmonitord
. /etc/rc.subr
name="cfmonitord"
rcvar=$name
command="@PREFIX@/sbin/cf-monitord"
required_files="/var/cfengine/inputs/promises.cf"
load_rc_config $name
run_rc_command "$1"

View File

@@ -0,0 +1,15 @@
#!@RCD_SCRIPTS_SHELL@
#
# $NetBSD: cfserverd.sh,v 1.1.1.1 2010/11/05 13:57:21 pettai Exp $
# PROVIDE: cfserverd
. /etc/rc.subr
name="cfserverd"
rcvar=$name
command="@PREFIX@/sbin/cf-serverd"
required_files="/var/cfengine/inputs/site.cf"
load_rc_config $name
run_rc_command "$1"

View File

@@ -0,0 +1,35 @@
# $NetBSD: options.mk,v 1.1 2013/02/17 16:15:42 fhajny Exp $
#
PKG_OPTIONS_VAR= PKG_OPTIONS.cfengine3
PKG_OPTIONS_REQUIRED_GROUPS= db
PKG_OPTIONS_GROUP.db= qdbm tokyocabinet
PKG_SUPPORTED_OPTIONS= qdbm tokyocabinet mysql pgsql
PKG_SUGGESTED_OPTIONS= tokyocabinet
.include "../../mk/bsd.options.mk"
### MySQL support
.if !empty(PKG_OPTIONS:Mmysql)
CONFIGURE_ARGS+= --with-mysql=${MYSQL_PREFIX}
.include "../../mk/mysql.buildlink3.mk"
.else
CONFIGURE_ARGS+= --without-mysql
.endif
### PostgreSQL support
.if !empty(PKG_OPTIONS:Mpgsql)
CONFIGURE_ARGS+= --with-postgresql=${PGSQL_PREFIX}
.include "../../mk/pgsql.buildlink3.mk"
.else
CONFIGURE_ARGS+= --without-postgresql
.endif
### QDBM *or* Tokyo Cabinet support
.if !empty(PKG_OPTIONS:Mqdbm)
CONFIGURE_ARGS+= --with-qdbm=${BUILDLINK_PREFIX.qdbm}
.include "../../databases/qdbm/buildlink3.mk"
.elif !empty(PKG_OPTIONS:Mtokyocabinet)
CONFIGURE_ARGS+= --with-tokyocabinet=${BUILDLINK_PREFIX.tokyocabinet}
.include "../../databases/tokyocabinet/buildlink3.mk"
.endif

View File

@@ -0,0 +1,14 @@
$NetBSD: patch-ext_Makefile.in,v 1.1 2013/02/17 16:15:42 fhajny Exp $
No use for rpmvercmp.
--- ext/Makefile.in.orig 2013-01-11 12:54:49.000000000 +0000
+++ ext/Makefile.in 2013-02-16 12:23:25.950062742 +0000
@@ -35,7 +35,6 @@ POST_UNINSTALL = :
build_triplet = @build@
host_triplet = @host@
target_triplet = @target@
-sbin_PROGRAMS = rpmvercmp$(EXEEXT)
subdir = ext
DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4

View File

@@ -0,0 +1,15 @@
$NetBSD: patch-src_unix.c,v 1.1 2013/02/17 16:15:42 fhajny Exp $
Ignore HAVE_STRUCT_SOCKADDR_SA_LEN on NetBSD.
--- src/unix.c.orig 2013-01-11 12:54:39.000000000 +0000
+++ src/unix.c 2013-02-16 11:10:41.263683099 +0000
@@ -49,7 +49,7 @@
#ifndef MINGW
-# ifdef HAVE_STRUCT_SOCKADDR_SA_LEN
+# if defined(HAVE_STRUCT_SOCKADDR_SA_LEN) && !defined(__NetBSD__)
# ifdef _SIZEOF_ADDR_IFREQ
# define SIZEOF_IFREQ(x) _SIZEOF_ADDR_IFREQ(x)
# else