Changeset 1f8f3eb


Ignore:
Timestamp:
Jun 13, 2014 10:44:42 PM (6 years ago)
Author:
kytv <kytv@…>
Branches:
master
Children:
a8e878f
Parents:
8fd2a05b
Message:

Fix up the included SlackBuild? (ticket #1310)

Files:
1 added
7 deleted
10 edited

Legend:

Unmodified
Added
Removed
  • Slackware/README

    r8fd2a05b r1f8f3eb  
    1616---
    1717
    18 Git is also an option to retrieve the I2P source code. That said, Monotone is *the*
    19 authoritative source. Known Git repositories with the I2P source include
     18Git is also an option to retrieve the I2P source code. That said, the I2P
     19Monotone servers are *the* authoritative source.
     20
     21Public Git repositories hosting the I2P source and managed by I2P project team members include
    2022
    2123- https://github.com/i2p/i2p.i2p
    2224- http://git.repo.i2p/w/i2p.i2p.git (mirrored from Github)
    2325- http://sourceforge.net/p/i2p/code/
     26
    2427
    2528Tarball
     
    2932https://geti2p.net/get/.
    3033
    31 Building the SlackBuild
    32 =======================
    3334
    34 The following is needed to build the i2p and i2p-base packages:
     35This SlackBuild
     36===============
    3537
    36 bash >= 3.1.017
    37 jre >= 7u55
    38 jdk >= 7u55
    39 apache-ant >= 1.7.1
     38Requirements
     39-------------
     40
     41The following are needed to build the i2p package:
     42
     43* jre >= 6
     44* jdk >= 6
     45* gettext
     46* apache-ant >= 1.7.1
     47
     48If you don't care about bundling the translations, the gettext requirement can
     49be avoided by adding -Drequire.gettext=false to the ant lines in
     50i2p/i2p.SlackBuild
     51
     52A JRE >= v6 is the only requirement to run I2P.
     53
     54Building
     55--------
     56
     57As the root user, run either $I2PSRC/Slackware/i2p/i2p.SlackBuild or `ant slackpkg` to create a package
     58in $I2PSRC/Slackware/i2p which can be installed using the Slackware packaging tools.
    4059
    4160See also
    4261========
    4362
    44 i2p/readme.txt
     63Please also take a look at
    4564
    46 AND
    47 
    48 i2p-base/readme.txt
     65* i2p/README
     66* eepget(1)
     67* i2prouter(1)
     68* http://i2p-projekt.i2p / https://geti2p.net
    4969
    5070for additional information and tips.
  • Slackware/i2p/README

    r8fd2a05b r1f8f3eb  
    1 Building:
    2 The i2p package will be installed to /opt/i2p
     1The I2P package will be installed to /opt/i2p.
    32
    4 If you want to change installation dir, change the variable INSTALL_DIR
    5 in i2p.SlackBuild and rebuild the package. You will also need to do the same
    6 in the base-i2p package.
     3To install to another location, set the variable INSTALL_DIR in i2p.SlackBuild
     4and rebuild the package.
    75
    8 Installation and Upgrade:
    9 Probably you will never have to update i2p packages. However if you do,
    10 be sure to installpkg first, then removepkg or custom config files can
    11 be lost with upgradepkg. I2P has an auto-update function. However using
    12 installpkg then removepkg lowers the demand on the I2P network as a
    13 whole, and is by far faster.
    146
    15 After installpkg command, doinst.sh will execute a postinstallation script
    16 needed by I2P.  Be sure to also install the base-i2p package.
     7Installing and Upgrading:
     8=========================
    179
    18 Optional:
     10I2P has an auto-update function but generally speaking packages are managed by
     11packaging systems. Changing a package's files outside of the package system can
     12cause problems. To upgrade when there's a new I2P release, retrieve the new
     13source, re-run the SlackBuild, then use upgradepkg to update.
    1914
    20 chmod +x /etc/rc.d/rc.i2p only if you want it to start on boot and stop on
    21 shutdown.
     15To ignore all this and upgrade "in-network", simply change the permissions of the installation
     16directory (/opt/i2p by default). Something like the following would suffice:
    2217
    23 How to start I2P:
     18    chown -R USERNAME /opt/i2p
    2419
    25 Start the I2P service with-
    26 sh /etc/rc.d/rc.i2p start
    2720
    28 Now tell your browser to use this proxy: 127.0.0.1 on port 4444 and open
    29 this page: http://127.0.0.1:7657
    30 Here you can configure I2P, watch network status and navigate anonymously.
    31 It's suggested to subscribe to various addressbook hosts so that you can
    32 get to the many available eepsites and other service on I2P. These are not
    33 set up by default for security reasons.
     21Starting and using I2P
     22======================
    3423
    35 Please see the faqs at http://i2p-projekt.i2p/faq or https://geti2p.net/faq for information about
     24Using the initscript
     25--------------------
     26
     27To start I2P at boot, set the executable bit on /etc/rc.d/rc.i2p, add this
     28script to rc.local*, and set the variable "RUN_AS_USER" in /etc/rc.d/rc.i2p.
     29
     30Optionally, create a new user/group with limited rights to run I2P.
     31
     32Something like the following would work to start I2P at system boot, running under the
     33"i2p" account:
     34
     35     echo '[ -x /etc/rc.d/rc.i2p ] && /etc/rc.d/rc.i2p start' >> /etc/rc.d/rc.local
     36     echo '[ -x /etc/rc.d/rc.i2p ] && /etc/rc.d/rc.i2p stop' >> /etc/.rc.d/rc.local_shutdown
     37     sed -i .bak 's/^.*\(RUN_AS_USER\)=.*/\1=i2p/' /etc/rc.d/rc.i2p
     38     chmod 755 /etc/rc.d/rc.i2p
     39
     40Unless running as a user named "i2psvc", I2P's config directory defaults to
     41$HOME/.i2p. In the case of the "i2psvc" user, the default config directory is
     42/var/lib/i2p/i2p-config.
     43
     44It should not need to be said that using the "root" account is not recommended.
     45
     46When running using the initscript, I2P will write its logs to /var/log/i2p.
     47
     48Starting I2P "on-demand"
     49------------------------
     50
     51As with a normal installation, I2P can be started with "i2prouter start". The
     52i2prouter and eepget scripts hve been installed to /usr/bin so they'll be
     53accessible in the default system PATH.
     54
     55When running using the i2prouter script, I2P will write its logs to $HOME/.i2p.
     56
     57
     58Configuring your browser
     59------------------------
     60
     61In order to access eepSites (I2P-internal web sites) your web browser needs to
     62be configured. Set the HTTP Proxy to 127.0.0.1 and port 4444. For more information, see
     63https://geti2p.net/en/about/browser-config
     64
     65The I2P router console is reachable at http://127.0.0.1:7657.
     66
     67
     68Addressbook subscriptions
     69-------------------------
     70
     71Please see the FAQs at http://i2p-projekt.i2p/faq or https://geti2p.net/faq for information about
    3672the various addressbook services.
    3773
    38 To stop I2P:
    39  /etc/rc.d/rc.i2p stop
     74
     75Chatting on IRC
     76---------------
     77
     78I2P comes preconfigured with a tunnel pointing to the I2P-only IRC network,
     79Irc2P.  Signing on is easy, just connect to 127.0.0.1 on port 6668. Do not
     80configure a proxy in your IRC client.
    4081
    4182
    42 For any additional information:
     83Additional information
     84======================
    4385
    44 Within I2P- http://i2p-projekt.i2p/, http://forum.i2p/, http://zzz.i2p
     86Within I2P: http://i2p-projekt.i2p/, http://forum.i2p/, http://zzz.i2p/, http://trac.i2p2.i2p/
     87On the Internet:  https://geti2p.net/, https://trac.i2p2.de
     88Manpages: i2prouter(1), eepget(1)
    4589
    46 Internet (not reccomended!) - https://geti2p.net/
  • Slackware/i2p/build.xml

    r8fd2a05b r1f8f3eb  
    33    <target name="slackpkg">
    44        <echo message="Building Slackware package." />
    5         <exec executable="./i2p.SlackBuild">
    6         </exec>
     5        <chmod file="./i2p.Slackbuild" perm="755" />
     6        <exec executable="./i2p.SlackBuild" failifexecutionfails="true" />
    77    </target>
    88</project>
  • Slackware/i2p/doinst.sh

    r8fd2a05b r1f8f3eb  
    1 #!/bin/bash
     1#!/bin/sh
    22
     3# Abort on error or unset variables
     4set -e
     5set -u
     6
     7# This is changed by i2p.SlackBuild
    38INST_DIR=directory
     9PKGNAME="%pkg"
    410
    5 ( cd install
     11config() {
     12    NEW="$1"
     13    OLD="$(dirname $NEW)/$(basename $NEW .new)"
     14    if [ ! -r $NEW ]; then
     15        # Flaw in the packaging, this shouldn't happen. Just return.
     16        return
     17    fi
    618
    7 echo
    8 for i in *.config ; {
    9         if [ -f $INST_DIR/$i ] ; then
    10                 echo "Please check ${INST_DIR}${i}, as there is a new version."
    11                 cp $i $INST_DIR/$i.new
    12         else
    13                 cp $i $INST_DIR/$i
    14         fi
     19    # If this file doesn't exist yet, drop the .new extension
     20    if [ ! -r $OLD ]; then
     21        mv $NEW $OLD
     22        return
     23    elif [ "$(md5sum $OLD | cut -d' ' -f1)" = "$(md5sum $NEW | cut -d' ' -f1)" ]; then
     24        # If there are no differences in the files, remove the new one
     25        rm $NEW
     26        return
     27    fi
     28    # If they differ alert the admin (but let's not be terribly obnoxious about it)
     29    echo "WARNING: The files $OLD and $NEW differ." >&2
    1530}
    1631
    17 )
     32# Unlike previous versions of the package, we install i2prouter and eepget to /usr/bin
     33# to make them available within the system PATH.
    1834
    19 ( cd $INST_DIR
    20         if [ -f blocklist.txt ] ; then
    21                 echo "Please check ${INST_DIR}blocklist.txt, as there is a new version."
    22         else
    23                 mv blocklist.txt.new blocklist.txt
    24         fi
    25 )
     35# Users might still want to /opt/i2p/i2prouter or /opt/i2p/eepget so we'll create symlinks
     36# in the installation directory.
     37ln -sf /usr/bin/eepget $INST_DIR
     38ln -sf /usr/bin/i2prouter $INST_DIR
     39(cd /usr/doc/$PKGNAME; ln -sf $INST_DIR/history.txt changelog)
    2640
    27 ( cd $INST_DIR/eepsite
    28         if [ -f jetty.xml ] ; then
    29                 echo "Please check ${INST_DIR}/eepsite, as there are new files."
    30         else
    31                 find $PKG/$INSTALL_DIR/i2p -name "*.xml.new" -exec sh -c 'mv "$0" "${0/.new}"' {} \;
    32         fi
    33 )
     41if $(uname -m | grep -q '64'); then
     42    (cd $INST_DIR; ln -sf i2psvc-linux-x86-64 i2psvc)
     43else
     44    (cd $INST_DIR; ln -sf i2psvc-linux-x86-32 i2psvc)
     45fi
    3446
    35 ( cd $INST_DIR/eepsite/docroot
    36         if [ -f index.html ] ; then
    37                 rm index.html.new
    38         else
    39                 mv index.html.new index.html
    40         fi
    41         if [ -f favicon.ico ] ; then
    42                 rm favicon.ico.new
    43         else
    44                 mv favicon.ico.new favicon.ico
    45         fi
    46 )
     47config /etc/rc.d/rc.i2p.new
     48config $INST_DIR/wrapper.config.new
    4749
    48 echo
    49 echo "FINISHING I2P INSTALLATION. PLEASE WAIT."
     50if [ -e /var/log/packages/i2p-base* ]; then
     51    echo "Warning: This package supercedes the 'i2p-base' package." >&2
     52    echo
     53    echo "You may want to 'removepkg i2p-base'" >&2
     54    echo "and check the contents of /etc/rc.d/rc.local*" >&2
     55    echo "for correctness" >&2
     56fi
    5057
    51 cd $INST_DIR
    52 
    53 
    54 
    55 OS_ARCH=`uname -m`
    56 X86_64=`echo "$OS_ARCH" | grep x86_64`
    57 if [ "X$X86_64" = "X" ]; then
    58         wrapperpath="./lib/wrapper/linux"
    59 else
    60         wrapperpath="./lib/wrapper/linux64"
    61 fi
    62 cp $wrapperpath/libwrapper.so ./lib/
    63 cp $wrapperpath/wrapper.jar ./lib/
    64 cp $wrapperpath/i2psvc .
    65 rm -rf ./lib/wrapper
    66 chmod 755 ./i2psvc
    67 
    68 echo
    69 echo "Installation finished."
    70 echo
    71 
    72 exit
     58# Remove extraneous 'sh' from sponge's set-up
     59sed -i 's|sh /etc/rc\.d/rc\.i2p|/etc/rc.d/rc.i2p|g' /etc/rc.d/rc.local*
  • Slackware/i2p/i2p.SlackBuild

    r8fd2a05b r1f8f3eb  
    44# Slackware build script for I2P
    55#
    6 # PLEASE READ THIS:
    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.
     6# Packages are generally prohibited from being updated outside
     7# of the package manager; this I2P SlackBuild is no different.
    108#
    11 # The correct way to upgrade is to:
    12 # 1: install the upgrade
    13 # 2: remove the old package
     9# If you'd like to use the I2P "in-network" updates anyway, you'll need to
     10# grant the user that I2P will run as write permission to the installation directory
     11# (/opt/i2p by default).
    1412#
    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 #
     13# For safety's sake, a user's I2P config files will *never* be overwritten by any upgrade method.
     14# In the future this SlackBuild may alert when a default config file is updated
     15##
    1916
    20 BUILD=1sponge
     17# Make sure makepkg and friends can be found
     18PATH=$PATH:/sbin
     19
     20# abort on error and unset variables (same as set -e and set -u, respectively)
     21set -o errexit
     22set -o nounset
     23
     24if [ $(id -ur) -ne 0 ]; then
     25    echo "ERROR: SlackBuilds require root access." >&2
     26    exit 1
     27fi
     28
     29BUILD=1kytv
    2130# INSTALL_DIR is referenced from /, don't prefix it with a '/'
    2231INSTALL_DIR=opt
     
    2433ARCH=noarch
    2534
    26 # Less than slackware 13?
    27 SLKPLT=$(cat /etc/slackware-version | sed -re "s/(Slackware )([0-9]*)(.*)/\2/")
    28 if [ $SLKPLT -lt 13 ] ; then
    29         EXT=tgz
     35CWD=$(readlink -m $(dirname $0))
     36I2PSRC=$(readlink -m $CWD/../../)
     37TMP=/tmp
     38PKG=$TMP/package-i2p
     39
     40if [ -e "/etc/slackware-version" ]; then
     41    # Older than Slackware 13?
     42    SLACKVER=$(sed -e "s/Slackware\s\+\([0-9]\+\)\.\?\([0-9]\+\)\?/\1/" /etc/slackware-version)
     43    if [ $SLACKVER -lt 13 ] ; then
     44        EXT=tgz
     45    else
     46        EXT=txz
     47    fi
    3048else
    31         EXT=txz
     49    echo "ERROR: This script is only intended for use on Slackware systems.">&2
     50    exit 1
    3251fi
    3352
    34 
    35 #
    36 # This mess is here due to the totally moronic way i2p does versioning.
    37 # We correct it here.
    38 #
    39 ROUTER=$(echo -ne "_")$(cat ../../router/java/src/net/i2p/router/RouterVersion.java | grep -e "public final static long BUILD" | cut -f2 -d"=" | cut -f1 -d";" | sed -re "s/ //g")
    40 if [ "$ROUTER" == "_" ] ;  then
    41         ROUTER="_0"
     53# Extract version strings
     54I2PBUILD=$(sed -e '/^.\+long\s\+BUILD/!d' -e 's/^.\+long\s\+BUILD\s\+=\s\+\([0-9]\+\);/\1/' $I2PSRC/router/java/src/net/i2p/router/RouterVersion.java)
     55CORE=$(awk -F'"' '/static\s+String\s+VERSION/{print $2}' $I2PSRC/core/java/src/net/i2p/CoreVersion.java)
     56# Temporarily change the field separator to '.' so the version string can be split up
     57OLDIFS=$IFS
     58IFS="."
     59# split x.y.z into $1 $2 $3
     60set -- $CORE
     61# Restore the field separator to the previous value
     62IFS=$OLDIFS
     63# With an I2P version string like x.y.z, $1 = x, $2 = y, $3 = z.
     64# $3 won't be reachable if the version is of the form x.y, so we'll temporarily set +u to prevent aborting if this variable isn't set
     65set +u
     66if [ -z $3 ]; then
     67    # If CORE is a value like 0.9, we'll set CORE equal to 0.9.0 to match the old behaviour
     68    CORE=${CORE}.0
    4269fi
    4370
    44 #
    45 # That was the easy one, now for the tough one.
    46 #
     71# From this point forward, unset variables are *unacceptable*
     72set -o nounset
    4773
    48 CORE=$(cat ../../core/java/src/net/i2p/CoreVersion.java | grep -e "public final static String VERSION" | cut -f2 -d'"' | sed -re "s/ //g")
    49 CORE1=$(echo -n $CORE.x.x | sed -re "s/(.*)\.(.*)\.(.*)\.(.*)/\1/")
    50 CORE2=$(echo -n $CORE.x | sed -re "s/(.*)\.(.*)\.(.*)\.(.*)/\1/")
     74VERSION="${CORE}_${I2PBUILD}"
    5175
    52 if [ "$CORE.x.x" == "$CORE1" ] ; then
    53         CORE=$(echo -ne $CORE".0.0")
    54 fi
    55 if [ "$CORE.x" == "$CORE2" ] ; then
    56         CORE=$(echo -ne $CORE".0")
     76[ -d $PKG ] && rm -rf $PKG
     77mkdir -p $PKG/$INSTALL_DIR $PKG/install
     78
     79cd "$I2PSRC"
     80ant distclean
     81ant jbigi-linux-x86-only preppkg-unix
     82
     83chown -R root:root $I2PSRC/pkg-temp
     84cp -a $I2PSRC/pkg-temp $PKG/$INSTALL_DIR/i2p
     85
     86# $INSTALL_DIR is used by this SlackBuild.
     87# [%$]INSTALL_PATH , [%$]SYSTEM_java_io_tmpdir, and [%$]USER_HOME have the correct paths set
     88# by the IzPack installer.
     89cd $PKG/$INSTALL_DIR/i2p
     90for file in wrapper.config eepget i2prouter runplain.sh; do
     91    sed -i "s|[%$]INSTALL_PATH|/$INSTALL_DIR/i2p|g;s|[$%]SYSTEM_java_io_tmpdir|$TMP|g;s/[%$]USER_HOME/\$HOME/g" $file
     92done
     93mv wrapper.config wrapper.config.new
     94
     95install -d $PKG/usr/bin
     96install -d $PKG/usr/doc/$NAME-$VERSION
     97install -d $PKG/etc/rc.d
     98mv licenses LICENSE.txt -t $PKG/usr/doc/$NAME-$VERSION
     99
     100# runplain will live in the installation directory. eepget and i2prouter will go to /usr/bin
     101# with symlinks in INST_DIR (created in doinst.sh)
     102install -m755 i2prouter $PKG/usr/bin
     103install -m755 eepget $PKG/usr/bin
     104chmod 755  ./runplain.sh
     105
     106if [ $INSTALL_DIR != 'opt' ]; then
     107    sed "s|\(The I2P package\)\s\+will be\s\+\(installed to\).+|\1 has been \2 $INSTALL_DIR/i2p|g" $CWD/README > $PKG/usr/doc/$NAME-$VERSION/README
     108else
     109    sed "s|will be installed|has been installed|" $CWD/README > $PKG/usr/doc/$NAME-$VERSION/README
    57110fi
    58111
    59 VERSION=$(echo $CORE$ROUTER)
     112install -d $PKG/usr/man/man1
     113gzip -9 man/*.1
     114install -m644 man/*.1.gz $PKG/usr/man/man1
     115rm -rf ./man
     116
     117# We install all x86 wrapper binaries.
     118# The i2prouter script will try to determine the OS (linux), the bits (32 VS 64) and should be able
     119# to figure out the correct wrapper binary to use.
     120
     121# Howver: In case the i2prouter script's detection fails, "$INST_DIR/i2psvc" will point to
     122# what 'we' think the correct binary is.
    60123#
    61 # Whew!
    62 # OK, let's build i2p
    63 #
     124# A good reason for installing all binaries: in case the user, for whatever reason, switches from an
     125# x64 JRE to an x86 JRE, I2P should continue to work without needing to be reinstalled.
     126install -m755 $I2PSRC/installer/lib/wrapper/linux/i2psvc ./i2psvc-linux-x86-32
     127install -m644 $I2PSRC/installer/lib/wrapper/linux/libwrapper.so ./lib/libwrapper-linux-x86-32.so
     128install -m755 $I2PSRC/installer/lib/wrapper/linux64/i2psvc ./i2psvc-linux-x86-64
     129install -m644 $I2PSRC/installer/lib/wrapper/linux64/libwrapper.so ./lib/libwrapper-linux-x86-64.so
     130install -m644 $I2PSRC/installer/lib/wrapper/all/wrapper.jar ./lib/wrapper.jar
     131install -m644 $I2PSRC/build/jbigi.jar $PKG/$INSTALL_DIR/i2p/lib/jbigi.jar
    64132
    65 CWD=$(pwd)
    66 TMP=/tmp
    67 
    68 PKG=$TMP/package-i2p
    69 rm -rf $PKG
    70 mkdir -p $PKG
    71 
    72 cd $CWD/../../
    73 
    74 ant distclean
    75 #ant dist
    76 ant tarball
    77 
    78 tar xjvf i2p.tar.bz2 -C $TMP
    79 
    80 cd $TMP/i2p
    81 chown -R root:root .
    82 
    83 mkdir -p $PKG/$INSTALL_DIR/
    84 cp -a ../i2p $PKG/$INSTALL_DIR/
    85 
    86 mkdir -p $PKG/install
    87 
    88 #############################################################################
    89 # Preconfigureation to make package smaller, and...
    90 # we keep as much as reasonable in the installation directory.
    91 # This makes the install map fairly well to the standard installation.
    92 # It also makes it easier to find the log and pid files!
    93 #############################################################################
    94 cd $PKG/$INSTALL_DIR/i2p
    95 
    96 # wrapper.config $INSTALL_PATH and $SYSTEM_java_io_tmpdir
    97 sed "s|\$INSTALL_PATH|/$INSTALL_DIR/i2p|g" wrapper.config > a
    98 sed "s|\$SYSTEM_java_io_tmpdir|/$INSTALL_DIR/i2p|g" a > wrapper.config
    99 # eepget %INSTALL_PATH
    100 sed "s|\$INSTALL_PATH|/$INSTALL_DIR/i2p|g" eepget > a
    101 rm eepget
    102 mv a eepget
    103 # runplain.sh %INSTALL_PATH and %SYSTEM_java_io_tmpdir
    104 sed "s|%INSTALL_PATH|/$INSTALL_DIR/i2p|g" runplain.sh > a
    105 sed "s|%SYSTEM_java_io_tmpdir|/$INSTALL_DIR/i2p|g" a > runplain.sh
    106 # i2prouter %INSTALL_PATH and %SYSTEM_java_io_tmpdir
    107 sed "s|%INSTALL_PATH|/$INSTALL_DIR/i2p|g" i2prouter > a
    108 rm i2prouter
    109 mv a i2prouter
    110 sed "s|%SYSTEM_java_io_tmpdir|/$INSTALL_DIR/i2p|g" i2prouter > a
    111 sed "s|#ALLOW_ROOT=true|ALLOW_ROOT=true|g" a > i2prouter
    112 
    113 chmod 744 ./i2prouter
    114 chmod 744 ./osid
    115 chmod 744 ./runplain.sh
    116 chmod 744 ./eepget
    117 chmod 744 ./scripts/i2pbench.sh
    118 chmod 744 ./scripts/i2ptest.sh
    119 rm -Rf ./lib/*.dll ./*.bat ./*.exe ./installer ./icons ./a postinstall.sh
    120 
    121 mv $PKG/$INSTALL_DIR/i2p/*.config $PKG/install
    122 mv $PKG/$INSTALL_DIR/i2p/blocklist.txt $PKG/$INSTALL_DIR/i2p/blocklist.txt.new
    123 find $PKG/$INSTALL_DIR/i2p -name "*.xml" -exec mv {} {}.new \;
    124 mv $PKG/$INSTALL_DIR/i2p/eepsite/docroot/index.html $PKG/$INSTALL_DIR/i2p/eepsite/docroot/index.html.new
    125 mv $PKG/$INSTALL_DIR/i2p/eepsite/docroot/favicon.ico $PKG/$INSTALL_DIR/i2p/eepsite/docroot/favicon.ico.new
    126 sed "s|directory|/$INSTALL_DIR/i2p/|g" $CWD/doinst.sh > $PKG/install/doinst.sh
    127 cat $CWD/slack-desc > $PKG/install/slack-desc
     133rm -f ./postinstall.sh ./osid ./INSTALL-*.txt
     134sed "s|directory|/$INSTALL_DIR/i2p|" $CWD/doinst.sh > $PKG/install/doinst.sh
     135sed -i "s|%pkg|$NAME-$VERSION|" $PKG/install/doinst.sh
     136sed "s|%INST_DIR|/$INSTALL_DIR/i2p|" $CWD/rc.i2p> $PKG/etc/rc.d/rc.i2p.new
     137cp $CWD/slack-desc $PKG/install/slack-desc
    128138
    129139cd $PKG
    130 #
    131 # requiredbuilder messes up REALLY bad, and thinks java is perl?!
    132 # It also did not catch the shell requirements! BOOOOOOOOOOO! HISSSSSSSS!
    133 #
    134 # requiredbuilder -v -y -s $CWD $PKG
    135 #
    136 cat $CWD/slack-required > $PKG/install/slack-required
     140cp $CWD/slack-required $PKG/install/slack-required
    137141makepkg -l y -c n $CWD/${NAME}-$VERSION-$ARCH-$BUILD.$EXT
  • Slackware/i2p/slack-desc

    r8fd2a05b r1f8f3eb  
    77
    88   |-----handy-ruler----------------------------------------------------------|
    9 i2p: i2p (an anonymizing network)
     9i2p: I2P (an anonymizing network)
    1010i2p:
    1111i2p: I2P is an anonymizing network, offering a simple layer that
     
    1515i2p: Many applications are available that interface with I2P, including
    1616i2p: mail, peer-peer file sharing, IRC chat, and others.
    17 i2p: WARNING: To upgrade installpkg FIRST _THEN_ removepkg.
    18 i2p: For more information, see:  http://www.i2p2.de/
     17i2p:
     18i2p: For more information, see:  https://geti2p.net/
    1919i2p:
  • Slackware/i2p/slack-required

    r8fd2a05b r1f8f3eb  
    1 jre >= 5
    2 i2p-base >= 0.0.1
    3 bash >= 3.1.017
    4 
     1jre >= 6
     2gettext
  • build.xml

    r8fd2a05b r1f8f3eb  
    4343        <echo message="  javadoc:   generate javadoc for the entire project into ./build/javadoc and ./javadoc.zip" />
    4444        <echo message="  javadoc-test: Javadocs for unit test classes (build/javadoc-test)" />
    45         <echo message="  slackpkg:  generate Slackware packages in ./Slackware/i2p and ./Slackware/i2p-base" />
     45        <echo message="  slackpkg:  generate Slackware package in ./Slackware/i2p" />
    4646        <echo message="  debianhowto: instructions on building Debian packages" />
    4747        <echo message="  debian: generate Debian packages in ../" />
     
    14381438    </target>
    14391439    <target name="slackpkg">
    1440         <echo message="Building Slackware package." />
    14411440        <ant dir="Slackware/i2p/" target="slackpkg" />
    1442         <ant dir="Slackware/i2p-base/" target="slackpkg" />
    14431441    </target>
    14441442    <target name="justBOB" depends="builddepSmall, jbigi">
  • tests/scripts/checkscripts.sh

    r8fd2a05b r1f8f3eb  
    4444        ./installer/resources/uninstall_i2p_service_osx.command
    4545        ./installer/resources/uninstall_i2p_service_unix \
     46        ./Slackware/i2p/i2p.SlackBuild \
     47        ./Slackware/i2p/doinst.sh \
     48        ./Slackware/i2p/rc.i2p \
    4649        ./tests/scripts/checkcerts.sh \
    4750        ./tests/scripts/checkpo.sh \
  • tests/scripts/checkxml.sh

    r8fd2a05b r1f8f3eb  
    5858./installer/resources/shortcutSpec.xml \
    5959./router/java/build.xml \
    60 ./Slackware/i2p-base/build.xml \
    6160./Slackware/i2p/build.xml"
    6261
Note: See TracChangeset for help on using the changeset viewer.