2006-12-19 00:17:28 +01:00
|
|
|
|
#
|
2009-08-08 00:04:36 +02:00
|
|
|
|
# spec file for package permissions (Version 2009.8.7)
|
2006-12-19 00:17:28 +01:00
|
|
|
|
#
|
2009-03-02 15:55:26 +01:00
|
|
|
|
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2006-12-19 00:17:28 +01:00
|
|
|
|
#
|
2008-09-13 06:56:01 +02:00
|
|
|
|
# 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.
|
|
|
|
|
|
2006-12-19 00:17:28 +01:00
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
|
2008-03-12 15:23:31 +01:00
|
|
|
|
|
2006-12-19 00:17:28 +01:00
|
|
|
|
Name: permissions
|
2007-08-09 20:53:14 +02:00
|
|
|
|
License: GPL v2 or later
|
2006-12-19 00:17:28 +01:00
|
|
|
|
Group: Productivity/Security
|
2007-10-13 00:12:30 +02:00
|
|
|
|
AutoReqProv: on
|
2009-08-08 00:04:36 +02:00
|
|
|
|
Version: 2009.8.7
|
2008-05-07 23:57:09 +02:00
|
|
|
|
Release: 1
|
2006-12-19 00:17:28 +01:00
|
|
|
|
Provides: aaa_base:/etc/permissions
|
|
|
|
|
Requires: /sbin/SuSEconfig
|
|
|
|
|
PreReq: %fillup_prereq
|
|
|
|
|
Summary: SUSE Linux Default Permissions
|
|
|
|
|
#Source: permissions.tar.bz2
|
|
|
|
|
Source1: SuSEconfig.permissions
|
|
|
|
|
Source2: chkstat.c
|
|
|
|
|
Source3: chkstat.8
|
|
|
|
|
Source4: sysconfig.security
|
|
|
|
|
Source5: permissions
|
|
|
|
|
Source6: permissions.easy
|
|
|
|
|
Source7: permissions.paranoid
|
|
|
|
|
Source8: permissions.secure
|
2007-06-03 22:01:01 +02:00
|
|
|
|
Source9: permissions.local
|
|
|
|
|
Source99: checkpermissionfiles.pl
|
2006-12-19 00:17:28 +01:00
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
This package contains specifications for permissions of specific files,
|
|
|
|
|
directories, and devices depending on the local security settings. The
|
|
|
|
|
local security setting (easy, secure, or paranoid) can be configured in
|
|
|
|
|
/etc/sysconfig/security.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
|
--------
|
|
|
|
|
Werner Fink <werner@suse.de>
|
|
|
|
|
Roman Drahtm<EFBFBD>ller <draht@suse.de>
|
|
|
|
|
|
2007-04-18 18:37:08 +02:00
|
|
|
|
%prep
|
2006-12-19 00:17:28 +01:00
|
|
|
|
|
|
|
|
|
%build
|
2007-06-03 22:01:01 +02:00
|
|
|
|
gcc -Wall $RPM_OPT_FLAGS %{SOURCE2} -o chkstat
|
2006-12-19 00:17:28 +01:00
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/etc
|
2007-06-03 22:01:01 +02:00
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_bindir}
|
2006-12-19 00:17:28 +01:00
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man8
|
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/sbin/conf.d
|
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/var/adm/fillup-templates
|
2007-06-03 22:01:01 +02:00
|
|
|
|
install -m 755 chkstat $RPM_BUILD_ROOT%{_bindir}
|
2006-12-19 00:17:28 +01:00
|
|
|
|
install -m 755 %{SOURCE1} $RPM_BUILD_ROOT/sbin/conf.d
|
|
|
|
|
install -m 644 %{SOURCE3} $RPM_BUILD_ROOT/%{_mandir}/man8
|
|
|
|
|
install -m 644 %{SOURCE4} $RPM_BUILD_ROOT/var/adm/fillup-templates
|
|
|
|
|
install -m 644 %{SOURCE5} $RPM_BUILD_ROOT/etc
|
|
|
|
|
install -m 644 %{SOURCE6} $RPM_BUILD_ROOT/etc
|
|
|
|
|
install -m 644 %{SOURCE7} $RPM_BUILD_ROOT/etc
|
|
|
|
|
install -m 644 %{SOURCE8} $RPM_BUILD_ROOT/etc
|
2007-06-03 22:01:01 +02:00
|
|
|
|
install -m 644 %{SOURCE9} $RPM_BUILD_ROOT/etc
|
2006-12-19 00:17:28 +01:00
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
|
%{fillup_only -n security}
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%defattr(-,root,root,-)
|
2007-06-03 22:01:01 +02:00
|
|
|
|
/etc/permissions
|
|
|
|
|
/etc/permissions.easy
|
|
|
|
|
/etc/permissions.secure
|
|
|
|
|
/etc/permissions.paranoid
|
|
|
|
|
%config(noreplace) /etc/permissions.local
|
|
|
|
|
%{_bindir}/chkstat
|
2006-12-19 00:17:28 +01:00
|
|
|
|
%{_mandir}/man8/chkstat.8*
|
|
|
|
|
/sbin/conf.d/SuSEconfig.permissions
|
|
|
|
|
/var/adm/fillup-templates/sysconfig.security
|
2007-12-03 23:29:54 +01:00
|
|
|
|
|
2007-02-25 23:35:05 +01:00
|
|
|
|
%changelog
|