source: Slackware/i2p-base/i2p-base.SlackBuild @ c4870021

Last change on this file since c4870021 was c4870021, checked in by sponge <sponge@…>, 11 years ago

SlackBuild?!

  • Property mode set to 100644
File size: 1.4 KB
Line 
1#!/bin/sh
2# Heavily based on the Slackware 12.1 SlackBuild
3# Slackware build script for i2p
4
5# PLEASE READ THIS:
6# Probably you will never have to update i2p packages with upgradepkg,
7# just because i2p have an auto-update function.
8# How to start i2p:
9# After installpkg command, doinst.sh will execute a postinstallation script
10# needed by i2p. After that you have to chmod +x /etc/rc.d/rc.i2p and start
11# i2p service with /etc/rc.d/rc.i2p start.
12# Now tell your browser to user this proxy: localhost on port 4444 and open
13# this page: http://localhost:7657/index.jsp
14# Here you can configure i2p, watch network status and navigate anonimously.
15# It's suggested to subscribe to various dns host, like i2host.i2p
16# For any additional information, visit i2host.i2p and forum.i2p
17
18CWD=$(pwd)
19TMP=/tmp
20PKG=/$TMP/package-base-i2p
21rm -rf $PKG
22mkdir -p $PKG
23# put here installation dir, without first and last /
24# es: usr/local
25NAME=i2p-base
26VERSION=0.0.1
27BUILD=1sim
28ARCH=noarch
29INSTALL_DIR=opt
30cd $PKG
31chown -R root:root .
32
33mkdir -p $PKG/etc/rc.d
34mkdir -p $PKG/install
35sed "s|directory|/$INSTALL_DIR/i2p/i2prouter|g" $CWD/rc.i2p_def > $PKG/etc/rc.d/rc.i2p.new
36chmod 644 $PKG/etc/rc.d/rc.i2p.new
37sed "s|directory|/$INSTALL_DIR/i2p/|g" $CWD/doinst.sh > $PKG/install/doinst.sh
38cat $CWD/slack-desc > $PKG/install/slack-desc
39
40cd $PKG
41requiredbuilder -v -y -s $CWD $PKG
42makepkg -l y -c n $CWD/${NAME}-$VERSION-$ARCH-$BUILD.tgz
Note: See TracBrowser for help on using the repository browser.