Search
j0ke.net Open Build Service
>
Projects
>
internetx
:
projects
:
http
>
stud
> stud.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File stud.spec of Package stud
%global stud_githash 0b88039 %global stud_user stud %global stud_group stud %global stud_homedir %{_localstatedir}/lib/stud %global stud_confdir %{_sysconfdir}/stud %global stud_datadir %{_datadir}/stud Name: stud Version: 0.3 Release: 4.20120814git%{?dist} Summary: The Scalable TLS Unwrapping Daemon License: BSD URL: https://github.com/bumptech/stud Source0: bumptech-%{name}-%{version}-51-g%{stud_githash}.tar.gz Source1: init.%{name} Source2: %{name}.cfg Patch0: stud-0.3-fix-libev-include-path.patch BuildRequires: libev-devel BuildRequires: openssl-devel %description stud is a network proxy that terminates TLS/SSL connections and forwards the unencrypted traffic to some backend. It is designed to handle tens of thousands of connections efficiently on multicore machines. stud has very few features -- it is designed to be paired with an intelligent backend like haproxy or nginx. %prep %setup -q -n bumptech-%{name}-%{stud_githash} %patch0 -p1 %build make %{?_smp_mflags} %install rm -rf %{buildroot} make install DESTDIR=%{buildroot} PREFIX=%{_prefix} BINDIR=%{_sbindir} %{__install} -p -D -m 0644 %{SOURCE1} %{buildroot}%{_unitdir}/stud.service %{__install} -p -D -m 0644 %{SOURCE2} %{buildroot}%{stud_confdir}/stud.cfg %{__install} -d -m 0755 %{buildroot}%{stud_homedir} %{__install} -d -m 0755 %{buildroot}%{stud_datadir} %clean rm -rf %{buildroot} %pre groupadd -r %{stud_group} &>/dev/null ||: useradd -r -g %{stud_group} -s /sbin/nologin -d %{stud_homedir} %{stud_user} &>/dev/null ||: %post chkconfig stud off %preun %postun service stud restart %files %defattr(-,root,root,-) %doc LICENSE README.md %dir %{stud_confdir} %dir %{stud_datadir} %config(noreplace) %{stud_confdir}/stud.cfg %{_unitdir}/stud.service %{_sbindir}/stud %{_mandir}/man8/stud.8* %attr(-,%{stud_user},%{stud_group}) %dir %{stud_homedir} %changelog * Sun Apr 27 2014 Juergen Gotteswinter <jg@internetx.de> - 0.3-4.20120814git - rebuild * Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3-4.20120814git - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Wed Mar 20 2013 Ryan O'Hara <rohara@redhat.com> - 0.3-3.20120814git - Use new systemd-rpm macros in stud spec file (#857398). * Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3-2.20120814git - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Tue Aug 14 2012 Ryan O'Hara <rohara@redhat.com> - 0.3-1.20120814git - Initial build.