#!/bin/sh # # Heavily based on the Slackware 12.2 SlackBuild # Slackware build script for I2P # # PLEASE READ THIS: # How to start I2P: # After installpkg command, doinst.sh will execute a post-installation script # needed by I2P. After that you have to chmod +x /etc/rc.d/rc.i2p and start # I2P service with /etc/rc.d/rc.i2p start. # # Now tell your browser to user this proxy: localhost on port 4444 and open # this page: http://localhost:7657/index.jsp # # Here you can configure I2P, watch network status and navigate anonimously. # It's suggested to subscribe to various dns host, like i2host.i2p # For any additional information, visit i2host.i2p and forum.i2p # CWD=$(pwd) TMP=/tmp PKG=/$TMP/package-base-i2p NAME=i2p-base VERSION=0.0.4 BUILD=1sponge ARCH=noarch INSTALL_DIR=opt # Less than slackware 13? SLKPLT=$(cat /etc/slackware-version | sed -re "s/(Slackware )([0-9]*)(.*)/\2/") if [ $SLKPLT -lt 13 ] ; then EXT=tgz else EXT=txz fi rm -rf $PKG mkdir -p $PKG cd $PKG chown -R root:root . mkdir -p $PKG/etc/rc.d mkdir -p $PKG/install sed "s|directory|/$INSTALL_DIR/i2p/i2prouter|g" "$CWD/rc.i2p_def" > $PKG/etc/rc.d/rc.i2p.new chmod 644 $PKG/etc/rc.d/rc.i2p.new cat "$CWD/doinst.sh" > $PKG/install/doinst.sh cat "$CWD/slack-desc" > $PKG/install/slack-desc cd $PKG # # Not really that important to exec this # as there aren't any deps we don't know. # # requiredbuilder -v -y -s $CWD $PKG # cat "$CWD/slack-required" > $PKG/install/slack-required makepkg -l y -c n $CWD/${NAME}-$VERSION-$ARCH-$BUILD.$EXT