Changeset e3de3dc for Slackware


Ignore:
Timestamp:
Jul 15, 2009 8:51:51 AM (11 years ago)
Author:
sponge <sponge@…>
Branches:
master
Children:
8ce71d7
Parents:
fa6a6fa4
Message:
Location:
Slackware/i2p
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Slackware/i2p/doinst.sh

    rfa6a6fa4 re3de3dc  
    5050
    5151cd $INST_DIR
    52 sh postinstall.sh || (
    53   echo "ERROR: failed execution of postinstall.sh. Please"
    54   echo "cd into i2p installation directory and run "
    55   echo "postinstall.sh manually with ./postinstall.sh"
    56   exit 1
    57 )
    5852
    59 sleep 10
    6053
    61 sh i2prouter stop || exit 1
     54
     55OS_ARCH=`uname -m`
     56X86_64=`echo "$OS_ARCH" | grep x86_64`
     57if [ "X$X86_64" = "X" ]; then
     58        wrapperpath="./lib/wrapper/linux"
     59else
     60        wrapperpath="./lib/wrapper/linux64"
     61fi
     62cp $wrapperpath/libwrapper.so ./lib/
     63cp $wrapperpath/wrapper.jar ./lib/
     64cp $wrapperpath/i2psvc .
     65rm -rf ./lib/wrapper
     66chmod 744 ./i2psvc
    6267
    6368echo
  • Slackware/i2p/i2p.SlackBuild

    rfa6a6fa4 re3de3dc  
    1919
    2020# put here installation dir, without first and last /
    21 # es: usr/local
     21# eg: usr/local
    2222INSTALL_DIR=opt
    2323NAME=i2p
     
    6565
    6666ant distclean
    67 ant dist
     67#ant dist
    6868ant tarball
    6969
     
    7777
    7878mkdir -p $PKG/install
     79
     80#############################################################################
     81# Preconfigureation to make package smaller
     82#############################################################################
     83cd $PKG/$INSTALL_DIR/i2p
     84
     85# wrapper.config $INSTALL_PATH and $SYSTEM_java_io_tmpdir
     86sed "s|\$INSTALL_PATH|$INSTALL_DIR/i2p|g" wrapper.config > a
     87sed "s|\$SYSTEM_java_io_tmpdir|/var/tmp|g" a > wrapper.config
     88# eepget %INSTALL_PATH
     89sed "s|\$INSTALL_PATH|$INSTALL_DIR/i2p|g" eepget > a
     90rm eepget
     91mv a eepget
     92# runplain.sh %INSTALL_PATH and %SYSTEM_java_io_tmpdir
     93sed "s|%INSTALL_PATH|$INSTALL_DIR/i2p|g" runplain.sh > a
     94sed "s|%SYSTEM_java_io_tmpdir|/var/tmp|g" a > runplain.sh
     95# i2prouter %INSTALL_PATH and %SYSTEM_java_io_tmpdir
     96sed "s|%INSTALL_PATH|$INSTALL_DIR/i2p|g" i2prouter > a
     97sed "s|%SYSTEM_java_io_tmpdir|/var/tmp|g" a > i2prouter
     98
     99chmod 744 ./i2prouter
     100chmod 744 ./osid
     101chmod 744 ./runplain.sh
     102chmod 744 ./eepget
     103chmod 744 ./scripts/i2pbench.sh
     104chmod 744 ./scripts/i2ptest.sh
     105rm -Rf ./lib/*.dll ./*.bat ./*.exe ./installer ./icons ./a postinstall.sh
     106
    79107mv $PKG/$INSTALL_DIR/i2p/*.config $PKG/install
    80108mv $PKG/$INSTALL_DIR/i2p/blocklist.txt $PKG/$INSTALL_DIR/i2p/blocklist.txt.new
     
    84112sed "s|directory|/$INSTALL_DIR/i2p/|g" $CWD/doinst.sh > $PKG/install/doinst.sh
    85113cat $CWD/slack-desc > $PKG/install/slack-desc
     114
    86115cd $PKG
    87116requiredbuilder -v -y -s $CWD $PKG
Note: See TracChangeset for help on using the changeset viewer.