aboutsummaryrefslogtreecommitdiff
path: root/archivers/rpm4/pkg-deinstall
diff options
context:
space:
mode:
authorGreg Lewis <glewis@FreeBSD.org>2004-03-05 02:26:10 +0000
committerGreg Lewis <glewis@FreeBSD.org>2004-03-05 02:26:10 +0000
commit63157dad83243393adff5843084d51e9b03574ab (patch)
tree89a8a823f2ae4f14430507b26c99df9d0ca601ad /archivers/rpm4/pkg-deinstall
parent6a093bc2328d1012ddb409cc8be081631c8438eb (diff)
downloadports-63157dad83243393adff5843084d51e9b03574ab.tar.gz
ports-63157dad83243393adff5843084d51e9b03574ab.zip
Add a port of rpm 4.0.4:
"The Red Hat Package Manager (RPM) is a powerful command line driven package management system capable of installing, uninstalling, verifying, querying, and updating computer software packages. Each software package consists of an archive of files along with information about the package like its version, a description, and the like. There is also a related API ("Application Program Interface"), permitting advanced developers to bypass 'shelling out' to a command line, and to manage such transactions from within a native coding language. WWW: http://www.rpm.org/" 4.0.4 was chosen because: . The only newer version available as a tarball (4.1) is buggy. . This version closely corresponds to our current default linux_base. . This version uses the version of popt we have in the tree (unfortunately it uses an earlier version of beecrypt). . This version is a lot less work to port than 4.2 (elfutils). However, I am considering how best this port could be updated to a more recent version (e.g. 4.1.1 or 4.2, probably the latter). This wasn't an update to the current rpm port as I haven't done enough testing of other ports that use rpm with it. Tested on 4.9/i386, 5.2/sparc64 and 5.2/alpha.
Notes
Notes: svn path=/head/; revision=102963
Diffstat (limited to 'archivers/rpm4/pkg-deinstall')
-rw-r--r--archivers/rpm4/pkg-deinstall17
1 files changed, 17 insertions, 0 deletions
diff --git a/archivers/rpm4/pkg-deinstall b/archivers/rpm4/pkg-deinstall
new file mode 100644
index 000000000000..fd2d7200dbd6
--- /dev/null
+++ b/archivers/rpm4/pkg-deinstall
@@ -0,0 +1,17 @@
+#!/bin/sh
+# $FreeBSD$
+
+# The RPM database directory
+RPM_DATABASE_DIR=/var/lib/rpm
+
+# Provide instructions for removing the RPM database.
+if [ "$2" = "POST-DEINSTALL" ]; then
+ if [ -d "${RPM_DATABASE_DIR}" ]; then
+ echo ""
+ echo "If you are removing RPM permanently you can remove the"
+ echo "RPM database with the command:"
+ echo ""
+ echo " rm -rf ${RPM_DATABASE_DIR}"
+ echo ""
+ fi
+fi