Hello community,

here is the log from the commit of package v2ray-core for openSUSE:Factory 
checked in at 2020-08-03 14:18:48
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/v2ray-core (Old)
 and      /work/SRC/openSUSE:Factory/.v2ray-core.new.3592 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "v2ray-core"

Mon Aug  3 14:18:48 2020 rev:5 rq:824026 version:4.26.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/v2ray-core/v2ray-core.changes    2020-07-14 
07:59:22.109804962 +0200
+++ /work/SRC/openSUSE:Factory/.v2ray-core.new.3592/v2ray-core.changes  
2020-08-03 14:19:34.208750839 +0200
@@ -1,0 +2,5 @@
+Sun Aug  2 09:20:46 UTC 2020 - Sam Yu <[email protected]>
+
+- Fix out-of-box usability
+
+-------------------------------------------------------------------

Old:
----
  config.json
  vpoint_socks_vmess.json
  vpoint_vmess_freedom.json

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ v2ray-core.spec ++++++
--- /var/tmp/diff_new_pack.l0mNv7/_old  2020-08-03 14:19:36.328752965 +0200
+++ /var/tmp/diff_new_pack.l0mNv7/_new  2020-08-03 14:19:36.332752969 +0200
@@ -34,9 +34,6 @@
 Source0:        
https://github.com/v2ray/v2ray-core/archive/v%{version}/%{name}-%{version}.tar.gz
 Source1:        vendor.tar.gz
 Source2:        v2ray.service
-Source3:        config.json
-Source4:        vpoint_socks_vmess.json
-Source5:        vpoint_vmess_freedom.json
 Source99:       %{name}-rpmlintrc
 BuildRequires:  fdupes
 BuildRequires:  golang-packaging
@@ -83,13 +80,15 @@
 %gosrc
 %gofilelist
 
-install -d %{buildroot}%{_unitdir}/v2ray
-install -m0644 %{SOURCE2} %{buildroot}%{_unitdir}/v2ray/
+install -d %{buildroot}%{_datadir}/%{name}
+install -m0644 release/config/geoip.dat %{buildroot}%{_datadir}/%{name}/
+install -m0644 release/config/geosite.dat %{buildroot}%{_datadir}/%{name}/
 
-install -d %{buildroot}%{_sysconfdir}/v2ray
-install -m0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/v2ray/
-install -m0644 %{SOURCE4} %{buildroot}%{_sysconfdir}/v2ray/
-install -m0644 %{SOURCE5} %{buildroot}%{_sysconfdir}/v2ray/
+install -d %{buildroot}%{_unitdir}
+install -m0644 %{SOURCE2} %{buildroot}%{_unitdir}/
+
+install -d %{buildroot}%{_sysconfdir}/%{project}
+install -m0644 release/config/*.json %{buildroot}%{_sysconfdir}/%{project}/
 
 install -d %{buildroot}%{_sbindir}/
 ln -sf %{_sbindir}/service %{buildroot}%{_sbindir}/rcv2ray
@@ -113,9 +112,11 @@
 %license LICENSE
 %{_bindir}/v2ray
 %{_bindir}/v2ctl
-%{_unitdir}/v2ray
-%dir %{_sysconfdir}/v2ray
-%config(noreplace) %{_sysconfdir}/v2ray/*.json
+%{_unitdir}/%{project}.service
+%dir %{_sysconfdir}/%{project}
+%dir %{_datadir}/%{name}
+%{_datadir}/%{name}/*
+%config(noreplace) %{_sysconfdir}/%{project}/*.json
 %{_sbindir}/rcv2ray
 
 %files -n golang-%{provider}-%{project}-%{repo} -f file.lst

++++++ v2ray.service ++++++
--- /var/tmp/diff_new_pack.l0mNv7/_old  2020-08-03 14:19:36.380753017 +0200
+++ /var/tmp/diff_new_pack.l0mNv7/_new  2020-08-03 14:19:36.384753022 +0200
@@ -15,7 +15,8 @@
 CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
 AmbientCapabilities=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
 NoNewPrivileges=true
-ExecStart=/usr/bin/v2ray -config /etc/v2ray/config.json -f /var/run/v2ray.pid
+Environment=V2RAY_LOCATION_ASSET=/usr/share/v2ray-core/ 
+ExecStart=/usr/bin/v2ray -config /etc/v2ray/config.json
 Restart=on-failure
 
 [Install]


Reply via email to