From 7a4fd5558124026494d8a343d374fc36896e0ae7 Mon Sep 17 00:00:00 2001 From: Marco Bonetti Date: Thu, 13 May 2010 00:37:55 +0200 Subject: [PATCH] network/polipo: Updated for version 1.0.4 --- network/polipo/makefile.diff | 52 +++++++++++++++++++++++++++++++ network/polipo/makefile.patch.gz | Bin 708 -> 0 bytes network/polipo/polipo.SlackBuild | 23 +++++++++++--- network/polipo/polipo.info | 2 ++ 4 files changed, 72 insertions(+), 5 deletions(-) create mode 100644 network/polipo/makefile.diff delete mode 100644 network/polipo/makefile.patch.gz diff --git a/network/polipo/makefile.diff b/network/polipo/makefile.diff new file mode 100644 index 0000000000..60ebc4ed61 --- /dev/null +++ b/network/polipo/makefile.diff @@ -0,0 +1,52 @@ +diff -Naur polipo-1.0.4.orig/Makefile polipo-1.0.4/Makefile +--- polipo-1.0.4.orig/Makefile 2008-01-08 13:56:45.000000000 +0100 ++++ polipo-1.0.4/Makefile 2009-09-10 15:23:41.703441052 +0200 +@@ -1,7 +1,9 @@ +-PREFIX = /usr/local ++PREFIX = /usr + BINDIR = $(PREFIX)/bin + MANDIR = $(PREFIX)/man + INFODIR = $(PREFIX)/info ++CONFDIR = /etc/polipo ++PIDDIR = /var/run/polipo + LOCAL_ROOT = /usr/share/polipo/www + DISK_CACHE_ROOT = /var/cache/polipo + +@@ -89,20 +91,25 @@ + install: install.binary install.man + + install.binary: all +- mkdir -p $(TARGET)$(BINDIR) +- mkdir -p $(TARGET)$(LOCAL_ROOT) +- mkdir -p $(TARGET)$(LOCAL_ROOT)/doc +- rm -f $(TARGET)$(BINDIR)/polipo +- cp -f polipo $(TARGET)$(BINDIR)/ +- cp -f html/* $(TARGET)$(LOCAL_ROOT)/doc +- cp -f localindex.html $(TARGET)$(LOCAL_ROOT)/index.html ++ mkdir -p $(DESTDIR)$(CONFDIR) ++ mkdir -p $(DESTDIR)$(PIDDIR) ++ mkdir -p $(DESTDIR)$(BINDIR) ++ mkdir -p $(DESTDIR)$(LOCAL_ROOT) ++ mkdir -p $(DESTDIR)$(LOCAL_ROOT)/doc ++ mkdir -p $(DESTDIR)$(DISK_CACHE_ROOT) ++ rm -f $(DESTDIR)$(BINDIR)/polipo ++ rm -f $(DESTDIR)$(CONFDIR)/config.new ++ cp -f polipo $(DESTDIR)$(BINDIR)/ ++ cp -f config.sample $(DESTDIR)$(CONFDIR)/config.new ++ cp -f html/* $(DESTDIR)$(LOCAL_ROOT)/doc ++ cp -f localindex.html $(DESTDIR)$(LOCAL_ROOT)/index.html + + install.man: all +- mkdir -p $(TARGET)$(MANDIR)/man1 +- mkdir -p $(TARGET)$(INFODIR) +- cp -f polipo.man $(TARGET)$(MANDIR)/man1/polipo.1 +- cp polipo.info $(TARGET)$(INFODIR)/ +- install-info --info-dir=$(TARGET)$(INFODIR) polipo.info ++ mkdir -p $(DESTDIR)$(MANDIR)/man1 ++ mkdir -p $(DESTDIR)$(INFODIR) ++ cp -f polipo.man $(DESTDIR)$(MANDIR)/man1/polipo.1 ++ cp polipo.info $(DESTDIR)$(INFODIR)/ ++ install-info --info-dir=$(DESTDIR)$(INFODIR) polipo.info + + + polipo.info: polipo.texi diff --git a/network/polipo/makefile.patch.gz b/network/polipo/makefile.patch.gz deleted file mode 100644 index fbbf61bb07e0c99278bf07aa95c96713b5da79f1..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 708 zcmV;#0z3U5iwFpwGObAf18rezWoBt?WiD`GbYo}$jZ|50;xG_?u7AZy%L8n1t^x~@ zkf0o0v@NNC)$Uv64FRm?QjVql_iN|kNX(WzV9$K>jlc1Xw{*7yyd+5of$z}3$C|9l z9oY}*UU?>O_KrICg{!n8jPZ@2J6%=#SkeVAhqTAnSw5a|e>O5gcTrA(`@Ek2holMxu&d$YbVcDS zrzz*X22$u%EZ^JFz3kaXhP%3X zmo$AoH31}lR9jbl%b7(?dA(&Vi^+HVC9Wgp?VcYOrx=|6VRn>Z4g8!=)EpPG1ej8n qRHv(+>m*F73ae7{E)grM;xD8D|IQ3Xv5D<>iv9tJjEI^I2mk;P;9W8R diff --git a/network/polipo/polipo.SlackBuild b/network/polipo/polipo.SlackBuild index 1f442a5451..f82e344d61 100644 --- a/network/polipo/polipo.SlackBuild +++ b/network/polipo/polipo.SlackBuild @@ -26,15 +26,27 @@ PRGNAM=polipo VERSION=${VERSION:-1.0.4} ARCH=${ARCH:-i486} -BUILD=${BUILD:-2} +BUILD=${BUILD:-3} TAG=${TAG:-_SBo} CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} + DOCS="CHANGES COPYING INSTALL README" +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +fi + set -e rm -rf $PKG @@ -44,8 +56,8 @@ rm -rf $PRGNAM-$VERSION tar xvf $CWD/$PRGNAM-$VERSION.tar.gz cd $PRGNAM-$VERSION -# Fix Makefile and add a sample config file -zcat $CWD/makefile.patch.gz | patch -p1 --verbose +# Fix Makefile +cat $CWD/makefile.diff | patch -p1 --verbose chown -R root:root . find . \ @@ -54,7 +66,7 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; -make +make CDEBUGFLAGS="$SLKCFLAGS" make install DESTDIR=$PKG ( cd $PKG @@ -84,4 +96,5 @@ cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} + diff --git a/network/polipo/polipo.info b/network/polipo/polipo.info index 5ebc3db236..b153c15593 100644 --- a/network/polipo/polipo.info +++ b/network/polipo/polipo.info @@ -2,7 +2,9 @@ PRGNAM="polipo" VERSION="1.0.4" HOMEPAGE="http://www.pps.jussieu.fr/~jch/software/polipo/" DOWNLOAD="http://www.pps.jussieu.fr/~jch/software/files/polipo/polipo-1.0.4.tar.gz" +DOWNLOAD_x86_64="" MD5SUM="defdce7f8002ca68705b6c2c36c4d096" +MD5SUM_x86_64="" MAINTAINER="Marco Bonetti" EMAIL="sid77@slackware.it" APPROVED="dsomero"