diff options
Diffstat (limited to 'network/atftp/atftp.SlackBuild')
-rw-r--r-- | network/atftp/atftp.SlackBuild | 23 |
1 files changed, 17 insertions, 6 deletions
diff --git a/network/atftp/atftp.SlackBuild b/network/atftp/atftp.SlackBuild index c5f7d225e9..c32872849d 100644 --- a/network/atftp/atftp.SlackBuild +++ b/network/atftp/atftp.SlackBuild @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for atftp @@ -21,8 +21,10 @@ # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -# Now maintained by B. Watson <yalhcru@gmail.com>. +# Now maintained by B. Watson <urchlay@slackware.uk>. +# 20230103 bkw: update for v0.8.0. +# 20210223 bkw: update for v0.7.4. # 20191129 bkw: update for v0.7.2. # 20180629 bkw: @@ -32,10 +34,13 @@ # - Expand README with hopefully useful setup info. Include it in # the package since it overrides some of the info from upstream's docs. +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=atftp -VERSION=${VERSION:-0.7.2} -BUILD=${BUILD:-2} +VERSION=${VERSION:-0.8.0} +BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -45,7 +50,11 @@ if [ -z "$ARCH" ]; then esac fi -CWD=$(pwd) +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -76,6 +85,8 @@ chown -R root:root . find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \ \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+ +[ -e ./configure ] || sh autogen.sh + CC="gcc -fgnu89-inline $SLKCFLAGS" \ ./configure \ --prefix=/usr \ @@ -104,4 +115,4 @@ mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE |