head	1.32;
access;
symbols
	rpm-3_0_3:1.31.0.2
	rpm-3_0_2:1.27
	rpm-3_0:1.26.0.2
	r2-94:1.25
	r2-93:1.25
	r2-92:1.25
	r2-91:1.25
	r2-5-7:1.20.2.6
	r2-5-6:1.20.2.6
	jbj-pre-automake:1.25
	r2-5-5:1.20.2.6
	r2-5-4:1.20.2.5
	r2-5-3:1.20.2.2
	r2-90:1.25
	branch-r2-5:1.20.0.2
	r2-5-2:1.20
	r2-5-1:1.17
	r2-5:1.17
	r2-4-109:1.17
	r2-4-108:1.17
	r2-4-107:1.17
	r2-4-106:1.17
	r2-4-104:1.17
	r2-4-103:1.16
	r2-4-102:1.14
	r2-4-101:1.13
	r2-4-100:1.13
	r2-4-99:1.13
	r2-4-tree:1.13.0.4
	r-2-4-tree:1.13.0.2
	r2-4-12:1.13
	r2-3-12:1.4
	r2-3-11-patches:1.4.0.2
	r2-4-11:1.12
	r2-4-10:1.11
	r2-4-9:1.11
	r2-4-8:1.11
	r2-4-7:1.11
	r2-4-6:1.11
	r2-4-5:1.11
	r2-4-4:1.11
	r2-4-3:1.9
	r2-4-2:1.8
	r2-4-1:1.7
	r2-3-11:1.4
	r2-4:1.7
	2-3-11:1.4
	2-3-10:1.4
	2-3-9:1.3
	2-3-8:1.3
	2-3-7:1.2
	2-3-6:1.2
	2-3-5:1.1
	2-3-4:1.1;
locks; strict;
comment	@# @;


1.32
date	2000.02.22.03.09.53;	author jbj;	state dead;
branches;
next	1.31;

1.31
date	99.09.24.01.50.04;	author jbj;	state Exp;
branches;
next	1.30;

1.30
date	99.09.22.18.03.19;	author jbj;	state Exp;
branches;
next	1.29;

1.29
date	99.09.19.00.29.44;	author jbj;	state Exp;
branches;
next	1.28;

1.28
date	99.07.13.21.37.57;	author jbj;	state Exp;
branches;
next	1.27;

1.27
date	99.06.18.14.33.16;	author jbj;	state Exp;
branches;
next	1.26;

1.26
date	99.04.12.16.09.19;	author ewt;	state Exp;
branches;
next	1.25;

1.25
date	98.09.28.22.03.32;	author jbj;	state Exp;
branches;
next	1.24;

1.24
date	98.09.24.19.13.09;	author jbj;	state Exp;
branches;
next	1.23;

1.23
date	98.09.19.16.36.23;	author jbj;	state Exp;
branches;
next	1.22;

1.22
date	98.09.01.13.19.25;	author jbj;	state Exp;
branches;
next	1.21;

1.21
date	98.08.11.18.24.52;	author jbj;	state Exp;
branches;
next	1.20;

1.20
date	98.06.30.18.50.47;	author ewt;	state Exp;
branches
	1.20.2.1;
next	1.19;

1.19
date	98.06.12.19.50.44;	author msf;	state Exp;
branches;
next	1.18;

1.18
date	98.06.04.17.03.29;	author marc;	state Exp;
branches;
next	1.17;

1.17
date	98.03.27.16.46.40;	author ewt;	state Exp;
branches;
next	1.16;

1.16
date	98.02.17.17.47.47;	author ewt;	state Exp;
branches;
next	1.15;

1.15
date	98.02.17.16.46.13;	author ewt;	state Exp;
branches;
next	1.14;

1.14
date	98.02.08.17.30.10;	author ewt;	state Exp;
branches;
next	1.13;

1.13
date	98.01.07.15.25.46;	author ewt;	state Exp;
branches;
next	1.12;

1.12
date	97.12.30.19.25.51;	author ewt;	state Exp;
branches;
next	1.11;

1.11
date	97.07.23.19.11.11;	author ewt;	state Exp;
branches;
next	1.10;

1.10
date	97.07.22.16.29.10;	author ewt;	state Exp;
branches;
next	1.9;

1.9
date	97.07.07.22.22.44;	author ewt;	state Exp;
branches;
next	1.8;

1.8
date	97.06.16.18.21.38;	author ewt;	state Exp;
branches;
next	1.7;

1.7
date	97.05.20.16.21.17;	author ewt;	state Exp;
branches;
next	1.6;

1.6
date	97.05.20.16.19.45;	author ewt;	state Exp;
branches;
next	1.5;

1.5
date	97.05.15.14.40.21;	author ewt;	state Exp;
branches;
next	1.4;

1.4
date	97.04.16.20.38.38;	author ewt;	state Exp;
branches;
next	1.3;

1.3
date	97.03.04.02.23.51;	author ewt;	state Exp;
branches;
next	1.2;

1.2
date	97.02.17.20.20.04;	author ewt;	state Exp;
branches;
next	1.1;

1.1
date	97.01.30.19.57.47;	author ewt;	state Exp;
branches;
next	;

1.20.2.1
date	98.07.30.14.18.08;	author ewt;	state Exp;
branches;
next	1.20.2.2;

1.20.2.2
date	98.08.06.14.32.17;	author ewt;	state Exp;
branches;
next	1.20.2.3;

1.20.2.3
date	98.09.01.13.12.22;	author jbj;	state Exp;
branches;
next	1.20.2.4;

1.20.2.4
date	98.09.19.16.35.09;	author jbj;	state Exp;
branches;
next	1.20.2.5;

1.20.2.5
date	98.09.24.19.11.38;	author jbj;	state Exp;
branches;
next	1.20.2.6;

1.20.2.6
date	98.09.28.21.42.42;	author jbj;	state Exp;
branches;
next	;


desc
@@


1.32
log
@macro expansion (and absolute path) in %files -f arg (#9508,#9091).
@
text
@#
# This file *should not be modified*. Local customizations
# belong in /etc/popt, not here. This file will be replaced
# whenever a new version of RPM is installed.

rpm alias --scripts --qf '\
%|PREIN?{preinstall script\
%|PREINPROG?{ (through %{PREINPROG})}|:\n%{PREIN}\n}:\
{%|PREINPROG?{preinstall program: %{PREINPROG}\n}|}|\
\
%|POSTIN?{postinstall script\
%|POSTINPROG?{ (through %{POSTINPROG})}|:\n%{POSTIN}\n}:\
{%|POSTINPROG?{postinstall program: %{POSTINPROG}\n}|}|\
\
%|PREUN?{preuninstall script\
%|PREUNPROG?{ (through %{PREUNPROG})}|:\n%{PREUN}\n}:\
{%|PREUNPROG?{preuninstall program: %{PREUNPROG}\n}|}|\
\
%|POSTUN?{postuninstall script\
%|POSTUNPROG?{ (through %{POSTUNPROG})}|:\n%{POSTUN}\n}:\
{%|POSTUNPROG?{postuninstall program: %{POSTUNPROG}\n}|}|\
\
%|VERIFYSCRIPT?{verify script:\n%{VERIFYSCRIPT}\n}|\
'

rpm alias --setperms -q --qf '[\[ -L %{FILENAMES:shescape} \] || chmod %7.7{FILEMODES:octal} %{FILENAMES:shescape}\n]' \
		   --pipe "grep -v \(none\) | sed 's/chmod .../chmod /' | sh"

rpm alias --setugids -q --qf \
        '[ch %{FILEUSERNAME:shescape} %{FILEGROUPNAME:shescape} %{FILENAMES:shescape}\n]' \
        --pipe "(echo 'ch() { chown -- \"$1\" \"$3\";chgrp -- \"$2\" \"$3\"; }';grep -v \(none\))|sh"


rpm alias --conflicts	--qf \
  "[%{CONFLICTNAME} %{CONFLICTFLAGS:depflags} %{CONFLICTVERSION}\n]"
rpm alias --obsoletes	--qf \
  "[%{OBSOLETENAME} %|OBSOLETEFLAGS?{%{OBSOLETEFLAGS:depflags} %{OBSOLETEVERSION}}:{}|\n]"
rpm alias --provides	--qf \
  "[%{PROVIDENAME} %|PROVIDEFLAGS?{%{PROVIDEFLAGS:depflags} %{PROVIDEVERSION}}:{}|\n]"

# XXX prereq output is part of requires for query
#rpm alias --prereq	--qf '[%{PREREQ}:depflags\n]'

rpm alias --requires	--qf \
  "[%{REQUIRENAME} %{REQUIREFLAGS:depflags} %{REQUIREVERSION}\n]"
rpm alias -R --requires

rpm alias --info --qf 'Name        : %-27{NAME}  Relocations: %|PREFIXES?{[%{PREFIXES} ]}:{(not relocateable)}|\n\
Version     : %-27{VERSION}       Vendor: %{VENDOR}\n\
Release     : %-27{RELEASE}   Build Date: %{BUILDTIME:date}\n\
Install date: %|INSTALLTIME?{%-27{INSTALLTIME:date}}:{(not installed)         }|      Build Host: %{BUILDHOST}\n\
Group       : %-27{GROUP}   Source RPM: %{SOURCERPM}\n\
Size        : %-27{SIZE}%|LICENSE?{      License: %{LICENSE}}|\n\
%|PACKAGER?{Packager    : %{PACKAGER}\n}|\
%|URL?{URL         : %{URL}\n}|\
Summary     : %{SUMMARY}\n\
Description :\n%{DESCRIPTION}\n'

rpm alias --changelog --qf '[* %{CHANGELOGTIME:day} %{CHANGELOGNAME}\n\n%{CHANGELOGTEXT}\n\n]'

rpm alias --triggerscripts --qf '\
[trigger%{TRIGGERTYPE} script (through %{TRIGGERSCRIPTPROG}) -- %{TRIGGERCONDS}\n\
%{TRIGGERSCRIPTS}\n]'
rpm alias --triggers --triggerscripts

rpm alias --last --qf '%|INSTALLTIME?{%{INSTALLTIME}}:{000000000}| %{NAME}-%{VERSION}-%{RELEASE} %|INSTALLTIME?{%-27{INSTALLTIME:date}}:{(not installed)}|\n' \
	--pipe "sort -r -n | sed 's,^..........,,' | awk '{printf(\"%-35s %-3s %-3s %2s %-8s %-4s\n\", $1, $2, $3, $4, $5, $6)}' "

rpm alias --filesbypkg --qf '[%-25{=NAME} %{FILENAMES}\n]'
rpm exec --freshen freshen.sh
rpm alias -F --freshen

rpm alias --redhatprovides -q --define '_dbpath /usr/lib/rpmdb/%{_arch}-%{_vendor}-%{_os}/redhat' --whatprovides
rpm alias --redhatrequires -q --define '_dbpath /usr/lib/rpmdb/%{_arch}-%{_vendor}-%{_os}/redhat' --whatrequires
@


1.31
log
@Test for non-existence of provides/obsoletes tags (without versioning).
@
text
@@


1.30
log
@Add --redhatprovides and --redhatrequires to rpmpopt.
@
text
@d37 1
a37 1
  "[%{OBSOLETENAME} %{OBSOLETEFLAGS:depflags} %{OBSOLETEVERSION}\n]"
d39 1
a39 1
  "[%{PROVIDENAME} %{PROVIDEFLAGS:depflags} %{PROVIDEVERSION}\n]"
@


1.29
log
@do versioned provides/conflicts resolution correctly.
rpmpopt: display versioned provides/obsoletes.
revert to shared libbz2.so now that bzip2 is in base install.
@
text
@d72 3
@


1.28
log
@Perl bindings need
	#include <foo.h>
not
	#include "foo.h"
@
text
@d36 4
a39 3

rpm alias --obsoletes	--qf '[%{OBSOLETES}\n]'
rpm alias --provides	--qf '[%{PROVIDES}\n]'
d42 1
a42 1
#rpm alias --prereq	--qf '[%{PREREQ}\n]'
@


1.27
log
@Incorrect sense matched.
@
text
@a37 1
rpm alias --prereq	--qf '[%{PREREQ}\n]'
d39 3
@


1.26
log
@replaced distribution line in --info with relocations info
@
text
@a5 2
rpm alias --provides --qf '[%{PROVIDES}\n]'

d34 9
a42 2
rpm alias --requires --qf \
	    "[%{REQUIRENAME} %{REQUIREFLAGS:depflags} %{REQUIREVERSION}\n]"
@


1.25
log
@Sync with 2.5.4.
@
text
@d40 1
a40 1
rpm alias --info --qf 'Name        : %-27{NAME} Distribution: %{DISTRIBUTION}\n\
@


1.24
log
@add license field to rpmpopt -qi alias.
@
text
@d43 1
a43 1
Install date: %|INSTALLTIME?{%-27{INSTALLTIME:date}}:{(not installed)            }|      Build Host: %{BUILDHOST}\n\
@


1.23
log
@quote users/groups/filenames in --setugids.
@
text
@d45 1
a45 1
Size        : %{SIZE}\n\
@


1.22
log
@align "Build Host:" with other fields
@
text
@d33 1
a33 1
        --pipe "(echo 'ch() { chown $1 $3;chgrp $2 $3; }';grep -v \(none\))|sh"
@


1.21
log
@Sync with 2.5.2 branch patches.
cpio_gzip: dup the fd before doing gzdopen (Thanks Erik!)
 add --noLang to skip non-default languages.
@
text
@d43 1
a43 1
Install date: %|INSTALLTIME?{%-27{INSTALLTIME:date}}:{(not installed)            }|   Build Host: %{BUILDHOST}\n\
@


1.20
log
@1) made --triggers an alias for --triggerscripts
2) added --filesbypkg
@
text
@d56 1
a56 1
apm alias --triggers --triggerscripts
d62 2
@


1.20.2.1
log
@1) added scripts directory
2) made /usr/lib/rpm the default place for popt exec scripts
3) added --freshen to rpmpopt
@
text
@a61 3

rpm exec --freshen freshen.sh
rpm alias -F --freshen
@


1.20.2.2
log
@updated de.po (Karl Eichwalder)
do a better job of checking for a spec file in tarballs (Pavel Roskin)
fixed --triggers alias (Michael Andres)
@
text
@d56 1
a56 1
rpm alias --triggers --triggerscripts
@


1.20.2.3
log
@align "Build Host:" with other fields
@
text
@d43 1
a43 1
Install date: %|INSTALLTIME?{%-27{INSTALLTIME:date}}:{(not installed)            }|      Build Host: %{BUILDHOST}\n\
@


1.20.2.4
log
@quote users/groups/filenames in --setugids.
@
text
@d33 1
a33 1
        --pipe "(echo 'ch() { chown -- \"$1\" \"$3\";chgrp -- \"$2\" \"$3\"; }';grep -v \(none\))|sh"
@


1.20.2.5
log
@add license field to rpmpopt -qi alias.
@
text
@d45 1
a45 1
Size        : %-27{SIZE}%|LICENSE?{      License: %{LICENSE}}|\n\
@


1.20.2.6
log
@Begin rpm 2.5.5.
@
text
@d43 1
a43 1
Install date: %|INSTALLTIME?{%-27{INSTALLTIME:date}}:{(not installed)         }|      Build Host: %{BUILDHOST}\n\
@


1.19
log
@Enhanced the '--last' option to include release and version numbers
@
text
@d56 1
d60 2
@


1.18
log
@        - added --last alias
        - fix :depflags query format
@
text
@d57 2
a58 2
rpm alias --last --qf '%|INSTALLTIME?{%{INSTALLTIME}}:{000000000}| %-27{NAME} %|INSTALLTIME?{%-27{INSTALLTIME:date}}:{(not installed)}|\n' \
	--pipe "sort -r -n | sed 's,^..........,,'"
@


1.17
log
@added trigger support
@
text
@d56 3
@


1.16
log
@added comments mentioning that these files shouldn't be mucked with
@
text
@d43 1
a43 1
Install date: %|INSTALLTIME?{%-27{INSTALLTIME:date}}:{(not installed)            }|      Build Host: %{BUILDHOST}\n\
d52 4
@


1.15
log
@1) added autoconf for popt directory to make archive
2) version 2.4.103
@
text
@d1 5
@


1.14
log
@--setugids uses separate chown and chgrp commands
@
text
@d38 1
a38 1
Install date: %|INSTALLTIME?{%-27{INSTALLTIME:date}}:{(not installed)            }|   Build Host: %{BUILDHOST}\n\
@


1.13
log
@undid some --setugids problems -- I don't know where they came from though
@
text
@d27 3
a29 2
		   'chown %{FILEUSERNAME:shescape}:%{FILEGROUPNAME:shescape} %{FILENAMES:shescape}\n' \
		   --pipe "grep -v \(none\) | sh"
@


1.12
log
@made --setperms not follow symlinks
@
text
@d27 1
a27 1
		   '[chown %{FILEUSERNAME:shescape}:%{FILEGROUPNAME:shescape} %{FILENAMES:shescape}\n]' \
@


1.11
log
@tried to fix --setperms
@
text
@d23 2
a24 2
rpm alias --setperms -q --qf '[%7.7{FILEMODES:octal} %{FILENAMES:shescape}\n]' \
		   --pipe "grep -v \(none\) | sed 's/^.../chmod /' | sh"
@


1.10
log
@1) conditionally display url/packager tags
2) display "(not installed)" for the install time of packages w/ haven't
   been installed
@
text
@d23 1
a23 1
rpm alias --setperms -q --qf '[%{FILEMODES:octal} %{FILENAMES:shescape}\n]' \
@


1.9
log
@1) changed popt's ternary operator to work properly
2) popt doesn't take \ at the end of a line as a newline
3) fixed --scripts in rpmpopt to take advantage of #1
@
text
@d3 1
a3 1
rpm alias --s2 --qf '\
d37 1
a37 1
Install date: %-27{INSTALLTIME:date}   Build Host: %{BUILDHOST}\n\
d40 2
a41 2
Packager    : %{PACKAGER}\n\
URL         : %{URL}\n\
@


1.8
log
@added "day" format specified and --changelog
@
text
@d3 19
a21 8
rpm alias --scripts --qf 'preinstall script:\n%{RPMTAG_PREIN}\
postinstall script:\
%{RPMTAG_POSTIN}\
preuninstall script:\
%{RPMTAG_PREUN}\
postuninstall script: %{RPMTAG_POSTUN}\
verify script:\
%{VERIFYSCRIPT}\n'
d34 9
a42 9
rpm alias --info --qf 'Name        : %-27{NAME} Distribution: %{DISTRIBUTION}\
Version     : %-27{VERSION}       Vendor: %{VENDOR}\
Release     : %-27{RELEASE}   Build Date: %{BUILDTIME:date}\
Install date: %-27{INSTALLTIME:date}   Build Host: %{BUILDHOST}\
Group       : %-27{GROUP}   Source RPM: %{SOURCERPM}\
Size        : %{SIZE}\
Packager    : %{PACKAGER}\
URL         : %{URL}\
Summary     : %{SUMMARY}\
@


1.7
log
@remove (none) entries during --setperms, --setugids
@
text
@d33 2
@


1.6
log
@Use :shescape for --setugids, --setperms
@
text
@d13 1
a13 1
		   --pipe "sed 's/^.../chmod /' | sh"
d17 1
a17 1
		   --pipe "sh"
@


1.5
log
@added packager and url to default -qi output
@
text
@d12 1
a12 1
rpm alias --setperms -q --qf '[%{FILEMODES:octal} %{FILENAMES}\n]' \
d16 1
a16 1
		   '[chown %{FILEUSERNAME}:%{FILEGROUPNAME} %{FILENAMES}\n]' \
@


1.4
log
@fixed newlines
@
text
@d29 2
@


1.3
log
@--requires shouldn't imply -q
@
text
@d3 8
a10 4
rpm alias --scripts --qf 'preinstall script:\n%{RPMTAG_PREIN}\npostinstall \
script:\n%{RPMTAG_POSTIN}\npreuninstall \
script:\n%{RPMTAG_PREUN}\npostuninstall \
script:\n%{RPMTAG_POSTUN}\nverify script:\n%{VERIFYSCRIPT}\n'
@


1.2
log
@migrated to new format (with --), added --requires, -R, and --info
@
text
@d15 1
a15 1
rpm alias --requires -q --qf \
@


1.1
log
@Initial revision
@
text
@d1 1
a1 1
rpm alias provides --qf '[%{PROVIDES}\n]'
d3 1
a3 1
rpm alias scripts --qf 'preinstall script:\n%{RPMTAG_PREIN}\npostinstall \
d8 1
a8 1
rpm alias setperms -q --qf '[%{FILEMODES:octal} %{FILENAMES}\n]' \
d11 1
a11 1
rpm alias setugids -q --qf \
d15 12
@
