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/i2p.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.
    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
     7# Probably you will never have to update I2P packages with upgradepkg,
     8# just because I2P has an auto-update function.
     9# Really you should not ever use any "upgrade" method.
     10#
     11# The correct way to upgrade is to:
     12# 1: install the upgrade
     13# 2: remove the old package
     14#
     15# It is a terrible shame that upgradepkg doesn't do this, infact,
     16# it would actually be the correct way for *any* package!
     17#
     18#
    1719
    1820BUILD=1sponge
    19 
    20 # put here installation dir, without first and last /
    21 # eg: usr/local
    2221INSTALL_DIR=opt
    2322NAME=i2p
    2423ARCH=noarch
     24
     25# Less than slackware 13?
     26SLKPLT=$(cat /etc/slackware-version | sed -re "s/(Slackware )([0-9]*)(.*)/\2/")
     27if [ $SLKPLT -lt 13 ] ; then
     28        EXT=tgz
     29else
     30        EXT=txz
     31fi
    2532
    2633
     
    118125# It also did not catch the shell requirements! BOOOOOOOOOOO! HISSSSSSSS!
    119126#
    120 #requiredbuilder -v -y -s $CWD $PKG
     127# requiredbuilder -v -y -s $CWD $PKG
    121128#
    122129cat $CWD/slack-required > $PKG/install/slack-required
    123 makepkg -l y -c n $CWD/${NAME}-$VERSION-$ARCH-$BUILD.tgz
     130makepkg -l y -c n $CWD/${NAME}-$VERSION-$ARCH-$BUILD.$EXT
Note: See TracChangeset for help on using the changeset viewer.