From e58e4acb2e779910fe531644f1810feadeef05dc Mon Sep 17 00:00:00 2001 From: Marco Ciampa Date: Fri, 27 Oct 2000 02:28:42 +0000 Subject: [PATCH] New distro package - first version --- vfs/extfs/bpp | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 vfs/extfs/bpp diff --git a/vfs/extfs/bpp b/vfs/extfs/bpp new file mode 100644 index 000000000..fa481fe88 --- /dev/null +++ b/vfs/extfs/bpp @@ -0,0 +1,47 @@ +#! /bin/sh +# +# Written by Marco Ciampa 2000 +# (a simple cut & paste from rpm vfs) +# (C) 1996 The Free Software Foundation. +# + +# override any locale for dates +unset LC_ALL +LC_TIME=C +export LC_TIME + +mcbppfs_list () +{ + FILEPREF="-r--r--r-- 1 root root " + FIEXPREF="-r-xr-xr-x 1 root root " + #Insert date here! + #DATE=`rpm -qp --qf "%{BUILDTIME:date}\n" "$1" | cut -c 5-11,21-24` + DATE="Oct 27 2000" + #Insert header here! + echo "$FILEPREF 0 $DATE CONTENTS.tar.gz" + echo "$FIEXPREF 39 $DATE INSTALL" + echo "$FIEXPREF 39 $DATE UPGRADE" +} + +mcbppfs_copyout () +{ + case "$2" in + CONTENTS.tar.gz) cat "$1" > "$3"; exit 0;; + esac +} + +mcbppfs_run () +{ + case "$2" in + INSTALL) echo "Installing \"$1\""; package-setup --install "$1"; exit 0;; + UPGRADE) echo "Upgrading \"$1\""; package-setup --update "$1"; exit 0;; + esac +} + +umask 077 +case "$1" in + list) mcbppfs_list "$2"; exit 0;; + copyout) mcbppfs_copyout "$2" "$3" "$4"; exit 0;; + run) mcbppfs_run "$2" "$3"; exit 1;; +esac +exit 1