mirror of
https://abf.rosa.ru/djam/zeronet.git
synced 2025-02-23 14:42:55 +00:00
Imported from SRPM
This commit is contained in:
commit
17de76bb1e
5 changed files with 104 additions and 0 deletions
2
.abf.yml
Normal file
2
.abf.yml
Normal file
|
@ -0,0 +1,2 @@
|
|||
sources:
|
||||
ZeroNet-c1fd2be8cfadf3e93ae70e3d9763875460bb81a3.zip: 55a811829403086a3d6d24513615758eefa982be
|
75
zeronet.spec
Normal file
75
zeronet.spec
Normal file
|
@ -0,0 +1,75 @@
|
|||
%define oname ZeroNet
|
||||
%define gitrev c1fd2be8cfadf3e93ae70e3d9763875460bb81a3
|
||||
%define gitdate 20161201
|
||||
%define debug %nil
|
||||
%define debug_package %nil
|
||||
|
||||
Name: zeronet
|
||||
Version: 0.5.1
|
||||
Release: r1758.2
|
||||
Summary: ZeroNet
|
||||
URL: https://zeronet.io
|
||||
#Source: %{oname}-%{version}.tar.gz
|
||||
Source: %{oname}-%{gitrev}.zip
|
||||
Source10: %{name}_starttor
|
||||
Source11: %{name}_torrc
|
||||
Source12: %{name}_start
|
||||
Group: Development/Other
|
||||
License: GPLv2
|
||||
BuildArch: noarch
|
||||
BuildRequires: python >= 2.7
|
||||
BuildRequires: python-setuptools
|
||||
Requires: python-gevent
|
||||
Requires: python-msgpack
|
||||
Requires: tor
|
||||
|
||||
%description
|
||||
Decentralized websites using Bitcoin crypto and
|
||||
the BitTorrent network
|
||||
|
||||
%prep
|
||||
%setup -qn %{oname}-%{gitrev}
|
||||
|
||||
%build
|
||||
#non build
|
||||
|
||||
%install
|
||||
install -d %{buildroot}/{%{_bindir},%{_datadir}/{%{name},applications,pixmaps},%{_iconsdir}/hicolor/{16x16,32x32,48x48}/apps/%{name}}
|
||||
install -d %{buildroot}/%{python_sitelib}/%{name}/tools
|
||||
install -Dm0755 start.py zeronet.py %{buildroot}/%{python_sitelib}/%{name}
|
||||
install -Dm0755 %{SOURCE10} %{buildroot}/%{python_sitelib}/%{name}/tools/start.cmd
|
||||
install -Dm0644 %{SOURCE11} %{buildroot}/%{python_sitelib}/%{name}/tools/torrc
|
||||
install -Dm0755 %{SOURCE12} %{buildroot}/%{_bindir}/%{name}
|
||||
cp -r plugins src %{buildroot}%{python_sitelib}/%{name}
|
||||
|
||||
# menu-entry
|
||||
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop <<EOF
|
||||
[Desktop Entry]
|
||||
Name=ZeroNet
|
||||
Name[ru]=Анонимная сеть ZeroNet
|
||||
GenericName=ZeroNet
|
||||
GenericName[ru]=ZeroNet
|
||||
Comment=Decentralisations Internet
|
||||
Comment[ru]=Децентрализованный Интернет
|
||||
Exec=%{name}
|
||||
Icon=%{name}
|
||||
Terminal=false
|
||||
Type=Application
|
||||
StartupNotify=true
|
||||
Categories=Application;
|
||||
EOF
|
||||
|
||||
#convert src/Ui/media/img/logo.psd
|
||||
%define icon src/Ui/media/img/logo.psd
|
||||
%{_bindir}/convert -scale 32 %{icon} %{buildroot}%{_datadir}/pixmaps/%{name}.png
|
||||
%{_bindir}/convert -scale 16 %{icon} %{buildroot}%{_iconsdir}/hicolor/16x16/apps/%{name}.png
|
||||
%{_bindir}/convert -scale 32 %{icon} %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{name}.png
|
||||
%{_bindir}/convert %{icon} %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{name}.png
|
||||
|
||||
%files
|
||||
%doc LICENSE
|
||||
%{_bindir}/%{name}
|
||||
%{python_sitelib}
|
||||
%{_iconsdir}/hicolor
|
||||
%{_datadir}/pixmaps
|
||||
%{_datadir}/applications/%{name}.desktop
|
11
zeronet_start
Normal file
11
zeronet_start
Normal file
|
@ -0,0 +1,11 @@
|
|||
#!/bin/bash
|
||||
|
||||
DIR="$HOME/.zeronet"
|
||||
ZNETPATH="/usr/lib/python2.7/site-packages/zeronet"
|
||||
|
||||
if [ ! -d $DIR ]; then
|
||||
mkdir -p $DIR/data $DIR/logs $DIR/tor
|
||||
fi
|
||||
|
||||
#tor -f $ZNETPATH/tools/torrc RunAsDaemon 1 && \
|
||||
python2 $ZNETPATH/start.py --data_dir $DIR/data --log_dir $DIR/logs --tor disable --proxy 127.0.0.1:9050 --disable_udp &
|
3
zeronet_starttor
Normal file
3
zeronet_starttor
Normal file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
|
||||
tor -f torrc
|
13
zeronet_torrc
Normal file
13
zeronet_torrc
Normal file
|
@ -0,0 +1,13 @@
|
|||
# Tor config for ZeroNet
|
||||
|
||||
DataDirectory ~/.zeronet/tor/data
|
||||
DirReqStatistics 0
|
||||
GeoIPFile ~/.zeronet/tor/geoip
|
||||
GeoIPv6File ~/.zeronet/tor/geoip6
|
||||
|
||||
# Log notice file data/notice.log
|
||||
|
||||
ControlPort 49051
|
||||
SOCKSPort 49050
|
||||
|
||||
CookieAuthentication 1
|
Loading…
Add table
Reference in a new issue