-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Debian package build for the first time.
- Loading branch information
Tomasz bla Fortuna
committed
Oct 26, 2013
1 parent
cec0bff
commit e8df62f
Showing
10 changed files
with
95 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
#!/bin/bash | ||
|
||
# Call from outside of project directory: ./otpasswd/tools/<SCRIPT> <VERSION> | ||
# Assuming otpasswd is inside $DEVDIR directory. | ||
# Call AFTER calling package.sh | ||
|
||
DEVDIR=otpasswd | ||
|
||
if [ -z "$1" ]; then | ||
echo "Pass version as a first argument" | ||
exit 1 | ||
fi | ||
|
||
VERSION=$1 | ||
PACKAGE="otpasswd-$VERSION" | ||
TARBALL="otpasswd_$VERSION".tar.xz | ||
ORIG_TARBALL="otpasswd_$VERSION".orig.tar.xz | ||
|
||
if [ ! -f $TBZ2 ]; then | ||
echo "Call package.sh first and get back here" | ||
exit 1 | ||
fi | ||
|
||
|
||
echo '* CLEANUP' | ||
rm -rf debian_packaging | ||
|
||
echo '* CREATE STRUCTURE' | ||
mkdir debian_packaging | ||
cp $TARBALL "debian_packaging/"$ORIG_TARBALL | ||
|
||
|
||
echo '* UNPACK' | ||
pushd debian_packaging | ||
tar -Jxf $ORIG_TARBALL | ||
popd | ||
|
||
echo | ||
echo '* MOVE DEBIAN FILES' | ||
cp otpasswd/tools/debian_pkg_template debian_packaging/$PACKAGE/debian -Rv | ||
|
||
echo | ||
echo '* BUILD PACKAGE' | ||
pushd debian_packaging/$PACKAGE | ||
dpkg-buildpackage -kD59B22FE | ||
popd | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
9 | ||
8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
lib/security |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
docs/README | ||
docs/INSTALL | ||
docs/ChangeLog | ||
README | ||
INSTALL | ||
ChangeLog | ||
docs/SECURITY |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters