Leave the zoneminder source dir during build-deps step so that we don't pollute it. Seems to be an issue with newer ubuntu builds.
This commit is contained in:
parent
328bd15360
commit
fe6f71e1dc
|
@ -229,6 +229,7 @@ rm -rf .git
|
||||||
rm .gitignore
|
rm .gitignore
|
||||||
cd ../
|
cd ../
|
||||||
|
|
||||||
|
|
||||||
if [ ! -e "$DIRECTORY.orig.tar.gz" ]; then
|
if [ ! -e "$DIRECTORY.orig.tar.gz" ]; then
|
||||||
tar zcf $DIRECTORY.orig.tar.gz $DIRECTORY.orig
|
tar zcf $DIRECTORY.orig.tar.gz $DIRECTORY.orig
|
||||||
fi;
|
fi;
|
||||||
|
@ -295,17 +296,19 @@ zoneminder ($VERSION-$DISTRO${PACKAGE_VERSION}) $DISTRO; urgency=$URGENCY
|
||||||
EOF
|
EOF
|
||||||
fi;
|
fi;
|
||||||
|
|
||||||
|
# Leave the .orig so that we don't pollute it when building deps
|
||||||
|
cd ..
|
||||||
if [ $TYPE == "binary" ]; then
|
if [ $TYPE == "binary" ]; then
|
||||||
# Auto-install all ZoneMinder's depedencies using the Debian control file
|
# Auto-install all ZoneMinder's depedencies using the Debian control file
|
||||||
sudo apt-get install devscripts equivs
|
sudo apt-get install devscripts equivs
|
||||||
sudo mk-build-deps -ir ./debian/control
|
sudo mk-build-deps -ir $DIRECTORY.orig/debian/control
|
||||||
echo "Status: $?"
|
echo "Status: $?"
|
||||||
DEBUILD=debuild
|
DEBUILD=debuild
|
||||||
else
|
else
|
||||||
if [ $TYPE == "local" ]; then
|
if [ $TYPE == "local" ]; then
|
||||||
# Auto-install all ZoneMinder's depedencies using the Debian control file
|
# Auto-install all ZoneMinder's depedencies using the Debian control file
|
||||||
sudo apt-get install devscripts equivs
|
sudo apt-get install devscripts equivs
|
||||||
sudo mk-build-deps -ir ./debian/control
|
sudo mk-build-deps -ir $DIRECTORY.orig/debian/control
|
||||||
echo "Status: $?"
|
echo "Status: $?"
|
||||||
DEBUILD="debuild -i -us -uc -b"
|
DEBUILD="debuild -i -us -uc -b"
|
||||||
else
|
else
|
||||||
|
@ -313,6 +316,9 @@ EOF
|
||||||
DEBUILD="debuild -S -sa"
|
DEBUILD="debuild -S -sa"
|
||||||
fi;
|
fi;
|
||||||
fi;
|
fi;
|
||||||
|
|
||||||
|
cd $DIRECTORY.orig
|
||||||
|
|
||||||
if [ "$DEBSIGN_KEYID" != "" ]; then
|
if [ "$DEBSIGN_KEYID" != "" ]; then
|
||||||
DEBUILD="$DEBUILD -k$DEBSIGN_KEYID"
|
DEBUILD="$DEBUILD -k$DEBSIGN_KEYID"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue