2009-02-01 07:51:38 +00:00
|
|
|
#!/bin/sh
|
2009-11-04 10:27:02 +00:00
|
|
|
#
|
|
|
|
# Heavily based on the Slackware 12.2 SlackBuild
|
|
|
|
# Slackware build script for I2P
|
|
|
|
#
|
2009-02-01 07:51:38 +00:00
|
|
|
# PLEASE READ THIS:
|
2009-11-04 10:27:02 +00:00
|
|
|
# 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.
|
|
|
|
#
|
2009-02-01 07:51:38 +00:00
|
|
|
# Now tell your browser to user this proxy: localhost on port 4444 and open
|
|
|
|
# this page: http://localhost:7657/index.jsp
|
2009-11-04 10:27:02 +00:00
|
|
|
#
|
|
|
|
# Here you can configure I2P, watch network status and navigate anonimously.
|
2009-02-01 07:51:38 +00:00
|
|
|
# It's suggested to subscribe to various dns host, like i2host.i2p
|
|
|
|
# For any additional information, visit i2host.i2p and forum.i2p
|
2009-11-04 10:27:02 +00:00
|
|
|
#
|
2009-02-01 07:51:38 +00:00
|
|
|
|
|
|
|
CWD=$(pwd)
|
|
|
|
TMP=/tmp
|
|
|
|
PKG=/$TMP/package-base-i2p
|
|
|
|
NAME=i2p-base
|
2010-12-19 00:40:01 +00:00
|
|
|
VERSION=0.0.4
|
2009-09-21 08:54:41 +00:00
|
|
|
BUILD=1sponge
|
2009-02-01 07:51:38 +00:00
|
|
|
ARCH=noarch
|
|
|
|
INSTALL_DIR=opt
|
2009-11-04 10:27:02 +00:00
|
|
|
|
|
|
|
# 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
|
2009-02-01 07:51:38 +00:00
|
|
|
cd $PKG
|
|
|
|
chown -R root:root .
|
|
|
|
|
|
|
|
mkdir -p $PKG/etc/rc.d
|
|
|
|
mkdir -p $PKG/install
|
2009-11-04 10:27:02 +00:00
|
|
|
sed "s|directory|/$INSTALL_DIR/i2p/i2prouter|g" "$CWD/rc.i2p_def" > $PKG/etc/rc.d/rc.i2p.new
|
2009-02-01 07:51:38 +00:00
|
|
|
chmod 644 $PKG/etc/rc.d/rc.i2p.new
|
2009-11-04 10:27:02 +00:00
|
|
|
cat "$CWD/doinst.sh" > $PKG/install/doinst.sh
|
|
|
|
cat "$CWD/slack-desc" > $PKG/install/slack-desc
|
2009-02-01 07:51:38 +00:00
|
|
|
|
|
|
|
cd $PKG
|
2009-09-21 08:54:41 +00:00
|
|
|
#
|
2009-11-04 10:27:02 +00:00
|
|
|
# Not really that important to exec this
|
|
|
|
# as there aren't any deps we don't know.
|
|
|
|
#
|
|
|
|
# requiredbuilder -v -y -s $CWD $PKG
|
2009-09-21 08:54:41 +00:00
|
|
|
#
|
2009-11-04 10:27:02 +00:00
|
|
|
cat "$CWD/slack-required" > $PKG/install/slack-required
|
|
|
|
makepkg -l y -c n $CWD/${NAME}-$VERSION-$ARCH-$BUILD.$EXT
|