7 This script unpacks the qmail source in /usr/src/qmail-src
8 into a directory, and compiles it to produce a binary qmail*.deb file
9 The directory where this is done will end up containing the
10 source and package files for the qmail binary package, along
11 with a directory containing the unpacked source.
15 echo -n "Where would you like to do this [$NEWDIR] "
18 NEWDIR="${line:-$NEWDIR}"
22 echo -n "'$NEWDIR' already exists, should I use it anyway ? [yN] "
24 test "$yn" = y -o "$yn" = Y || exit 1
30 dpkg-source -x /usr/src/qmail-src/qmail_*.dsc
36 For some reason fakeroot causes install to hang on my system, so I'm
37 giving you the option of running sudo or fakeroot. Give fakeroot a try
38 but if it does not work use sudo instead.
41 echo -n "Should I use sudo or fakeroot to build the package ? [sF] "
43 test "$yn" = s -o "$yn" = S && BECOMEROOT=sudo
45 dpkg-buildpackage -us -uc -r$BECOMEROOT