Skip to content

Commit

Permalink
0.6: fakeroot
Browse files Browse the repository at this point in the history
  • Loading branch information
zvezdochiot committed Nov 7, 2021
1 parent fa0ac87 commit 8913ac4
Show file tree
Hide file tree
Showing 15 changed files with 80 additions and 20 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
bash-deb-build.
0.5
0.6

# Bash DEB build.

Bash-script for build deb package:
1. build:
* sudo bash-deb-build
* fakeroot bash-deb-build
2. unpack:
* bash-deb-unpack package.deb
3. depends:
* bash-deb-depends-test you-etf-or-lib

## Depends

dpkg, grep, tar, gzip, bzip2, lzma, coreutils, binutils

---
2020
2021
zvezdochiot
https://github.com/BASH-Auto-Tools/bash-deb-build
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.5
0.6
6 changes: 4 additions & 2 deletions control
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
Package: bash-deb-build
Version: 0.5
Version: 0.6
Architecture: all
Maintainer: zvezdochiot <[email protected]>
Section: utils
Priority: optional
Depends: dpkg, grep, tar, gzip, coreutils, binutils
Installed-Size: 20
Installed-Size: 30
Homepage: https://github.com/BASH-Auto-Tools/bash-deb-build
Description: Bash-script for build deb package.
Bash-script for build deb package:
build:
sudo bash-deb-build
unpack:
bash-deb-unpack package.deb
depends:
bash-deb-depends-test you-etf-or-lib
7 changes: 4 additions & 3 deletions deb-build.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/sh
#deb-build.sh

VER="0.5"
VER="0.6"
DEFPACK="gzip"

tproc=`basename $0`
Expand All @@ -12,7 +12,7 @@ usage()
{
tproc=`basename $0`
echo "usage:"
echo " sudo bash $tproc [options]"
echo " fakeroot sh $tproc [options]"
echo " options:"
echo " -c [gzip|bzip2|lzma] - compress method"
echo " -h - this help"
Expand All @@ -37,6 +37,7 @@ testargs()
testcomponent()
{
tnocomp=""
tcomp="whoami"; [ $(which $tcomp) ] || tnocomp="$tnocomp $tcomp"
tcomp="grep"; [ $(which $tcomp) ] || tnocomp="$tnocomp $tcomp"
tcomp="awk"; [ $(which $tcomp) ] || tnocomp="$tnocomp $tcomp"
tcomp="tar"; [ $(which $tcomp) ] || tnocomp="$tnocomp $tcomp"
Expand All @@ -53,7 +54,7 @@ testcomponent()

testroot()
{
if [ "$USER" != "root" ]
if [ "$(whoami)" != "root" ]
then
echo "ERROR: You no root!"
echo ""
Expand Down
2 changes: 1 addition & 1 deletion deb-depends-test.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/sh
# deb-depends-test.sh

VER="5.0"
VER="6.0"

tproc=`basename $0`
echo "$tproc version $VER"
Expand Down
4 changes: 2 additions & 2 deletions deb-unpack.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/sh
#deb-unpack.sh

VER="0.5"
VER="0.6"

tproc=`basename $0`
echo "$tproc version $VER"
Expand All @@ -11,7 +11,7 @@ usage()
{
tproc=`basename $0`
echo "usage:"
echo " bash $tproc packet.deb"
echo " sh $tproc packet.deb"
exit 0
}

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
Public Domain Mark 1.0
No Copyright

This work has been identified as being free of known restrictions
under copyright law, including all related and neighboring rights.

You can copy, modify, distribute and perform the work, even for
commercial purposes, all without asking permission. See Other
Information below.

Other Information

The work may not be free of known copyright restrictions in all
jurisdictions.

Persons may have other rights in or related to the work, such as
patent or trademark rights, and others may have rights in how the
work is used, such as publicity or privacy rights.

In some jurisdictions moral rights of the author may persist beyond
the term of copyright. These rights may include the right to be
identified as the author and the right to object to derogatory
treatments.

Unless expressly stated otherwise, the person who identified the work
makes no warranties about the work, and disclaims liability for all
uses of the work, to the fullest extent permitted by applicable law.

When using or citing the work, you should not imply endorsement by
the author or the person who identified the work.
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
bash-deb-build.
0.6

# Bash DEB build.

Bash-script for build deb package:
1. build:
* fakeroot bash-deb-build
2. unpack:
* bash-deb-unpack package.deb
3. depends:
* bash-deb-depends-test you-etf-or-lib

## Depends

dpkg, grep, tar, gzip, bzip2, lzma, coreutils, binutils

---
2021
zvezdochiot
https://github.com/BASH-Auto-Tools/bash-deb-build
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.6
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/sh
#deb-build.sh

VER="0.5"
VER="0.6"
DEFPACK="gzip"

tproc=`basename $0`
Expand All @@ -12,7 +12,7 @@ usage()
{
tproc=`basename $0`
echo "usage:"
echo " sudo bash $tproc [options]"
echo " fakeroot sh $tproc [options]"
echo " options:"
echo " -c [gzip|bzip2|lzma] - compress method"
echo " -h - this help"
Expand All @@ -37,6 +37,7 @@ testargs()
testcomponent()
{
tnocomp=""
tcomp="whoami"; [ $(which $tcomp) ] || tnocomp="$tnocomp $tcomp"
tcomp="grep"; [ $(which $tcomp) ] || tnocomp="$tnocomp $tcomp"
tcomp="awk"; [ $(which $tcomp) ] || tnocomp="$tnocomp $tcomp"
tcomp="tar"; [ $(which $tcomp) ] || tnocomp="$tnocomp $tcomp"
Expand All @@ -53,7 +54,7 @@ testcomponent()

testroot()
{
if [ "$USER" != "root" ]
if [ "$(whoami)" != "root" ]
then
echo "ERROR: You no root!"
echo ""
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/sh
# deb-depends-test.sh

VER="5.0"
VER="6.0"

tproc=`basename $0`
echo "$tproc version $VER"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/sh
#deb-unpack.sh

VER="0.5"
VER="0.6"

tproc=`basename $0`
echo "$tproc version $VER"
Expand All @@ -11,7 +11,7 @@ usage()
{
tproc=`basename $0`
echo "usage:"
echo " bash $tproc packet.deb"
echo " sh $tproc packet.deb"
exit 0
}

Expand Down
6 changes: 4 additions & 2 deletions example/bash-deb-build/DEBIAN/control
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
Package: bash-deb-build
Version: 0.5
Version: 0.6
Architecture: all
Maintainer: zvezdochiot <[email protected]>
Section: utils
Priority: optional
Depends: dpkg, grep, tar, gzip, coreutils, binutils
Installed-Size: 20
Installed-Size: 30
Homepage: https://github.com/BASH-Auto-Tools/bash-deb-build
Description: Bash-script for build deb package.
Bash-script for build deb package:
build:
sudo bash-deb-build
unpack:
bash-deb-unpack package.deb
depends:
bash-deb-depends-test you-etf-or-lib
Binary file removed example/bash-deb-build/bash-deb-build_0.5_all.deb
Binary file not shown.
Binary file added example/bash-deb-build/bash-deb-build_0.6_all.deb
Binary file not shown.

0 comments on commit 8913ac4

Please sign in to comment.