aboutsummaryrefslogtreecommitdiff
path: root/network
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2024-03-31 16:22:27 -0400
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2024-04-05 15:17:56 +0700
commit12913f54baf4cac6ae45054700e30d34b6fd9fd6 (patch)
tree6174501f663311ca642ff753b31cc9b58f535b25 /network
parentc374259d271e81ab6fa9dfa8bfad8e83a364c2b2 (diff)
network/polipo: Fix github URL, handle /usr/info properly.
Signed-off-by: B. Watson <urchlay@slackware.uk> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network')
-rw-r--r--network/polipo/doinst.sh7
-rw-r--r--network/polipo/douninst.sh6
-rw-r--r--network/polipo/polipo.SlackBuild12
-rw-r--r--network/polipo/polipo.info2
4 files changed, 18 insertions, 9 deletions
diff --git a/network/polipo/doinst.sh b/network/polipo/doinst.sh
index 22e39ecac95dc..a3be83cfe3a0c 100644
--- a/network/polipo/doinst.sh
+++ b/network/polipo/doinst.sh
@@ -18,8 +18,11 @@ if [ -e etc/rc.d/rc.polipo ]; then
mv etc/rc.d/rc.polipo.new.incoming etc/rc.d/rc.polipo.new
fi
-if [ -x /usr/bin/install-info ]; then
- chroot . /usr/bin/install-info --info-dir=/usr/info /usr/info/polipo.info.gz 2> /dev/null
+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
config etc/rc.d/rc.polipo.new
diff --git a/network/polipo/douninst.sh b/network/polipo/douninst.sh
new file mode 100644
index 0000000000000..1bef5020286ea
--- /dev/null
+++ b/network/polipo/douninst.sh
@@ -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
diff --git a/network/polipo/polipo.SlackBuild b/network/polipo/polipo.SlackBuild
index e623a64743a55..0f9e399932abb 100644
--- a/network/polipo/polipo.SlackBuild
+++ b/network/polipo/polipo.SlackBuild
@@ -23,12 +23,14 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# 20240331 bkw: Modified by SlackBuilds.org, BUILD=2:
+# - handle /usr/info properly in doinst.sh, add douninst.sh
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=polipo
VERSION=${VERSION:-1.1.1}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -40,9 +42,6 @@ if [ -z "$ARCH" ]; then
esac
fi
-# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
-# the name of the created package would be, and then exit. This information
-# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@@ -83,9 +82,9 @@ patch -p1 < $CWD/makefile.diff
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 \
+ -exec chmod 755 {} + -o \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
- -exec chmod 644 {} \;
+ -exec chmod 644 {} +
make CDEBUGFLAGS="$SLKCFLAGS"
make install DESTDIR=$PKG
@@ -110,6 +109,7 @@ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
+cat $CWD/douninst.sh > $PKG/install/douninst.sh
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
diff --git a/network/polipo/polipo.info b/network/polipo/polipo.info
index 7f8de43505b60..86c583f8277ac 100644
--- a/network/polipo/polipo.info
+++ b/network/polipo/polipo.info
@@ -1,7 +1,7 @@
PRGNAM="polipo"
VERSION="1.1.1"
HOMEPAGE="http://www.pps.jussieu.fr/~jch/software/polipo/"
-DOWNLOAD="https://github.com/jech/polipo/archive/polipo-1.1.1.tar.gz"
+DOWNLOAD="https://github.com/jech/polipo/archive/polipo-1.1.1/polipo-polipo-1.1.1.tar.gz"
MD5SUM="bfbe3222a517d7c4153c4dc7cd9fd2ef"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""