Ejemplo n.º 1
0
def build(options, suites):
    """the master build function
  checks that we can build, then does the work"""
    if options.version == Globals.VERSION:
        print "No version specified with --version flag, defaulting to %s." % (Globals.VERSION)

    if options.uploadDeb:
        uploadFolder = options.uploadDeb
        assert uploadFolder in [
            "old",
            "new",
        ], "You must specify old or new for the upload folder, \
      as obviously debs can either go in innomitorDebOld or innomitorDebNew!."
    verify_required_packages()

    unitializedSuites = get_uninitializied_suites(suites)
    assert not unitializedSuites, "You must do initialize %s before doing a build." % (unitializedSuites)

    version = options.version
    TAR_NAME = "innomitor-%s.tar.gz" % (version)
    BASE_NAME = "innomitor"
    BUILD_DIR = "%s/%s-%s" % (PACKAGE_DIR, BASE_NAME, version)
    controlFile = BaseDebFiles.BASE_CONTROL_FILE_TEXT

    check_build_assumptions(BASE_NAME, version, BUILD_DIR, controlFile, options.noInput)
    print "Changing some permissions..."
    os.chmod("%s/autogen.sh" % (BUILD_DIR), stat.S_IXUSR)
    # no idea what needs to execute the rules file, maybe something stats it ?!?
    os.chmod("%s/debian/rules" % (BUILD_DIR), stat.S_IXUSR | stat.S_IWUSR | stat.S_IRUSR)
    make_tar(TAR_NAME, BUILD_DIR, BASE_NAME, version)

    pdebuild(suites, BUILD_DIR, options.noUpdate)

    print "\n\nAll done building.\n\n"
Ejemplo n.º 2
0
def build(options, suites):
    """the master build function
  checks that we can build, then does the work"""
    if options.version == Globals.VERSION:
        print "No version specified with --version flag, defaulting to %s." % (
            Globals.VERSION)

    if options.uploadDeb:
        uploadFolder = options.uploadDeb
        assert uploadFolder in [
            "old", "new"
        ], "You must specify old or new for the upload folder, \
      as obviously debs can either go in innomitorDebOld or innomitorDebNew!."

    verify_required_packages()

    unitializedSuites = get_uninitializied_suites(suites)
    assert not unitializedSuites, "You must do initialize %s before doing a build." % (
        unitializedSuites)

    version = options.version
    TAR_NAME = "innomitor-%s.tar.gz" % (version)
    BASE_NAME = "innomitor"
    BUILD_DIR = "%s/%s-%s" % (PACKAGE_DIR, BASE_NAME, version)
    controlFile = BaseDebFiles.BASE_CONTROL_FILE_TEXT

    check_build_assumptions(BASE_NAME, version, BUILD_DIR, controlFile,
                            options.noInput)
    print "Changing some permissions..."
    os.chmod('%s/autogen.sh' % (BUILD_DIR), stat.S_IXUSR)
    #no idea what needs to execute the rules file, maybe something stats it ?!?
    os.chmod('%s/debian/rules' % (BUILD_DIR),
             stat.S_IXUSR | stat.S_IWUSR | stat.S_IRUSR)
    make_tar(TAR_NAME, BUILD_DIR, BASE_NAME, version)

    pdebuild(suites, BUILD_DIR, options.noUpdate)

    print '\n\nAll done building.\n\n'
Ejemplo n.º 3
0
Maintainer: Matt Kaniaris <*****@*****.**>
Build-Depends: debhelper (>= 4.1.65), binutils (>= 2.14.90.0.7), python-support (>= 0.3), python-dev, python-setuptools, devscripts
Standards-Version: 3.8.0
XS-Python-Version: 2.5, 2.6

Package: python-bitblinder
Architecture: all
Depends: ${python:Depends}, python-twisted (>=2.5.0), python-twisted-web, python-m2crypto, innomitor (>=0.5.0), python-gobject(>=2.0)
Recommends: python-gtk2 (>=2.0)
Description: Anonymous BitTorrent client and platform
 BitBlinder is built on top of the open source Tor project,
 though it uses its own network and client, innomitor.
 The goal of BitBlinder is to make Tor faster and more 
 user friendly even if it needs to sacrifice some
 anonymity.  If you need strong anonymity, use Tor instead.  
 BitBlinder includes a custom BitTorrent client (a fork of 
 BitTornado.)
"""

check_build_assumptions(BASE_NAME, VERSION, BUILD_DIR, CONTROL_FILE_TEXT,
                        options.noInput)
syscall("cp %s/debian/setup.py %s/." % (BUILD_DIR, BUILD_DIR))
syscall("rm -rf %s/windows %s/experiments" % (BUILD_DIR, BUILD_DIR))
make_tar(TAR_NAME, BUILD_DIR, BASE_NAME, VERSION)
build(BUILD_DIR, DEB_NAME)
print "upload is: %s" % (options.upload)
if options.upload:
    upload_file(DEB_NAME, "/home/web/media/distribution/%sDeb" % (BASE_NAME))
    upload_file(TAR_NAME,
                "/home/web/media/distribution/%sSource" % (BASE_NAME))
Ejemplo n.º 4
0
Section: comm
Priority: optional
Maintainer: Matt Kaniaris <*****@*****.**>
Build-Depends: debhelper (>= 4.1.65), binutils (>= 2.14.90.0.7), python-support (>= 0.3), python-dev, python-setuptools, devscripts
Standards-Version: 3.8.0
XS-Python-Version: 2.5, 2.6

Package: python-bitblinder
Architecture: all
Depends: ${python:Depends}, python-twisted (>=2.5.0), python-twisted-web, python-m2crypto, innomitor (>=0.5.0), python-gobject(>=2.0)
Recommends: python-gtk2 (>=2.0)
Description: Anonymous BitTorrent client and platform
 BitBlinder is built on top of the open source Tor project,
 though it uses its own network and client, innomitor.
 The goal of BitBlinder is to make Tor faster and more 
 user friendly even if it needs to sacrifice some
 anonymity.  If you need strong anonymity, use Tor instead.  
 BitBlinder includes a custom BitTorrent client (a fork of 
 BitTornado.)
"""
  
check_build_assumptions(BASE_NAME, VERSION, BUILD_DIR, CONTROL_FILE_TEXT, options.noInput)
syscall("cp %s/debian/setup.py %s/." % (BUILD_DIR, BUILD_DIR))
syscall("rm -rf %s/windows %s/experiments" % (BUILD_DIR, BUILD_DIR))
make_tar(TAR_NAME, BUILD_DIR, BASE_NAME, VERSION)
build(BUILD_DIR, DEB_NAME)
print "upload is: %s" % (options.upload)
if options.upload:
  upload_file(DEB_NAME, "/home/web/media/distribution/%sDeb" % (BASE_NAME))
  upload_file(TAR_NAME, "/home/web/media/distribution/%sSource" % (BASE_NAME))