head 1.5; access; symbols pkgsrc-2013Q2:1.5.0.58 pkgsrc-2013Q2-base:1.5 pkgsrc-2012Q4:1.5.0.56 pkgsrc-2012Q4-base:1.5 pkgsrc-2011Q4:1.5.0.54 pkgsrc-2011Q4-base:1.5 pkgsrc-2011Q2:1.5.0.52 pkgsrc-2011Q2-base:1.5 pkgsrc-2009Q4:1.5.0.50 pkgsrc-2009Q4-base:1.5 pkgsrc-2008Q4:1.5.0.48 pkgsrc-2008Q4-base:1.5 pkgsrc-2008Q3:1.5.0.46 pkgsrc-2008Q3-base:1.5 cube-native-xorg:1.5.0.44 cube-native-xorg-base:1.5 pkgsrc-2008Q2:1.5.0.42 pkgsrc-2008Q2-base:1.5 cwrapper:1.5.0.40 cwrapper-base:1.5 pkg_install-renovation:1.5.0.38 pkg_install-renovation-base:1.5 pkgsrc-2008Q1:1.5.0.36 pkgsrc-2008Q1-base:1.5 pkgsrc-2007Q4:1.5.0.34 pkgsrc-2007Q4-base:1.5 pkgsrc-2007Q3:1.5.0.32 pkgsrc-2007Q3-base:1.5 pkgsrc-2007Q2:1.5.0.30 pkgsrc-2007Q2-base:1.5 pkgsrc-2007Q1:1.5.0.28 pkgsrc-2007Q1-base:1.5 pkgsrc-2006Q4:1.5.0.26 pkgsrc-2006Q4-base:1.5 pkgsrc-2006Q3:1.5.0.24 pkgsrc-2006Q3-base:1.5 pkgsrc-2006Q2:1.5.0.22 pkgsrc-2006Q2-base:1.5 pkgsrc-2006Q1:1.5.0.20 pkgsrc-2006Q1-base:1.5 pkgsrc-2005Q4:1.5.0.18 pkgsrc-2005Q4-base:1.5 pkgsrc-2005Q3:1.5.0.16 pkgsrc-2005Q3-base:1.5 pkgsrc-2005Q2:1.5.0.14 pkgsrc-2005Q2-base:1.5 pkgsrc-2005Q1:1.5.0.12 pkgsrc-2005Q1-base:1.5 pkgsrc-2004Q4:1.5.0.10 pkgsrc-2004Q4-base:1.5 pkgsrc-2004Q3:1.5.0.8 pkgsrc-2004Q3-base:1.5 pkgsrc-2004Q2:1.5.0.6 pkgsrc-2004Q2-base:1.5 pkgsrc-2004Q1:1.5.0.4 pkgsrc-2004Q1-base:1.5 pkgsrc-2003Q4:1.5.0.2 pkgsrc-2003Q4-base:1.5 buildlink2-base:1.3 buildlink2:1.3.0.2 netbsd-1-6:1.3.0.4 netbsd-1-6-RELEASE-base:1.3 pkgviews:1.1.0.2 pkgviews-base:1.1; locks; strict; comment @# @; 1.5 date 2002.12.20.18.15.54; author schmonz; state dead; branches; next 1.4; 1.4 date 2002.09.23.12.57.27; author abs; state Exp; branches; next 1.3; 1.3 date 2002.08.06.11.51.02; author wiz; state Exp; branches 1.3.2.1; next 1.2; 1.2 date 2002.08.01.09.31.16; author martti; state Exp; branches; next 1.1; 1.1 date 2002.07.03.22.43.40; author abs; state Exp; branches; next ; 1.3.2.1 date 2002.08.06.11.51.02; author jlam; state dead; branches; next 1.3.2.2; 1.3.2.2 date 2002.08.23.05.09.15; author jlam; state Exp; branches; next ; desc @@ 1.5 log @As the sources are now in ${FILESDIR}, there's no distfile to fetch, and the "do-extract" target copies the sources into ${WRKSRC}. We automagically determine VERSION by inspecting ${FILESDIR}/lib/version.h. Thanks to autoconf, all the patches and almost all of the cruftulent ${OPSYS}-specific stuff in the Makefile are gone. @ text @$NetBSD: patch-ae,v 1.4 2002/09/23 12:57:27 abs Exp $ --- lib/lib.h.orig Thu Aug 1 09:46:31 2002 +++ lib/lib.h Mon Sep 23 13:50:19 2002 @@@@ -40,6 +40,10 @@@@ #include "path.h" +#if defined(__NetBSD__) && (__NetBSD_Version__ < 104000300) +size_t strlcpy(char *, const char *, size_t); +#endif + /* Macros */ #define SUCCESS (0) #define FAIL (-1) @@@@ -109,10 +113,11 @@@@ #define PKG_PATTERN_MAX FILENAME_MAX /* max length of pattern, including nul */ #define PKG_SUFFIX_MAX 10 /* max length of suffix, including nul */ -/* This should only happen on 1.3 and 1.3.1, not 1.3.2 and up */ +/* For NetBSD 1.3.1 and earlier, and some non NetBSD systems */ #ifndef TAILQ_FIRST #define TAILQ_FIRST(head) ((head)->tqh_first) #define TAILQ_NEXT(elm, field) ((elm)->field.tqe_next) +#define TAILQ_HEAD_INITIALIZER(head) { NULL, &(head).tqh_first } #endif @@@@ -281,6 +286,10 @@@@ /* For all */ int pkg_perform(lpkg_head_t *); +#ifdef FGETLN_MISSING +char *fgetln(FILE *, size_t *); +#endif + /* Externs */ extern Boolean Verbose; extern Boolean Fake; @ 1.4 log @If defining TAILQ_FIRST and TAILQ_NEXT ensure we also define TAILQ_HEAD_INITIALIZER - required for linux build. @ text @d1 1 a1 1 $NetBSD: patch-ae,v 1.3 2002/08/06 11:51:02 wiz Exp $ @ 1.3 log @Make it build on 1.4-1.4.2. @ text @d1 1 a1 1 $NetBSD$ d3 2 a4 2 --- lib/lib.h.orig Thu Aug 1 10:46:31 2002 +++ lib/lib.h d16 3 a18 1 @@@@ -280,6 +284,10 @@@@ d20 10 d32 1 a32 1 + d36 1 a36 1 d39 1 @ 1.3.2.1 log @file patch-ae was added on branch buildlink2 on 2002-08-23 05:09:15 +0000 @ text @d1 26 @ 1.3.2.2 log @Merge changes from HEAD of pkgsrc/pkgtools to buildlink2 branch. @ text @a0 26 $NetBSD: patch-ae,v 1.3.2.1 2002/08/23 05:09:15 jlam Exp $ --- lib/lib.h.orig Thu Aug 1 10:46:31 2002 +++ lib/lib.h @@@@ -40,6 +40,10 @@@@ #include "path.h" +#if defined(__NetBSD__) && (__NetBSD_Version__ < 104000300) +size_t strlcpy(char *, const char *, size_t); +#endif + /* Macros */ #define SUCCESS (0) #define FAIL (-1) @@@@ -280,6 +284,10 @@@@ /* For all */ int pkg_perform(lpkg_head_t *); + +#ifdef FGETLN_MISSING +char *fgetln(FILE *, size_t *); +#endif /* Externs */ extern Boolean Verbose; @ 1.2 log @Updated pkg_install to 20020723 - remove handling of PKG_ADD_BASE. - don't search current directory if PKG_PATH is set. - don't prefer local directories. - constify and cleanup. @ text @d1 1 a1 1 $NetBSD: patch-ae,v 1.1 2002/07/03 22:43:40 abs Exp $ d4 14 a17 2 +++ lib/lib.h Thu Aug 1 10:57:31 2002 @@@@ -281,6 +281,10 @@@@ d20 1 a20 1 d24 1 a24 1 + a26 1 extern Boolean Fake; @ 1.1 log @Compile and run under Linux. We're still missing pax and mtree, but using the Darwin bootstrap kit everything else now works. @ text @d1 1 a1 1 $NetBSD$ d3 3 a5 3 --- lib/lib.h.orig Fri May 10 14:17:57 2002 +++ lib/lib.h @@@@ -257,6 +257,10 @@@@ @