Commit 324e13fa authored by Philipp's avatar Philipp

added raspbian buster patches

parent f921946f
......@@ -48,7 +48,7 @@ lsb=$( lsb_release -a 2>&1 )
if [ ! -z "$2" ]
then
os="$2"
elif [ $( echo "$lsb" |grep 'Distributor ID'| grep -c 'Rasbian' ) -gt 0 ]
elif [ $( echo "$lsb" |grep 'Distributor ID'| grep -c 'Raspbian' ) -gt 0 ]
then
os="raspbian"
elif [ $( echo "$lsb" |grep 'Distributor ID'| grep -c 'Debian' ) -gt 0 ]
......@@ -69,33 +69,34 @@ echo " - OS version: ${osversion}"
if [ -f "$1" ]
then
usversion=$( echo "$1" |sed 's/.*-\([0-9]\+\).tgz/\1/' )
echo " - Upstream version: ${usversion}"
echo ""
printtitle "Creating .orig.tar.gz files" "="
printtitle "Extracting upstream sources" "-"
tar -zxf "$1"
if [ -d "origs" ]
then
printtitle "Deleting old origs folder" "-"
rm -rf origs
fi
printtitle "Creating new origs folder" "-"
mkdir origs
cd origs
printtitle "Building .orig.tar.gz files" "-"
for p in ${PACKETS}
do
o=$( echo ${p} |sed 's/\[.*\]//g' )
n=$( echo ${p} |tr -d '[]' )
t=$( ls -1 ../patches/${os}/${n}_*~${osversion}*.patch |cut -d'/' -f4 |cut -d'+' -f1 |sed 's/\(.*\)-.$/\1/' )
echo " - husky/${o} -> origs/${n}"
mv "../husky/${o}" "./${t}"
rm -rf "${t}/debian"
tar -czf "${t}.orig.tar.gz" "${t}/"
rm -rf "${t}"
done
cd ..
printtitle "Using existing origs" "-"
else
usversion=$( echo "$1" |sed 's/.*-\([0-9]\+\).tgz/\1/' )
echo " - Upstream version: ${usversion}"
echo ""
printtitle "Creating .orig.tar.gz files" "="
printtitle "Extracting upstream sources" "-"
tar -zxf "$1"
printtitle "Creating new origs folder" "-"
mkdir origs
cd origs
printtitle "Building .orig.tar.gz files" "-"
for p in ${PACKETS}
do
o=$( echo ${p} |sed 's/\[.*\]//g' )
n=$( echo ${p} |tr -d '[]' )
t=$( ls -1 ../patches/${os}/${n}[_-]*~${osversion}*.patch |cut -d'/' -f4 |cut -d'+' -f1 |sed 's/\(.*\)-.$/\1/' |sed 's/_/-/' )
to=$( ls -1 ../patches/${os}/${n}[_-]*~${osversion}*.patch |cut -d'/' -f4 |cut -d'+' -f1 |sed 's/\(.*\)-.$/\1/' )
echo " - husky/${o} -> origs/${n}"
mv "../husky/${o}" "./${t}"
rm -rf "${t}/debian"
tar -czf "${to}.orig.tar.gz" "${t}/"
rm -rf "${t}"
done
cd ..
fi
fi
printtitle "Starting build" "="
......@@ -119,20 +120,22 @@ cd build
printtitle "Extracting original source packages" "-"
find . -type f -name '*.orig.tar.gz' -exec tar -zxf "{}" \;
printtitle "Applying patches" "-"
for i in *.patch
do
echo " - ${i}"
patch -p0 <${i}
done
#printtitle "Applying patches" "-"
#for i in *.patch
#do
# echo " - ${i}"
# patch -p0 <${i}
#done
printtitle "Building packages" "-"
for p in ${PACKETS}
do
n=$( echo ${p} |tr -d '[]' )
t=$( ls -1 ../patches/${os}/${n}_*~${osversion}*.patch |cut -d'/' -f4 |cut -d'+' -f1 |sed 's/\(.*\)-.$/\1/' )
t=$( ls -1 ../patches/${os}/${n}[_-]*~${osversion}*.patch |cut -d'/' -f4 |cut -d'+' -f1 |sed 's/\(.*\)-.$/\1/' |sed 's/_/-/' )
echo " - ${t}"
cd "${t}"
p=$( ls -1 ../../patches/${os}/${n}[_-]*~${osversion}*.patch )
patch -p1 <${p}
debuild -us -uc -sa
cd ..
for i in $( cat "${t}/debian/control" |grep 'Package:' |sed 's/Package: //g' |sort )
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
diff -Naur hpucode.orig/debian/changelog hpucode/debian/changelog
--- hpucode.orig/debian/changelog 1970-01-01 01:00:00.000000000 +0100
+++ hpucode/debian/changelog 2017-11-03 18:31:04.000000000 +0100
diff -Naur hpucode_1.3.0-20170406.orig/debian/changelog hpucode-1.3.0-20170406/debian/changelog
--- hpucode_1.3.0-20170406.orig/debian/changelog 1970-01-01 01:00:00.000000000 +0100
+++ hpucode_1.3.0-20170406/debian/changelog 2017-11-03 18:31:04.000000000 +0100
@@ -0,0 +1,54 @@
+hpucode (1.3.0-20170406-2+nmu1~stretch1) stable; urgency=low
+hpucode (1.3.0-20170406-2+nmu1~buster1) stable; urgency=low
+
+ * Non-maintainer upload for personal debian repository.
+ * Represent dist in version string for cross compatibility.
......@@ -56,14 +56,14 @@ diff -Naur hpucode.orig/debian/changelog hpucode/debian/changelog
+
+ -- Pavel Andreew <pavel@collage.etel.ru> Tue, 8 Oct 2002 13:04:19 +0600
+
diff -Naur hpucode.orig/debian/compat hpucode/debian/compat
--- hpucode.orig/debian/compat 1970-01-01 01:00:00.000000000 +0100
+++ hpucode/debian/compat 2017-11-03 13:25:23.000000000 +0100
diff -Naur hpucode_1.3.0-20170406.orig/debian/compat hpucode-1.3.0-20170406/debian/compat
--- hpucode_1.3.0-20170406.orig/debian/compat 1970-01-01 01:00:00.000000000 +0100
+++ hpucode_1.3.0-20170406/debian/compat 2017-11-03 13:25:23.000000000 +0100
@@ -0,0 +1 @@
+9
diff -Naur hpucode.orig/debian/control hpucode/debian/control
--- hpucode.orig/debian/control 1970-01-01 01:00:00.000000000 +0100
+++ hpucode/debian/control 2017-11-03 16:26:54.000000000 +0100
diff -Naur hpucode_1.3.0-20170406.orig/debian/control hpucode-1.3.0-20170406/debian/control
--- hpucode_1.3.0-20170406.orig/debian/control 1970-01-01 01:00:00.000000000 +0100
+++ hpucode_1.3.0-20170406/debian/control 2017-11-03 16:26:54.000000000 +0100
@@ -0,0 +1,15 @@
+Source: hpucode
+Section: contrib/mail
......@@ -80,9 +80,9 @@ diff -Naur hpucode.orig/debian/control hpucode/debian/control
+ multisection messages with uue, which is being posted by
+ popular encoders such as UUEWizard, AutoUUE, hpt post -u :]
+
diff -Naur hpucode.orig/debian/copyright hpucode/debian/copyright
--- hpucode.orig/debian/copyright 1970-01-01 01:00:00.000000000 +0100
+++ hpucode/debian/copyright 2017-11-03 13:25:23.000000000 +0100
diff -Naur hpucode_1.3.0-20170406.orig/debian/copyright hpucode-1.3.0-20170406/debian/copyright
--- hpucode_1.3.0-20170406.orig/debian/copyright 1970-01-01 01:00:00.000000000 +0100
+++ hpucode_1.3.0-20170406/debian/copyright 2017-11-03 13:25:23.000000000 +0100
@@ -0,0 +1,20 @@
+Copyright 1998-2017 Husky Team <pavel@collage.etel.ru>
+
......@@ -104,14 +104,14 @@ diff -Naur hpucode.orig/debian/copyright hpucode/debian/copyright
+the GNU General Public License.
+On Debian systems, the complete text of the GNU General Public
+License can be found in /usr/share/common-licenses/GPL file.
diff -Naur hpucode.orig/debian/dirs hpucode/debian/dirs
--- hpucode.orig/debian/dirs 1970-01-01 01:00:00.000000000 +0100
+++ hpucode/debian/dirs 2002-10-08 09:35:46.000000000 +0200
diff -Naur hpucode_1.3.0-20170406.orig/debian/dirs hpucode-1.3.0-20170406/debian/dirs
--- hpucode_1.3.0-20170406.orig/debian/dirs 1970-01-01 01:00:00.000000000 +0100
+++ hpucode_1.3.0-20170406/debian/dirs 2002-10-08 09:35:46.000000000 +0200
@@ -0,0 +1 @@
+usr/bin
diff -Naur hpucode.orig/debian/doc-base hpucode/debian/doc-base
--- hpucode.orig/debian/doc-base 1970-01-01 01:00:00.000000000 +0100
+++ hpucode/debian/doc-base 2017-11-03 13:25:23.000000000 +0100
diff -Naur hpucode_1.3.0-20170406.orig/debian/doc-base hpucode-1.3.0-20170406/debian/doc-base
--- hpucode_1.3.0-20170406.orig/debian/doc-base 1970-01-01 01:00:00.000000000 +0100
+++ hpucode_1.3.0-20170406/debian/doc-base 2017-11-03 13:25:23.000000000 +0100
@@ -0,0 +1,10 @@
+Document: hpucode
+Title: Debian hpucode Manual
......@@ -123,14 +123,14 @@ diff -Naur hpucode.orig/debian/doc-base hpucode/debian/doc-base
+Format: HTML
+Index: /usr/share/doc/hpucode/html/hpucode.html
+Files: /usr/share/doc/hpucode/html/*.html
diff -Naur hpucode.orig/debian/docs hpucode/debian/docs
--- hpucode.orig/debian/docs 1970-01-01 01:00:00.000000000 +0100
+++ hpucode/debian/docs 2003-02-11 11:24:45.000000000 +0100
diff -Naur hpucode_1.3.0-20170406.orig/debian/docs hpucode-1.3.0-20170406/debian/docs
--- hpucode_1.3.0-20170406.orig/debian/docs 1970-01-01 01:00:00.000000000 +0100
+++ hpucode_1.3.0-20170406/debian/docs 2003-02-11 11:24:45.000000000 +0100
@@ -0,0 +1 @@
+HISTORY
diff -Naur hpucode.orig/debian/huskymak.cfg hpucode/debian/huskymak.cfg
--- hpucode.orig/debian/huskymak.cfg 1970-01-01 01:00:00.000000000 +0100
+++ hpucode/debian/huskymak.cfg 2003-02-07 11:25:55.000000000 +0100
diff -Naur hpucode_1.3.0-20170406.orig/debian/huskymak.cfg hpucode-1.3.0-20170406/debian/huskymak.cfg
--- hpucode_1.3.0-20170406.orig/debian/huskymak.cfg 1970-01-01 01:00:00.000000000 +0100
+++ hpucode_1.3.0-20170406/debian/huskymak.cfg 2003-02-07 11:25:55.000000000 +0100
@@ -0,0 +1,260 @@
+# Config-Makefile for Husky-packages
+# Modified for Debian
......@@ -392,17 +392,17 @@ diff -Naur hpucode.orig/debian/huskymak.cfg hpucode/debian/huskymak.cfg
+# directory separator (DOS: "\", Unix: "/")
+DIRSEP=/
+
diff -Naur hpucode.orig/debian/info hpucode/debian/info
--- hpucode.orig/debian/info 1970-01-01 01:00:00.000000000 +0100
+++ hpucode/debian/info 2002-10-08 09:35:46.000000000 +0200
diff -Naur hpucode_1.3.0-20170406.orig/debian/info hpucode-1.3.0-20170406/debian/info
--- hpucode_1.3.0-20170406.orig/debian/info 1970-01-01 01:00:00.000000000 +0100
+++ hpucode_1.3.0-20170406/debian/info 2002-10-08 09:35:46.000000000 +0200
@@ -0,0 +1 @@
+hpucode.info
diff -Naur hpucode.orig/debian/patches/01_makefile.patch hpucode/debian/patches/01_makefile.patch
--- hpucode.orig/debian/patches/01_makefile.patch 1970-01-01 01:00:00.000000000 +0100
+++ hpucode/debian/patches/01_makefile.patch 2017-11-03 15:31:06.000000000 +0100
diff -Naur hpucode_1.3.0-20170406.orig/debian/patches/01_makefile.patch hpucode-1.3.0-20170406/debian/patches/01_makefile.patch
--- hpucode_1.3.0-20170406.orig/debian/patches/01_makefile.patch 1970-01-01 01:00:00.000000000 +0100
+++ hpucode_1.3.0-20170406/debian/patches/01_makefile.patch 2017-11-03 15:31:06.000000000 +0100
@@ -0,0 +1,40 @@
+--- hpucode.orig/Makefile 2010-07-21 14:38:11.000000000 +0200
++++ hpucode/Makefile 2017-11-03 13:25:23.000000000 +0100
+--- hpucode_1.3.0-20170406.orig/Makefile 2010-07-21 14:38:11.000000000 +0200
++++ hpucode_1.3.0-20170406/Makefile 2017-11-03 13:25:23.000000000 +0100
+@@ -7,13 +7,20 @@
+ include ../huskymak.cfg
+ endif
......@@ -441,20 +441,20 @@ diff -Naur hpucode.orig/debian/patches/01_makefile.patch hpucode/debian/patches/
+
+ hpucode.1.gz: man/hpucode.1
+ gzip -9c man/hpucode.1 > hpucode.1.gz
diff -Naur hpucode.orig/debian/patches/series hpucode/debian/patches/series
--- hpucode.orig/debian/patches/series 1970-01-01 01:00:00.000000000 +0100
+++ hpucode/debian/patches/series 2017-11-03 16:26:44.000000000 +0100
diff -Naur hpucode_1.3.0-20170406.orig/debian/patches/series hpucode-1.3.0-20170406/debian/patches/series
--- hpucode_1.3.0-20170406.orig/debian/patches/series 1970-01-01 01:00:00.000000000 +0100
+++ hpucode_1.3.0-20170406/debian/patches/series 2017-11-03 16:26:44.000000000 +0100
@@ -0,0 +1 @@
+01_makefile.patch
diff -Naur hpucode.orig/debian/README.source hpucode/debian/README.source
--- hpucode.orig/debian/README.source 1970-01-01 01:00:00.000000000 +0100
+++ hpucode/debian/README.source 2017-11-03 16:19:35.000000000 +0100
diff -Naur hpucode_1.3.0-20170406.orig/debian/README.source hpucode-1.3.0-20170406/debian/README.source
--- hpucode_1.3.0-20170406.orig/debian/README.source 1970-01-01 01:00:00.000000000 +0100
+++ hpucode_1.3.0-20170406/debian/README.source 2017-11-03 16:19:35.000000000 +0100
@@ -0,0 +1,2 @@
+No special Requirements.
+Please read /usr/share/doc/quilt/README.source
diff -Naur hpucode.orig/debian/rules hpucode/debian/rules
--- hpucode.orig/debian/rules 1970-01-01 01:00:00.000000000 +0100
+++ hpucode/debian/rules 2017-11-03 18:21:43.000000000 +0100
diff -Naur hpucode_1.3.0-20170406.orig/debian/rules hpucode-1.3.0-20170406/debian/rules
--- hpucode_1.3.0-20170406.orig/debian/rules 1970-01-01 01:00:00.000000000 +0100
+++ hpucode_1.3.0-20170406/debian/rules 2017-11-03 18:21:43.000000000 +0100
@@ -0,0 +1,93 @@
+#!/usr/bin/make -f
+# Sample debian/rules that uses debhelper.
......@@ -549,3 +549,8 @@ diff -Naur hpucode.orig/debian/rules hpucode/debian/rules
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install
diff -Naur hpucode_1.3.0-20170406.orig/debian/source/format hpucode-1.3.0-20170406/debian/source/format
--- hpucode_1.3.0-20170406.orig/debian/source/format 1970-01-01 01:00:00.000000000 +0100
+++ hpucode_1.3.0-20170406/debian/source/format 2017-11-03 18:31:04.000000000 +0100
@@ -0,0 +1 @@
+3.0 (quilt)
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
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