misc/pinfo: Add douninst.sh.
Signed-off-by: B. Watson <urchlay@slackware.uk> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
7d0876d71f
commit
562c2d8838
|
@ -1,18 +1,15 @@
|
||||||
config() {
|
config() {
|
||||||
NEW="$1"
|
NEW="$1"
|
||||||
OLD="$(dirname $NEW)/$(basename $NEW .new)"
|
OLD="$(dirname $NEW)/$(basename $NEW .new)"
|
||||||
# If there's no config file by that name, mv it over:
|
|
||||||
if [ ! -r $OLD ]; then
|
if [ ! -r $OLD ]; then
|
||||||
mv $NEW $OLD
|
mv $NEW $OLD
|
||||||
elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
|
elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
|
||||||
# toss the redundant copy
|
|
||||||
rm $NEW
|
rm $NEW
|
||||||
fi
|
fi
|
||||||
# Otherwise, we leave the .new copy for the admin to consider...
|
|
||||||
}
|
}
|
||||||
|
|
||||||
config etc/pinforc.new
|
config etc/pinforc.new
|
||||||
|
|
||||||
if [ -x /usr/bin/install-info ]; then
|
if [ -x /usr/bin/install-info ]; then
|
||||||
chroot . /usr/bin/install-info --info-dir=/usr/info /usr/info/pinfo.info.gz 2> /dev/null
|
/usr/bin/install-info usr/info/pinfo.info.gz usr/info/dir
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
if [ -x /usr/bin/install-info -a -d usr/info ]; then
|
||||||
|
( cd usr/info
|
||||||
|
rm -f dir
|
||||||
|
for i in *.info*; do /usr/bin/install-info $i dir 2>/dev/null; done
|
||||||
|
)
|
||||||
|
fi
|
|
@ -24,6 +24,8 @@
|
||||||
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
|
# 20230308 bkw: BUILD=3, add douninst.sh to clean up GNU info dir.
|
||||||
|
|
||||||
# 20200708 bkw: BUILD=2
|
# 20200708 bkw: BUILD=2
|
||||||
# - restore old 'pman' link (nothing conflicts)
|
# - restore old 'pman' link (nothing conflicts)
|
||||||
# - fix homepage in slack-desc
|
# - fix homepage in slack-desc
|
||||||
|
@ -39,7 +41,7 @@ cd $(dirname $0) ; CWD=$(pwd)
|
||||||
|
|
||||||
PRGNAM=pinfo
|
PRGNAM=pinfo
|
||||||
VERSION=${VERSION:-0.6.13}
|
VERSION=${VERSION:-0.6.13}
|
||||||
BUILD=${BUILD:-2}
|
BUILD=${BUILD:-3}
|
||||||
TAG=${TAG:-_SBo}
|
TAG=${TAG:-_SBo}
|
||||||
PKGTYPE=${PKGTYPE:-tgz}
|
PKGTYPE=${PKGTYPE:-tgz}
|
||||||
|
|
||||||
|
@ -124,6 +126,7 @@ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||||
mkdir -p $PKG/install
|
mkdir -p $PKG/install
|
||||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||||
cat $CWD/doinst.sh > $PKG/install/doinst.sh
|
cat $CWD/doinst.sh > $PKG/install/doinst.sh
|
||||||
|
cat $CWD/douninst.sh > $PKG/install/douninst.sh
|
||||||
|
|
||||||
cd $PKG
|
cd $PKG
|
||||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
|
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
|
||||||
|
|
Loading…
Reference in New Issue