Wheezy msktutil

From Bit Binary Wiki
Revision as of 12:19, 19 April 2013 by Jelloir (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Create debcontrol.sh

vi /usr/local/bin/debcontrol.sh
#!/bin/bash

DEBFILE="$1"
TMPDIR=`mktemp -d /tmp/deb.XXXXXXXXXX` || exit 1
OUTPUT=/var/cache/apt/archives/`basename "$DEBFILE" .deb`.modfied.deb

if  -e "$OUTPUT" ; then
  echo "$OUTPUT exists."
  rm -r "$TMPDIR"
  exit 1
fi

dpkg-deb -x "$DEBFILE" "$TMPDIR"
dpkg-deb --control "$DEBFILE" "$TMPDIR"/DEBIAN

if  ! -e "$TMPDIR"/DEBIAN/control ; then
  echo DEBIAN/control not found.

  rm -r "$TMPDIR"
  exit 1
fi

CONTROL="$TMPDIR"/DEBIAN/control

MOD=`stat -c "%y" "$CONTROL"`
vi "$CONTROL"

if  "$MOD" == `stat -c "%y" "$CONTROL"` ; then
  echo Not modfied.
else
  echo Building new deb...
  dpkg -b "$TMPDIR" "$OUTPUT"
fi

rm -r "$TMPDIR"
chmod +x /usr/local/bin/debcontrol.sh

Create a correct control file

cd /tmp
wget https://fuhm.net/software/msktutil/releases/msktutil_0.4-2_amd64.deb
debcontrol.sh msktutil_0.4-2_amd64.deb

Edit the dependacy "libkrb53" to "libkrb5-3" and save the file. This should then generate the package in /var/cache/apt/archives/msktutil_0.4-2_amd64.modfied.deb

dpkg -i /var/cache/apt/archives/msktutil_0.4-2_amd64.modfied.deb
Personal tools