head	1.3;
access;
symbols
	netbsd-11-0-RC4:1.3
	netbsd-11-0-RC3:1.3
	netbsd-11-0-RC2:1.3
	netbsd-11-0-RC1:1.3
	perseant-exfatfs-base-20250801:1.3
	netbsd-11:1.3.0.10
	netbsd-11-base:1.3
	netbsd-10-1-RELEASE:1.3
	perseant-exfatfs-base-20240630:1.3
	perseant-exfatfs:1.3.0.8
	perseant-exfatfs-base:1.3
	netbsd-8-3-RELEASE:1.2
	netbsd-9-4-RELEASE:1.2
	netbsd-10-0-RELEASE:1.3
	netbsd-10-0-RC6:1.3
	netbsd-10-0-RC5:1.3
	netbsd-10-0-RC4:1.3
	netbsd-10-0-RC3:1.3
	netbsd-10-0-RC2:1.3
	netbsd-10-0-RC1:1.3
	netbsd-10:1.3.0.6
	netbsd-10-base:1.3
	netbsd-9-3-RELEASE:1.2
	cjep_sun2x-base1:1.3
	cjep_sun2x:1.3.0.4
	cjep_sun2x-base:1.3
	cjep_staticlib_x-base1:1.3
	netbsd-9-2-RELEASE:1.2
	cjep_staticlib_x:1.3.0.2
	cjep_staticlib_x-base:1.3
	netbsd-9-1-RELEASE:1.2
	phil-wifi-20200421:1.2
	phil-wifi-20200411:1.2
	is-mlppp:1.2.0.20
	is-mlppp-base:1.2
	phil-wifi-20200406:1.2
	netbsd-8-2-RELEASE:1.2
	netbsd-9-0-RELEASE:1.2
	netbsd-9-0-RC2:1.2
	netbsd-9-0-RC1:1.2
	phil-wifi-20191119:1.2
	netbsd-9:1.2.0.18
	netbsd-9-base:1.2
	phil-wifi-20190609:1.2
	netbsd-8-1-RELEASE:1.2
	netbsd-8-1-RC1:1.2
	pgoyette-compat-merge-20190127:1.2
	pgoyette-compat-20190127:1.2
	pgoyette-compat-20190118:1.2
	pgoyette-compat-1226:1.2
	pgoyette-compat-1126:1.2
	pgoyette-compat-1020:1.2
	pgoyette-compat-0930:1.2
	pgoyette-compat-0906:1.2
	netbsd-7-2-RELEASE:1.1
	pgoyette-compat-0728:1.2
	netbsd-8-0-RELEASE:1.2
	phil-wifi:1.2.0.16
	phil-wifi-base:1.2
	pgoyette-compat-0625:1.2
	netbsd-8-0-RC2:1.2
	pgoyette-compat-0521:1.2
	pgoyette-compat-0502:1.2
	pgoyette-compat-0422:1.2
	netbsd-8-0-RC1:1.2
	pgoyette-compat-0415:1.2
	pgoyette-compat-0407:1.2
	pgoyette-compat-0330:1.2
	pgoyette-compat-0322:1.2
	pgoyette-compat-0315:1.2
	netbsd-7-1-2-RELEASE:1.1
	pgoyette-compat:1.2.0.14
	pgoyette-compat-base:1.2
	netbsd-7-1-1-RELEASE:1.1
	matt-nb8-mediatek:1.2.0.12
	matt-nb8-mediatek-base:1.2
	perseant-stdc-iso10646:1.2.0.10
	perseant-stdc-iso10646-base:1.2
	netbsd-8:1.2.0.8
	netbsd-8-base:1.2
	prg-localcount2-base3:1.2
	prg-localcount2-base2:1.2
	prg-localcount2-base1:1.2
	prg-localcount2:1.2.0.6
	prg-localcount2-base:1.2
	pgoyette-localcount-20170426:1.2
	bouyer-socketcan-base1:1.2
	pgoyette-localcount-20170320:1.2
	netbsd-7-1:1.1.0.18
	netbsd-7-1-RELEASE:1.1
	netbsd-7-1-RC2:1.1
	netbsd-7-nhusb-base-20170116:1.1
	bouyer-socketcan:1.2.0.4
	bouyer-socketcan-base:1.2
	pgoyette-localcount-20170107:1.2
	netbsd-7-1-RC1:1.1
	pgoyette-localcount-20161104:1.2
	netbsd-7-0-2-RELEASE:1.1
	localcount-20160914:1.2
	netbsd-7-nhusb:1.1.0.16
	netbsd-7-nhusb-base:1.1
	pgoyette-localcount-20160806:1.2
	pgoyette-localcount-20160726:1.2
	pgoyette-localcount:1.2.0.2
	pgoyette-localcount-base:1.2
	netbsd-7-0-1-RELEASE:1.1
	netbsd-7-0:1.1.0.14
	netbsd-7-0-RELEASE:1.1
	netbsd-7-0-RC3:1.1
	netbsd-7-0-RC2:1.1
	netbsd-7-0-RC1:1.1
	netbsd-7:1.1.0.12
	netbsd-7-base:1.1
	yamt-pagecache:1.1.0.10
	yamt-pagecache-base9:1.1
	tls-earlyentropy:1.1.0.8
	tls-earlyentropy-base:1.1
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.1
	riastradh-drm2-base3:1.1
	riastradh-drm2-base2:1.1
	riastradh-drm2-base1:1.1
	riastradh-drm2:1.1.0.6
	riastradh-drm2-base:1.1
	tls-maxphys-base:1.1
	tls-maxphys:1.1.0.4
	khorben-n900:1.1.0.2;
locks; strict;
comment	@# @;


1.3
date	2021.04.07.03.36.48;	author christos;	state Exp;
branches;
next	1.2;
commitid	pAALhQs7hHB3ljOC;

1.2
date	2015.01.29.07.26.02;	author spz;	state Exp;
branches;
next	1.1;
commitid	N70Kf8SvitMrfT7y;

1.1
date	2013.04.11.16.56.11;	author christos;	state Exp;
branches
	1.1.4.1
	1.1.10.1;
next	;

1.1.4.1
date	2013.04.11.16.56.11;	author tls;	state dead;
branches;
next	1.1.4.2;
commitid	OnlO1cBgtQRcIHUw;

1.1.4.2
date	2013.06.23.06.28.16;	author tls;	state Exp;
branches;
next	;
commitid	OnlO1cBgtQRcIHUw;

1.1.10.1
date	2013.04.11.16.56.11;	author yamt;	state dead;
branches;
next	1.1.10.2;
commitid	SywiCPEofZQm8yBx;

1.1.10.2
date	2014.05.22.15.48.09;	author yamt;	state Exp;
branches;
next	;
commitid	SywiCPEofZQm8yBx;


desc
@@


1.3
log
@Merge local changes from libevent 2.1.8 and 2.1.12
@
text
@#!/bin/sh
# $NetBSD: libevent2netbsd,v 1.2 2015/01/29 07:26:02 spz Exp $

# Extract the new tarball and rename the libevent-X.Y.Z directory
# to dist.  Run this script and check for additional files and
# directories to prune, only relevant content is included.
#
# lib/ is built as SUBDIR from lib/Makefile, and
# the regression tests are used from tests/lib/libevent
#
# Use the following template to import
#  cvs import src/external/bsd/libevent/dist LIBEVENT libevent-X-Y-Z-stable
#
# don't forget to bump the shlib version in Makefile.inc and
# commit the include/ files
# XXX: Automate the man page generation

if [ -z "$1" ]
then
    echo "Usage $0 <dir>" 1>&2
    exit 1
fi

case $1 in
/*)
	d=$1;;
*)
	d=$(pwd)/$1;;
esac

if [ -f $d/configure ]; then
	mkdir -p tmp
	cd tmp
	$d/configure
	make include/event2/event-config.h
	sed -e '
/_EVENT_SIZEOF_SIZE_T/ {
	a\
#ifdef _LP64\
#define _EVENT_SIZEOF_SIZE_T 8\
#else\
#define _EVENT_SIZEOF_SIZE_T 4\
#endif
	d
}
/_EVENT_SIZEOF_LONG_LONG/ {
	a\
#define _EVENT_SIZEOF_LONG_LONG 8
	d
}
/_EVENT_SIZEOF_LONG/ {
	a\
#ifdef _LP64\
#define _EVENT_SIZEOF_LONG 8\
#else\
#define _EVENT_SIZEOF_LONG 4\
#endif
	d
}
/_EVENT_SIZEOF_PTHREAD_T/ {
	a\
#ifdef _LP64\
#define _EVENT_SIZEOF_PTHREAD_T 8\
#else\
#define _EVENT_SIZEOF_PTHREAD_T 4\
#endif
	d
}
/_EVENT_SIZEOF_VOID_P/ {
	a\
#ifdef _LP64\
#define _EVENT_SIZEOF_VOID_P 8\
#else\
#define _EVENT_SIZEOF_VOID_P 4\
#endif
	d
}' < include/event2/event-config.h > ../include/event2/event-config.h
	cd ..
	rm -Rf tmp
fi

echo "Removing RCS tags..."
cleantags $d

echo "Adding RCS tags .."
for f in $(grep -RL '\$NetBSD.*\$' $d include | grep -v CVS); do
	case $f in
	*.c)
		sed -e '1i\
/*	\$NetBSD\$	*/

' -e '/#include "event2\/event-config.h"/ {
    a\
#include <sys/cdefs.h>\
__RCSID("\$NetBSD\$");
}' < "$f" > tmp$$ && mv tmp$$ "$f"
		;;
	*.h)
		cat - ${f} > ${f}_tmp <<- EOF
			/*	\$NetBSD\$	*/
		EOF
		mv ${f}_tmp ${f}
		;;
	*.[0-9])
		cat - ${f} > ${f}_tmp <<- EOF
			.\"	\$NetBSD\$
			.\"
		EOF
		mv ${f}_tmp ${f}
		;;
	*)
		echo "No RCS tag added to ${f}"
		;;
	esac
done
@


1.2
log
@merge and update manpages and include/event2/event-config.h
May need extra fixing around log-internal.h and log.c
@
text
@d2 1
a2 1
# $NetBSD: libevent2netbsd,v 1.1 2013/04/11 16:56:11 christos Exp $
d91 1
@


1.1
log
@import script
@
text
@d2 1
a2 1
# $NetBSD: prepare-import.sh,v 1.2 2010/12/03 21:38:49 plunky Exp $
d46 5
@


1.1.10.1
log
@file libevent2netbsd was added on branch yamt-pagecache on 2014-05-22 15:48:09 +0000
@
text
@d1 109
@


1.1.10.2
log
@sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")
@
text
@a0 109
#!/bin/sh
# $NetBSD$

# Extract the new tarball and rename the libevent-X.Y.Z directory
# to dist.  Run this script and check for additional files and
# directories to prune, only relevant content is included.
#
# lib/ is built as SUBDIR from lib/Makefile, and
# the regression tests are used from tests/lib/libevent
#
# Use the following template to import
#  cvs import src/external/bsd/libevent/dist LIBEVENT libevent-X-Y-Z-stable
#
# don't forget to bump the shlib version in Makefile.inc and
# commit the include/ files
# XXX: Automate the man page generation

if [ -z "$1" ]
then
    echo "Usage $0 <dir>" 1>&2
    exit 1
fi

case $1 in
/*)
	d=$1;;
*)
	d=$(pwd)/$1;;
esac

if [ -f $d/configure ]; then
	mkdir -p tmp
	cd tmp
	$d/configure
	make include/event2/event-config.h
	sed -e '
/_EVENT_SIZEOF_SIZE_T/ {
	a\
#ifdef _LP64\
#define _EVENT_SIZEOF_SIZE_T 8\
#else\
#define _EVENT_SIZEOF_SIZE_T 4\
#endif
	d
}
/_EVENT_SIZEOF_LONG/ {
	a\
#ifdef _LP64\
#define _EVENT_SIZEOF_LONG 8\
#else\
#define _EVENT_SIZEOF_LONG 4\
#endif
	d
}
/_EVENT_SIZEOF_PTHREAD_T/ {
	a\
#ifdef _LP64\
#define _EVENT_SIZEOF_PTHREAD_T 8\
#else\
#define _EVENT_SIZEOF_PTHREAD_T 4\
#endif
	d
}
/_EVENT_SIZEOF_VOID_P/ {
	a\
#ifdef _LP64\
#define _EVENT_SIZEOF_VOID_P 8\
#else\
#define _EVENT_SIZEOF_VOID_P 4\
#endif
	d
}' < include/event2/event-config.h > ../include/event2/event-config.h
	cd ..
	rm -Rf tmp
fi

echo "Removing RCS tags..."
cleantags $d

echo "Adding RCS tags .."
for f in $(grep -RL '\$NetBSD.*\$' $d include | grep -v CVS); do
	case $f in
	*.c)
		sed -e '1i\
/*	\$NetBSD\$	*/
' -e '/#include "event2\/event-config.h"/ {
    a\
#include <sys/cdefs.h>\
__RCSID("\$NetBSD\$");
}' < "$f" > tmp$$ && mv tmp$$ "$f"
		;;
	*.h)
		cat - ${f} > ${f}_tmp <<- EOF
			/*	\$NetBSD\$	*/
		EOF
		mv ${f}_tmp ${f}
		;;
	*.[0-9])
		cat - ${f} > ${f}_tmp <<- EOF
			.\"	\$NetBSD\$
			.\"
		EOF
		mv ${f}_tmp ${f}
		;;
	*)
		echo "No RCS tag added to ${f}"
		;;
	esac
done
@


1.1.4.1
log
@file libevent2netbsd was added on branch tls-maxphys on 2013-06-23 06:28:16 +0000
@
text
@d1 109
@


1.1.4.2
log
@resync from head
@
text
@a0 109
#!/bin/sh
# $NetBSD$

# Extract the new tarball and rename the libevent-X.Y.Z directory
# to dist.  Run this script and check for additional files and
# directories to prune, only relevant content is included.
#
# lib/ is built as SUBDIR from lib/Makefile, and
# the regression tests are used from tests/lib/libevent
#
# Use the following template to import
#  cvs import src/external/bsd/libevent/dist LIBEVENT libevent-X-Y-Z-stable
#
# don't forget to bump the shlib version in Makefile.inc and
# commit the include/ files
# XXX: Automate the man page generation

if [ -z "$1" ]
then
    echo "Usage $0 <dir>" 1>&2
    exit 1
fi

case $1 in
/*)
	d=$1;;
*)
	d=$(pwd)/$1;;
esac

if [ -f $d/configure ]; then
	mkdir -p tmp
	cd tmp
	$d/configure
	make include/event2/event-config.h
	sed -e '
/_EVENT_SIZEOF_SIZE_T/ {
	a\
#ifdef _LP64\
#define _EVENT_SIZEOF_SIZE_T 8\
#else\
#define _EVENT_SIZEOF_SIZE_T 4\
#endif
	d
}
/_EVENT_SIZEOF_LONG/ {
	a\
#ifdef _LP64\
#define _EVENT_SIZEOF_LONG 8\
#else\
#define _EVENT_SIZEOF_LONG 4\
#endif
	d
}
/_EVENT_SIZEOF_PTHREAD_T/ {
	a\
#ifdef _LP64\
#define _EVENT_SIZEOF_PTHREAD_T 8\
#else\
#define _EVENT_SIZEOF_PTHREAD_T 4\
#endif
	d
}
/_EVENT_SIZEOF_VOID_P/ {
	a\
#ifdef _LP64\
#define _EVENT_SIZEOF_VOID_P 8\
#else\
#define _EVENT_SIZEOF_VOID_P 4\
#endif
	d
}' < include/event2/event-config.h > ../include/event2/event-config.h
	cd ..
	rm -Rf tmp
fi

echo "Removing RCS tags..."
cleantags $d

echo "Adding RCS tags .."
for f in $(grep -RL '\$NetBSD.*\$' $d include | grep -v CVS); do
	case $f in
	*.c)
		sed -e '1i\
/*	\$NetBSD\$	*/
' -e '/#include "event2\/event-config.h"/ {
    a\
#include <sys/cdefs.h>\
__RCSID("\$NetBSD\$");
}' < "$f" > tmp$$ && mv tmp$$ "$f"
		;;
	*.h)
		cat - ${f} > ${f}_tmp <<- EOF
			/*	\$NetBSD\$	*/
		EOF
		mv ${f}_tmp ${f}
		;;
	*.[0-9])
		cat - ${f} > ${f}_tmp <<- EOF
			.\"	\$NetBSD\$
			.\"
		EOF
		mv ${f}_tmp ${f}
		;;
	*)
		echo "No RCS tag added to ${f}"
		;;
	esac
done
@


