From 615f05862cb86a5648c8bc31132e4e039dcbfdfd Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Sat, 27 Aug 2022 09:02:38 +0200 Subject: Drop shipper. --- dist-tools/shipper/rpm2lsm | 108 --------------------------------------------- 1 file changed, 108 deletions(-) delete mode 100755 dist-tools/shipper/rpm2lsm (limited to 'dist-tools/shipper/rpm2lsm') diff --git a/dist-tools/shipper/rpm2lsm b/dist-tools/shipper/rpm2lsm deleted file mode 100755 index 6a05d6c7..00000000 --- a/dist-tools/shipper/rpm2lsm +++ /dev/null @@ -1,108 +0,0 @@ -#/bin/sh -# -# rpm2lsm -- generate Linux Software Map file from RPM meta information -# -# Author: Eric S. Raymond , 31 July 2002 -# Project page: http://www.catb.org/~esr/ -# -# Requires fmt(1), awk(1), and rpm(8). - -while getopts a:m:k:p: c; -do - case $c in - 'a') author=$OPTARG;; - 'm') maintainer=$OPTARG;; - 'k') keywords=$OPTARG;; - 'p') platforms=$OPTARG;; - '?') echo "rpm2lsm: invalid switch specified - aborting."; exit 1;; - esac -done -shift `expr $OPTIND - 1` - -# If no RPM was given, look in the current directory and pick the last -# one in sort order. That's likely to be the most recent. -if [ -z "$1" ] -then - set -- *.rpm - while [ "$2" ] - do - shift - done -fi - -# Mine out all the single-token fields we'll need -rpm=$1 -set -- `rpm --queryformat="%{name} %{version} %{release}" -qp $rpm` -name=$1 -version=$2 -release=$3 - -# Extract and reformat the desciption -description=`rpm --queryformat="%{description}" -qp $rpm | fmt -w 65 | sed '2,$s/^/ /'` - -# Who am I? -fullname=`cat /etc/passwd | awk -F : "/^${USER}/ "'{print $5}'` -fullname="${USER}@${HOSTNAME} ($fullname)" - -if [ -z "$author" ] -then - if [ -f AUTHORS ] - then - author=`cat AUTHORS` - else - author=$fullname - fi -fi - -# Fill in keywords if present -if [ -n "$keywords" ] -then - keywords="Keywords: $keywords\n" -fi - -# Default the maintainer field properly -if [ -z "$maintainer" ] -then - maintainer=`rpm --queryformat="%{packager}" -qp $rpm` - if [ "$maintainer" = "(none)" ] - then - maintainer=$author - fi -fi - -# The date -date=`date '+%Y-%m-%d'` - -cat >/usr/tmp/rpm2lsm.$$ <>/usr/tmp/rpm2lsm.$$ - fi -done - -cat >>/usr/tmp/rpm2lsm.$$ <