rambler-oss/keyreader

View on GitHub
keyreader.spec

Summary

Maintainability
Test Coverage
Name:        keyreader
Version:    0.3.9
Release:    1%{?dist}
Summary:    Rambler keyreader
License:    LGPL3+
URL:        https://github.com/rambler-oss/keyreader
# Source0:    https://github.com/rambler-oss/%{name}/archive/v%{version}.tar.gz
Source0:    %{name}-%{version}.tar.gz

BuildRequires:    golang >= 1.5
BuildRequires:    git

%description

%prep
%setup -q -n %{name}-%{version}

%build
mkdir -p ./_build/src/github.com/rambler-oss/keyreader
ln -s $(pwd) ./_build/src/github.com/rambler-oss/keyreader
%if 0%{?redhat} == 6 || 0%{?centos} == 6
git clone -b v2 https://github.com/go-yaml/yaml ./_build/src/gopkg.in/yaml.v2
git clone -b v2 https://github.com/go-ldap/ldap ./_build/src/gopkg.in/ldap.v2
git clone -b v1 https://github.com/go-asn1-ber/asn1-ber ./_build/src/gopkg.in/asn1-ber.v1
%endif

export GOPATH=$(pwd)/_build:%{gopath}
export CGO_ENABLED=1
%if 0%{?redhat} || 0%{?centos}
go get -d .
go build -compiler gc -ldflags "${LDFLAGS:-} -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \n')" -a -v -x
%else
%gobuild
%endif

%check
%gotest

%install
install -d %{buildroot}%{_datadir}/keyreader
install -p -m 0755 contrib/keyreader.conf.example %{buildroot}%{_datadir}/keyreader/keyreader.conf.example
install -d %{buildroot}%{_libexecdir}
install -p -m 0755 %{name}-%{version} %{buildroot}%{_libexecdir}/keyreader
install -d %{buildroot}%{_sysconfdir}/rambler

%files
%doc COPYING
%{_libexecdir}/keyreader
%{_datadir}/keyreader/keyreader.conf.example

%changelog
* Wed Aug 12 2020 Unknown name 0.3.9-1
- add hostlist debug in access_libc (mariya.bondarenko@rambler-co.ru)

* Wed Aug 12 2020 Unknown name
- add hostlist debug in access_libc (mariya.bondarenko@rambler-co.ru)

* Sat Aug 08 2020 Mariya Bondarenko
- ref (mariya.bondarenko@rambler-co.ru)
- fix build (mariya.bondarenko@rambler-co.ru)
- Дебаговый логгер (mariya.bondarenko@rambler-co.ru)
- Migrate to vgo (iavael@rambler-co.ru)
- Fix string dereference (iavael@rambler-co.ru)
- Update travis config (iavael@rambler-co.ru)
- Change IDEA settings (iavael@rambler-co.ru)
- Bump golang.org/x/crypto from `b47b158` to `ff983b9` (support@dependabot.com)
- Bump github.com/stretchr/testify from 1.2.1 to 1.3.0 (support@dependabot.com)
- Improve logging a bit more (iavael@rambler-co.ru)
- Reword log message (iavael@rambler-co.ru)
- Fix README (iavael@rambler-co.ru)
- Fix README.md (iavael@rambler-co.ru)
- Fix README.md (iavael@rambler-co.ru)
- More fixes (iavael@rambler-co.ru)
- Fix README.md (iavael@rambler-co.ru)
- Split netgroup check function (iavael@rambler-co.ru)
- A bit more of refactoring (iavael@rambler-co.ru)
- Refactoring (iavael@rambler-co.ru)
- Support only golang 1.10 (iavael@rambler-co.ru)
- Test both libc and ldap netgroups access (iavael@rambler-co.ru)
- Split ldap netgroups matching function (iavael@rambler-co.ru)
- Remove tests for deprecated config versions (iavael@rambler-co.ru)
- Migrate to strings.Builder (iavael@rambler-co.ru)
- Remove support of old config versions (iavael@rambler-co.ru)
- Update deps (iavael@rambler-co.ru)
- Fix test coverage (iavael@users.noreply.github.com)
- Use codeclimate for coverage reporting (iavael@users.noreply.github.com)
- Update .codeclimate.yml (iavael@users.noreply.github.com)
- Migrate vendoring to dep (iavael@rambler-co.ru)

* Mon Dec 11 2017 Iavael <iavael@rambler-co.ru> 0.3.7-1
- Use tito
* Tue Feb 28 2017 Iavael <iavael@rambler-co.ru> - 0.3.6-1
- Handle SIGPIPE properly

* Fri Feb 17 2017 Iavael <iavael@rambler-co.ru> - 0.3.5-1
- Handle error on writing to stdout

* Fri Feb 17 2017 Iavael <iavael@rambler-co.ru> - 0.3.4-1
- Fix bug in group permissions check

* Tue Feb 7 2017 Iavael <iavael@rambler-co.ru> - 0.3.3-1
- Don't fail if syslog is unafailable
- Update deps

* Thu Jan 26 2017 Iavael <iavael@rambler-co.ru> - 0.3.2-1
- Refactor NSS-related code
- Ignore sigpipe if sshd closes pipe too early

* Tue Jan 17 2017 Iavael <iavael@rambler-co.ru> - 0.3.1-1
- Add support for previous config formats
- Update deps

* Wed Jan 11 2017 Iavael <iavael@rambler-co.ru> - 0.3-1
- Fix bug and add ServerName to tls configuration
- Update deps
- Reduce fmt usage
- Add option to pass only keys with 'from' restriction
- Add support for multiple hostnames on config

* Tue Nov 8 2016 Iavael <iavael@rambler-co.ru> - 0.2.1-1
- Use stdlib.h instead of malloc.h

* Tue Nov 01 2016 Iavael <iavael@rambler-co.ru> - 0.2-1
- Add config file and netgroups support