RSS
[>] Тест
debug.14
vit01(lenina,50) — All
2014-04-01 03:35:14


Тестирую новый клиент

[>] Re: тестирование
debug.14
51t(lenina,1) — vit01
2014-03-31 05:57:33


bottle.py имеющейся версии не работает в директориях с русскими именами (более новые не будут работать с сайтом).

убери из "Загрузки" в более приятное имя.

[>] Re: тестирование
debug.14
vit01(lenina,50) — 51t
2014-03-31 05:58:31


Ок, уберу в другой каталог

[>] Re: тестирование
debug.14
51t(lenina,1) — vit01
2014-03-31 06:00:00


обсуждение лучше вести в бонной эхе, чтобы люди видели :)

сюда просто дампы кидать и прочее. :)

welcome to ii://ii.about.2014

[>] Re: тестирование
debug.14
vit01(lenina,50) — 51t
2014-03-31 06:03:41


Зашлось через браузер. Создал эху заново, нажал на её название в браузере, нажал "добавить сообщение", выводит

Error: 500 Internal Server Error

Sorry, the requested URL 'http://localhost:62220/reply/testnode.2014/-' caused an error:

Internal Server Error
Exception:

IOError(2, 'No such file or directory')
Traceback:

Traceback (most recent call last):
File "/home/vitya/prg/pre02/bottle.py", line 783, in _handle
return route.call(**args)
File "/home/vitya/prg/pre02/bottle.py", line 1635, in wrapper
rv = callback(*a, **ka)
File "run.py", line 39, in index_list
return template('mform.html',r=local.r,ea=ea)
File "/home/vitya/prg/pre02/bottle.py", line 3216, in template
return TEMPLATES[tplid].render(kwargs)
File "/home/vitya/prg/pre02/bottle.py", line 3189, in render
self.execute(stdout, kwargs)
File "/home/vitya/prg/pre02/bottle.py", line 3177, in execute
eval(self.co, env)
File "/home/vitya/prg/pre02/mform.html", line 17, in <module>
%uname, uaddr = points.check_hash(r.auth)
File "/home/vitya/prg/pre02/points.py", line 15, in check_hash
p = open('points.txt').read().splitlines()
IOError: [Errno 2] No such file or directory: 'points.txt'

Ругается на отсутствие поинтов. Поинта создал, но лучше как-то предусмотреть вариант отсутствия файла.

[>] PKGBUILD
debug.14
vit01(lenina,50) — All
2014-04-18 18:55:15


pkgname=('ii-net')
pkgver=('03')
pkgdesc=("russian fido-like messaging system with web interface")
pkgrel=1
arch=('any')
depends=('python2')
license=('custom')
url="http://ii.51t.ru"
source=("http://51t.ru/s/ii-$pkgver.tar.gz"
	"http://51t.ru/s/iiclient-$pkgver.tar.gz"
	"http://51t.ru/s/iitxt-$pkgver.tar.gz"
	"http://irk38.tk/files/scripts.tar.gz"
)
md5sums=(
	"4130f8c6b253254a773e02328d723816"
	"8b090e725df73010e41b04fa54c8f95f"
	"a17bfec7085737a8e19bf287008f25d5"
	"0260be942f4163a170a6b44efb8b59da"
)

package() {
	cd "${srcdir}"
	mkdir -p $pkgdir/usr/share/ii-net/{ii-server,ii-client,ii-txt}
	cp -r ii-03/* $pkgdir/usr/share/ii-net/ii-server
	cp -r iiclient-03/* $pkgdir/usr/share/ii-net/ii-client
	cp -r iitxt-03/* $pkgdir/usr/share/ii-net/ii-txt
	cp -r iitxt-03/{.py,.out} $pkgdir/usr/share/ii-net/ii-txt/

	mkdir -p $pkgdir/usr/bin/
	cp scripts/* $pkgdir/usr/bin/
}

[>] cp log
debug.14
vit01(lenina,50) — All
2014-04-23 14:39:30


ii-03/api ./root/usr/share/ii-net/ii-server/api
ii-03/api/sx.py ./root/usr/share/ii-net/ii-server/api/sx.py
ii-03/api/bottle.py ./root/usr/share/ii-net/ii-server/api/bottle.py
ii-03/api/__init__.py ./root/usr/share/ii-net/ii-server/api/__init__.py
ii-03/api/splitparser.py ./root/usr/share/ii-net/ii-server/api/splitparser.py
ii-03/api/flt.py ./root/usr/share/ii-net/ii-server/api/flt.py
ii-03/echo ./root/usr/share/ii-net/ii-server/echo
ii-03/echo/my.local.14 ./root/usr/share/ii-net/ii-server/echo/my.local.14
ii-03/iitpl ./root/usr/share/ii-net/ii-server/iitpl
ii-03/iitpl/index.html ./root/usr/share/ii-net/ii-server/iitpl/index.html
ii-03/iitpl/01.tpl ./root/usr/share/ii-net/ii-server/iitpl/01.tpl
ii-03/iitpl/PyRSS2Gen.py ./root/usr/share/ii-net/ii-server/iitpl/PyRSS2Gen.py
ii-03/iitpl/repbtn.tpl ./root/usr/share/ii-net/ii-server/iitpl/repbtn.tpl
ii-03/iitpl/01m.tpl ./root/usr/share/ii-net/ii-server/iitpl/01m.tpl
ii-03/iitpl/__init__.py ./root/usr/share/ii-net/ii-server/iitpl/__init__.py
ii-03/iitpl/rssg.py ./root/usr/share/ii-net/ii-server/iitpl/rssg.py
ii-03/iitpl/echoarea.html ./root/usr/share/ii-net/ii-server/iitpl/echoarea.html
ii-03/iitpl/mform.html ./root/usr/share/ii-net/ii-server/iitpl/mform.html
ii-03/iitpl/msg.html ./root/usr/share/ii-net/ii-server/iitpl/msg.html
ii-03/LICENSE ./root/usr/share/ii-net/ii-server/LICENSE
ii-03/LICENSE.3rd ./root/usr/share/ii-net/ii-server/LICENSE.3rd
ii-03/msg ./root/usr/share/ii-net/ii-server/msg
ii-03/msg/oocYs0PfAD0iC3GmmNIb ./root/usr/share/ii-net/ii-server/msg/oocYs0PfAD0iC3GmmNIb
ii-03/my.local.14.header ./root/usr/share/ii-net/ii-server/my.local.14.header
ii-03/points.py ./root/usr/share/ii-net/ii-server/points.py
ii-03/README.utf8 ./root/usr/share/ii-net/ii-server/README.utf8
ii-03/run.py ./root/usr/share/ii-net/ii-server/run.py
ii-03/run.sh ./root/usr/share/ii-net/ii-server/run.sh
ii-03/s ./root/usr/share/ii-net/ii-server/s
ii-03/s/favicon.png ./root/usr/share/ii-net/ii-server/s/favicon.png
ii-03/s/fonts ./root/usr/share/ii-net/ii-server/s/fonts
ii-03/s/fonts/fontawesome-webfont.svg ./root/usr/share/ii-net/ii-server/s/fonts/fontawesome-webfont.svg
ii-03/s/fonts/fontawesome-webfont.eot ./root/usr/share/ii-net/ii-server/s/fonts/fontawesome-webfont.eot
ii-03/s/fonts/fontawesome-webfont.woff ./root/usr/share/ii-net/ii-server/s/fonts/fontawesome-webfont.woff
ii-03/s/fonts/fontawesome-webfont.ttf ./root/usr/share/ii-net/ii-server/s/fonts/fontawesome-webfont.ttf
ii-03/s/fonts/FontAwesome.otf ./root/usr/share/ii-net/ii-server/s/fonts/FontAwesome.otf
ii-03/s/css ./root/usr/share/ii-net/ii-server/s/css
ii-03/s/css/foundation.min.css ./root/usr/share/ii-net/ii-server/s/css/foundation.min.css
ii-03/s/css/font-awesome.min.css ./root/usr/share/ii-net/ii-server/s/css/font-awesome.min.css
ii-03/s/css/normalize.css ./root/usr/share/ii-net/ii-server/s/css/normalize.css
ii-03/s/js ./root/usr/share/ii-net/ii-server/s/js
ii-03/s/js/foundation.min.js ./root/usr/share/ii-net/ii-server/s/js/foundation.min.js
ii-03/s/js/vendor ./root/usr/share/ii-net/ii-server/s/js/vendor
ii-03/s/js/vendor/jquery.js ./root/usr/share/ii-net/ii-server/s/js/vendor/jquery.js
ii-03/s/js/vendor/jquery.cookie.js ./root/usr/share/ii-net/ii-server/s/js/vendor/jquery.cookie.js
ii-03/s/js/vendor/fastclick.js ./root/usr/share/ii-net/ii-server/s/js/vendor/fastclick.js
ii-03/s/js/vendor/placeholder.js ./root/usr/share/ii-net/ii-server/s/js/vendor/placeholder.js
ii-03/s/js/vendor/modernizr.js ./root/usr/share/ii-net/ii-server/s/js/vendor/modernizr.js
ii-03/server.cfg ./root/usr/share/ii-net/ii-server/server.cfg
ii-03/tools ./root/usr/share/ii-net/ii-server/tools
ii-03/tools/gate ./root/usr/share/ii-net/ii-server/tools/gate
ii-03/tools/gate/config.cfg ./root/usr/share/ii-net/ii-server/tools/gate/config.cfg
ii-03/tools/gate/gate ./root/usr/share/ii-net/ii-server/tools/gate/gate
ii-03/tools/gate/webfetch.py ./root/usr/share/ii-net/ii-server/tools/gate/webfetch.py
ii-03/tools/gate/readme.utf8 ./root/usr/share/ii-net/ii-server/tools/gate/readme.utf8
ii-03/tools/mkhtml ./root/usr/share/ii-net/ii-server/tools/mkhtml
ii-03/tools/mkhtml/tpl.tpl ./root/usr/share/ii-net/ii-server/tools/mkhtml/tpl.tpl
ii-03/tools/mkhtml/mkhtml.py ./root/usr/share/ii-net/ii-server/tools/mkhtml/mkhtml.py
ii-03/tools/mkhtml/htmldump.sh ./root/usr/share/ii-net/ii-server/tools/mkhtml/htmldump.sh
ii-03/tools/bundle ./root/usr/share/ii-net/ii-server/tools/bundle
ii-03/tools/bundle/unbundle.py ./root/usr/share/ii-net/ii-server/tools/bundle/unbundle.py
ii-03/tools/bundle/mkbundle.py ./root/usr/share/ii-net/ii-server/tools/bundle/mkbundle.py
ii-03/tools/other ./root/usr/share/ii-net/ii-server/tools/other
ii-03/tools/other/traf.py ./root/usr/share/ii-net/ii-server/tools/other/traf.py
ii-03/tools/client-toss ./root/usr/share/ii-net/ii-server/tools/client-toss
ii-03/tools/client-toss/toss.py ./root/usr/share/ii-net/ii-server/tools/client-toss/toss.py
ii-03/tools/client-toss/1.txt ./root/usr/share/ii-net/ii-server/tools/client-toss/1.txt
ii-03/tools/client-toss/mktoss.py ./root/usr/share/ii-net/ii-server/tools/client-toss/mktoss.py
ii-03/tools/client-toss/tossposturl.sh ./root/usr/share/ii-net/ii-server/tools/client-toss/tossposturl.sh
ii-03/tools/client-toss/tosspost.sh ./root/usr/share/ii-net/ii-server/tools/client-toss/tosspost.sh
iiclient-03/clapi ./root/usr/share/ii-net/ii-client/clapi
iiclient-03/clapi/sx.py ./root/usr/share/ii-net/ii-client/clapi/sx.py
iiclient-03/clapi/bottle.py ./root/usr/share/ii-net/ii-client/clapi/bottle.py
iiclient-03/clapi/bbs.bbs ./root/usr/share/ii-net/ii-client/clapi/bbs.bbs
iiclient-03/clapi/outmsg.py ./root/usr/share/ii-net/ii-client/clapi/outmsg.py
iiclient-03/clapi/getmsg.py ./root/usr/share/ii-net/ii-client/clapi/getmsg.py
iiclient-03/clapi/__init__.py ./root/usr/share/ii-net/ii-client/clapi/__init__.py
iiclient-03/clapi/splitparser.py ./root/usr/share/ii-net/ii-client/clapi/splitparser.py
iiclient-03/clapi/flt.py ./root/usr/share/ii-net/ii-client/clapi/flt.py
iiclient-03/config.cfg ./root/usr/share/ii-net/ii-client/config.cfg
iiclient-03/echo ./root/usr/share/ii-net/ii-client/echo
iiclient-03/msg ./root/usr/share/ii-net/ii-client/msg
iiclient-03/out ./root/usr/share/ii-net/ii-client/out
iiclient-03/out/1.out ./root/usr/share/ii-net/ii-client/out/1.out
iiclient-03/run.py ./root/usr/share/ii-net/ii-client/run.py
iiclient-03/run.sh ./root/usr/share/ii-net/ii-client/run.sh
iiclient-03/s ./root/usr/share/ii-net/ii-client/s
iiclient-03/s/favicon.png ./root/usr/share/ii-net/ii-client/s/favicon.png
iiclient-03/s/pretty ./root/usr/share/ii-net/ii-client/s/pretty
iiclient-03/s/pretty/lang-vb.js ./root/usr/share/ii-net/ii-client/s/pretty/lang-vb.js
iiclient-03/s/pretty/lang-ml.js ./root/usr/share/ii-net/ii-client/s/pretty/lang-ml.js
iiclient-03/s/pretty/lang-scala.js ./root/usr/share/ii-net/ii-client/s/pretty/lang-scala.js
iiclient-03/s/pretty/lang-llvm.js ./root/usr/share/ii-net/ii-client/s/pretty/lang-llvm.js
iiclient-03/s/pretty/lang-vhdl.js ./root/usr/share/ii-net/ii-client/s/pretty/lang-vhdl.js
iiclient-03/s/pretty/lang-sql.js ./root/usr/share/ii-net/ii-client/s/pretty/lang-sql.js
iiclient-03/s/pretty/lang-proto.js ./root/usr/share/ii-net/ii-client/s/pretty/lang-proto.js
iiclient-03/s/pretty/lang-go.js ./root/usr/share/ii-net/ii-client/s/pretty/lang-go.js
iiclient-03/s/pretty/lang-rd.js ./root/usr/share/ii-net/ii-client/s/pretty/lang-rd.js
iiclient-03/s/pretty/lang-tex.js ./root/usr/share/ii-net/ii-client/s/pretty/lang-tex.js
iiclient-03/s/pretty/lang-matlab.js ./root/usr/share/ii-net/ii-client/s/pretty/lang-matlab.js
iiclient-03/s/pretty/lang-dart.js ./root/usr/share/ii-net/ii-client/s/pretty/lang-dart.js
iiclient-03/s/pretty/prettify.js ./root/usr/share/ii-net/ii-client/s/pretty/prettify.js
iiclient-03/s/pretty/lang-yaml.js ./root/usr/share/ii-net/ii-client/s/pretty/lang-yaml.js
iiclient-03/s/pretty/lang-css.js ./root/usr/share/ii-net/ii-client/s/pretty/lang-css.js
iiclient-03/s/pretty/lang-mumps.js ./root/usr/share/ii-net/ii-client/s/pretty/lang-mumps.js
iiclient-03/s/pretty/lang-lua.js ./root/usr/share/ii-net/ii-client/s/pretty/lang-lua.js
iiclient-03/s/pretty/lang-basic.js ./root/usr/share/ii-net/ii-client/s/pretty/lang-basic.js
iiclient-03/s/pretty/lang-n.js ./root/usr/share/ii-net/ii-client/s/pretty/lang-n.js
iiclient-03/s/pretty/lang-pascal.js ./root/usr/share/ii-net/ii-client/s/pretty/lang-pascal.js
iiclient-03/s/pretty/lang-apollo.js ./root/usr/share/ii-net/ii-client/s/pretty/lang-apollo.js
iiclient-03/s/pretty/lang-wiki.js ./root/usr/share/ii-net/ii-client/s/pretty/lang-wiki.js
iiclient-03/s/pretty/lang-tcl.js ./root/usr/share/ii-net/ii-client/s/pretty/lang-tcl.js
iiclient-03/s/pretty/run_prettify.js ./root/usr/share/ii-net/ii-client/s/pretty/run_prettify.js
iiclient-03/s/pretty/lang-lisp.js ./root/usr/share/ii-net/ii-client/s/pretty/lang-lisp.js
iiclient-03/s/pretty/lang-hs.js ./root/usr/share/ii-net/ii-client/s/pretty/lang-hs.js
iiclient-03/s/pretty/lang-erlang.js ./root/usr/share/ii-net/ii-client/s/pretty/lang-erlang.js
iiclient-03/s/pretty/lang-clj.js ./root/usr/share/ii-net/ii-client/s/pretty/lang-clj.js
iiclient-03/s/pretty/prettify.css ./root/usr/share/ii-net/ii-client/s/pretty/prettify.css
iiclient-03/s/pretty/lang-xq.js ./root/usr/share/ii-net/ii-client/s/pretty/lang-xq.js
iiclient-03/s/pretty/lang-r.js ./root/usr/share/ii-net/ii-client/s/pretty/lang-r.js
iiclient-03/s/fonts ./root/usr/share/ii-net/ii-client/s/fonts
iiclient-03/s/fonts/fontawesome-webfont.svg ./root/usr/share/ii-net/ii-client/s/fonts/fontawesome-webfont.svg
iiclient-03/s/fonts/fontawesome-webfont.eot ./root/usr/share/ii-net/ii-client/s/fonts/fontawesome-webfont.eot
iiclient-03/s/fonts/fontawesome-webfont.woff ./root/usr/share/ii-net/ii-client/s/fonts/fontawesome-webfont.woff
iiclient-03/s/fonts/fontawesome-webfont.ttf ./root/usr/share/ii-net/ii-client/s/fonts/fontawesome-webfont.ttf
iiclient-03/s/fonts/FontAwesome.otf ./root/usr/share/ii-net/ii-client/s/fonts/FontAwesome.otf
iiclient-03/s/css ./root/usr/share/ii-net/ii-client/s/css
iiclient-03/s/css/foundation.min.css ./root/usr/share/ii-net/ii-client/s/css/foundation.min.css
iiclient-03/s/css/font-awesome.min.css ./root/usr/share/ii-net/ii-client/s/css/font-awesome.min.css
iiclient-03/s/css/normalize.css ./root/usr/share/ii-net/ii-client/s/css/normalize.css
iiclient-03/s/js ./root/usr/share/ii-net/ii-client/s/js
iiclient-03/s/js/foundation.min.js ./root/usr/share/ii-net/ii-client/s/js/foundation.min.js
iiclient-03/s/js/vendor ./root/usr/share/ii-net/ii-client/s/js/vendor
iiclient-03/s/js/vendor/jquery.js ./root/usr/share/ii-net/ii-client/s/js/vendor/jquery.js
iiclient-03/s/js/vendor/jquery.cookie.js ./root/usr/share/ii-net/ii-client/s/js/vendor/jquery.cookie.js
iiclient-03/s/js/vendor/fastclick.js ./root/usr/share/ii-net/ii-client/s/js/vendor/fastclick.js
iiclient-03/s/js/vendor/placeholder.js ./root/usr/share/ii-net/ii-client/s/js/vendor/placeholder.js
iiclient-03/s/js/vendor/modernizr.js ./root/usr/share/ii-net/ii-client/s/js/vendor/modernizr.js
iiclient-03/sa-node ./root/usr/share/ii-net/ii-client/sa-node
iiclient-03/sa-node/sa-node.py ./root/usr/share/ii-net/ii-client/sa-node/sa-node.py
iiclient-03/sa-node/readme.utf8 ./root/usr/share/ii-net/ii-client/sa-node/readme.utf8
iiclient-03/tpl ./root/usr/share/ii-net/ii-client/tpl
iiclient-03/tpl/index.html ./root/usr/share/ii-net/ii-client/tpl/index.html
iiclient-03/tpl/01.tpl ./root/usr/share/ii-net/ii-client/tpl/01.tpl
iiclient-03/tpl/01m.tpl ./root/usr/share/ii-net/ii-client/tpl/01m.tpl
iiclient-03/tpl/echoarea.html ./root/usr/share/ii-net/ii-client/tpl/echoarea.html
iiclient-03/tpl/mform.html ./root/usr/share/ii-net/ii-client/tpl/mform.html
iiclient-03/tpl/msg.html ./root/usr/share/ii-net/ii-client/tpl/msg.html
iiclient-03/tpl/outmsgs.html ./root/usr/share/ii-net/ii-client/tpl/outmsgs.html
iitxt-03/config.cfg ./root/usr/share/ii-net/ii-txt/config.cfg
iitxt-03/get.sh ./root/usr/share/ii-net/ii-txt/get.sh
iitxt-03/ii.test.14 ./root/usr/share/ii-net/ii-txt/ii.test.14
iitxt-03/ii.test.14/msg.new ./root/usr/share/ii-net/ii-txt/ii.test.14/msg.new
iitxt-03/README.utf8 ./root/usr/share/ii-net/ii-txt/README.utf8
iitxt-03/send.sh ./root/usr/share/ii-net/ii-txt/send.sh
scripts/ii-client ./root/usr/bin/ii-client
scripts/ii-point ./root/usr/bin/ii-point
scripts/ii-server ./root/usr/bin/ii-server
scripts/ii-txt ./root/usr/bin/ii-txt

[>] install2
debug.14
vit01(lenina,50) — All
2014-04-26 09:25:38


#!/bin/bash
install -d ./root/usr/share/ii-net/ii-server/{api,msg,iitpl,s/{fonts,css,js/vendor}}
install -D -m 755 ii-03/api/{sx.py,bottle.py,__init__.py,splitparser.py,flt.py} ./root/usr/share/ii-net/ii-server/api/
install -D -m 755 ii-03/echo/my.local.14 ./root/usr/share/ii-net/ii-server/echo/
install -D -m 755 ii-03/iitpl/* ./root/usr/share/ii-net/ii-server/iitpl/
install -D -m 755 ii-03/msg/oocYs0PfAD0iC3GmmNIb ./root/usr/share/ii-net/ii-server/msg/
install -D -m 755 ii-03/* ./root/usr/share/ii-net/ii-server/
install -D -m 755 ii-03/s/favicon.png ./root/usr/share/ii-net/ii-server/s/
install -D -m 755 ii-03/s/fonts/* ./root/usr/share/ii-net/ii-server/s/fonts/
install -D -m 755 ii-03/s/css/* ./root/usr/share/ii-net/ii-server/s/css/
install -D -m 755 ii-03/s/js/foundation.min.js ./root/usr/share/ii-net/ii-server/s/js/
install -D -m 755 ii-03/s/js/vendor/* ./root/usr/share/ii-net/ii-server/s/js/vendor/
install -D -m 755 ii-03/tools/gate/* ./root/usr/share/ii-net/ii-server/tools/gate/
install -D -m 755 ii-03/tools/mkhtml/* ./root/usr/share/ii-net/ii-server/tools/mkhtml/
install -D -m 755 ii-03/tools/bundle/* ./root/usr/share/ii-net/ii-server/tools/bundle/
install -D -m 755 ii-03/tools/other/traf.py ./root/usr/share/ii-net/ii-server/tools/other/
install -D -m 755 ii-03/tools/client-toss/* ./root/usr/share/ii-net/ii-server/tools/client-toss/
install -D -m 755 iiclient-03/clapi/* ./root/usr/share/ii-net/ii-client/clapi/
install -D -m 755 iiclient-03/* ./root/usr/share/ii-net/ii-client/
install -D -m 755 iiclient-03/out/1.out ./root/usr/share/ii-net/ii-client/out/
install -D -m 755 iiclient-03/* ./root/usr/share/ii-net/ii-client/
install -D -m 755 iiclient-03/s/favicon.png ./root/usr/share/ii-net/ii-client/s/
install -D -m 755 iiclient-03/s/pretty/* ./root/usr/share/ii-net/ii-client/s/pretty/
install -D -m 755 iiclient-03/s/fonts/* ./root/usr/share/ii-net/ii-client/s/fonts/
install -D -m 755 iiclient-03/s/css/* ./root/usr/share/ii-net/ii-client/s/css/
install -D -m 755 iiclient-03/s/js/foundation.min.js ./root/usr/share/ii-net/ii-client/s/js/
install -D -m 755 iiclient-03/s/js/vendor/* ./root/usr/share/ii-net/ii-client/s/js/vendor/
install -D -m 755 iiclient-03/sa-node/* ./root/usr/share/ii-net/ii-client/sa-node/
install -D -m 755 iiclient-03/tpl/* ./root/usr/share/ii-net/ii-client/tpl/
install -D -m 755 iitxt-03/* ./root/usr/share/ii-net/ii-txt/
install -D -m 755 iitxt-03/ii.test.14/msg.new ./root/usr/share/ii-net/ii-txt/ii.test.14/
install -D -m 755 scripts/* ./root/usr/bin/

[>] PKGBUILD 3
debug.14
vit01(lenina,50) — All
2014-05-03 17:16:54


# Contributor: 51t <me@51t.ru>
# Maintainer: vitirk <vityairk@gmail.com>

pkgname='ii-net'
pkgver='03'
pkgdesc="russian fido-like messaging system with web interface"
pkgrel=3
arch=('any')
depends=('python2')
license=('custom')
url="http://ii.51t.ru"
source=("http://irk38.tk/files/ii-$pkgver.tar.gz"
	"http://irk38.tk/files/iiclient-$pkgver.tar.gz"
	"http://irk38.tk/files/iitxt-$pkgver.tar.gz"
	"http://irk38.tk/files/scripts.tar.gz"
)
md5sums=(
	"4130f8c6b253254a773e02328d723816"
	"1afb0a9ff53866a40a02a2c9e3dd661e"
	"8f420eaa1db795448773e5269d48a154"
	"9cc7615b61c00322f4da7c58ef3e971f"
)

package() {
	cd "${srcdir}"

	install -d $pkgdir/usr/share/ii-net/ii-server/{api,echo,msg,iitpl,s/{fonts,css,js/vendor},tools/{gate,mkhtml,bundle,other,client-toss}}
	install -d $pkgdir/usr/share/ii-net/ii-client/{echo,msg,out,clapi,sa-node,tpl,s/{fonts,css,pretty,js/vendor}}
	install -d $pkgdir/usr/share/ii-net/ii-txt/{ii.test.14,.py/{echo,msg},.out}
	install -d $pkgdir/usr/bin

	install -D -m 755 ii-03/api/{sx.py,bottle.py,__init__.py,splitparser.py,flt.py} $pkgdir/usr/share/ii-net/ii-server/api/
	install -D -m 755 ii-03/echo/my.local.14 $pkgdir/usr/share/ii-net/ii-server/echo/
	install -D -m 755 ii-03/iitpl/* $pkgdir/usr/share/ii-net/ii-server/iitpl/
	install -D -m 755 ii-03/msg/oocYs0PfAD0iC3GmmNIb $pkgdir/usr/share/ii-net/ii-server/msg/
	install -D -m 755 ii-03/{LICENSE*,my.local.14.header,README.utf8,run.sh,server.cfg,*.py} $pkgdir/usr/share/ii-net/ii-server/
	install -D -m 755 ii-03/s/favicon.png $pkgdir/usr/share/ii-net/ii-server/s/
	install -D -m 755 ii-03/s/fonts/* $pkgdir/usr/share/ii-net/ii-server/s/fonts/
	install -D -m 755 ii-03/s/css/* $pkgdir/usr/share/ii-net/ii-server/s/css/
	install -D -m 755 ii-03/s/js/foundation.min.js $pkgdir/usr/share/ii-net/ii-server/s/js/
	install -D -m 755 ii-03/s/js/vendor/* $pkgdir/usr/share/ii-net/ii-server/s/js/vendor/
	install -D -m 755 ii-03/tools/gate/* $pkgdir/usr/share/ii-net/ii-server/tools/gate/
	install -D -m 755 ii-03/tools/mkhtml/* $pkgdir/usr/share/ii-net/ii-server/tools/mkhtml/
	install -D -m 755 ii-03/tools/bundle/* $pkgdir/usr/share/ii-net/ii-server/tools/bundle/
	install -D -m 755 ii-03/tools/other/traf.py $pkgdir/usr/share/ii-net/ii-server/tools/other/
	install -D -m 755 ii-03/tools/client-toss/* $pkgdir/usr/share/ii-net/ii-server/tools/client-toss/
	install -D -m 755 iiclient-03/clapi/* $pkgdir/usr/share/ii-net/ii-client/clapi/
	install -D -m 755 iiclient-03/out/1.out $pkgdir/usr/share/ii-net/ii-client/out/
	install -D -m 755 iiclient-03/{config.cfg,run.py,run.sh} $pkgdir/usr/share/ii-net/ii-client/
	install -D -m 755 iiclient-03/s/favicon.png $pkgdir/usr/share/ii-net/ii-client/s/
	install -D -m 755 iiclient-03/s/pretty/* $pkgdir/usr/share/ii-net/ii-client/s/pretty/
	install -D -m 755 iiclient-03/s/fonts/* $pkgdir/usr/share/ii-net/ii-client/s/fonts/
	install -D -m 755 iiclient-03/s/css/* $pkgdir/usr/share/ii-net/ii-client/s/css/
	install -D -m 755 iiclient-03/s/js/foundation.min.js $pkgdir/usr/share/ii-net/ii-client/s/js/
	install -D -m 755 iiclient-03/s/js/vendor/* $pkgdir/usr/share/ii-net/ii-client/s/js/vendor/
	install -D -m 755 iiclient-03/sa-node/* $pkgdir/usr/share/ii-net/ii-client/sa-node/
	install -D -m 755 iiclient-03/tpl/* $pkgdir/usr/share/ii-net/ii-client/tpl/
	
	install -D -m 755 iitxt-03/{config.cfg,*.sh,README.utf8} $pkgdir/usr/share/ii-net/ii-txt/
	install -D -m 755 iitxt-03/.py/{*.py,bbs.bbs} $pkgdir/usr/share/ii-net/ii-txt/.py/
	install -D -m 755 iitxt-03/.out/{.counter,.readme} $pkgdir/usr/share/ii-net/ii-txt/.out/
	
	install -D -m 755 iitxt-03/ii.test.14/msg.new $pkgdir/usr/share/ii-net/ii-txt/ii.test.14/
	install -D -m 755 scripts/* $pkgdir/usr/bin/
}

[>] new spec
debug.14
vit01(lenina,50) — All
2014-05-03 17:18:36


Summary: the recreation of fido
Name: ii-net
Version: 03
Release: 1
URL: http://ii.51t.ru
Source0: http://irk38.tk/files/ii-%{version}.tar.gz
Source1: http://irk38.tk/files/iiclient-%{version}.tar.gz
Source2: http://irk38.tk/files/iitxt-%{version}.tar.gz
Source3: http://irk38.tk/files/scripts.tar.gz
License: custom
Group: Applications/Networking
Requires: python python-modules-wsgiref
Autoreq: 0

%description
russian fido-like messaging system with web interface, full version

%prep
tar -xzvf %_sourcedir/ii-%{version}.tar.gz
tar -xzvf %_sourcedir/iiclient-%{version}.tar.gz
tar -xzvf %_sourcedir/iitxt-%{version}.tar.gz
tar -xzvf %_sourcedir/scripts.tar.gz

%install
install -d %buildroot/usr/share/ii-net/ii-server/{api,echo,msg,iitpl,s/{fonts,css,js/vendor},tools/{gate,mkhtml,bundle,other,client-toss}}
install -d %buildroot/usr/share/ii-net/ii-client/{echo,msg,out,clapi,sa-node,tpl,s/{fonts,css,pretty,js/vendor}}
install -d %buildroot/usr/share/ii-net/ii-txt/{ii.test.14,.py/{echo,msg},.out}
install -d %buildroot/usr/bin
install -D -m 755 ii-03/api/{sx.py,bottle.py,__init__.py,splitparser.py,flt.py} %buildroot/usr/share/ii-net/ii-server/api/
install -D -m 755 ii-03/echo/my.local.14 %buildroot/usr/share/ii-net/ii-server/echo/
install -D -m 755 ii-03/iitpl/* %buildroot/usr/share/ii-net/ii-server/iitpl/
install -D -m 755 ii-03/msg/oocYs0PfAD0iC3GmmNIb %buildroot/usr/share/ii-net/ii-server/msg/
install -D -m 755 ii-03/{LICENSE*,my.local.14.header,README.utf8,run.sh,server.cfg,*.py} %buildroot/usr/share/ii-net/ii-server/
install -D -m 755 ii-03/s/favicon.png %buildroot/usr/share/ii-net/ii-server/s/
install -D -m 755 ii-03/s/fonts/* %buildroot/usr/share/ii-net/ii-server/s/fonts/
install -D -m 755 ii-03/s/css/* %buildroot/usr/share/ii-net/ii-server/s/css/
install -D -m 755 ii-03/s/js/foundation.min.js %buildroot/usr/share/ii-net/ii-server/s/js/
install -D -m 755 ii-03/s/js/vendor/* %buildroot/usr/share/ii-net/ii-server/s/js/vendor/
install -D -m 755 ii-03/tools/gate/* %buildroot/usr/share/ii-net/ii-server/tools/gate/
install -D -m 755 ii-03/tools/mkhtml/* %buildroot/usr/share/ii-net/ii-server/tools/mkhtml/
install -D -m 755 ii-03/tools/bundle/* %buildroot/usr/share/ii-net/ii-server/tools/bundle/
install -D -m 755 ii-03/tools/other/traf.py %buildroot/usr/share/ii-net/ii-server/tools/other/
install -D -m 755 ii-03/tools/client-toss/* %buildroot/usr/share/ii-net/ii-server/tools/client-toss/
install -D -m 755 iiclient-03/clapi/* %buildroot/usr/share/ii-net/ii-client/clapi/
install -D -m 755 iiclient-03/out/1.out %buildroot/usr/share/ii-net/ii-client/out/
install -D -m 755 iiclient-03/{config.cfg,run.py,run.sh} %buildroot/usr/share/ii-net/ii-client/
install -D -m 755 iiclient-03/s/favicon.png %buildroot/usr/share/ii-net/ii-client/s/
install -D -m 755 iiclient-03/s/pretty/* %buildroot/usr/share/ii-net/ii-client/s/pretty/
install -D -m 755 iiclient-03/s/fonts/* %buildroot/usr/share/ii-net/ii-client/s/fonts/
install -D -m 755 iiclient-03/s/css/* %buildroot/usr/share/ii-net/ii-client/s/css/
install -D -m 755 iiclient-03/s/js/foundation.min.js %buildroot/usr/share/ii-net/ii-client/s/js/
install -D -m 755 iiclient-03/s/js/vendor/* %buildroot/usr/share/ii-net/ii-client/s/js/vendor/
install -D -m 755 iiclient-03/sa-node/* %buildroot/usr/share/ii-net/ii-client/sa-node/
install -D -m 755 iiclient-03/tpl/* %buildroot/usr/share/ii-net/ii-client/tpl/
install -D -m 755 iitxt-03/{config.cfg,*.sh,README.utf8} %buildroot/usr/share/ii-net/ii-txt/
install -D -m 755 iitxt-03/.py/{*.py,bbs.bbs} %buildroot/usr/share/ii-net/ii-txt/.py/
install -D -m 755 iitxt-03/.out/{.counter,.readme} %buildroot/usr/share/ii-net/ii-txt/.out/
install -D -m 755 iitxt-03/ii.test.14/msg.new %buildroot/usr/share/ii-net/ii-txt/ii.test.14/
install -D -m 755 scripts/* %buildroot/usr/bin/
%files
#список файлов пакета

[>] php rss bot
debug.14
vit01(lenina,50) — All
2014-05-25 05:00:41


ii-rss.php
<?php

require("ii-functions.php");

define('CWD', getcwd()."/feeds");
date_default_timezone_set("Asia/Irkutsk");
$limit=63000;

$default_template='<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
<channel>
<item>
<pubDate>'.date("r").'</pubDate>
</item>
</channel>
</rss>';

class RssParser
{
	public $obj;
	public $items;
	
	function __construct($adress)
	{
		$this->obj=simplexml_load_file($adress);
		$obj=$this->obj;

		$this->items=$obj->channel->item;
	}
}

function ii_rss($feedname,$adress,$echo) {
	global $default_template;

	if(!file_exists(CWD."/".$feedname)) {
			file_put_contents(CWD."/".$feedname, $default_template);
			return;
	}

	file_put_contents(CWD."/".$feedname.'-new',file_get_contents($adress,false));

	$news=new RssParser(CWD."/".$feedname);
	$news2=new RssParser(CWD."/".$feedname.'-new');
	$first_date=strtotime($news->items[0]->pubDate);

	$items=$news->items;
	$itemsDates=array();

	foreach($items as $item) {
		$itemsDates[]=strtotime($item->pubDate);
	}

	$todel=array();
	for($j=0;$j<count($news2->items);$j++) {
		$item1=$news2->items[$j];
		$loltime=strtotime($item1->pubDate);
		if($loltime>$first_date) {
			ii_post($item1,$echo);
		}
	}
	
	//del_news($news2,$todel);
	file_put_contents(CWD."/".$feedname, $news2->obj->asXML());
	
	unset($news);
	unset($news2);
}

function ii_post($item,$echo) {
	global $limit;

	$point="Новостной_робот";
	$subject=$item->title;
	$message=$item->description;

	$message=trim(strip_tags($message));
	$message=htmlspecialchars_decode(html_entity_decode($message, ENT_NOQUOTES, 'UTF-8'));
	
	if (count($message)<$limit) {
		
		echo "Сохранение статьи '".$subject."'\n";
		msg_to_ii($echo,$message,$point,"mira, 1",time(),"All",$subject,"");
	} else {
		$message=str_split($message,$limit);
		$lenn=count($message);

		for($i=0;$i<$lenn;$i++) {
			$i1=$i+1;
			echo "Сохранение статьи '".$subject."' [$i1/$lenn]\n";
			msg_to_ii($echo,$message[$i],$point,"mira, 1",time(),"All",$subject." [$i1/$lenn]","");
		}
	}
}

?>


gate1.php & gate2.php
<?php
require("ii-rss.php");

ii_rss("lor", "http://feeds.feedburner.com/org/LOR", "lor-opennet.2014");

?>

<?php
require("ii-rss.php");

ii_rss("opennet", "http://www.opennet.ru/opennews/opennews_all_noadv.rss", "lor-opennet.2014");

?>
Установка: создать рядом с msg и echo каталог feeds. Запустить гейты первый раз, затем кинуть в крон и ждать новостей.

[>] echo/ii.dev.14
debug.14
Romero Yakovlev(lenina,1) — All
2014-05-26 16:15:56


5avXlp8APkDJUK5ub2me
EdmUW3bhrhAAFgkLvasb
Azkk8BFEZ4hbHfKgyymi
ARmh2kig8g7x3zGirAs4
u96IwQJdyvaxplNcM3lh
OEacPAm9oZvgcr4slTeg
0hWmY7gJf98GtIWmTGx1
TG0giCJcwof7xdosTUMY
pL7DzW0FobNcqIv1dGiq
UoCmMqQmSFYE7q2Yvc9u
UB8igwArNDdSaXfDdCyd
u5EicJWc1XsputbR1AUI
abBrQSiApjltfp2pjOL2
XFKdnfaHlhBHDFbQ0siL
Ccb93uagqCcthjWh76O9
1fE7icOs24rR5JbBFsS0
bejMNjXLceS5tykRKs7i
18tWRifpWZD82phlgnK7
zoqSPeI287oDvF5apFg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ctZNlQGwn
w6mkkXAZ967zTi7rRcPG
bGzKBqbApjVfRehDA0Mh
Py9unA3n9MNAGZREF93r
051ABD9AcOjX4lgPjzQ8
HaAT4zGmZqKWcMZRHSQY
MpTCMtXPMcJi4O9KvwUE
CxwqQnkQJsg0ttzod5Ir

TFIDlsYRRusnROqZgwny
14xCUm8CkxzAD1kdyf03
9iTmC4W2zhocwUp2ndME
cB8oz09Xm15d4jeCeYAc
j0CczDi0LPNETmjLUZSn
VL5GxUGi3vZdS2xEC7Ec
67bNRSArZzz2OQfUDkzV
5v1rKSwoGbqb2IP94z7d
TcqaNbfwzHDIESz5VdaA
2T3V7Ua9n971j2VKQ3ei
bfXB7UyMayAHuw6mBg6I
87tzGeaanH7ZWqA0liLr
pvVJGtxqk4XDGnvJMfuX
44EKHzZjFAVkHAZSr1eQ
edWUrN9lDv0ctZNlQGwn
w6mkkXAZ967zTi7rRcPG
bGzKBqbApjVfRehDA0Mh
Py9unA3n9MNAGZREF93r
051ABD9AcOjX4lgPjzQ8
HaAT4zGmZqKWcMZRHSQY
MpTCMtXPMcJi4O9KvwUE
CxwqQnkQJsg0ttzod5Ir


[>] лог spline
debug.14
Romero Yakovlev(lenina,1) — All
2014-06-04 18:02:12


fetch http://spline.rooker.ru/ii/ii-point.php?q=/u/e/ii.dev.14
fetch http://spline.rooker.ru/ii/ii-point.php?q=/u/m/5avXlp8APkDJUK5ub2me/EdmUW3bhrhAAFgkLvasb/Azkk8BFEZ4hbHfKgyymi/ARmh2kig8g7x3zGirAs4/u96IwQJdyvaxplNcM3lh/OEacPAm9oZvgcr4slTeg/0hWmY7gJf98GtIWmTGx1/TG0giCJcwof7xdosTUMY/pL7DzW0FobNcqIv1dGiq/UoCmMqQmSFYE7q2Yvc9u/UB8igwArNDdSaXfDdCyd/u5EicJWc1XsputbR1AUI/abBrQSiApjltfp2pjOL2/XFKdnfaHlhBHDFbQ0siL/Ccb93uagqCcthjWh76O9/1fE7icOs24rR5JbBFsS0/bejMNjXLce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

[>] script1
debug.14
vit01(lenina, 50) — All
2014-06-14 12:59:14


#!/bin/bash

# echo -n 'Выберите устройство для установки (к примеру, /dev/sdb): '
# read device

device="/dev/sdb"
razdel="/dev/sdb1"

parted $device mktable msdos y
cfdisk $device

mkfs.ext2 $razdel

mount -t ext2 $razdel /mnt

debootstrap wheezy /mnt http://mirror.yandex.ru/debian

cp /etc/resolv.conf /mnt/etc/resolv.conf

echo "Назначьте пароль рута:"
arch-chroot /mnt /sbin/passwd
arch-chroot /mnt /usr/bin/apt-get install linux-image-i486 grub2

grub-install --root-directory=/mnt $device

arch-chroot /mnt /usr/sbin/grub-mkconfig -o /boot/grub/grub.cfg
genfstab -U -p /mnt >> /mnt/etc/fstab

umount /mnt

echo "Дебиан установлен"