mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-27 05:10:36 +00:00
63157dad83
"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.
20 lines
496 B
Bash
20 lines
496 B
Bash
#!/bin/sh
|
|
# $FreeBSD$
|
|
|
|
# The RPM database directory
|
|
RPM_DATABASE_DIR=/var/lib/rpm
|
|
|
|
# Provide instructions for initialising the RPM database.
|
|
if [ "$2" = "POST-INSTALL" ]; then
|
|
if [ ! -d "${RPM_DATABASE_DIR}" ]; then
|
|
echo ""
|
|
echo "No RPM database found. If you wish to use RPM to install"
|
|
echo "RPM packages the you will need to initialise the database"
|
|
echo "with the commands:"
|
|
echo ""
|
|
echo " mkdir -p ${RPM_DATABASE_DIR}"
|
|
echo " ${PKG_PREFIX}/bin/rpm --initdb"
|
|
echo ""
|
|
fi
|
|
fi
|