diff options
author | B. Watson <yalhcru@gmail.com> | 2017-08-04 11:22:39 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-08-05 07:07:36 +0700 |
commit | 1754886ae8205cf82b5da10164591480d3589114 (patch) | |
tree | 4eff79f23b25b33032e60f89689f40665e2be8f7 /development | |
parent | 264ba54f96bfafbcaddc6e1e48cad189471e1fbc (diff) | |
download | slackbuilds-1754886ae8205cf82b5da10164591480d3589114.tar.gz |
development/pkgdiff: Added (visualize changes in archives).
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'development')
-rw-r--r-- | development/pkgdiff/README | 11 | ||||
-rw-r--r-- | development/pkgdiff/pkgdiff.SlackBuild | 50 | ||||
-rw-r--r-- | development/pkgdiff/pkgdiff.info | 10 | ||||
-rw-r--r-- | development/pkgdiff/slack-desc | 19 |
4 files changed, 90 insertions, 0 deletions
diff --git a/development/pkgdiff/README b/development/pkgdiff/README new file mode 100644 index 0000000000..5f8f4a9d67 --- /dev/null +++ b/development/pkgdiff/README @@ -0,0 +1,11 @@ +pkgdiff (visualize changes in tgz/rpm/deb/etc archives) + +Package Changes Analyzer (pkgdiff) - a tool for visualizing changes in +Linux software packages (RPM, DEB, TAR.GZ, etc). The tool is intended for +Linux maintainers who are interested in ensuring compatibility of old and +new versions of packages. It's useful for both source and binary packages. + +The tool can compare directories as well (with the help of the -d option). + +Sample report: +https://abi-laboratory.pro/tracker/package_diff/libssh/0.6.5/0.7.0/report.html diff --git a/development/pkgdiff/pkgdiff.SlackBuild b/development/pkgdiff/pkgdiff.SlackBuild new file mode 100644 index 0000000000..dc194aae64 --- /dev/null +++ b/development/pkgdiff/pkgdiff.SlackBuild @@ -0,0 +1,50 @@ +#!/bin/sh + +# Slackware build script for pkgdiff + +# Written by B. Watson (yalhcru@gmail.com) + +# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. + +# Note: on the homepage, it says it requires perl-file-libmagic. This is +# only true of the latest git code. The releases up to 1.7.2 don't require +# it. When there's a new release, it'll be time to add perl-file-libmagic +# to REQUIRES. + +PRGNAM=pkgdiff +VERSION=${VERSION:-1.7.2} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} +ARCH=noarch + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG/usr $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +cd $PRGNAM-$VERSION +chown -R root:root . +find -L . \ + \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ + -o -perm 511 \) -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + +DESTDIR=$PKG make install + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a LICENSE README doc/Readme.html $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 -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/development/pkgdiff/pkgdiff.info b/development/pkgdiff/pkgdiff.info new file mode 100644 index 0000000000..0667f7d13a --- /dev/null +++ b/development/pkgdiff/pkgdiff.info @@ -0,0 +1,10 @@ +PRGNAM="pkgdiff" +VERSION="1.7.2" +HOMEPAGE="https://github.com/lvc/pkgdiff" +DOWNLOAD="https://github.com/lvc/pkgdiff/archive/1.7.2/pkgdiff-1.7.2.tar.gz" +MD5SUM="edd0d709f1c45be93665300b4aa834da" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="wdiff" +MAINTAINER="B. Watson" +EMAIL="yalhcru@gmail.com" diff --git a/development/pkgdiff/slack-desc b/development/pkgdiff/slack-desc new file mode 100644 index 0000000000..c1a647b4b0 --- /dev/null +++ b/development/pkgdiff/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 ':' except on otherwise blank lines. + + |-----handy-ruler------------------------------------------------------| +pkgdiff: pkgdiff (visualize changes in tgz/rpm/deb/etc archives) +pkgdiff: +pkgdiff: Package Changes Analyzer (pkgdiff) - a tool for visualizing changes in +pkgdiff: Linux software packages (RPM, DEB, TAR.GZ, etc). The tool is intended +pkgdiff: for Linux maintainers who are interested in ensuring compatibility +pkgdiff: of old and new versions of packages. It's useful for both source +pkgdiff: and binary packages. +pkgdiff: +pkgdiff: +pkgdiff: +pkgdiff: |