Your IP : 172.28.240.42


Current Path : /usr/lib/python2.7/dist-packages/twisted/scripts/
Upload File :
Current File : //usr/lib/python2.7/dist-packages/twisted/scripts/tap2deb.pyc

ó
±ZOc@s§ddlZddlZddlZddlZddlmZdejfd„ƒYZidd6dd6dd6d	d	6Zd
„Z	d„Z
edkr£e
ƒndS(
iÿÿÿÿN(tusaget	MyOptionscBsÊeZddggZdddgddddgd	d
dgdddgd
ddgdddgdddgddddggZejdiejddddgƒd6ejdƒd6ƒZ	d„Z
RS(tunsignedtuttapfiletts
twistd.tapt
maintainertmtsVThe maintainer's name and email in a specific format: 'John Doe <johndoe@example.com>'tprotocoltptdescriptiontetlong_descriptiontlsset-versiontVs1.0tdebfiletdttypetyttapsGtype of configuration: 'tap', 'xml, 'source' or 'python' for .tac filest
optActionstxmltsourcetpythons*.debcCs|dstjd‚ndS(NRsmaintainer must be specified.(Rt
UsageError(tself((s;/usr/lib/python2.7/dist-packages/twisted/scripts/tap2deb.pytpostOptionss
N(t__name__t
__module__toptFlagstNonet
optParametersRtCompletionstCompleteListt
CompleteFilestcompDataR(((s;/usr/lib/python2.7/dist-packages/twisted/scripts/tap2deb.pyR
s	tfileRRRRcCs*t|dƒ}|j|ƒ|jƒdS(Ntw(topentwritetclose(R%ttexttf((s;/usr/lib/python2.7/dist-packages/twisted/scripts/tap2deb.pytsave_to_file(s
c
Csytƒ}|jƒWn4tjk
rM}tjdtjd|fƒnX|d}tjj	|dƒ}|dp‹tjj
|ƒd}|dpŸd|}|d}|d}|d	pÊd
tƒ}|dpÚd}	t|d
}
t
jtjdƒjƒƒ}|d|}dtjd }
tjjtjjd|ƒƒrltjdtjjd|ƒƒntjtjjd|dƒƒtj|tjjd|ƒƒttjjd|ddƒdƒttjjd|ddƒdtƒƒttjjd|ddƒdtƒƒttjjd|ddƒdtƒƒtjtjjd|ddƒdƒttjjd|ddƒdtƒƒttjjd|dd ƒd!tƒƒttjjd|dd"ƒd#tƒƒttjjd|dd$ƒd%tƒƒttjjd|dd&ƒd'tƒƒttjjd|dd(ƒd)tƒƒttjjd|dd*ƒd+tƒƒttjjd|dd,ƒd-tƒƒtjtjjd|dd,ƒdƒtjd.tƒƒtjd/d0d1g|d2ƒdS(3Ns%s: %siRR	Rstwisted-sset-versionRRs'A Twisted-based server for %(protocol)sR
s Automatically created by tap2debRsdate -Rt-s%s.%sis.builds	rm -rf %stdebians
README.Debians+This package was auto-generated by tap2deb
t	conffilessJ/etc/init.d/%(deb_file)s
/etc/default/%(deb_file)s
/etc/%(base_tap_file)s
tdefaultszpidfile=/var/run/%(deb_file)s.pid
rundir=/var/lib/%(deb_file)s/
file=/etc/%(tap_file)s
logfile=/var/log/%(deb_file)s.log
 sinit.ds@#!/bin/sh

PATH=/sbin:/bin:/usr/sbin:/usr/bin

pidfile=/var/run/%(deb_file)s.pid rundir=/var/lib/%(deb_file)s/ file=/etc/%(tap_file)s logfile=/var/log/%(deb_file)s.log

[ -r /etc/default/%(deb_file)s ] && . /etc/default/%(deb_file)s

test -x /usr/bin/twistd || exit 0
test -r $file || exit 0
test -r /usr/share/%(deb_file)s/package-installed || exit 0


case "$1" in
    start)
        echo -n "Starting %(deb_file)s: twistd"
        start-stop-daemon --start --quiet --exec /usr/bin/twistd --                           --pidfile=$pidfile                           --rundir=$rundir                           --%(twistd_option)s=$file                           --logfile=$logfile
        echo "."	
    ;;

    stop)
        echo -n "Stopping %(deb_file)s: twistd"
        start-stop-daemon --stop --quiet              --pidfile $pidfile
        echo "."	
    ;;

    restart)
        $0 stop
        $0 start
    ;;

    force-reload)
        $0 restart
    ;;

    *)
        echo "Usage: /etc/init.d/%(deb_file)s {start|stop|restart|force-reload}" >&2
        exit 1
    ;;
esac

exit 0
iítpostinstsb#!/bin/sh
update-rc.d %(deb_file)s defaults >/dev/null
invoke-rc.d %(deb_file)s start
#DEBHELPER#
tprerms4#!/bin/sh
invoke-rc.d %(deb_file)s stop
#DEBHELPER#
tpostrmsZ#!/bin/sh
if [ "$1" = purge ]; then
        update-rc.d %(deb_file)s remove >/dev/null
fi
t	changelogsh%(deb_file)s (%(version)s) unstable; urgency=low

  * Created by tap2deb

 -- %(maintainer)s  %(date)s

tcontrolsgSource: %(deb_file)s
Section: net
Priority: extra
Maintainer: %(maintainer)s
Build-Depends-Indep: debhelper, python (>= 2.6.5-7)
Standards-Version: 3.8.4
XS-Python-Version: current

Package: %(deb_file)s
Architecture: all
Depends: ${python:Depends}, python-twisted-core
XB-Python-Version: ${python:Versions}
Description: %(description)s
 %(long_description)s
t	copyrightsÔThis package was auto-debianized by %(maintainer)s on
%(date)s

It was auto-generated by tap2deb

Upstream Author(s): 
Moshe Zadka <moshez@twistedmatrix.com> -- tap2deb author

Copyright:

Insert copyright here.
tdirss^etc/init.d
etc/default
var/lib/%(deb_file)s
usr/share/doc/%(deb_file)s
usr/share/%(deb_file)s
truless{#!/usr/bin/make -f

export DH_COMPAT=5

build: build-stamp
build-stamp:
	dh_testdir
	touch build-stamp

clean:
	dh_testdir
	dh_testroot
	rm -f build-stamp install-stamp
	dh_clean

install: install-stamp
install-stamp: build-stamp
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs

	# Add here commands to install the package into debian/tmp.
	cp %(base_tap_file)s debian/tmp/etc/
	cp debian/init.d debian/tmp/etc/init.d/%(deb_file)s
	cp debian/default debian/tmp/etc/default/%(deb_file)s
	cp debian/copyright debian/tmp/usr/share/doc/%(deb_file)s/
	cp debian/README.Debian debian/tmp/usr/share/doc/%(deb_file)s/
	touch debian/tmp/usr/share/%(deb_file)s/package-installed
	touch install-stamp

binary-arch: build install

binary-indep: build install
	dh_testdir
	dh_testroot
	dh_strip
	dh_compress
	dh_installchangelogs
	dh_python2
	dh_fixperms
	dh_installdeb
	dh_gencontrol
	dh_md5sums
	dh_builddeb

source diff:                                                                  
	@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false

binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install
s.build/%(directory)ssdpkg-buildpackage -rfakerootRs -uc -usR(RtparseOptionsRterrortsystexittargvtostpathtbasenametsplitexttvarst	type_dicttstringtstriptpopentreadtversion_infotexiststjointsystemtmakedirstshutiltcopyR,tchmodtchdir(tconfigtuettap_filet
base_tap_fileR	tdeb_filetversionRRR
t
twistd_optiontdatet	directorytpython_version((s;/usr/lib/python2.7/dist-packages/twisted/scripts/tap2deb.pytrun.sd	"
 



!#4%
5%t__main__(R;R>RDRMttwisted.pythonRtOptionsRRCR,R[R(((s;/usr/lib/python2.7/dist-packages/twisted/scripts/tap2deb.pyt<module>s0
		í