update upload script

This commit is contained in:
eyedeekay
2024-08-19 17:15:49 -04:00
parent baab6e9ab6
commit c34c49d69d
10 changed files with 97 additions and 825 deletions

View File

@ -1,6 +1,6 @@
I2P_VERSION="2.4.0"
I2P_VERSION_BUILD_NUM="4"
I2P_PUBLISHED_VERSION="0.9.61"
I2P_VERSION="2.6.1"
I2P_VERSION_BUILD_NUM=""
I2P_PUBLISHED_VERSION="0.9.63"
I2P_VERSION_QUALIFIER=""
@ -50,4 +50,4 @@ KEY_ALIAS=idk
GIT_USER=i2p
I2P_DEV_BUILD="true"
I2P_DEV_BUILD="false"

View File

@ -1,192 +0,0 @@
#!/bin/sh
# This is an example script that can be hooked into reprepro
# to generate a hierachy like packages.debian.org/changelogs/
# All you have to do is to copy it into you conf/ directory,
# and add the following to any distribution in conf/distributions
# you want to have changelogs and copyright files extracted:
#Log:
# --type=dsc changelogs.example
# (note the space at the beginning of the second line).
# This will cause this script to extract changelogs for all
# newly added source packages. (To generate them for already
# existing packages, call "reprepro rerunnotifiers").
# DEPENDENCIES: dpkg >= 1.13.9
if test "x${REPREPRO_OUT_DIR:+set}" = xset ; then
# Note: due to cd, REPREPRO_*_DIR will no longer
# be usable. And only things relative to outdir will work...
# (as the filekeys given to this are, though for changesfiles
# and CAUSING_FILE it would be different)
cd "${REPREPRO_OUT_DIR}" || exit 1
else
cat "This script is written for reprepro 3.5.1 upwoards" >&2
cat "for an older version, disable that warning and add" >&2
cat "a proper cd or always use from the basedir" >&2
exit 1
fi
# You will either always have to call it with the basedir as
# your current directory, use reprepro >= 3.5.1
# or uncomment and edit the following to be your base directory.
# cd /path/to/your/repository
# place where the changelogs should be put into:
CHANGELOGDIR=changelogs
# Set to avoid using some predefined TMPDIR or even /tmp as
# tempdir:
# TMPDIR=/var/cache/whateveryoucreated
addsource() {
DSCFILE="$1"
CANONDSCFILE="$(readlink --canonicalize "$DSCFILE")"
TARGETDIR="$CHANGELOGDIR"/"$(echo $DSCFILE | sed -e 's/\.dsc$//')"
SUBDIR="$(basename $TARGETDIR)"
BASEDIR="$(dirname $TARGETDIR)"
if ! [ -d "$TARGETDIR" ] ; then
echo "extract $CANONDSCFILE information to $TARGETDIR"
mkdir -p -- "$TARGETDIR"
EXTRACTDIR="$(mktemp -d)"
(cd -- "$EXTRACTDIR" && dpkg-source --no-copy -x "$CANONDSCFILE" > /dev/null)
install -D -- "$EXTRACTDIR"/*/debian/copyright "$TARGETDIR/copyright"
install -D -- "$EXTRACTDIR"/*/debian/changelog "$TARGETDIR/changelog"
chmod -R u+rwX -- "$EXTRACTDIR"
rm -r -- "$EXTRACTDIR"
fi
if [ -L "$BASEDIR"/current."$CODENAME" ] ; then
# should not be there, just to be sure
rm -f -- "$BASEDIR"/current."$CODENAME"
fi
# mark this as needed by this distribution
ln -s -- "$SUBDIR" "$BASEDIR/current.$CODENAME"
JUSTADDED="$TARGETDIR"
}
delsource() {
DSCFILE="$1"
TARGETDIR="$CHANGELOGDIR"/"$(echo $DSCFILE | sed -e 's/\.dsc$//')"
SUBDIR="$(basename $TARGETDIR)"
BASEDIR="$(dirname $TARGETDIR)"
if [ "x$JUSTADDED" = "x$TARGETDIR" ] ; then
exit 0
fi
# echo "delete, basedir=$BASEDIR targetdir=$TARGETDIR, dscfile=$DSCFILE, "
if [ "x$(readlink "$BASEDIR/current.$CODENAME")" = "x$SUBDIR" ] ; then
rm -- "$BASEDIR/current.$CODENAME"
fi
NEEDED=0
for c in "$BASEDIR"/current.* ; do
if [ "x$(readlink -- "$c")" = "x$SUBDIR" ] ; then
NEEDED=1
fi
done
if [ "$NEEDED" -eq 0 -a -d "$TARGETDIR" ] ; then
rm -r -- "$TARGETDIR"
# to remove the directory if now empty
rmdir --ignore-fail-on-non-empty -- "$BASEDIR"
fi
}
ACTION="$1"
CODENAME="$2"
PACKAGETYPE="$3"
if [ "x$PACKAGETYPE" != "xdsc" ] ; then
# the --type=dsc should cause this to never happen, but better safe than sorry.
exit 1
fi
COMPONENT="$4"
ARCHITECTURE="$5"
if [ "x$ARCHITECTURE" != "xsource" ] ; then
exit 1
fi
NAME="$6"
shift 6
JUSTADDED=""
if [ "x$ACTION" = "xadd" -o "x$ACTION" = "xinfo" ] ; then
VERSION="$1"
shift
if [ "x$1" != "x--" ] ; then
exit 2
fi
shift
while [ "$#" -gt 0 ] ; do
case "$1" in
*.dsc)
addsource "$1"
;;
--)
exit 2
;;
esac
shift
done
elif [ "x$ACTION" = "xremove" ] ; then
OLDVERSION="$1"
shift
if [ "x$1" != "x--" ] ; then
exit 2
fi
shift
while [ "$#" -gt 0 ] ; do
case "$1" in
*.dsc)
delsource "$1"
;;
--)
exit 2
;;
esac
shift
done
elif [ "x$ACTION" = "xreplace" ] ; then
VERSION="$1"
shift
OLDVERSION="$1"
shift
if [ "x$1" != "x--" ] ; then
exit 2
fi
shift
while [ "$#" -gt 0 -a "x$1" != "x--" ] ; do
case "$1" in
*.dsc)
addsource "$1"
;;
esac
shift
done
if [ "x$1" != "x--" ] ; then
exit 2
fi
shift
while [ "$#" -gt 0 ] ; do
case "$1" in
*.dsc)
delsource "$1"
;;
--)
exit 2
;;
esac
shift
done
fi
exit 0
# Copyright 2007,2008 Bernhard R. Link <brlink@debian.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02111-1301 USA

View File

@ -1,446 +0,0 @@
#Origin: I2P
#Label: I2P
#Suite: oldstable
#Codename: squeeze
#Version: 6.0
#Architectures: i386 amd64 armel powerpc source
#Components: main
#DebIndices: Packages Release . .gz .bz2 xz.sh lzma.sh /usr/bin/rredtool
#DscIndices: Sources Release . .gz .bz2 xz.sh lzma.sh /usr/bin/rredtool
#Contents: . .gz .bz2
#Description: I2P
##Uploaders: uploaders
#Log: squeeze.log
# --type=dsc changelogs.example
Origin: I2P
Label: I2P
Suite: oldoldoldoldstable
Codename: wheezy
Version: 7.8
Architectures: i386 amd64 armel powerpc source armhf
Components: main
DebIndices: Packages Release . .gz .bz2 xz.sh lzma.sh /usr/bin/rredtool
DscIndices: Sources Release . .gz .bz2 xz.sh lzma.sh /usr/bin/rredtool
Contents: . .gz .bz2
Description: I2P
Uploaders: uploaders
Log: wheezy.log
--type=dsc changelogs.example
Origin: I2P
Label: I2P
Suite: oldoldoldstable
Codename: jessie
Version: 8.0
Architectures: i386 amd64 armel powerpc source armhf arm64 ppc64el s390x
Components: main
DebIndices: Packages Release . .gz .bz2 xz.sh lzma.sh /usr/bin/rredtool
DscIndices: Sources Release . .gz .bz2 xz.sh lzma.sh /usr/bin/rredtool
Contents: . .gz .bz2
Description: I2P
Uploaders: uploaders
Log: jessie.log
--type=dsc changelogs.example
Origin: I2P
Label: I2P
Suite: oldoldstable
Codename: stretch
Version: 9.0
Architectures: i386 amd64 armel powerpc source armhf arm64 ppc64el s390x
Components: main
DebIndices: Packages Release . .gz .bz2 xz.sh lzma.sh /usr/bin/rredtool
DscIndices: Sources Release . .gz .bz2 xz.sh lzma.sh /usr/bin/rredtool
Contents: . .gz .bz2
Description: I2P
Uploaders: uploaders
Log: wheezy.log
--type=dsc changelogs.example
Origin: I2P
Label: I2P
Suite: oldstable
Codename: buster
Version: 10.0
Architectures: i386 amd64 source armhf arm64 ppc64el s390x
Components: main rpi
DebIndices: Packages Release . .gz .bz2 xz.sh lzma.sh /usr/bin/rredtool
DscIndices: Sources Release . .gz .bz2 xz.sh lzma.sh /usr/bin/rredtool
Contents: . .gz .bz2
Description: I2P
Uploaders: uploaders
Log: buster.log
--type=dsc changelogs.example
Origin: I2P
Label: I2P
Suite: stable
Codename: bullseye
Version: 11.0
Architectures: i386 amd64 source armhf arm64 ppc64el s390x
Components: main rpi
DebIndices: Packages Release . .gz .bz2 xz.sh lzma.sh /usr/bin/rredtool
DscIndices: Sources Release . .gz .bz2 xz.sh lzma.sh /usr/bin/rredtool
Contents: . .gz .bz2
Description: I2P
Uploaders: uploaders
Log: buster.log
--type=dsc changelogs.example
Origin: I2P
Label: I2P
Suite: newstable
Codename: bookworm
Version: 12.0
Architectures: i386 amd64 source armhf arm64 ppc64el s390x
Components: main rpi
DebIndices: Packages Release . .gz .bz2 xz.sh lzma.sh /usr/bin/rredtool
DscIndices: Sources Release . .gz .bz2 xz.sh lzma.sh /usr/bin/rredtool
Contents: . .gz .bz2
Description: I2P
Uploaders: uploaders
Log: buster.log
--type=dsc changelogs.example
Origin: I2P
Label: I2P
Suite: newstable-testing
Codename: stretch-testing
Architectures: i386 amd64 armel armhf source
Components: main
DebIndices: Packages Release . .gz .bz2 xz.sh lzma.sh /usr/bin/rredtool
DscIndices: Sources Release . .gz .bz2 xz.sh lzma.sh /usr/bin/rredtool
Contents: . .gz .bz2
Description: I2P
Uploaders: uploaders
Log: stretch-testing.log
--type=dsc changelogs.example
Origin: I2P
Label: I2P
Suite: unstable
Codename: sid
Version: 10.0
Architectures: i386 amd64 armel armhf source arm64 ppc64el s390x
Components: main
DebIndices: Packages Release . .gz .bz2 xz.sh lzma.sh /usr/bin/rredtool
DscIndices: Sources Release . .gz .bz2 xz.sh lzma.sh /usr/bin/rredtool
Contents: . .gz .bz2
Description: I2P
Uploaders: uploaders
Log: sid.log
--type=dsc changelogs.example
Origin: I2P
Label: I2P
Suite: experimental
Codename: experimental
Version: 10.0
Architectures: i386 amd64 armel armhf source arm64 ppc64el s390x
Components: main
DebIndices: Packages Release . .gz .bz2 xz.sh lzma.sh /usr/bin/rredtool
DscIndices: Sources Release . .gz .bz2 xz.sh lzma.sh /usr/bin/rredtool
Contents: . .gz .bz2
Description: I2P
Uploaders: uploaders
Log: experimental.log
--type=dsc changelogs.example
Origin: I2P
Label: I2P
Suite: tails-experimental
Codename: tails-experimental
Version: 6.0.8
Architectures: i386 source
Components: main
DebIndices: Packages Release . .gz .bz2 xz.sh lzma.sh /usr/bin/rredtool
DscIndices: Sources Release . .gz .bz2 xz.sh lzma.sh /usr/bin/rredtool
Contents: . .gz .bz2
Description: I2P
Uploaders: uploaders
Log: tails-experimental.log
--type=dsc changelogs.example
Origin: I2P
Label: I2P
Suite: tails-wheezy
Codename: tails-wheezy
Version: 7.6
Architectures: i386 source
Components: main
DebIndices: Packages Release . .gz .bz2 xz.sh lzma.sh /usr/bin/rredtool
DscIndices: Sources Release . .gz .bz2 xz.sh lzma.sh /usr/bin/rredtool
Contents: . .gz .bz2
Description: I2P
Uploaders: uploaders
Log: tails-wheezy.log
--type=dsc changelogs.example
Origin: I2P
Label: I2P
Suite: tails-jessie
Codename: tails-jessie
Version: 8.0
Architectures: i386 source
Components: main
DebIndices: Packages Release . .gz .bz2 xz.sh lzma.sh /usr/bin/rredtool
DscIndices: Sources Release . .gz .bz2 xz.sh lzma.sh /usr/bin/rredtool
Contents: . .gz .bz2
Description: I2P
Uploaders: uploaders
Log: tails-jessie.log
--type=dsc changelogs.example
Origin: I2P-PPA
Codename: precise
Description: Official I2P Precise mirror
Architectures: i386 amd64 source arm64 armhf powerpc ppc64el s390x
DebIndices: Packages Release . .gz .bz2 xz.sh lzma.sh /usr/bin/rredtool
DscIndices: Sources Release . .gz .bz2 xz.sh lzma.sh /usr/bin/rredtool
Contents: . .gz .bz2
Components: main
Update: - i2p-precise
Log: mirror.log
--type=dsc changelogs.example
#Origin: I2P-PPA
#Codename: quantal
#Description: Official I2P Quantal mirror
#Architectures: i386 amd64 source
#DebIndices: Packages Release . .gz .bz2 xz.sh lzma.sh /usr/bin/rredtool
#DscIndices: Sources Release . .gz .bz2 xz.sh lzma.sh /usr/bin/rredtool
#Contents: . .gz .bz2
#Components: main
#Update: - i2p-quantal anoncoin-quantal
##Log: mirror.log
# --type=dsc changelogs.example
#
#Origin: I2P-PPA
#Codename: saucy
#Description: Official I2P Saucy mirror
#Architectures: i386 amd64 source
#DebIndices: Packages Release . .gz .bz2 xz.sh lzma.sh /usr/bin/rredtool
#DscIndices: Sources Release . .gz .bz2 xz.sh lzma.sh /usr/bin/rredtool
#Contents: . .gz .bz2
#Components: main
#Update: - i2p-saucy anoncoin-saucy
##Log: mirror.log
# --type=dsc changelogs.example
Origin: I2P-PPA
Codename: trusty
Description: Official I2P Trusty mirror
Architectures: i386 amd64 source arm64 armhf powerpc ppc64el s390x
DebIndices: Packages Release . .gz .bz2 xz.sh lzma.sh /usr/bin/rredtool
DscIndices: Sources Release . .gz .bz2 xz.sh lzma.sh /usr/bin/rredtool
Contents: . .gz .bz2
Components: main
Update: - i2p-trusty
Log: mirror.log
--type=dsc changelogs.example
Origin: I2P-PPA
Codename: vivid
Description: Official I2P Vivid mirror
Architectures: i386 amd64 source
DebIndices: Packages Release . .gz .bz2 xz.sh lzma.sh /usr/bin/rredtool
DscIndices: Sources Release . .gz .bz2 xz.sh lzma.sh /usr/bin/rredtool
Contents: . .gz .bz2
Components: main
Update: - i2p-vivid
Log: mirror.log
--type=dsc changelogs.example
Origin: I2P-PPA
Codename: wily
Description: Official I2P Wily mirror
Architectures: i386 amd64 source
DebIndices: Packages Release . .gz .bz2 xz.sh lzma.sh /usr/bin/rredtool
DscIndices: Sources Release . .gz .bz2 xz.sh lzma.sh /usr/bin/rredtool
Contents: . .gz .bz2
Components: main
Update: - i2p-wily
Log: mirror.log
--type=dsc changelogs.example
Origin: I2P-PPA
Codename: xenial
Description: Official I2P Xenial mirror
Architectures: i386 amd64 source arm64 armhf powerpc ppc64el s390x
DebIndices: Packages Release . .gz .bz2 xz.sh lzma.sh /usr/bin/rredtool
DscIndices: Sources Release . .gz .bz2 xz.sh lzma.sh /usr/bin/rredtool
Contents: . .gz .bz2
Components: main
Update: - i2p-xenial
Log: mirror.log
--type=dsc changelogs.example
Origin: I2P-PPA
Codename: yakkety
Description: Official I2P Yakkety mirror
Architectures: i386 amd64 source
DebIndices: Packages Release . .gz .bz2 xz.sh lzma.sh /usr/bin/rredtool
DscIndices: Sources Release . .gz .bz2 xz.sh lzma.sh /usr/bin/rredtool
Contents: . .gz .bz2
Components: main
Update: - i2p-yakkety
Log: mirror.log
--type=dsc changelogs.example
Origin: I2P-PPA
Codename: zesty
Description: Official I2P Zesty mirror
Architectures: i386 amd64 source
DebIndices: Packages Release . .gz .bz2 xz.sh lzma.sh /usr/bin/rredtool
DscIndices: Sources Release . .gz .bz2 xz.sh lzma.sh /usr/bin/rredtool
Contents: . .gz .bz2
Components: main
Update: - i2p-zesty
Log: mirror.log
--type=dsc changelogs.example
Origin: I2P-PPA
Codename: artful
Description: Official I2P Artful mirror
Architectures: i386 amd64 source
DebIndices: Packages Release . .gz .bz2 xz.sh lzma.sh /usr/bin/rredtool
DscIndices: Sources Release . .gz .bz2 xz.sh lzma.sh /usr/bin/rredtool
Contents: . .gz .bz2
Components: main
Update: - i2p-artful
Log: mirror.log
--type=dsc changelogs.example
Origin: I2P-PPA
Codename: bionic
Description: Official I2P Bionic mirror
Architectures: i386 amd64 source arm64 armhf ppc64el s390x
DebIndices: Packages Release . .gz .bz2 xz.sh lzma.sh /usr/bin/rredtool
DscIndices: Sources Release . .gz .bz2 xz.sh lzma.sh /usr/bin/rredtool
Contents: . .gz .bz2
Components: main
Update: - i2p-bionic
Log: mirror.log
--type=dsc changelogs.example
Origin: I2P-PPA
Codename: cosmic
Description: Official I2P Cosmic mirror
Architectures: i386 amd64 source arm64 armhf ppc64el s390x
DebIndices: Packages Release . .gz .bz2 xz.sh lzma.sh /usr/bin/rredtool
DscIndices: Sources Release . .gz .bz2 xz.sh lzma.sh /usr/bin/rredtool
Contents: . .gz .bz2
Components: main
Update: - i2p-cosmic
Log: mirror.log
--type=dsc changelogs.example
Origin: I2P-PPA
Codename: disco
Description: Official I2P Disco mirror
Architectures: i386 amd64 source arm64 armhf ppc64el s390x
DebIndices: Packages Release . .gz .bz2 xz.sh lzma.sh /usr/bin/rredtool
DscIndices: Sources Release . .gz .bz2 xz.sh lzma.sh /usr/bin/rredtool
Contents: . .gz .bz2
Components: main
Update: - i2p-disco
Log: mirror.log
--type=dsc changelogs.example
Origin: I2P-PPA
Codename: eoan
Description: Official I2P Eoan mirror
Architectures: i386 amd64 source arm64 armhf ppc64el s390x
DebIndices: Packages Release . .gz .bz2 xz.sh lzma.sh /usr/bin/rredtool
DscIndices: Sources Release . .gz .bz2 xz.sh lzma.sh /usr/bin/rredtool
Contents: . .gz .bz2
Components: main
Update: - i2p-eoan
Log: mirror.log
--type=dsc changelogs.example
Origin: I2P-PPA
Codename: focal
Description: Official I2P Focal mirror
Architectures: i386 amd64 source arm64 armhf ppc64el s390x
DebIndices: Packages Release . .gz .bz2 xz.sh lzma.sh /usr/bin/rredtool
DscIndices: Sources Release . .gz .bz2 xz.sh lzma.sh /usr/bin/rredtool
Contents: . .gz .bz2
Components: main
Update: - i2p-focal
Log: mirror.log
--type=dsc changelogs.example
Origin: I2P-PPA
Codename: groovy
Description: Official I2P Groovy mirror
Architectures: i386 amd64 source arm64 armhf ppc64el s390x
DebIndices: Packages Release . .gz .bz2 xz.sh lzma.sh /usr/bin/rredtool
DscIndices: Sources Release . .gz .bz2 xz.sh lzma.sh /usr/bin/rredtool
Contents: . .gz .bz2
Components: main
Update: - i2p-groovy
Log: mirror.log
--type=dsc changelogs.example
Origin: I2P-PPA
Codename: hirsute
Description: Official I2P Hirsute mirror
Architectures: i386 amd64 source arm64 armhf ppc64el s390x
DebIndices: Packages Release . .gz .bz2 xz.sh lzma.sh /usr/bin/rredtool
DscIndices: Sources Release . .gz .bz2 xz.sh lzma.sh /usr/bin/rredtool
Contents: . .gz .bz2
Components: main
Update: - i2p-hirsute
Log: mirror.log
--type=dsc changelogs.example
Origin: I2P-PPA
Codename: impish
Description: Official I2P Impish mirror
Architectures: i386 amd64 source arm64 armhf ppc64el s390x
DebIndices: Packages Release . .gz .bz2 xz.sh lzma.sh /usr/bin/rredtool
DscIndices: Sources Release . .gz .bz2 xz.sh lzma.sh /usr/bin/rredtool
Contents: . .gz .bz2
Components: main
Update: - i2p-impish
Log: mirror.log
Origin: I2P-PPA
Codename: jammy
Description: Official I2P Jammy mirror
Architectures: i386 amd64 source arm64 armhf ppc64el s390x
DebIndices: Packages Release . .gz .bz2 xz.sh lzma.sh /usr/bin/rredtool
DscIndices: Sources Release . .gz .bz2 xz.sh lzma.sh /usr/bin/rredtool
Contents: . .gz .bz2
Components: main
Update: - i2p-jammy
Log: mirror.log
--type=dsc changelogs.example
Origin: I2P-PPA
Codename: kinetic
Description: Official I2P Kinetic mirror
Architectures: i386 amd64 source arm64 armhf ppc64el s390x
DebIndices: Packages Release . .gz .bz2 xz.sh lzma.sh /usr/bin/rredtool
DscIndices: Sources Release . .gz .bz2 xz.sh lzma.sh /usr/bin/rredtool
Contents: . .gz .bz2
Components: main
Update: - i2p-kinetic
Log: mirror.log
--type=dsc changelogs.example
Origin: I2P-PPA
Codename: lunar
Description: Official I2P Lunar mirror
Architectures: i386 amd64 source arm64 armhf ppc64el s390x
DebIndices: Packages Release . .gz .bz2 xz.sh lzma.sh /usr/bin/rredtool
DscIndices: Sources Release . .gz .bz2 xz.sh lzma.sh /usr/bin/rredtool
Contents: . .gz .bz2
Components: main
Update: - i2p-lunar
Log: mirror.log
--type=dsc changelogs.example

View File

@ -1,4 +0,0 @@
Name: incoming
IncomingDir: /var/www/debian/incoming
TempDir: /var/tmp/i2p
Allow: experimental>experimental unstable>sid stable>stable oldstable>wheezy stable>jessie tails-experimental>tails-experimental

25
debian/conf/lzma.sh vendored
View File

@ -1,25 +0,0 @@
#!/bin/sh
DIROFDIST="$1"
NEWNAME="$2"
OLDNAME="$3"
# this can be old($3 exists), new($2 exists) or change (both):
STATUS="$4"
BASENAME="`basename "$OLDNAME"`"
# with reprepro <= 0.7 this could also be Packages.gz or Sources.gz,
# but now only the uncompressed name is given. (even if not generated)
if [ "xPackages" = "x$BASENAME" ] || [ "xSources" = "x$BASENAME" ] ; then
if [ "x$STATUS" = "xold" ] ; then
if [ -f "$DIROFDIST/$OLDNAME.lzma" ] ; then
echo "$OLDNAME.lzma" >&3
else
lzma -c -- "$DIROFDIST/$OLDNAME" >"$DIROFDIST/$OLDNAME.lzma.new" 3>/dev/null
echo "$OLDNAME.lzma.new" >&3
fi
else
lzma -c -- "$DIROFDIST/$NEWNAME" >"$DIROFDIST/$OLDNAME.lzma.new" 3>/dev/null
echo "$OLDNAME.lzma.new" >&3
fi
fi

119
debian/conf/updates vendored
View File

@ -1,119 +0,0 @@
Name: i2p-precise
Method: http://ppa.launchpad.net/i2p-maintainers/i2p/ubuntu
Architectures: amd64 i386 armhf powerpc source
VerifyRelease: AB9660B9EB2CC88B
Name: i2p-trusty
Method: http://ppa.launchpad.net/i2p-maintainers/i2p/ubuntu
Architectures: amd64 i386 arm64 armhf ppc64el powerpc source
VerifyRelease: AB9660B9EB2CC88B
Name: i2p-vivid
Method: http://ppa.launchpad.net/i2p-maintainers/i2p/ubuntu
Architectures: amd64 i386 source
VerifyRelease: AB9660B9EB2CC88B
Name: i2p-wily
Method: http://ppa.launchpad.net/i2p-maintainers/i2p/ubuntu
Architectures: amd64 i386 source
VerifyRelease: AB9660B9EB2CC88B
Name: i2p-xenial
Method: http://ppa.launchpad.net/i2p-maintainers/i2p/ubuntu
Architectures: amd64 i386 arm64 armhf ppc64el powerpc s390x source
VerifyRelease: AB9660B9EB2CC88B
Name: i2p-yakkety
Method: http://ppa.launchpad.net/i2p-maintainers/i2p/ubuntu
Architectures: amd64 i386 source
VerifyRelease: AB9660B9EB2CC88B
Name: i2p-zesty
Method: http://ppa.launchpad.net/i2p-maintainers/i2p/ubuntu
Architectures: amd64 i386 source
VerifyRelease: AB9660B9EB2CC88B
Name: i2p-artful
method: http://ppa.launchpad.net/i2p-maintainers/i2p/ubuntu
Architectures: amd64 i386 source
VerifyRelease: AB9660B9EB2CC88B
Name: i2p-bionic
method: http://ppa.launchpad.net/i2p-maintainers/i2p/ubuntu
Architectures: amd64 i386 arm64 armhf ppc64el s390x source
VerifyRelease: AB9660B9EB2CC88B
Name: i2p-cosmic
method: http://ppa.launchpad.net/i2p-maintainers/i2p/ubuntu
Architectures: amd64 i386 arm64 armhf ppc64el s390x source
VerifyRelease: AB9660B9EB2CC88B
Name: i2p-disco
method: http://ppa.launchpad.net/i2p-maintainers/i2p/ubuntu
Architectures: amd64 i386 arm64 armhf ppc64el s390x source
VerifyRelease: AB9660B9EB2CC88B
Name: i2p-eoan
method: http://ppa.launchpad.net/i2p-maintainers/i2p/ubuntu
Architectures: amd64 i386 arm64 armhf ppc64el s390x source
VerifyRelease: AB9660B9EB2CC88B
Name: i2p-focal
method: http://ppa.launchpad.net/i2p-maintainers/i2p/ubuntu
Architectures: amd64 i386 arm64 armhf ppc64el s390x source
VerifyRelease: AB9660B9EB2CC88B
Name: i2p-groovy
method: http://ppa.launchpad.net/i2p-maintainers/i2p/ubuntu
Architectures: amd64 i386 arm64 armhf ppc64el s390x source
VerifyRelease: AB9660B9EB2CC88B
Name: i2p-hirsute
method: http://ppa.launchpad.net/i2p-maintainers/i2p/ubuntu
Architectures: amd64 i386 arm64 armhf ppc64el s390x source
VerifyRelease: AB9660B9EB2CC88B
Name: i2p-impish
method: http://ppa.launchpad.net/i2p-maintainers/i2p/ubuntu
Architectures: amd64 i386 arm64 armhf ppc64el s390x source
VerifyRelease: AB9660B9EB2CC88B
Name: i2p-jammy
method: http://ppa.launchpad.net/i2p-maintainers/i2p/ubuntu
Architectures: amd64 i386 arm64 armhf ppc64el s390x source
VerifyRelease: AB9660B9EB2CC88B
Name: i2p-kinetic
method: http://ppa.launchpad.net/i2p-maintainers/i2p/ubuntu
Architectures: amd64 i386 arm64 armhf ppc64el s390x source
VerifyRelease: AB9660B9EB2CC88B
Name: i2p-lunar
method: http://ppa.launchpad.net/i2p-maintainers/i2p/ubuntu
Architectures: amd64 i386 arm64 armhf ppc64el s390x source
VerifyRelease: AB9660B9EB2CC88B
#Name: anoncoin-precise
#Method: http://ppa.launchpad.net/anoncoin/anoncoin/ubuntu
#Architectures: amd64 i386 source
#VerifyRelease: 1C0E15DE
#
#Name: anoncoin-trusty
#Method: http://ppa.launchpad.net/anoncoin/anoncoin/ubuntu
#Architectures: amd64 i386 source
#VerifyRelease: 1C0E15DE
#
#Name: anoncoin-vivid
#Method: http://ppa.launchpad.net/anoncoin/anoncoin/ubuntu
#Architectures: amd64 i386 source
#VerifyRelease: 1C0E15DE
#
#Name: anoncoin-wily
#Method: http://ppa.launchpad.net/anoncoin/anoncoin/ubuntu
#Architectures: amd64 i386 source
#VerifyRelease: 1C0E15DE
#
#Name: anoncoin-xenial
#Method: http://ppa.launchpad.net/anoncoin/anoncoin/ubuntu
#Architectures: amd64 i386 source
#VerifyRelease: 1C0E15DE

View File

25
debian/conf/xz.sh vendored
View File

@ -1,25 +0,0 @@
#!/bin/sh
DIROFDIST="$1"
NEWNAME="$2"
OLDNAME="$3"
# this can be old($3 exists), new($2 exists) or change (both):
STATUS="$4"
BASENAME="`basename "$OLDNAME"`"
# with reprepro <= 0.7 this could also be Packages.gz or Sources.gz,
# but now only the uncompressed name is given. (even if not generated)
if [ "xPackages" = "x$BASENAME" ] || [ "xSources" = "x$BASENAME" ] ; then
if [ "x$STATUS" = "xold" ] ; then
if [ -f "$DIROFDIST/$OLDNAME.xz" ] ; then
echo "$OLDNAME.xz" >&3
else
xz -c -- "$DIROFDIST/$OLDNAME" >"$DIROFDIST/$OLDNAME.xz.new" 3>/dev/null
echo "$OLDNAME.xz.new" >&3
fi
else
xz -c -- "$DIROFDIST/$NEWNAME" >"$DIROFDIST/$OLDNAME.xz.new" 3>/dev/null
echo "$OLDNAME.xz.new" >&3
fi
fi

33
env.sh
View File

@ -153,7 +153,7 @@ configure_i2p_build_maven() {
echo "Configure i2p build"
setup_ant
echo javac.compilerargs="$JAVA_COMPILER_ARGS -Xlint:all" | tee override.properties
echo build.built-by="$JAVA_BUILT_BY" | tee -a override.properties
echo build.built-byf="$JAVA_BUILT_BY" | tee -a override.properties
echo junit.home="$JUNIT_HOME" | tee -a override.properties
echo hamcrest.home="$HAMCREST_HOME" | tee -a override.properties
echo mockito.home="$MOCKITO_HOME" | tee -a override.properties
@ -231,7 +231,7 @@ clean_i2p() {
compile_i2p() {
configure_i2p_build
cd "$I2P_REPOSITORY_DIR"
ant $KFLAG releaseRepack
ant $KFLAG releaseWithGeoIPRepack
home
}
@ -340,7 +340,7 @@ upload_router_artifacts() {
github_upload
UPLOAD_FILE=i2pinstall_"$I2P_VERSION".jar.sig
github_upload
UPLOAD_FILE=i2pinstall_"$I2P_VERSION-$I2P_VERSION_BUILD_NUM"_windows.exe
UPLOAD_FILE=i2pinstall_"$I2P_VERSION"_windows.exe
github_upload
UPLOAD_FILE=i2psource_"$I2P_VERSION".tar.bz2
github_upload
@ -360,6 +360,19 @@ upload_router_artifacts() {
github_upload
}
upload_win_artifacts() {
GITHUB_RELEASE=$(which github-release)
if [ -z "$GITHUB_RELEASE" ]; then
echo "github-release is not installed, uploading router artifacts disabled"
return
fi
GIT_REPO=i2p.i2p
UPLOAD_FILE=i2pinstall_"$I2P_VERSION"_windows.exe
github_upload
UPLOAD_FILE=i2pinstall_"$I2P_VERSION"_windows.exe.sig
github_upload
}
github_release() {
#TODO: find only the first <article></article> section in i2p.newsxml/data/entries.html and obtain the text from it, store it in the variable NEWS_ARTICLE using sed
NEWS_ARTICLE=$(sed -n '/<article/,/<\/article/p' i2p.newsxml/data/entries.html)
@ -367,15 +380,15 @@ github_release() {
SUMMARY=$(echo "$FIRST_NEWS_ARTICLE" | grep "<summary>" | sed 's/<summary>//g' | sed 's/<\/summary>//g')
FINAL_NEWS_ARTICLE=$(echo "$FIRST_NEWS_ARTICLE" | sed -n '/<\/details>/,$p' | sed '1d')
PUBLISHABLE_NEWS_ARTICLE=$(echo "$FINAL_NEWS_ARTICLE" | sed 's/<\/\{0,1\}p>//g')
if [ -f "$HOME/$I2P_VERSION-$I2P_VERSION_BUILD_NUM$I2P_VERSION_QUALIFIER.announce.txt" ]; then
PUBLISHABLE_NEWS_ARTICLE=$(cat "$HOME/$I2P_VERSION-$I2P_VERSION_BUILD_NUM$I2P_VERSION_QUALIFIER.announce.txt")
SUMMARY=$(head -n 1 "$HOME/$I2P_VERSION-$I2P_VERSION_BUILD_NUM$I2P_VERSION_QUALIFIER.announce.txt" | sed 's|# ||g')
if [ -f "$HOME/$I2P_VERSION$I2P_VERSION_BUILD_NUM$I2P_VERSION_QUALIFIER.announce.txt" ]; then
PUBLISHABLE_NEWS_ARTICLE=$(cat "$HOME/$I2P_VERSION$I2P_VERSION_BUILD_NUM$I2P_VERSION_QUALIFIER.announce.txt")
SUMMARY=$(head -n 1 "$HOME/$I2P_VERSION$I2P_VERSION_BUILD_NUM$I2P_VERSION_QUALIFIER.announce.txt" | sed 's|# ||g')
fi
echo "github-release release --user $GIT_USER --repo $GIT_REPO --tag i2p-$I2P_VERSION --name $SUMMARY --description $PUBLISHABLE_NEWS_ARTICLE"
github-release release $PRERELEASE \
--user "$GIT_USER" \
--repo "$GIT_REPO" \
--tag i2p-$I2P_VERSION-$I2P_VERSION_BUILD_NUM$I2P_VERSION_QUALIFIER \
--tag i2p-$I2P_VERSION$I2P_VERSION_BUILD_NUM$I2P_VERSION_QUALIFIER \
--name "$SUMMARY" \
--description "$PUBLISHABLE_NEWS_ARTICLE" 2> /dev/null
}
@ -389,7 +402,7 @@ github_upload() {
--user "$GIT_USER" \
--repo "$GIT_REPO" \
--label "$UPLOAD_FILE - $HASH_VALUE" \
--tag i2p-$I2P_VERSION-$I2P_VERSION_BUILD_NUM$I2P_VERSION_QUALIFIER \
--tag i2p-$I2P_VERSION$I2P_VERSION_BUILD_NUM$I2P_VERSION_QUALIFIER \
--name "$UPLOAD_FILE" \
--replace \
--file "$GIT_REPO/$UPLOAD_FILE"
@ -419,7 +432,7 @@ git_tag() {
update_coreversion
update_routerversion
cd "$I2P_REPOSITORY_DIR"
git tag i2p-$I2P_VERSION-$I2P_VERSION_BUILD_NUM$I2P_VERSION_QUALIFIER
git tag i2p-$I2P_VERSION$I2P_VERSION_BUILD_NUM$I2P_VERSION_QUALIFIER
home
}
@ -498,7 +511,7 @@ debian_dput() {
DISTRO=ubuntu
fi
rm -f "i2p_$I2P_VERSION-1ubuntu1_source.i2p-community.upload"
dput -c dput.cf "$LAUNCHPAD_ID" "i2p_$I2P_VERSION"*"$DISTRO"*"_source.changes"
dput --force -c dput.cf "$LAUNCHPAD_ID" "i2p_$I2P_VERSION"*"$DISTRO"*"_source.changes"
}
reprepro_gpg_keys() {

View File

@ -30,6 +30,41 @@
index
</a>
</li>
<li>
<a href="I2P-in-Private-Browsing-Mode-Firefox/index.html">
I2P-in-Private-Browsing-Mode-Firefox/index.html
</a>
</li>
<li>
<a href="NOTES.html">
NOTES
</a>
</li>
<li>
<a href="fdroid/index.html">
fdroid/index.html
</a>
</li>
<li>
<a href="i2p.firefox/index.html">
i2p.firefox/index.html
</a>
</li>
<li>
<a href="i2p.plugins.firefox/index.html">
i2p.plugins.firefox/index.html
</a>
</li>
<li>
<a href="i2p.reprepro/index.html">
i2p.reprepro/index.html
</a>
</li>
<li>
<a href="index.html">
index.html
</a>
</li>
</ul>
<br>
<a href="#hidenav">
@ -86,6 +121,41 @@
</code>
to learn more about the usage, for now.
</p>
<h2>
Supported Activities So Far:
</h2>
<ol>
<li>
I2P Release Builds
</li>
<li>
Github mirror operation
</li>
<li>
I2P Library Release Builds
</li>
<li>
I2P Debian Builds
</li>
<li>
I2P Debian Repository Mirroring
</li>
<li>
I2P Debian Development Builds
</li>
<li>
I2P Android Development Builds
</li>
<li>
I2P Android Release Builds(APK only)
</li>
<li>
I2P Android Github Mirror Operation
</li>
<li>
F-Droid Mirror Updates
</li>
</ol>
<div id="sourcecode">
<span id="sourcehead">
<strong>