Open alphastar868 opened 7 years ago
Where is the pastebin.d directory in CentOS?
Doesn't exist.
Fedora makes pastebinit 1.3.1 available, but there are no packages for EPEL (RedHat/CentOS).
I've tested the rebuilt Fedora SRPM on EPEL, but the path to pastebin.d is set to /usr/share/pastebinit
Using the following as a workaround, with the rebuilt Fedora pastebinit .src.rpm installed, it works on Fedora/RedHat/CentOS after the command:
sudo ln -s /usr/share/pastebinit /usr/share/pastebin.d
If needed I can create a custom SPEC file for pastebinit 1.5 in dists/redhat defaulting to /usr/share/pastebin.d
I'll add later an exception to the code I-Nex for pastebinit
Thanks for looking into this.
Even though bug was reported fixed in 1.2.2, there are several lines (in the Fedora pastebinit.spec file in the 1.3.1 .src.rpm) that relocate files from /usr/share/pastebin.d to /usr/share/pastebinit/, citing this bug report.
In the meantime, there is also a Fedora COPR repository for pastebinit 1.5 that uses essentially the same SPEC file (and therefore has the same issue), but can be enabled/installed (Fedora only) with:
dnf copr enable leamas/pastebiniit
and then
yum install pastebinit
Finally, to fix the issue with Generate report not working, also run:
sudo ln -s /usr/share/pastebinit /usr/share/pastebin.d
For RedHat/CentOS (and even Fedora), it is probably best to compile pastebinit from sources using the SPEC file in dists/redhat:
Note: This requires RPM build environment
wget -O ~/rpmbuild/SOURCES/pastebinit-1.5.tar.gz https://launchpad.net/pastebinit/trunk/1.5/+download/pastebinit-1.5.tar.gz
wget -O ~/rpmbuild/SPECS/pastebinit.spec https://github.com/i-nex/I-Nex/raw/master/dists/redhat/pastebinit.spec
rpmbuild -ba ~/rpmbuild/SPECS/pastebinit.spec
yum localinstall ~/rpmbuild/RPMS/noarch/pastebinit-1.5*.rpm
This is broken again on CentOS (same error as #15 ) in commit 5b74494, as there is no pastebin (specifically, no /usr/share/pastebin.d/ to build the array in FReport_Gen.class line 19).
We should test for /usr/share/pastebin.d/ to avoid this application error and crash (all windows close) when Generate report button is selected. Also a consideration for #57