head	1.35;
access;
symbols
	perseant-exfatfs-base-20250801:1.35
	perseant-exfatfs-base-20240630:1.35
	perseant-exfatfs:1.35.0.36
	perseant-exfatfs-base:1.35
	cjep_sun2x:1.35.0.34
	cjep_sun2x-base:1.35
	cjep_staticlib_x-base1:1.35
	cjep_staticlib_x:1.35.0.32
	cjep_staticlib_x-base:1.35
	phil-wifi-20200421:1.35
	phil-wifi-20200411:1.35
	phil-wifi-20200406:1.35
	pgoyette-compat-merge-20190127:1.35
	pgoyette-compat-20190127:1.35
	pgoyette-compat-20190118:1.35
	pgoyette-compat-1226:1.35
	pgoyette-compat-1126:1.35
	pgoyette-compat-1020:1.35
	pgoyette-compat-0930:1.35
	pgoyette-compat-0906:1.35
	pgoyette-compat-0728:1.35
	pgoyette-compat-0625:1.35
	pgoyette-compat-0521:1.35
	pgoyette-compat-0502:1.35
	pgoyette-compat-0422:1.35
	pgoyette-compat-0415:1.35
	pgoyette-compat-0407:1.35
	pgoyette-compat-0330:1.35
	pgoyette-compat-0322:1.35
	pgoyette-compat-0315:1.35
	pgoyette-compat:1.35.0.30
	pgoyette-compat-base:1.35
	perseant-stdc-iso10646:1.35.0.28
	perseant-stdc-iso10646-base:1.35
	prg-localcount2-base3:1.35
	prg-localcount2-base2:1.35
	prg-localcount2-base1:1.35
	prg-localcount2:1.35.0.26
	prg-localcount2-base:1.35
	pgoyette-localcount-20170426:1.35
	bouyer-socketcan-base1:1.35
	pgoyette-localcount-20170320:1.35
	bouyer-socketcan:1.35.0.24
	bouyer-socketcan-base:1.35
	pgoyette-localcount-20170107:1.35
	pgoyette-localcount-20161104:1.35
	localcount-20160914:1.35
	pgoyette-localcount-20160806:1.35
	pgoyette-localcount-20160726:1.35
	pgoyette-localcount:1.35.0.22
	pgoyette-localcount-base:1.35
	netbsd-5-2-3-RELEASE:1.35
	netbsd-5-1-5-RELEASE:1.35
	yamt-pagecache-base9:1.35
	yamt-pagecache-tag8:1.35
	tls-earlyentropy:1.35.0.18
	tls-earlyentropy-base:1.35
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.35
	riastradh-drm2-base3:1.35
	netbsd-5-2-2-RELEASE:1.35
	netbsd-5-1-4-RELEASE:1.35
	netbsd-5-2-1-RELEASE:1.35
	netbsd-5-1-3-RELEASE:1.35
	agc-symver:1.35.0.20
	agc-symver-base:1.35
	tls-maxphys-base:1.35
	yamt-pagecache-base8:1.35
	netbsd-5-2:1.35.0.16
	yamt-pagecache-base7:1.35
	netbsd-5-2-RELEASE:1.35
	netbsd-5-2-RC1:1.35
	yamt-pagecache-base6:1.35
	yamt-pagecache-base5:1.35
	yamt-pagecache-base4:1.35
	netbsd-5-1-2-RELEASE:1.35
	netbsd-5-1-1-RELEASE:1.35
	yamt-pagecache-base3:1.35
	yamt-pagecache-base2:1.35
	yamt-pagecache:1.35.0.14
	yamt-pagecache-base:1.35
	bouyer-quota2-nbase:1.35
	bouyer-quota2:1.35.0.12
	bouyer-quota2-base:1.35
	matt-nb5-pq3:1.35.0.10
	matt-nb5-pq3-base:1.35
	netbsd-5-1:1.35.0.8
	netbsd-5-1-RELEASE:1.35
	netbsd-5-1-RC4:1.35
	netbsd-5-1-RC3:1.35
	netbsd-5-1-RC2:1.35
	netbsd-5-1-RC1:1.35
	netbsd-5-0-2-RELEASE:1.35
	netbsd-5-0-1-RELEASE:1.35
	jym-xensuspend-nbase:1.35
	netbsd-5-0:1.35.0.6
	netbsd-5-0-RELEASE:1.35
	netbsd-5-0-RC4:1.35
	netbsd-5-0-RC3:1.35
	netbsd-5-0-RC2:1.35
	jym-xensuspend:1.35.0.4
	jym-xensuspend-base:1.35
	netbsd-5-0-RC1:1.35
	netbsd-5:1.35.0.2
	netbsd-5-base:1.35
	matt-mips64:1.30.0.2
	netbsd-4-0-1-RELEASE:1.28
	wrstuden-revivesa-base-3:1.34
	wrstuden-revivesa-base-2:1.34
	wrstuden-fixsa-newbase:1.28
	wrstuden-revivesa-base-1:1.34
	yamt-pf42-base4:1.34
	yamt-pf42-base3:1.34
	hpcarm-cleanup-nbase:1.34
	yamt-pf42-baseX:1.33
	yamt-pf42-base2:1.34
	wrstuden-revivesa:1.34.0.2
	wrstuden-revivesa-base:1.34
	yamt-pf42:1.33.0.2
	yamt-pf42-base:1.33
	keiichi-mipv6-nbase:1.33
	keiichi-mipv6:1.32.0.2
	keiichi-mipv6-base:1.33
	matt-armv6-nbase:1.33
	matt-armv6-prevmlocking:1.31
	wrstuden-fixsa-base-1:1.28
	netbsd-4-0:1.28.0.8
	netbsd-4-0-RELEASE:1.28
	cube-autoconf:1.31.0.4
	cube-autoconf-base:1.31
	netbsd-4-0-RC5:1.28
	netbsd-4-0-RC4:1.28
	netbsd-4-0-RC3:1.28
	netbsd-4-0-RC2:1.28
	netbsd-4-0-RC1:1.28
	matt-armv6:1.31.0.2
	matt-armv6-base:1.32
	matt-mips64-base:1.30
	hpcarm-cleanup:1.29.0.2
	hpcarm-cleanup-base:1.33
	netbsd-3-1-1-RELEASE:1.23.2.3
	netbsd-3-0-3-RELEASE:1.23.2.3
	wrstuden-fixsa:1.28.0.6
	wrstuden-fixsa-base:1.28
	abandoned-netbsd-4-base:1.28
	abandoned-netbsd-4:1.28.0.2
	netbsd-3-1:1.23.2.3.0.4
	netbsd-3-1-RELEASE:1.23.2.3
	netbsd-3-0-2-RELEASE:1.23.2.3
	netbsd-3-1-RC4:1.23.2.3
	netbsd-3-1-RC3:1.23.2.3
	netbsd-3-1-RC2:1.23.2.3
	netbsd-3-1-RC1:1.23.2.3
	netbsd-4:1.28.0.4
	netbsd-4-base:1.28
	netbsd-3-0-1-RELEASE:1.23.2.3
	netbsd-3-0:1.23.2.3.0.2
	netbsd-3-0-RELEASE:1.23.2.3
	netbsd-3-0-RC6:1.23.2.3
	netbsd-3-0-RC5:1.23.2.3
	netbsd-3-0-RC4:1.23.2.3
	netbsd-3-0-RC3:1.23.2.2
	netbsd-3-0-RC2:1.23.2.2
	netbsd-3-0-RC1:1.23.2.2
	netbsd-2-0-3-RELEASE:1.22
	netbsd-2-1:1.22.0.6
	netbsd-2-1-RELEASE:1.22
	netbsd-2-1-RC6:1.22
	netbsd-2-1-RC5:1.22
	netbsd-2-1-RC4:1.22
	netbsd-2-1-RC3:1.22
	netbsd-2-1-RC2:1.22
	netbsd-2-1-RC1:1.22
	netbsd-2-0-2-RELEASE:1.22
	netbsd-3:1.23.0.2
	netbsd-3-base:1.23
	netbsd-2-0-1-RELEASE:1.22
	netbsd-2:1.22.0.4
	netbsd-2-base:1.22
	netbsd-2-0-RELEASE:1.22
	netbsd-2-0-RC5:1.22
	netbsd-2-0-RC4:1.22
	netbsd-2-0-RC3:1.22
	netbsd-2-0-RC2:1.22
	netbsd-2-0-RC1:1.22
	netbsd-2-0:1.22.0.2
	netbsd-2-0-base:1.22
	netbsd-1-6-PATCH002-RELEASE:1.17.2.3
	netbsd-1-6-PATCH002:1.17.2.3
	netbsd-1-6-PATCH002-RC4:1.17.2.3
	netbsd-1-6-PATCH002-RC3:1.17.2.3
	netbsd-1-6-PATCH002-RC2:1.17.2.3
	netbsd-1-6-PATCH002-RC1:1.17.2.3
	netbsd-1-6-PATCH001:1.17.2.2
	netbsd-1-6-PATCH001-RELEASE:1.17.2.2
	netbsd-1-6-PATCH001-RC3:1.17.2.2
	netbsd-1-6-PATCH001-RC2:1.17.2.2
	netbsd-1-6-PATCH001-RC1:1.17.2.2
	fvdl_fs64_base:1.19
	netbsd-1-6-RELEASE:1.17.2.1
	netbsd-1-6-RC3:1.17.2.1
	netbsd-1-6-RC2:1.17.2.1
	netbsd-1-6-RC1:1.17.2.1
	pkgviews:1.18.0.2
	pkgviews-base:1.20
	netbsd-1-6:1.17.0.2
	netbsd-1-6-base:1.17
	netbsd-1-5-PATCH003:1.13.4.1
	netbsd-1-5-PATCH002:1.13.4.1
	netbsd-1-5-PATCH001:1.13.4.1
	netbsd-1-5-RELEASE:1.13
	netbsd-1-5-BETA2:1.13
	netbsd-1-5-BETA:1.13
	netbsd-1-4-PATCH003:1.12.2.2
	netbsd-1-5-ALPHA2:1.13
	netbsd-1-5:1.13.0.4
	netbsd-1-5-base:1.13
	minoura-xpg4dl-base:1.13
	minoura-xpg4dl:1.13.0.2
	netbsd-1-4-PATCH002:1.12.2.1
	wrstuden-devbsize-19991221:1.12
	wrstuden-devbsize:1.12.0.6
	wrstuden-devbsize-base:1.12
	comdex-fall-1999:1.12.0.4
	comdex-fall-1999-base:1.12
	netbsd-1-4-PATCH001:1.12
	netbsd-1-4-RELEASE:1.12
	netbsd-1-4:1.12.0.2
	netbsd-1-4-base:1.12
	netbsd-1-3-PATCH003:1.5.2.2
	netbsd-1-3-PATCH003-CANDIDATE2:1.5.2.2
	netbsd-1-3-PATCH003-CANDIDATE1:1.5.2.2
	netbsd-1-3-PATCH003-CANDIDATE0:1.5.2.2
	netbsd-1-3-PATCH002:1.5
	netbsd-1-3-PATCH001:1.5
	netbsd-1-3-RELEASE:1.5
	netbsd-1-3-BETA:1.5
	netbsd-1-3:1.5.0.2
	netbsd-1-3-base:1.5
	FreeBSD-current-05-Jun-1997:1.1.1.2
	FREEBSD:1.1.1;
locks; strict;
comment	@# @;


1.35
date	2008.10.07.16.06.13;	author joerg;	state dead;
branches;
next	1.34;

1.34
date	2008.05.03.14.48.32;	author lukem;	state Exp;
branches;
next	1.33;

1.33
date	2008.02.22.16.20.53;	author joerg;	state Exp;
branches
	1.33.2.1;
next	1.32;

1.32
date	2007.12.24.00.04.45;	author joerg;	state Exp;
branches
	1.32.2.1;
next	1.31;

1.31
date	2007.08.14.23.01.05;	author joerg;	state Exp;
branches
	1.31.2.1;
next	1.30;

1.30
date	2007.08.03.14.04.16;	author joerg;	state Exp;
branches
	1.30.2.1;
next	1.29;

1.29
date	2007.07.16.19.33.11;	author joerg;	state Exp;
branches;
next	1.28;

1.28
date	2006.05.11.23.16.30;	author mrg;	state Exp;
branches;
next	1.27;

1.27
date	2006.04.24.13.36.23;	author dillo;	state Exp;
branches;
next	1.26;

1.26
date	2005.11.23.04.59.14;	author ben;	state Exp;
branches;
next	1.25;

1.25
date	2005.11.03.21.59.55;	author dillo;	state Exp;
branches;
next	1.24;

1.24
date	2005.11.03.21.16.41;	author dillo;	state Exp;
branches;
next	1.23;

1.23
date	2004.05.23.02.24.52;	author lukem;	state Exp;
branches
	1.23.2.1;
next	1.22;

1.22
date	2003.09.23.14.23.53;	author wiz;	state Exp;
branches;
next	1.21;

1.21
date	2003.09.02.07.34.59;	author jlam;	state Exp;
branches;
next	1.20;

1.20
date	2003.08.24.21.10.47;	author tron;	state Exp;
branches;
next	1.19;

1.19
date	2002.09.18.13.31.55;	author lukem;	state Exp;
branches;
next	1.18;

1.18
date	2002.07.19.19.04.38;	author yamt;	state Exp;
branches
	1.18.2.1;
next	1.17;

1.17
date	2001.12.12.01.48.54;	author tv;	state Exp;
branches
	1.17.2.1;
next	1.16;

1.16
date	2001.03.05.18.24.58;	author wiz;	state Exp;
branches;
next	1.15;

1.15
date	2001.03.05.16.53.14;	author wiz;	state Exp;
branches;
next	1.14;

1.14
date	2000.10.09.17.03.20;	author hubertf;	state Exp;
branches;
next	1.13;

1.13
date	2000.01.19.23.28.32;	author hubertf;	state Exp;
branches
	1.13.4.1;
next	1.12;

1.12
date	99.03.22.05.02.41;	author hubertf;	state Exp;
branches
	1.12.2.1;
next	1.11;

1.11
date	99.03.13.23.22.44;	author lukem;	state Exp;
branches;
next	1.10;

1.10
date	99.02.13.17.46.20;	author hubertf;	state Exp;
branches;
next	1.9;

1.9
date	99.02.13.02.55.00;	author lukem;	state Exp;
branches;
next	1.8;

1.8
date	99.01.19.17.02.01;	author hubertf;	state Exp;
branches;
next	1.7;

1.7
date	98.10.08.12.15.24;	author agc;	state Exp;
branches;
next	1.6;

1.6
date	98.07.09.16.47.26;	author hubertf;	state Exp;
branches;
next	1.5;

1.5
date	97.10.17.14.54.24;	author lukem;	state Exp;
branches
	1.5.2.1;
next	1.4;

1.4
date	97.06.05.20.43.28;	author thorpej;	state Exp;
branches;
next	1.3;

1.3
date	97.06.05.14.25.52;	author agc;	state Exp;
branches;
next	1.2;

1.2
date	97.06.05.12.59.43;	author agc;	state Exp;
branches;
next	1.1;

1.1
date	97.06.05.08.54.24;	author agc;	state Exp;
branches
	1.1.1.1;
next	;

1.33.2.1
date	2008.05.18.12.36.22;	author yamt;	state Exp;
branches;
next	;

1.32.2.1
date	2008.03.24.07.16.36;	author keiichi;	state Exp;
branches;
next	;

1.31.2.1
date	2008.01.09.02.02.14;	author matt;	state Exp;
branches;
next	1.31.2.2;

1.31.2.2
date	2008.03.23.00.50.07;	author matt;	state Exp;
branches;
next	;

1.30.2.1
date	2007.08.03.14.04.16;	author joerg;	state dead;
branches;
next	1.30.2.2;

1.30.2.2
date	2007.08.03.14.04.17;	author joerg;	state Exp;
branches;
next	;

1.23.2.1
date	2005.11.06.13.40.51;	author tron;	state Exp;
branches;
next	1.23.2.2;

1.23.2.2
date	2005.11.06.13.41.32;	author tron;	state Exp;
branches;
next	1.23.2.3;

1.23.2.3
date	2005.11.27.15.46.04;	author riz;	state Exp;
branches;
next	;

1.18.2.1
date	2003.07.13.09.45.26;	author jlam;	state Exp;
branches;
next	1.18.2.2;

1.18.2.2
date	2003.08.26.22.32.13;	author jlam;	state Exp;
branches;
next	;

1.17.2.1
date	2002.07.21.04.42.13;	author lukem;	state Exp;
branches;
next	1.17.2.2;

1.17.2.2
date	2003.02.08.07.51.39;	author jmc;	state Exp;
branches;
next	1.17.2.3;

1.17.2.3
date	2003.09.21.10.32.47;	author tron;	state Exp;
branches;
next	;

1.13.4.1
date	2001.03.20.18.10.13;	author he;	state Exp;
branches;
next	1.13.4.2;

1.13.4.2
date	2003.03.15.20.13.03;	author he;	state Exp;
branches;
next	;

1.12.2.1
date	2000.02.01.23.16.40;	author he;	state Exp;
branches;
next	1.12.2.2;

1.12.2.2
date	2000.10.12.21.26.17;	author he;	state Exp;
branches;
next	;

1.5.2.1
date	98.08.29.04.14.42;	author mellon;	state Exp;
branches;
next	1.5.2.2;

1.5.2.2
date	98.11.06.20.41.18;	author cgd;	state Exp;
branches;
next	;

1.1.1.1
date	97.06.05.08.54.24;	author agc;	state Exp;
branches;
next	1.1.1.2;

1.1.1.2
date	97.06.05.09.11.59;	author agc;	state Exp;
branches;
next	;


desc
@@


1.35
log
@Finish moving pkg_install to src/external/bsd/pkg_install.
@
text
@# $NetBSD: Makefile,v 1.34 2008/05/03 14:48:32 lukem Exp $
# Original from FreeBSD, no rcs id.

LIBISPRIVATE=	yes

LIB=		install
SRCS=		automatic.c conflicts.c decompress.c dewey.c \
		fexec.c file.c ftpio.c global.c iterate.c lpkg.c \
		opattern.c path.c pexec.c pen.c pkgdb.c plist.c \
		str.c version.c var.c vulnerabilities-file.o
MAN=		pkg_summary.5

CPPFLAGS+=	-DNETBSD

version.o: version.h version.c

.include <bsd.init.mk>

.PATH:	${DIST}/lib

CPPFLAGS+=	-DNETBSD
COPTS.plist.c+=	-Wno-pointer-sign

.include <bsd.lib.mk>
@


1.34
log
@Rename MKPRIVATELIB to LIBISPRIVATE, to make it clearer that this is
a variable that is used by in-tree Makefiles to control behaviour.
(MKsomevar variables are generally intended to be controlled by the end-user)
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.33 2008/02/22 16:20:53 joerg Exp $
@


1.33
log
@Update for pkg_install-20080222 and sort sources.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.32 2007/12/24 00:04:45 joerg Exp $
d4 1
a4 1
MKPRIVATELIB=	yes
@


1.33.2.1
log
@sync with head.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.33 2008/02/22 16:20:53 joerg Exp $
d4 1
a4 1
LIBISPRIVATE=	yes
@


1.32
log
@Catch up with pkg_install-20071224.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.31 2007/08/14 23:01:05 joerg Exp $
d7 4
a10 3
SRCS=		automatic.c conflicts.c file.c ftpio.c global.c lpkg.c pen.c \
		pkgdb.c plist.c str.c version.c path.c fexec.c var.c \
		dewey.c pexec.c opattern.c iterate.c
d13 2
d21 1
@


1.32.2.1
log
@sync with head.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.33 2008/02/22 16:20:53 joerg Exp $
d7 3
a9 4
SRCS=		automatic.c conflicts.c decompress.c dewey.c \
		fexec.c file.c ftpio.c global.c iterate.c lpkg.c \
		opattern.c path.c pexec.c pen.c pkgdb.c plist.c \
		str.c version.c var.c vulnerabilities-file.o
a11 2
CPPFLAGS+=	-DNETBSD

a17 1
CPPFLAGS+=	-DNETBSD
@


1.31
log
@Catch up with pkg_install-20070814.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.30 2007/08/03 14:04:16 joerg Exp $
d7 1
a7 1
SRCS=		automatic.c file.c ftpio.c global.c lpkg.c pen.c \
@


1.31.2.1
log
@sync with HEAD
@
text
@d1 1
a1 1
# $NetBSD$
d7 1
a7 1
SRCS=		automatic.c conflicts.c file.c ftpio.c global.c lpkg.c pen.c \
@


1.31.2.2
log
@sync with HEAD
@
text
@d1 1
a1 1
# Makefile,v 1.31.2.1 2008/01/09 02:02:14 matt Exp
d7 3
a9 4
SRCS=		automatic.c conflicts.c decompress.c dewey.c \
		fexec.c file.c ftpio.c global.c iterate.c lpkg.c \
		opattern.c path.c pexec.c pen.c pkgdb.c plist.c \
		str.c version.c var.c vulnerabilities-file.o
a11 2
CPPFLAGS+=	-DNETBSD

a17 1
CPPFLAGS+=	-DNETBSD
@


1.30
log
@Update reach-over code for pkg_install-20070802.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.29 2007/07/16 19:33:11 joerg Exp $
d9 1
a9 1
		dewey.c pexec.c opattern.c
@


1.30.2.1
log
@file Makefile was added on branch matt-mips64 on 2007-08-03 14:04:17 +0000
@
text
@d1 20
@


1.30.2.2
log
@Update reach-over code for pkg_install-20070802.
@
text
@a0 20
# $NetBSD: Makefile,v 1.30 2007/08/03 14:04:16 joerg Exp $
# Original from FreeBSD, no rcs id.

MKPRIVATELIB=	yes

LIB=		install
SRCS=		automatic.c file.c ftpio.c global.c lpkg.c pen.c \
		pkgdb.c plist.c str.c version.c path.c fexec.c var.c \
		dewey.c pexec.c opattern.c
MAN=		pkg_summary.5

version.o: version.h version.c

.include <bsd.init.mk>

.PATH:	${DIST}/lib

COPTS.plist.c+=	-Wno-pointer-sign

.include <bsd.lib.mk>
@


1.29
log
@Switch to src/dist as primary src location of pkg_install.
Adjust the Makefiles to be reachover Makefiles and remove
some unnecessary warning exceptions.

audit-packages.conf is stored redundantly in src/etc, not changed yet.
pkgsrc.7 is also kept in share/man/man7.

Add a comment in lib/nbcompat.h to make the file non-empty.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.28 2006/05/11 23:16:30 mrg Exp $
d9 1
a9 1
		dewey.c pexec.c
@


1.28
log
@sprinkle some -fno-strict-aliasing and -Wno-pointer-sign with GCC4.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.27 2006/04/24 13:36:23 dillo Exp $
d14 6
a20 6

.if ${HAVE_GCC} == 4
.for f in file ftpio plist
COPTS.${f}.c+=	-Wno-pointer-sign
.endfor
.endif
@


1.27
log
@Add support for creating summary file containing all information
about a package repository needed by package managing software.
This allows better use of remote binary package repositories.

Discussed on tech-pkg.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.26 2005/11/23 04:59:14 ben Exp $
d15 6
@


1.26
log
@Reduce the use of the system() function in pkg_install to avoid quoting
problems.  Instead, use exec*() functions.

Replace PUSHOUT() macro and string buffers with a function that
operates on data structures.

If it is necessary to copy files into place from staging area, then use
pax to copy them.

Add functions in pexec.c to create a pipe for sending data to a child
process.  Replace pipe code in create/perform.c with these functions.
Use these functions instead of command-line arguments when copying files
into place from staging area.

Three system() references remain: @@exec, @@unexec, and vsystem().
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.25 2005/11/03 21:59:55 dillo Exp $
d10 1
@


1.25
log
@Split dewey compare functions into their own file dewey.c so they
can be used in a forthcoming Perl module.

Joint work with Thomas Klausner.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.24 2005/11/03 21:16:41 dillo Exp $
d9 1
a9 1
		dewey.c
@


1.24
log
@Implement framework to store variable=value pairs about an installed package.
Use this in pkg_add to mark installed dependencies as automatically installed.

pkg_add: new flag -A: marks package as automatically installed.
pkg_admin: new commands set and unset to modify variable pairs for
	   installed packages.
pkg_info: report these variable pairs with -Q/-B.
	  new flag -u: report only manually installed packages (not
	  installed with pkg_add -A).
	  Error out if -a/-u and a package name is specified.

Joint work with Thomas Klausner.

As discussed on tech-pkg.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.23 2004/05/23 02:24:52 lukem Exp $
d8 2
a9 1
		pkgdb.c plist.c str.c version.c path.c fexec.c var.c
@


1.23
log
@Use MKPRIVATELIB=yes instead of providing an empty libinstall:: target and
setting NOLINT, NOPIC, NOPROFILE (etc)
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.22 2003/09/23 14:23:53 wiz Exp $
d7 2
a8 2
SRCS=		file.c ftpio.c global.c lpkg.c pen.c pkgdb.c \
		plist.c str.c version.c path.c fexec.c
@


1.23.2.1
log
@Pull up following revision(s) (requested by wiz in ticket #938):
	usr.sbin/pkg_install/lib/lib.h: revision 1.77
	usr.sbin/pkg_install/info/show.c: revision 1.32
	usr.sbin/pkg_install/info/main.c: revision 1.46
	usr.sbin/pkg_install/lib/var.c: revision 1.1
	usr.sbin/pkg_install/lib/Makefile: revision 1.24
	usr.sbin/pkg_install/info/pkg_info.1: revision 1.50
	usr.sbin/pkg_install/admin/pkg_admin.1: revision 1.36
	usr.sbin/pkg_install/add/add.h: revision 1.8
	usr.sbin/pkg_install/add/pkg_add.1: revision 1.61
	usr.sbin/pkg_install/info/info.h: revision 1.21
	usr.sbin/pkg_install/lib/automatic.c: revision 1.1
	usr.sbin/pkg_install/info/perform.c: revision 1.63
	usr.sbin/pkg_install/add/perform.c: revision 1.112
	usr.sbin/pkg_install/admin/main.c: revision 1.49
	usr.sbin/pkg_install/lib/version.h: revision 1.70
	usr.sbin/pkg_install/add/main.c: revision 1.35
Implement framework to store variable=value pairs about an installed package.
Use this in pkg_add to mark installed dependencies as automatically installed.
pkg_add: new flag -A: marks package as automatically installed.
pkg_admin: new commands set and unset to modify variable pairs for
	   installed packages.
pkg_info: report these variable pairs with -Q/-B.
	  new flag -u: report only manually installed packages (not
	  installed with pkg_add -A).
	  Error out if -a/-u and a package name is specified.
Joint work with Thomas Klausner.
As discussed on tech-pkg.
@
text
@d1 1
a1 1
# $NetBSD$
d7 2
a8 2
SRCS=		automatic.c file.c ftpio.c global.c lpkg.c pen.c \
		pkgdb.c plist.c str.c version.c path.c fexec.c var.c
@


1.23.2.2
log
@Pull up following revision(s) (requested by wiz in ticket #938):
	usr.sbin/pkg_install/lib/Makefile: revision 1.25
	usr.sbin/pkg_install/lib/dewey.c: revision 1.1
	usr.sbin/pkg_install/lib/dewey.h: revision 1.1
	usr.sbin/pkg_install/lib/str.c: revision 1.55
Split dewey compare functions into their own file dewey.c so they
can be used in a forthcoming Perl module.
Joint work with Thomas Klausner.
@
text
@d8 1
a8 2
		pkgdb.c plist.c str.c version.c path.c fexec.c var.c \
		dewey.c
@


1.23.2.3
log
@Pull up following revision(s) (requested by ben in ticket #991):
	usr.sbin/pkg_install/lib/lib.h: revision 1.79
	usr.sbin/pkg_install/lib/Makefile: revision 1.26
	usr.sbin/pkg_install/create/perform.c: revision 1.43
	usr.sbin/pkg_install/add/add.h: revision 1.9
	usr.sbin/pkg_install/lib/fexec.c: revision 1.9
	usr.sbin/pkg_install/lib/file.c: revision 1.75
	usr.sbin/pkg_install/add/futil.c: revision 1.16
	usr.sbin/pkg_install/info/perform.c: revision 1.67
	usr.sbin/pkg_install/add/perform.c: revision 1.114
	usr.sbin/pkg_install/add/extract.c: revision 1.37
	usr.sbin/pkg_install/lib/pexec.c: revision 1.1
	usr.sbin/pkg_install/lib/version.h: revision 1.73
Reduce the use of the system() function in pkg_install to avoid quoting
problems.  Instead, use exec*() functions.
Replace PUSHOUT() macro and string buffers with a function that
operates on data structures.
If it is necessary to copy files into place from staging area, then use
pax to copy them.
Add functions in pexec.c to create a pipe for sending data to a child
process.  Replace pipe code in create/perform.c with these functions.
Use these functions instead of command-line arguments when copying files
into place from staging area.
Three system() references remain: @@exec, @@unexec, and vsystem().
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.23.2.2 2005/11/06 13:41:32 tron Exp $
d9 1
a9 1
		dewey.c pexec.c
@


1.22
log
@Remove last vsystem caller and vsystem() itself.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.21 2003/09/02 07:34:59 jlam Exp $
d4 1
a4 4
NOLINT=		# defined
NOMAN=		# defined
NOPIC=		# defined
NOPROFILE=	# defined
d6 2
a7 2
LIB+=		install
SRCS+=		file.c ftpio.c global.c lpkg.c pen.c pkgdb.c \
a9 3
# only needed during build - prevent installation of library
libinstall::

@


1.21
log
@Merge src/usr.sbin/pkg_install on the pkgviews branch into the HEAD by
running:

        cd src/usr.sbin/pkg_install
        cvs update -Pd -A
        cvs update -Pd -j pkgviews-base -j pkgviews
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.18.2.2 2003/08/26 22:32:13 jlam Exp $
d10 1
a10 1
SRCS+=		exec.c file.c ftpio.c global.c lpkg.c pen.c pkgdb.c \
@


1.20
log
@Add a new utility function which use vfork(2) and exec(2) directly instead
of system(3) to run an external program.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.19 2002/09/18 13:31:55 lukem Exp $
@


1.19
log
@minor makefile delint
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.18 2002/07/19 19:04:38 yamt Exp $
d11 1
a11 1
		plist.c str.c version.c path.c
@


1.18
log
@- remove handling of PKG_ADD_BASE.
- don't search current directory if PKG_PATH is set.
- don't prefer local directories.
- constify and cleanup.
discussed on tech-pkg.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.17 2001/12/12 01:48:54 tv Exp $
a3 4
LIB+=		install
SRCS+=		exec.c file.c ftpio.c global.c lpkg.c pen.c pkgdb.c \
		plist.c str.c version.c path.c

d8 4
@


1.18.2.1
log
@Merge from the HEAD into the pkgviews branch for src/usr.sbin/pkg_install.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.19 2002/09/18 13:31:55 lukem Exp $
d4 4
a11 4

LIB+=		install
SRCS+=		exec.c file.c ftpio.c global.c lpkg.c pen.c pkgdb.c \
		plist.c str.c version.c path.c
@


1.18.2.2
log
@Sync to HEAD.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.20 2003/08/24 21:10:47 tron Exp $
d11 1
a11 1
		plist.c str.c version.c path.c fexec.c
@


1.17
log
@MKfoo=no -> NOfoo
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.16 2001/03/05 18:24:58 wiz Exp $
d6 1
a6 1
		plist.c str.c version.c
@


1.17.2.1
log
@Pull up revision 1.18 (requested by yamt in ticket #530):
- remove handling of PKG_ADD_BASE.
- don't search current directory if PKG_PATH is set.
- don't prefer local directories.
- constify and cleanup.
discussed on tech-pkg.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.17 2001/12/12 01:48:54 tv Exp $
d6 1
a6 1
		plist.c str.c version.c path.c
@


1.17.2.2
log
@Pullup rev 1.19 (requested by abs in ticket #1141)
 Catchup to -current as of version 20030202.
@
text
@d1 1
a1 1
# $NetBSD$
d4 4
a11 4

LIB+=		install
SRCS+=		exec.c file.c ftpio.c global.c lpkg.c pen.c pkgdb.c \
		plist.c str.c version.c path.c
@


1.17.2.3
log
@Update the package tools to version 20030918 (requested by jlam
in ticket 1457).
@
text
@d11 1
a11 1
		plist.c str.c version.c path.c fexec.c
@


1.16
log
@version.o depends on version.h.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.15 2001/03/05 16:53:14 wiz Exp $
d8 4
a11 4
MKLINT=		no
MKMAN=		no
MKPIC=		no
MKPROFILE=	no
@


1.15
log
@Add -V option to all pkgtools, which reports the version of the pkgtools.
Document it. While there, fix the ordering of the option descriptions in
some man pages. Set version to 20010305.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.14 2000/10/09 17:03:20 hubertf Exp $
d15 2
@


1.14
log
@Allow SRCS, LDADD to be set on the command line, and still add the files.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.13 2000/01/19 23:28:32 hubertf Exp $
d6 1
a6 1
		plist.c str.c
@


1.13
log
@FTP wildcard depends code, initial commit.

Modulo some code cleanup, this gives NetBSD full wildcard support not
only in pkgsrc, but esp. for binary packages installed from local disk
and via FTP. For more information, see:

	http://www.feyrer.de/NetBSD/wildcards.html
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.12 1999/03/22 05:02:41 hubertf Exp $
d4 2
a5 2
LIB=		install
SRCS=		exec.c file.c ftpio.c global.c lpkg.c pen.c pkgdb.c \
@


1.13.4.1
log
@Pull up revisions 1.14-1.16 (requested by hubertf):
  Various changes / updates:
   o split out version information to separate file
   o various minor bugfixes and spelling fixes
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.13 2000/01/19 23:28:32 hubertf Exp $
d4 3
a6 3
LIB+=		install
SRCS+=		exec.c file.c ftpio.c global.c lpkg.c pen.c pkgdb.c \
		plist.c str.c version.c
a14 2

version.o: version.h version.c
@


1.13.4.2
log
@Pull up revisions 1.17-1.19 (requested by jmc in ticket #6):
  Upgrade pkg_install tools to 20030202 version.
@
text
@d1 1
a1 1
# $NetBSD$
a3 5
NOLINT=		# defined
NOMAN=		# defined
NOPIC=		# defined
NOPROFILE=	# defined

d6 6
a11 1
		plist.c str.c version.c path.c
@


1.12
log
@Replace static array of packages given to pkg_perform() with linear
list, using chopss' list functions (moved to lib/lpkg.c and
lib/lib.h).

Properly handle wildcards in arguments to "pkg_info", "pkg_delete" and
"pkg_admin check".

Some other minor cleanups.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.11 1999/03/13 23:22:44 lukem Exp $
d5 2
a6 1
SRCS=		exec.c file.c global.c lpkg.c pen.c pkgdb.c plist.c str.c
@


1.12.2.1
log
@Pull up revision 1.13 (requested by hubertf):
  Implement FTP wildcard depends, to give NetBSD full wildcard support
  not only in pkgsrc but also for binary packages installed from
  local disk or via FTP.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.12 1999/03/22 05:02:41 hubertf Exp $
d5 1
a5 2
SRCS=		exec.c file.c ftpio.c global.c lpkg.c pen.c pkgdb.c \
		plist.c str.c
@


1.12.2.2
log
@Pull up revision 1.14 (requested by fredb):
  Synchronize to version of pkg_install on trunk.
@
text
@d1 1
a1 1
# $NetBSD$
d4 2
a5 2
LIB+=		install
SRCS+=		exec.c file.c ftpio.c global.c lpkg.c pen.c pkgdb.c \
@


1.11
log
@set MKLINT=no. noted by NAKAJIMA Yoshihiro <nakayosh@@kcn.ne.jp>
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.10 1999/02/13 17:46:20 hubertf Exp $
d5 1
a5 1
SRCS=		exec.c file.c global.c pen.c pkgdb.c plist.c str.c
@


1.10
log
@there is no ftplib.3
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.9 1999/02/13 02:55:00 lukem Exp $
d7 1
d9 1
a10 1
MKPIC=		no
@


1.9
log
@convert from NOxxx= to MKxxx=no.
include <bsd.own.mk> if testing a MKxxx variable.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.8 1999/01/19 17:02:01 hubertf Exp $
a6 1
# Don't need to install ftpio.3
@


1.8
log
@Add code for pkgdb.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.7 1998/10/08 12:15:24 agc Exp $
d8 3
a10 3
NOMAN=		yes
NOPROFILE=	yes
NOPIC=		yes
@


1.7
log
@Get rid of some lint.
No functional changes.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.6 1998/07/09 16:47:26 hubertf Exp $
d5 1
a5 1
SRCS=		exec.c file.c global.c pen.c plist.c str.c
@


1.6
log
@Replace FreeBSD's libftpio with our calls to our great ftp client.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.5 1997/10/17 14:54:24 lukem Exp $
d5 1
a5 1
SRCS=		exec.c file.c global.c msg.c pen.c plist.c str.c
a8 1

a13 14

ftperr.c:	ftp.errors
	@@echo '#include <stdio.h>' > ${.TARGET}
	@@echo '#include "ftpio.h"' >> ${.TARGET}
	@@echo "struct ftperr ftpErrList[] = {" \ >>  ${.TARGET}
	@@cat ${.ALLSRC} \
	  | grep -v ^# \
	  | sort \
	  | while read NUM STRING; do \
	    echo "  { $${NUM}, \"$${STRING}\" },"; \
	  done >> ${.TARGET}
	@@echo "};" >> ${.TARGET}
	@@echo -n "int const ftpErrListLength = " >> ${.TARGET}
	@@echo "sizeof(ftpErrList) / sizeof(*ftpErrList);" >> ${.TARGET}
@


1.5
log
@WARNSify, cleanup Makefiles
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.4 1997/06/05 20:43:28 thorpej Exp $
a5 2
SRCS+=		ftpio.c ftperr.c 
CLEANFILES+=	ftperr.c
@


1.5.2.1
log
@Pull up to 1.6 (agc)
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.6 1998/07/09 16:47:26 hubertf Exp $
d6 2
@


1.5.2.2
log
@pull up rev(s) 1.6-1.7 from trunk.  (agc)
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.7 1998/10/08 12:15:24 agc Exp $
d5 1
a5 1
SRCS=		exec.c file.c global.c pen.c plist.c str.c
d9 1
d15 14
@


1.4
log
@NetBSD Makefiles use "MAN=foo.3" not "MAN3=foo.0".  However, since we
do not install this library, do not even bother with the ftpio.3 manpage.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.3 1997/06/05 14:25:52 agc Exp $
a4 1
CFLAGS+=	-I${.CURDIR} ${DEBUG}
@


1.3
log
@Don't install libinstall.a (from Bernd Ernesti)
pkg_delete manual page mods got lost in previous commit.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.2 1997/06/05 12:59:43 agc Exp $
a7 1
MAN3=		ftpio.3
d9 3
@


1.2
log
@Add NetBSD Ids
Un-munge pkg_install/lib/Makefile which I'd overwritten on libftpio commit.
Make it compile on NetBSD.
Install pkg_* programs in /usr/sbin

XXX agc - Still to do XXX
Cleanup call to mktemp (for a tmp dir) in pkg_install/lib/pen.c
Create ftperr.c in the correct directory.
@
text
@d1 1
a1 1
# $NetBSD$
d13 3
@


1.1
log
@Initial revision
@
text
@d1 2
a2 5
LIB=	install
SRCS=	file.c msg.c plist.c str.c exec.c global.c pen.c
CFLAGS+= ${DEBUG}
NOPROFILE= yes
NOPIC=	yes
d4 23
a26 2
install:
	@@echo -n
@


1.1.1.1
log
@Initial import of FreeBSD packaging tool.
@
text
@@


1.1.1.2
log
@Initial import of FreeBSD libftpio.
Placed here (under pkg_install) to make it private to that tool.
@
text
@d1 5
a5 5
LIB=		ftpio
CFLAGS+=	-I${.CURDIR} -Wall
SRCS=		ftpio.c ftperr.c
MAN3=		ftpio.3
CLEANFILES+=	ftperr.c
d7 2
a8 20
SHLIB_MAJOR=    4
SHLIB_MINOR=	0

beforeinstall:
	${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/ftpio.h \
		${DESTDIR}/usr/include

ftperr.c:	ftp.errors
	@@echo '#include <stdio.h>' > ${.TARGET}
	@@echo '#include "ftpio.h"' >> ${.TARGET}
	@@echo "struct ftperr ftpErrList[] = {" \ >>  ${.TARGET}
	@@cat ${.ALLSRC} \
	  | grep -v ^# \
	  | sort \
	  | while read NUM STRING; do \
	    echo "  { $${NUM}, \"$${STRING}\" },"; \
	  done >> ${.TARGET}
	@@echo "};" >> ${.TARGET}
	@@echo -n "int const ftpErrListLength = " >> ${.TARGET}
	@@echo "sizeof(ftpErrList) / sizeof(*ftpErrList);" >> ${.TARGET}
@
