Ignore:
Timestamp:
Nov 4, 2009 10:27:02 AM (11 years ago)
Author:
sponge <sponge@…>
Branches:
master
Children:
a3b1c790
Parents:
b65865b8
Message:

Fixups to Slackware scripts

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Slackware/i2p-base/i2p-base.SlackBuild

    rb65865b8 r5190b2d  
    11#!/bin/sh
    2 # Heavily based on the Slackware 12.1 SlackBuild
    3 # Slackware build script for i2p
    4 
     2#
     3# Heavily based on the Slackware 12.2 SlackBuild
     4# Slackware build script for I2P
     5#
    56# 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.
     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#
    1212# Now tell your browser to user this proxy: localhost on port 4444 and open
    1313# this page: http://localhost:7657/index.jsp
    14 # Here you can configure i2p, watch network status and navigate anonimously.
     14#
     15# Here you can configure I2P, watch network status and navigate anonimously.
    1516# It's suggested to subscribe to various dns host, like i2host.i2p
    1617# For any additional information, visit i2host.i2p and forum.i2p
     18#
    1719
    1820CWD=$(pwd)
    1921TMP=/tmp
    2022PKG=/$TMP/package-base-i2p
    21 rm -rf $PKG
    22 mkdir -p $PKG
    23 # put here installation dir, without first and last /
    24 # es: usr/local
    2523NAME=i2p-base
    26 VERSION=0.0.1
     24VERSION=0.0.2
    2725BUILD=1sponge
    2826ARCH=noarch
    2927INSTALL_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
    3039cd $PKG
    3140chown -R root:root .
     
    3342mkdir -p $PKG/etc/rc.d
    3443mkdir -p $PKG/install
    35 sed "s|directory|/$INSTALL_DIR/i2p/i2prouter|g" $CWD/rc.i2p_def > $PKG/etc/rc.d/rc.i2p.new
     44sed "s|directory|/$INSTALL_DIR/i2p/i2prouter|g" "$CWD/rc.i2p_def" > $PKG/etc/rc.d/rc.i2p.new
    3645chmod 644 $PKG/etc/rc.d/rc.i2p.new
    37 sed "s|directory|/$INSTALL_DIR/i2p/|g" $CWD/doinst.sh > $PKG/install/doinst.sh
    38 cat $CWD/slack-desc > $PKG/install/slack-desc
     46cat "$CWD/doinst.sh" > $PKG/install/doinst.sh
     47cat "$CWD/slack-desc" > $PKG/install/slack-desc
    3948
    4049cd $PKG
    4150#
    42 # Not really that important to exec this.
    43 #requiredbuilder -v -y -s $CWD $PKG
     51# Not really that important to exec this 
     52# as there aren't any deps we don't know.
    4453#
    45 cat $CWD/slack-required > $PKG/install/slack-required
    46 makepkg -l y -c n $CWD/${NAME}-$VERSION-$ARCH-$BUILD.tgz
     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 TracChangeset for help on using the changeset viewer.