Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: fc947314f3
Fetching contributors…

Cannot retrieve contributors at this time

42 lines (34 sloc) 1.511 kb
import sys, os, shutil
from distutils.core import setup, Extension
shutil.copyfile("knockknock-daemon.py", "knockknock/knockknock-daemon")
shutil.copyfile("knockknock-genprofile.py", "knockknock/knockknock-genprofile")
shutil.copyfile("knockknock-proxy.py", "knockknock/knockknock-proxy")
shutil.copyfile("knockknock.py", "knockknock/knockknock")
setup (name = 'knockknock',
version = '0.6',
description = 'A cryptographic single-packet port-knocker.',
author = 'Moxie Marlinspike',
author_email = 'moxie@thoughtcrime.org',
url = 'http://www.thoughtcrime.org/software/knockknock/',
license = 'GPL',
packages = ["knockknock", "knockknock.proxy"],
# package_dir = {'knockknock' : 'knockknock/'},
scripts = ['knockknock/knockknock-daemon',
'knockknock/knockknock-genprofile',
'knockknock/knockknock-proxy',
'knockknock/knockknock'],
data_files = [('share/knockknock', ['README', 'INSTALL', 'COPYING']),
('/etc/knockknock.d/', ['config'])]
)
print "Cleaning up..."
if os.path.exists("build/"):
shutil.rmtree("build/")
try:
os.remove("knockknock/knockknock-proxy")
os.remove("knockknock/knockknock-daemon")
os.remove("knockknock/knockknock-genprofile")
os.remove("knockknock/knockknock")
except:
pass
def capture(cmd):
return os.popen(cmd).read().strip()
Jump to Line
Something went wrong with that request. Please try again.