From 1a7910c33465b476d3c41c913d1231e547163689 Mon Sep 17 00:00:00 2001 From: zuntum Date: Thu, 1 Nov 2001 00:57:41 +0000 Subject: Move pkg/ files into package's toplevel directory --- misc/rpm/DEINSTALL | 39 +++++++++++++++++++++++++++++++++++++++ misc/rpm/DESCR | 4 ++++ misc/rpm/INSTALL | 32 ++++++++++++++++++++++++++++++++ misc/rpm/PLIST | 28 ++++++++++++++++++++++++++++ misc/rpm/pkg/DEINSTALL | 39 --------------------------------------- misc/rpm/pkg/DESCR | 4 ---- misc/rpm/pkg/INSTALL | 32 -------------------------------- misc/rpm/pkg/PLIST | 28 ---------------------------- 8 files changed, 103 insertions(+), 103 deletions(-) create mode 100644 misc/rpm/DEINSTALL create mode 100644 misc/rpm/DESCR create mode 100755 misc/rpm/INSTALL create mode 100644 misc/rpm/PLIST delete mode 100644 misc/rpm/pkg/DEINSTALL delete mode 100644 misc/rpm/pkg/DESCR delete mode 100755 misc/rpm/pkg/INSTALL delete mode 100644 misc/rpm/pkg/PLIST (limited to 'misc/rpm') diff --git a/misc/rpm/DEINSTALL b/misc/rpm/DEINSTALL new file mode 100644 index 00000000000..d2dd758940b --- /dev/null +++ b/misc/rpm/DEINSTALL @@ -0,0 +1,39 @@ +#!/bin/sh +# +# $NetBSD: DEINSTALL,v 1.1 2001/11/01 01:29:25 zuntum Exp $ +# + +PKGNAME=$1 +STAGE=$2 + +CAT="@CAT@" + +RPMDIR=/var/pkg/lib/rpm + +case ${STAGE} in +DEINSTALL) + ;; + +POST-DEINSTALL) + ${CAT} << EOF +=========================================================================== + +If you won't be using ${PKGNAME} any longer, you may want to remove: + + ${RPMDIR} + +where the RPM database is stored. + +Caution: you will lose any data ${PKGNAME} has about any installed +packages! + +=========================================================================== +EOF + ;; + +*) + echo "Unexpected argument: ${STAGE}" + exit 1 + ;; +esac +exit 0 diff --git a/misc/rpm/DESCR b/misc/rpm/DESCR new file mode 100644 index 00000000000..9747214b511 --- /dev/null +++ b/misc/rpm/DESCR @@ -0,0 +1,4 @@ +This is the Red Hat Package Manager. It is used to manipulate Red Hat +packages, much in the same way as the pkg_* tools are used in FreeBSD +and NetBSD. rpm's come in their own format, and are typically used in +the Linux community for binary package administration. diff --git a/misc/rpm/INSTALL b/misc/rpm/INSTALL new file mode 100755 index 00000000000..f5b1799e914 --- /dev/null +++ b/misc/rpm/INSTALL @@ -0,0 +1,32 @@ +#!/bin/sh +# +# $NetBSD: INSTALL,v 1.1 2001/11/01 01:29:26 zuntum Exp $ +# + +PKGNAME=$1 +STAGE=$2 + +MKDIR="@MKDIR@" + +RPM=${PKG_PREFIX}/bin/rpm +RPMDIR=/var/pkg/lib/rpm + +case ${STAGE} in +PRE-INSTALL) + ;; + +POST-INSTALL) + ${MKDIR} ${RPMDIR} + if ! ${RPM} -qa 2>/dev/null + then + echo "${PKGNAME}: initializing the RPM database..." + ${RPM} --initdb + fi + ;; + +*) + echo "Unexpected argument ${STAGE}" + exit 1 + ;; +esac +exit 0 diff --git a/misc/rpm/PLIST b/misc/rpm/PLIST new file mode 100644 index 00000000000..bb532d445bf --- /dev/null +++ b/misc/rpm/PLIST @@ -0,0 +1,28 @@ +@comment $NetBSD: PLIST,v 1.1 2001/11/01 01:29:26 zuntum Exp $ +bin/gendiff +bin/rpm +bin/rpm2cpio +include/rpm/dbindex.h +include/rpm/header.h +include/rpm/rpmlib.h +lib/librpm.a +lib/rpm/find-provides +lib/rpm/find-requires +lib/rpm/freshen.sh +lib/rpm/mkinstalldirs +lib/rpm/rpmpopt +lib/rpm/rpmrc +man/man8/rpm.8 +man/man8/rpm2cpio.8 +@dirrm lib/rpm +@dirrm include/rpm +share/locale/de/LC_MESSAGES/rpm.mo +share/locale/fr/LC_MESSAGES/rpm.mo +share/locale/sv/LC_MESSAGES/rpm.mo +share/locale/ru/LC_MESSAGES/rpm.mo +share/locale/fi/LC_MESSAGES/rpm.mo +share/locale/tr/LC_MESSAGES/rpm.mo +share/locale/cz/LC_MESSAGES/rpm.mo +share/locale/pt_BR/LC_MESSAGES/rpm.mo +share/locale/sk/LC_MESSAGES/rpm.mo +share/locale/sr/LC_MESSAGES/rpm.mo diff --git a/misc/rpm/pkg/DEINSTALL b/misc/rpm/pkg/DEINSTALL deleted file mode 100644 index 62be3cfe208..00000000000 --- a/misc/rpm/pkg/DEINSTALL +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/sh -# -# $NetBSD: DEINSTALL,v 1.2 2001/02/26 14:36:12 jlam Exp $ -# - -PKGNAME=$1 -STAGE=$2 - -CAT="@CAT@" - -RPMDIR=/var/pkg/lib/rpm - -case ${STAGE} in -DEINSTALL) - ;; - -POST-DEINSTALL) - ${CAT} << EOF -=========================================================================== - -If you won't be using ${PKGNAME} any longer, you may want to remove: - - ${RPMDIR} - -where the RPM database is stored. - -Caution: you will lose any data ${PKGNAME} has about any installed -packages! - -=========================================================================== -EOF - ;; - -*) - echo "Unexpected argument: ${STAGE}" - exit 1 - ;; -esac -exit 0 diff --git a/misc/rpm/pkg/DESCR b/misc/rpm/pkg/DESCR deleted file mode 100644 index 9747214b511..00000000000 --- a/misc/rpm/pkg/DESCR +++ /dev/null @@ -1,4 +0,0 @@ -This is the Red Hat Package Manager. It is used to manipulate Red Hat -packages, much in the same way as the pkg_* tools are used in FreeBSD -and NetBSD. rpm's come in their own format, and are typically used in -the Linux community for binary package administration. diff --git a/misc/rpm/pkg/INSTALL b/misc/rpm/pkg/INSTALL deleted file mode 100755 index 1f605596f9d..00000000000 --- a/misc/rpm/pkg/INSTALL +++ /dev/null @@ -1,32 +0,0 @@ -#!/bin/sh -# -# $NetBSD: INSTALL,v 1.2 2001/02/26 14:36:12 jlam Exp $ -# - -PKGNAME=$1 -STAGE=$2 - -MKDIR="@MKDIR@" - -RPM=${PKG_PREFIX}/bin/rpm -RPMDIR=/var/pkg/lib/rpm - -case ${STAGE} in -PRE-INSTALL) - ;; - -POST-INSTALL) - ${MKDIR} ${RPMDIR} - if ! ${RPM} -qa 2>/dev/null - then - echo "${PKGNAME}: initializing the RPM database..." - ${RPM} --initdb - fi - ;; - -*) - echo "Unexpected argument ${STAGE}" - exit 1 - ;; -esac -exit 0 diff --git a/misc/rpm/pkg/PLIST b/misc/rpm/pkg/PLIST deleted file mode 100644 index 973d545bbf7..00000000000 --- a/misc/rpm/pkg/PLIST +++ /dev/null @@ -1,28 +0,0 @@ -@comment $NetBSD: PLIST,v 1.7 1998/11/10 22:39:59 tron Exp $ -bin/gendiff -bin/rpm -bin/rpm2cpio -include/rpm/dbindex.h -include/rpm/header.h -include/rpm/rpmlib.h -lib/librpm.a -lib/rpm/find-provides -lib/rpm/find-requires -lib/rpm/freshen.sh -lib/rpm/mkinstalldirs -lib/rpm/rpmpopt -lib/rpm/rpmrc -man/man8/rpm.8 -man/man8/rpm2cpio.8 -@dirrm lib/rpm -@dirrm include/rpm -share/locale/de/LC_MESSAGES/rpm.mo -share/locale/fr/LC_MESSAGES/rpm.mo -share/locale/sv/LC_MESSAGES/rpm.mo -share/locale/ru/LC_MESSAGES/rpm.mo -share/locale/fi/LC_MESSAGES/rpm.mo -share/locale/tr/LC_MESSAGES/rpm.mo -share/locale/cz/LC_MESSAGES/rpm.mo -share/locale/pt_BR/LC_MESSAGES/rpm.mo -share/locale/sk/LC_MESSAGES/rpm.mo -share/locale/sr/LC_MESSAGES/rpm.mo -- cgit v1.2.3