Commit 90eec85f authored by Joost van Baal-Ilić's avatar Joost van Baal-Ilić

more debian-centric

parent 5d169d9a
......@@ -11,6 +11,8 @@ publicfile-installer (0.9)
* publicfile-installer.1, publicfile-installer.conf, get-publicfile:
s/.diff.gz/.debian.tar.xz/: adjust to new dpkg-source;
s/aangifte-ib/publicfile/; update md5 checksums.
* build-publicfile, get-publicfile, publicfile-installer.conf: more
Debian centric: use .dsc, dget(1) and dpkg-source(1).
-- Joost van Baal <joostvb-publicfile@mdcc.cx> Sun, 18 Jan 2015 13:29:17 +0100
......
......@@ -56,14 +56,17 @@ else
cd $BUILDDIR
cp $TARDIR/$TARFILE .
cp $DIFFDIR/$DIFFFILE .
cp $DIFFDIR/$DSCFILE .
echo "Preparing build of $DEBFILE in $BUILDDIR..."
# unpack, patch and build
tar zxf $TARFILE
cd ib200?/
zcat ../$DIFFFILE | patch -p1 --quiet
chmod a+x debian/rules
dpkg-source -x publicfile*.dsc
## tar zxf $TARFILE
## cd publicfile-?.??/
## zcat ../$DIFFFILE | patch -p1 --quiet
## chmod a+x debian/rules
echo "Building $DEBFILE (if you won't get a message $DEBFILE is"
echo "ready, inspect the build log in $BUILDDIR/build.log to see"
......
......@@ -52,8 +52,11 @@ then
else
# wget --recursive --accept diff.gz --level=1 --no-directories --no-parent \
# http://mdcc.cx/pub/publicfile/
echo "Downloading http://mdcc.cx/pub/publicfile/$DIFFFILE..."
wget --output-document=$DIFFFILE --quiet http://mdcc.cx/pub/publicfile/$DIFFFILE
echo "Downloading http://mdcc.cx/pub/publicfile/$DSCFILE, $DIFFFILE and friends..."
dget $DSCFILE
# wget --output-document=$DIFFFILE --quiet http://mdcc.cx/pub/publicfile/$DIFFFILE
if echo "$MD5SUM_DIFF" | md5sum -c --status
then
DIFFDIR=`pwd`
......@@ -64,8 +67,8 @@ else
fi
echo ",---------------------------- - - - -"
echo "| $TARFILE verified and installed in $TARDIR."
echo "| $DIFFFILE verified and installed in $DIFFDIR."
echo "| $TARFILE verified and saved in $TARDIR."
echo "| $DIFFFILE verified and saved in $DIFFDIR."
echo " ---------------------------- - - - -"
if test "$1" = "go"
......
......@@ -16,12 +16,16 @@ TARURL=http://cr.yp.to/publicfile/$TARFILE
# http://www.belastingdienst.nl/download/1706.html links to
# http://download.belastingdienst.nl/belastingdienst/apps/linux/ib2007_linux.tar.gz released 2008-02-07
DSCFILE=publicfile_0.52-4.dsc
# DIFFFILE=aangifte-ib_0.2007-0.0.test.2007.06.12-1.diff.gz
# DIFFFILE=aangifte-ib_0.2007-1.0.official.2008.02.07-1.diff.gz FIXME
# DIFFFILE=aangifte-ib_0.2007-1.0.official.2008.02.07-1.diff.gz
DIFFFILE=publicfile_0.52-4.debian.tar.xz
# DEBFILE=aangifte-ib_0.2007-0.0.test.2007.06.12-1_i386.deb
DEBFILE=aangifte-ib_0.2007-1.0.official.2008.02.07-1_i386.deb FIXME
# DEBFILE=aangifte-ib_0.2007-1.0.official.2008.02.07-1_i386.deb FIXME
DEBFILE=publicfile_0.52-4_i386.deb
# FIXME
# MD5SUM_TAR="90b3e1e8bd922c9061dc8bf237d489d3 $TARFILE"
MD5SUM_TAR="e493d69627b4fb2c7c764c0ff34330d7 $TARFILE"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment