Unverified Commit 05526655 authored by Georg Koppen's avatar Georg Koppen
Browse files

Bug 30319: Drop FTE releated bits

Clean up our LICENSE file as well.
parent dd098db6
#!/bin/bash
[% c("var/set_default_env") -%]
distdir="/var/tmp/dist/[% project %]"
[% c("var/set_PTDIR_DOCSDIR") -%]
mkdir -p $PTDIR
mkdir -p /var/tmp/build
tar -C /var/tmp/build -xf $rootdir/[% project %]-[% c('version') %].tar.gz
cd /var/tmp/build/[% project %]-[% c('version') %]
python2 setup.py build --build-lib build
cp -a build/argparse.py $PTDIR/
cd $distdir
[% c('tar', {
tar_src => [ '.' ],
tar_args => '-czf ' _ dest_dir _ '/' _ c('filename'),
}) %]
# vim: filetype=yaml sw=2
version: 1.2.1
filename: '[% project %]-[% c("version") %]-[% c("var/osname") %]-[% c("var/build_id") %].tar.gz'
var:
container:
use_container: 1
targets:
linux:
var:
arch_deps:
- python-setuptools
- python-dev
input_files:
- project: container-image
- URL: 'https://pypi.python.org/packages/source/a/argparse/argparse-[% c("version") %].tar.gz'
sha256sum: ddaf4b0a618335a32b6664d4ae038a1de8fbada3b25033f9021510ed2b3941a4
#!/bin/bash
[% c("var/set_default_env") -%]
distdir="/var/tmp/dist/[% project %]"
[% c("var/set_PTDIR_DOCSDIR") -%]
mkdir -p $PTDIR $DOCSDIR
tar -C $distdir -xf $rootdir/[% c('input_files_by_name/libfte') %]
mkdir -p /var/tmp/build
tar -C /var/tmp/build -xf $rootdir/[% project %]-[% c('version') %].tar.gz
cd /var/tmp/build/[% project %]-[% c('version') %]
cp -a $rootdir/fteproxy.wrapper $PTDIR/fteproxy.wrapper
chmod +x $PTDIR/fteproxy.wrapper
cp -a bin/fteproxy $PTDIR/fteproxy.bin
cp -ra fteproxy $PTDIR/
cp -a {COPYING,README.md} $DOCSDIR/
cd $distdir
[% c('tar', {
tar_src => [ '.' ],
tar_args => '-czf ' _ dest_dir _ '/' _ c('filename'),
}) %]
# vim: filetype=yaml sw=2
version: '[% c("abbrev") %]'
git_url: https://github.com/kpdyer/fteproxy.git
# tag 0.2.19
git_hash: 597f8378f6f4f3de570b8e1064c2e4cb8d67fbd0
filename: '[% project %]-[% c("version") %]-[% c("var/osname") %]-[% c("var/build_id") %].tar.gz'
var:
container:
use_container: 1
targets:
linux:
var:
arch_deps:
- python-setuptools
- python-dev
input_files:
- project: container-image
- project: libfte
name: libfte
- filename: fteproxy.wrapper
enable: '[% c("var/linux") %]'
#!/bin/sh
basedir=$(dirname "$0")
libdir=$(cd "$basedir"/fteproxy-lib ; pwd)
if test -z "$LD_LIBRARY_PATH"
then
export LD_LIBRARY_PATH="$libdir"
else
export LD_LIBRARY_PATH="$libdir:$LD_LIBRARY_PATH"
fi
exec "$basedir/fteproxy.bin" "$@"
#!/bin/bash
[% c("var/set_default_env") -%]
[% pc(c('var/compiler'), 'var/setup', { compiler_tarfile => c('input_files_by_name/' _ c('var/compiler')) }) %]
distdir=/var/tmp/dist/[% project %]
mkdir -p /var/tmp/build
tar -C /var/tmp/build -xf [% project %]-[% c('version') %].tar.bz2
cd /var/tmp/build/[% project %]-[% c('version') %]
# Even if we are not shipping libgmpxx anymore we still need --enable-xcc
# during compile time.
./configure --disable-static --enable-shared --enable-cxx \
[% c("var/configure_opt") %] [% c("var/configure_opt_gmp") %] --prefix=$distdir
make -j[% c("buildconf/num_procs") %]
make install
cd /var/tmp/dist
[% c('tar', {
tar_src => [ project ],
tar_args => '-czf ' _ dest_dir _ '/' _ c('filename'),
}) %]
# vim: filetype=yaml sw=2
filename: '[% project %]-[% c("version") %]-[% c("var/osname") %]-[% c("var/build_id") %].tar.gz'
version: 5.1.3
var:
container:
use_container: 1
targets:
linux:
var:
configure_opt_gmp: --enable-fat
input_files:
- project: container-image
- name: gmp
URL: 'https://ftp.gnu.org/gnu/gmp/gmp-[% c("version") %].tar.bz2'
sha256sum: 752079520b4690531171d0f4532e40f08600215feefede70b24fabdc6f1ab160
- name: '[% c("var/compiler") %]'
project: '[% c("var/compiler") %]'
#!/bin/bash
[% c("var/set_default_env") -%]
[% c("var/setarch") -%]
[% pc(c('var/compiler'), 'var/setup', { compiler_tarfile => c('input_files_by_name/' _ c('var/compiler')) }) %]
distdir="/var/tmp/dist/[% project %]"
[% c("var/set_PTDIR_DOCSDIR") -%]
mkdir -p $PTDIR $DOCSDIR
mkdir -p /var/tmp/build
tar -C /var/tmp/build -xf $rootdir/[% project %]-[% c('version') %].tar.gz
cd /var/tmp/build/[% project %]-[% c('version') %]
tar -C /var/tmp/dist -xf $rootdir/[% c('input_files_by_name/gmp') %]
ln -s /var/tmp/dist/gmp thirdparty/gmp
mkdir -p $distdir
tar -C $distdir -xf $rootdir/[% c('input_files_by_name/obfsproxy') %]
[% IF c("var/linux-i686") -%]
export CFLAGS=-m32
export CXXFLAGS=-m32
export LDFLAGS=-m32
[% END -%]
export PYTHON=python2[% IF c("var/linux-i686") %].7[% END %]
make
cp -ra fte $PTDIR/
mkdir -p $PTDIR/fteproxy-lib
cp /var/tmp/dist/gmp/lib/libgmp.so.10 $PTDIR/fteproxy-lib
cp -a {LICENSE,README.md} $DOCSDIR/
cp -a thirdparty/re2/LICENSE $DOCSDIR/LICENSE.re2
cd $distdir
[% c('tar', {
tar_src => [ '.' ],
tar_args => '-czf ' _ dest_dir _ '/' _ c('filename'),
}) %]
# vim: filetype=yaml sw=2
version: '[% c("abbrev") %]'
git_url: https://github.com/kpdyer/libfte.git
git_hash: 85ef8ae58dbf0d02ea26b627e343784b5574c428
filename: '[% project %]-[% c("version") %]-[% c("var/osname") %]-[% c("var/build_id") %].tar.gz'
var:
container:
use_container: 1
targets:
linux-x86_64:
var:
arch_deps:
- python-setuptools
- python-dev
linux-i686:
var:
pre_pkginst: |
dpkg --add-architecture i386
# python2.7:i386 cannot be installed because the mime-support package
# in wheezy is not marked "Multi-Arch: foreign":
# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=695357
# We fix this by installing the jessie mime-support package.
wget http://ftp.debian.org/debian/pool/main/m/mime-support/mime-support_3.58_all.deb
echo 'c05ebe8f38da4ff19d028c9f4680414149e5c7a746de13bc9db0a562796ed213 mime-support_3.58_all.deb' | sha256sum -c
dpkg -i mime-support_3.58_all.deb
post_pkginst: |
export DEBIAN_FRONTEND=noninteractive
apt-get install -q -y libpython2.7:i386 python2.7:i386 python2.7-minimal:i386 python2.7-dev:i386
apt-get install -q -y hardening-wrapper
apt-get download -q -y python-setuptools python-pkg-resources
dpkg -i --force-depends python-setuptools*.deb python-pkg-resources*.deb
input_files:
- project: container-image
- name: '[% c("var/compiler") %]'
project: '[% c("var/compiler") %]'
- project: gmp
name: gmp
- project: obfsproxy
name: obfsproxy
#!/bin/bash
[% c("var/set_default_env") -%]
distdir="/var/tmp/dist/[% project %]"
[% c("var/set_PTDIR_DOCSDIR") -%]
mkdir -p $PTDIR $DOCSDIR
mkdir -p $distdir
tar -C $distdir -xf $rootdir/[% c('input_files_by_name/pycrypto') %]
tar -C $distdir -xf $rootdir/[% c('input_files_by_name/twisted') %]
tar -C $distdir -xf $rootdir/[% c('input_files_by_name/argparse') %]
tar -C $distdir -xf $rootdir/[% c('input_files_by_name/parsley') %]
tar -C $distdir -xf $rootdir/[% c('input_files_by_name/pyptlib') %]
tar -C $distdir -xf $rootdir/[% c('input_files_by_name/pyyaml') %]
tar -C $distdir -xf $rootdir/[% c('input_files_by_name/txsocksx') %]
tar -C $distdir -xf $rootdir/[% c('input_files_by_name/zope.interface') %]
mkdir -p /var/tmp/build
tar -C /var/tmp/build -xf $rootdir/[% project %]-[% c('version') %].tar.gz
cd /var/tmp/build/[% project %]-[% c('version') %]
export PYTHON=python2
$PYTHON setup.py build --build-lib build
cp -a build/obfsproxy $PTDIR/
cp -a bin/obfsproxy $PTDIR/obfsproxy.bin
cp -a {LICENSE,README} $DOCSDIR
cd $distdir
[% c('tar', {
tar_src => [ '.' ],
tar_args => '-czf ' _ dest_dir _ '/' _ c('filename'),
}) %]
# vim: filetype=yaml sw=2
version: 0.2.12
git_url: https://git.torproject.org/pluggable-transports/obfsproxy.git
git_hash: 'obfsproxy-[% c("version") %]'
tag_gpg_id: 1
gpg_keyring: obfsproxy.gpg
filename: '[% project %]-[% c("version") %]-[% c("var/osname") %]-[% c("var/build_id") %].tar.gz'
var:
DOCSDIR_project: Obfsproxy
container:
use_container: 1
targets:
linux:
var:
arch_deps:
- python-setuptools
- python-dev
input_files:
- project: container-image
- project: pycrypto
name: pycrypto
- project: twisted
name: twisted
- project: argparse
name: argparse
- project: parsley
name: parsley
- project: pyptlib
name: pyptlib
- project: pyyaml
name: pyyaml
- project: txsocksx
name: txsocksx
- project: zope.interface
name: zope.interface
#!/bin/bash
[% c("var/set_default_env") -%]
distdir="/var/tmp/dist/[% project %]"
[% c("var/set_PTDIR_DOCSDIR") -%]
mkdir -p $PTDIR
mkdir -p /var/tmp/build
tar -C /var/tmp/build -xf $rootdir/Parsley-[% c('version') %].tar.gz
cd /var/tmp/build/Parsley-[% c('version') %]
PYTHON=python2
$PYTHON setup.py build --build-lib build
cp -a build/parsley.py build/ometa build/terml $PTDIR/
cd $distdir
[% c('tar', {
tar_src => [ '.' ],
tar_args => '-czf ' _ dest_dir _ '/' _ c('filename'),
}) %]
# vim: filetype=yaml sw=2
version: 1.2
filename: '[% project %]-[% c("version") %]-[% c("var/osname") %]-[% c("var/build_id") %].tar.gz'
var:
container:
use_container: 1
targets:
linux:
var:
arch_deps:
- python-setuptools
- python-dev
input_files:
- project: container-image
- URL: 'https://pypi.python.org/packages/source/P/Parsley/Parsley-[% c("version") %].tar.gz'
sha256sum: 50d30cee70770fd44db7cea421cb2fb75af247c3a1cd54885c06b30a7c85dd23
#!/bin/bash
set -e
[% c("var/set_default_env") -%]
[% c("var/setarch") -%]
[% pc(c('var/compiler'), 'var/setup', { compiler_tarfile => c('input_files_by_name/' _ c('var/compiler')) }) %]
distdir="/var/tmp/dist/[% project %]"
[% c("var/set_PTDIR_DOCSDIR") -%]
mkdir -p $PTDIR
mkdir -p /var/tmp/build
tar -C /var/tmp/build -xf $rootdir/[% project %]-[% c('version') %].tar.gz
cd /var/tmp/build/[% project %]-[% c('version') %]
[% IF c("var/linux-i686") -%]
export CFLAGS=-m32
export CXXFLAGS=-m32
export LDFLAGS=-m32
[% END -%]
export PYTHON=python2[% IF c("var/linux-i686") %].7[% END %]
./configure --build=i686-linux-gnu [% c("var/configure_opt") %]
$PYTHON setup.py build --build-lib build
cp -a build/Crypto $PTDIR/
cd $distdir
[% c('tar', {
tar_src => [ '.' ],
tar_args => '-czf ' _ dest_dir _ '/' _ c('filename'),
}) %]
# vim: filetype=yaml sw=2
version: 2.6.1
filename: '[% project %]-[% c("version") %]-[% c("var/osname") %]-[% c("var/build_id") %].tar.gz'
var:
container:
use_container: 1
targets:
linux-x86_64:
var:
arch_deps:
- python-dev
- python-setuptools
linux-i686:
var:
pre_pkginst: |
dpkg --add-architecture i386
# python2.7:i386 cannot be installed because the mime-support package
# in wheezy is not marked "Multi-Arch: foreign":
# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=695357
# We fix this by installing the jessie mime-support package.
wget http://ftp.debian.org/debian/pool/main/m/mime-support/mime-support_3.58_all.deb
echo 'c05ebe8f38da4ff19d028c9f4680414149e5c7a746de13bc9db0a562796ed213 mime-support_3.58_all.deb' | sha256sum -c
dpkg -i mime-support_3.58_all.deb
post_pkginst: |
export DEBIAN_FRONTEND=noninteractive
apt-get install -q -y libpython2.7:i386 python2.7:i386 python2.7-minimal:i386 python2.7-dev:i386
apt-get install -q -y hardening-wrapper
apt-get download -q -y python-setuptools python-pkg-resources
dpkg -i --force-depends python-setuptools*.deb python-pkg-resources*.deb
input_files:
- project: container-image
- name: '[% c("var/compiler") %]'
project: '[% c("var/compiler") %]'
- URL: 'https://pypi.python.org/packages/source/p/pycrypto/pycrypto-[% c("version") %].tar.gz'
sha256sum: f2ce1e989b272cfcb677616763e0a2e7ec659effa67a88aa92b3a65528f60a3c
#!/bin/bash
[% c("var/set_default_env") -%]
distdir="/var/tmp/dist/[% project %]"
[% c("var/set_PTDIR_DOCSDIR") -%]
mkdir -p $PTDIR
mkdir -p /var/tmp/build
tar -C /var/tmp/build -xf $rootdir/[% project %]-[% c('version') %].tar.gz
cd /var/tmp/build/[% project %]-[% c('version') %]
export PYTHON=python2
$PYTHON setup.py build --build-lib build
cp -a build/pyptlib $PTDIR/
cd $distdir
[% c('tar', {
tar_src => [ '.' ],
tar_args => '-czf ' _ dest_dir _ '/' _ c('filename'),
}) %]
# vim: filetype=yaml sw=2
version: 0.0.6
git_url: https://git.torproject.org/pluggable-transports/pyptlib.git
git_hash: 'pyptlib-[% c("version") %]'
tag_gpg_id: 1
gpg_keyring: pyptlib.gpg
filename: '[% project %]-[% c("version") %]-[% c("var/osname") %]-[% c("var/build_id") %].tar.gz'
var:
container:
use_container: 1
targets:
linux:
var:
arch_deps:
- python-setuptools
- python-dev
input_files:
- project: container-image
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment