diff options
-rw-r--r-- | system/slack-utils/README | 3 | ||||
-rw-r--r-- | system/slack-utils/slack-desc | 19 | ||||
-rw-r--r-- | system/slack-utils/slack-utils.SlackBuild | 71 | ||||
-rw-r--r-- | system/slack-utils/slack-utils.info | 10 |
4 files changed, 103 insertions, 0 deletions
diff --git a/system/slack-utils/README b/system/slack-utils/README new file mode 100644 index 0000000000..aee1f29333 --- /dev/null +++ b/system/slack-utils/README @@ -0,0 +1,3 @@ +slackware utilities +A handful of commands to quickly/easily access information on the Slackware Linux distribution. +Further, this provides a ruby library for 'slackware'. diff --git a/system/slack-utils/slack-desc b/system/slack-utils/slack-desc new file mode 100644 index 0000000000..d656fa3e27 --- /dev/null +++ b/system/slack-utils/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. Line +# up the first '|' above the ':' following the base package name, and the '|' +# on the right side marks the last column you can put a character in. You must +# make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':'. + + |-----handy-ruler------------------------------------------------------| +slack-utils: slack-utils (utilities and Ruby library, for Slackware) +slack-utils: +slack-utils: A simple tool for looking over installed packages, +slack-utils: finding file owners, or the install times of packages. +slack-utils: +slack-utils: Homepage https://github.com/vbatts/slack-utils +slack-utils: +slack-utils: +slack-utils: +slack-utils: +slack-utils: diff --git a/system/slack-utils/slack-utils.SlackBuild b/system/slack-utils/slack-utils.SlackBuild new file mode 100644 index 0000000000..56924dc5dd --- /dev/null +++ b/system/slack-utils/slack-utils.SlackBuild @@ -0,0 +1,71 @@ +#!/bin/sh + +# Slackware build script for slack-utils + +# Copyright 2010,2011 Vincent Batts, vbatts@hashbangbash.com, http://hashbangbash.com/ +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +set -e + +PRGNAM=slack-utils +VERSION=${VERSION:-0.6.1} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i486 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +cd $PRGNAM-$VERSION + +ruby setup.rb config \ + --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/man + +ruby setup.rb install \ + --prefix=$PKG + +find $PKG/usr/man -type f -exec gzip -9 {} \; +for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a README.rdoc examples $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +/sbin/makepkg -p -l y -c n ${OUTPUT}/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-tgz} diff --git a/system/slack-utils/slack-utils.info b/system/slack-utils/slack-utils.info new file mode 100644 index 0000000000..0ec9eb5d28 --- /dev/null +++ b/system/slack-utils/slack-utils.info @@ -0,0 +1,10 @@ +PRGNAM="slack-utils" +VERSION="0.6.1" +HOMEPAGE="https://github.com/vbatts/slack-utils" +DOWNLOAD="https://github.com/downloads/vbatts/slack-utils/slack-utils-0.6.1.tar.gz" +MD5SUM="825e06f841cebf73ae08b824316b415e" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +MAINTAINER="Vincent Batts" +EMAIL="vbatts@hashbangbash.com" +APPROVED="pprkut" |