source: Slackware/i2p-base/i2p-base.SlackBuild @ 3c4994c

Last change on this file since 3c4994c was 3c4994c, checked in by sponge <sponge@…>, 10 years ago

Fix script so the proper encodeing is used in the JVM.

  • Property mode set to 100644
File size: 1.5 KB
Line 
1#!/bin/sh
2#
3# Heavily based on the Slackware 12.2 SlackBuild
4# Slackware build script for I2P
5#
6# PLEASE READ THIS:
7# How to start I2P:
8# After installpkg command, doinst.sh will execute a post-installation script
9# needed by I2P. After that you have to chmod +x /etc/rc.d/rc.i2p and start
10# I2P service with /etc/rc.d/rc.i2p start.
11#
12# Now tell your browser to user this proxy: localhost on port 4444 and open
13# this page: http://localhost:7657/index.jsp
14#
15# Here you can configure I2P, watch network status and navigate anonimously.
16# It's suggested to subscribe to various dns host, like i2host.i2p
17# For any additional information, visit i2host.i2p and forum.i2p
18#
19
20CWD=$(pwd)
21TMP=/tmp
22PKG=/$TMP/package-base-i2p
23NAME=i2p-base
24VERSION=0.0.4
25BUILD=1sponge
26ARCH=noarch
27INSTALL_DIR=opt
28
29# Less than slackware 13?
30SLKPLT=$(cat /etc/slackware-version | sed -re "s/(Slackware )([0-9]*)(.*)/\2/")
31if [ $SLKPLT -lt 13 ] ; then
32        EXT=tgz
33else
34        EXT=txz
35fi
36
37rm -rf $PKG
38mkdir -p $PKG
39cd $PKG
40chown -R root:root .
41
42mkdir -p $PKG/etc/rc.d
43mkdir -p $PKG/install
44sed "s|directory|/$INSTALL_DIR/i2p/i2prouter|g" "$CWD/rc.i2p_def" > $PKG/etc/rc.d/rc.i2p.new
45chmod 644 $PKG/etc/rc.d/rc.i2p.new
46cat "$CWD/doinst.sh" > $PKG/install/doinst.sh
47cat "$CWD/slack-desc" > $PKG/install/slack-desc
48
49cd $PKG
50#
51# Not really that important to exec this
52# as there aren't any deps we don't know.
53#
54# requiredbuilder -v -y -s $CWD $PKG
55#
56cat "$CWD/slack-required" > $PKG/install/slack-required
57makepkg -l y -c n $CWD/${NAME}-$VERSION-$ARCH-$BUILD.$EXT
Note: See TracBrowser for help on using the repository browser.