The secretsauce
application is just a simple shell script that prints out one
line of output. The real purpose of this demo is to show how to present the
user with a license and require that they accept the license in order to proceed
with package installation.
- Run
create_archive.sh
from the current directory to create the requiredsecretsauce_1.0.orig.tar.gz
in the parent directory. - Run
debuild -us -uc
- Run
sudo dpkg -i secretsauce_1.0.deb
- Type "n" (or anything other than "Y" or "y") to observe that package installation is aborted.
- Run
secretsauce
and observe that the package was not installed. - Run
sudo dpkg -i secretsauce_1.0.deb
- Type "Y" or "y" to agree to the license and observe that the package installs correctly.
- Run
secretsauce
and observe that the package was installed successfully. - Run
sudo apt-get purge secretsauce
to remove the installed package.