Changeset ff189e7
- Timestamp:
- Jun 14, 2014 9:15:55 AM (7 years ago)
- Branches:
- master
- Children:
- 8845ce6
- Parents:
- 89c07ac9
- Location:
- Slackware/i2p
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
Slackware/i2p/doinst.sh
r89c07ac9 rff189e7 13 13 OLD="$(dirname $NEW)/$(basename $NEW .new)" 14 14 if [ ! -r $NEW ]; then 15 # Flaw in the packaging, this shouldn't happen. Just return. 15 # If we get here there's a flaw in the packaging. We'll just return so that 16 # we don't emit a spurious error for the user. (It's not the user's problem). 16 17 return 17 18 fi 18 19 19 # If this file doesn't exist yet, drop the .new extension 20 # If this file doesn't exist yet, drop the .new extension. 20 21 if [ ! -r $OLD ]; then 21 22 mv $NEW $OLD 22 23 return 23 24 elif [ "$(md5sum $OLD | cut -d' ' -f1)" = "$(md5sum $NEW | cut -d' ' -f1)" ]; then 24 # If there are no differences in the files, remove the new one25 # If there are no differences in the files, remove the file with the .new extension. 25 26 rm $NEW 26 27 return 27 28 fi 28 # If they differ alert the admin (but let's not be terribly obnoxious about it)29 # Alert the admin if they differ, but let's not be terribly obnoxious about it. 29 30 echo "WARNING: The files $OLD and $NEW differ." >&2 30 31 } -
Slackware/i2p/i2p.SlackBuild
r89c07ac9 rff189e7 12 12 # 13 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 14 # In the future this SlackBuild may alert when a default config file is updated. 15 15 ## 16 16 … … 56 56 # If the version is x.y, it'll be set to x.y.0. Otherwise the version string will be unchanged 57 57 CORE=$(awk -F'"' '/static\s+String\s+VERSION/{print $2}' $I2PSRC/core/java/src/net/i2p/CoreVersion.java | \ 58 58 awk -F. '{ if (NF > 3) { print; exit } else if ($3 == "") { $3=0; print $1"."$2"."$3 } else print }') 59 59 VERSION="${CORE}_${I2PBUILD}" 60 60 … … 83 83 mv licenses LICENSE.txt -t $PKG/usr/doc/$NAME-$VERSION 84 84 85 # runplain will live in the installation directory. eepget and i2prouter will go to /usr/bin85 # runplain.sh will live in the installation directory. eepget and i2prouter will go to /usr/bin 86 86 # with symlinks in INST_DIR (created in doinst.sh) 87 87 install -m755 i2prouter $PKG/usr/bin … … 104 104 # to figure out the correct wrapper binary to use. 105 105 106 # How ver: In case the i2prouter script's detection fails, "$INST_DIR/i2psvc" will point to106 # However: In case the i2prouter script's detection fails, "$INST_DIR/i2psvc" will point to 107 107 # what 'we' think the correct binary is. 108 108 # -
Slackware/i2p/rc.i2p
r89c07ac9 rff189e7 15 15 # Note: this is not the same as the language shown in the I2P router console. 16 16 # This affects the locale used in wrapper.log. For best results, use a 17 # unicode enabled locale (especially important for foreign language torrents).17 # unicode enabled locale. This is especially important for foreign language torrents. 18 18 # 19 19 # If not set the user's configured locale will be used. … … 46 46 fi 47 47 48 # abort script if any variables are unset48 # Abort this script if any referenced variables haven't been set 49 49 set -u 50 50
Note: See TracChangeset
for help on using the changeset viewer.