Initial revision
authorewt <devnull@localhost>
Thu, 30 Jan 1997 19:57:47 +0000 (19:57 +0000)
committerewt <devnull@localhost>
Thu, 30 Jan 1997 19:57:47 +0000 (19:57 +0000)
CVS patchset: 1380
CVS date: 1997/01/30 19:57:47

rpmpopt [new file with mode: 0644]

diff --git a/rpmpopt b/rpmpopt
new file mode 100644 (file)
index 0000000..a517a16
--- /dev/null
+++ b/rpmpopt
@@ -0,0 +1,14 @@
+rpm alias provides --qf '[%{PROVIDES}\n]'
+
+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'
+
+rpm alias setperms -q --qf '[%{FILEMODES:octal} %{FILENAMES}\n]' \
+                  --pipe "sed 's/^.../chmod /' | sh"
+
+rpm alias setugids -q --qf \
+                  '[chown %{FILEUSERNAME}:%{FILEGROUPNAME} %{FILENAMES}\n]' \
+                  --pipe "sh"
+