[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Patch for 1.5.0: new feature provide and some small fixes



Hello,

since I use checkinstall for managing some machines and
replacing packages from the distribution, the packages have to
describe there features through an "Provides" directive.  With
my patch it is possible to replace the package "tcl" and satisfy
all other packages that requires it.

Here are the changes:
- new feature: provided features
   maybe this has to be toggled only for preparation of
   rpm-packages
- don't delete doc-pak and description-pak if they are present
   when running checkinstall
   without this, both are deleted after a default installation of
   checkinstall itself
- small typo: "striping ELF binaries" -> "stripping"

Have fun
Uwe Koloska


--- checkinstall-orig   Sun Nov 18 09:35:25 2001
+++ checkinstall        Thu Dec  6 11:39:16 2001
@@ -510,6 +510,11 @@

  # Automatic deletion of "description-pak"
  ! [ "$DEL_DESC" ] && DEL_DESC=1
+# 01-12-06 UKo: don't delete an existing description-pak
+#   regardless the settings in checkinstallrc and on the
commandline
+if [ -r description-pak ]; then
+    DEL_DESC=0
+fi

  # Automatically strip all ELF binaries
  ! [ "$STRIP_ELF" ] && STRIP_ELF=1
@@ -633,7 +638,9 @@
             rm -rf doc-pak                 # If doc-pak is
empty then we
          fi                                # don't need it
      fi
-
+else
+    # 01-12-06 UKo: don't delete an existing doc-pak
+    DEL_DOCPAK=0
  fi


@@ -917,6 +924,7 @@
        ! [ "$ARCHITECTURE" ] && ARCHITECTURE="i386"
        ! [ "$SOURCE" ] && SOURCE=$PKG_BASENAME
        ! [ "$ALTSOURCE" ] && ALTSOURCE=""
+      ! [ "$PROVIDES" ] && PROVIDES="$NAME"


        echo
@@ -931,6 +939,7 @@
        echo "7 - Architecture: [ $ARCHITECTURE ]"
        echo "8 - Source location: [ $SOURCE ]"
        echo "9 - Alternate source location: [ $ALTSOURCE ]"
+      echo "A - provided Features: [ $PROVIDES ]"
        echo
        echo -n "Enter a number to change any of them or press
ENTER to continue: "
        if [ $ACCEPT_DEFAULT -eq 1 ]; then
@@ -986,6 +995,12 @@
              echo -n ">> "
              read ALTSOURCE
              ;;
+        a|A)
+           # 01-12-06 UKo: new feature
+           echo "Enter the provided features: "
+           echo -n ">> "
+           read PROVIDES
+           ;;
        esac
     done

@@ -1228,8 +1243,9 @@
  Release:   $RELEASE
  Copyright: $LICENSE
  Packager:  checkinstall-$CHECKINSTALL_VERSION
-Group:     $GROUP
-BuildRoot: $DIRECTORIO_FUENTE/buildroot
+Group:     $GROUP
+BuildRoot: $DIRECTORIO_FUENTE/buildroot
+Provides:  $PROVIDES

  %description
  EOF


--
voiceINTERconnect www.voiceinterconnect.de
... smart speech applications from germany