Last change
on this file since 5190b2d was
5190b2d,
checked in by sponge <sponge@…>, 11 years ago
|
Fixups to Slackware scripts
|
-
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 | |
---|
20 | CWD=$(pwd) |
---|
21 | TMP=/tmp |
---|
22 | PKG=/$TMP/package-base-i2p |
---|
23 | NAME=i2p-base |
---|
24 | VERSION=0.0.2 |
---|
25 | BUILD=1sponge |
---|
26 | ARCH=noarch |
---|
27 | INSTALL_DIR=opt |
---|
28 | |
---|
29 | # Less than slackware 13? |
---|
30 | SLKPLT=$(cat /etc/slackware-version | sed -re "s/(Slackware )([0-9]*)(.*)/\2/") |
---|
31 | if [ $SLKPLT -lt 13 ] ; then |
---|
32 | EXT=tgz |
---|
33 | else |
---|
34 | EXT=txz |
---|
35 | fi |
---|
36 | |
---|
37 | rm -rf $PKG |
---|
38 | mkdir -p $PKG |
---|
39 | cd $PKG |
---|
40 | chown -R root:root . |
---|
41 | |
---|
42 | mkdir -p $PKG/etc/rc.d |
---|
43 | mkdir -p $PKG/install |
---|
44 | sed "s|directory|/$INSTALL_DIR/i2p/i2prouter|g" "$CWD/rc.i2p_def" > $PKG/etc/rc.d/rc.i2p.new |
---|
45 | chmod 644 $PKG/etc/rc.d/rc.i2p.new |
---|
46 | cat "$CWD/doinst.sh" > $PKG/install/doinst.sh |
---|
47 | cat "$CWD/slack-desc" > $PKG/install/slack-desc |
---|
48 | |
---|
49 | cd $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 | # |
---|
56 | cat "$CWD/slack-required" > $PKG/install/slack-required |
---|
57 | makepkg -l y -c n $CWD/${NAME}-$VERSION-$ARCH-$BUILD.$EXT |
---|
Note: See
TracBrowser
for help on using the repository browser.