File chrootuid.spec of Package chrootuid
#
# spec file for package chrootuid
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: chrootuid
Version: 1.3
Release: 0
Summary: Runs Daemons with restricted File System Access
Source: ftp://ftp.porcupine.org/pub/security/chrootuid%{version}.tar.gz
# Patch collection from Debian Sid: http://packages.debian.org/sid/chrootuid
Patch1: chrootuid_1.3-5.diff
URL: ftp://ftp.porcupine.org/pub/security/index.html
Group: Productivity/Security
License: BSD-2-Clause
BuildRoot: %{_tmppath}/build-%{name}-%{version}
BuildRequires: gcc make glibc-devel
%description
Chrootuid makes it easy to run a network service at low privilege level and
with restricted file system access. At Eindhoven University we use this program
to run the gopher and www (world-wide web) network daemons in a minimal
environment: the daemons have access only to their own directory tree, and run
under a low-privileged userid. The arrangement greatly reduces the impact of
possible loopholes in daemon software.
%prep
%setup -q -n "chrootuid%{version}"
%patch1 -p1
%build
%__make %{?jobs:-j%{jobs}} \
CFLAGS="%{optflags}" \
all
%install
%__install -D -m0755 chrootuid "%{buildroot}%{_bindir}/chrootuid"
%__install -D -m0644 chrootuid.1 "%{buildroot}%{_mandir}/man1/chrootuid.1"
%files
%defattr(-,root,root)
%doc README chrootuid_license
%{_bindir}/chrootuid
%doc %{_mandir}/man1/chrootuid.1%{ext_man}
%changelog