summaryrefslogtreecommitdiff
path: root/system/zerofree/zerofree.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'system/zerofree/zerofree.SlackBuild')
-rw-r--r--system/zerofree/zerofree.SlackBuild11
1 files changed, 10 insertions, 1 deletions
diff --git a/system/zerofree/zerofree.SlackBuild b/system/zerofree/zerofree.SlackBuild
index 239c325907..046cd21bcc 100644
--- a/system/zerofree/zerofree.SlackBuild
+++ b/system/zerofree/zerofree.SlackBuild
@@ -22,9 +22,11 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# 20141021 bkw: add man page, add sparsify, bump BUILD to 2.
+
PRGNAM=zerofree
VERSION=${VERSION:-1.0.3}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -77,6 +79,13 @@ strip --strip-unneeded $PRGNAM 2> /dev/null
mkdir -p $PKG/usr/sbin
cp -a $PRGNAM $PKG/usr/sbin
+# This looks useful, include it.
+gcc $SLKCFLAGS -Wl,-s -o $PKG/usr/sbin/sparsify $CWD/sparsify.c -lext2fs
+
+# man page comes from Debian.
+mkdir -p $PKG/usr/man/man8
+gzip -9c $CWD/$PRGNAM.8 > $PKG/usr/man/man8/$PRGNAM.8.gz
+
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a COPYING $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild