forked from pool/aaa_base
- Update to version 84.87+git20240801.75f05dd:
* sysctl: Don't set kernel.pid_max on 32b archs (bsc#1227117) OBS-URL: https://build.opensuse.org/package/show/Base:System/aaa_base?expand=0&rev=786
This commit is contained in:
commit
405f46daed
26
.gitattributes
vendored
Normal file
26
.gitattributes
vendored
Normal file
@ -0,0 +1,26 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
||||
## Specific LFS patterns
|
||||
aaa_base-84.87+git20240620.57ee9e1.tar filter=lfs diff=lfs merge=lfs -text
|
||||
aaa_base-84.87+git20240801.75f05dd.tar filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
10
README.packaging.txt
Normal file
10
README.packaging.txt
Normal file
@ -0,0 +1,10 @@
|
||||
This package is maintained in git at
|
||||
http://github.com/openSUSE/aaa_base
|
||||
|
||||
Please file a pull request for any changes. The spec file is also in
|
||||
git.
|
||||
|
||||
For building the package from git you have to adjust the _service
|
||||
file to point at the right branch, then call
|
||||
|
||||
osc service manualrun
|
13
_service
Normal file
13
_service
Normal file
@ -0,0 +1,13 @@
|
||||
<services>
|
||||
<service name="tar_scm" mode="manual">
|
||||
<param name="version">84.87</param>
|
||||
<param name="versionformat">84.87+git%cd.%h</param>
|
||||
<param name="url">https://github.com/openSUSE/aaa_base.git</param>
|
||||
<param name="scm">git</param>
|
||||
<param name="changesgenerate">enable</param>
|
||||
<param name="extract">aaa_base.spec</param>
|
||||
<param name="extract">aaa_base-rpmlintrc</param>
|
||||
<param name="extract">README.packaging.txt</param>
|
||||
</service>
|
||||
<service name="set_version" mode="manual"/>
|
||||
</services>
|
5
_servicedata
Normal file
5
_servicedata
Normal file
@ -0,0 +1,5 @@
|
||||
<servicedata>
|
||||
<service name="tar_scm">
|
||||
<param name="url">https://github.com/openSUSE/aaa_base.git</param>
|
||||
<param name="changesrevision">75f05dd8e77e813294cd8096ba50ace9164db259</param></service>
|
||||
</servicedata>
|
3
aaa_base-84.87+git20240620.57ee9e1.tar
Normal file
3
aaa_base-84.87+git20240620.57ee9e1.tar
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:156b84296bf73fa1f9dc8cb27c19794af40d2e94a7c0a96aff4cdf8c21be3fb8
|
||||
size 358400
|
3
aaa_base-84.87+git20240801.75f05dd.tar
Normal file
3
aaa_base-84.87+git20240801.75f05dd.tar
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:e572625bd73c9b4c01f1c4effd4811ae9d447732ac225a018f83a6d67bf272bc
|
||||
size 358400
|
9
aaa_base-rpmlintrc
Normal file
9
aaa_base-rpmlintrc
Normal file
@ -0,0 +1,9 @@
|
||||
# confirmed - but standard
|
||||
addFilter("non-root-group-log-file /var/log/wtmp utmp")
|
||||
|
||||
# aaa_base requires net-tools
|
||||
addFilter("dangling-symlink.*/usr/lib/restricted/bin/hostname.*/bin/hostname")
|
||||
|
||||
# for /etc/init.d/*.local. To be removed at some point
|
||||
addFilter(".*suse-deprecated-init-script.*")
|
||||
addFilter(".*suse-deprecated-boot-script.*")
|
13416
aaa_base.changes
Normal file
13416
aaa_base.changes
Normal file
File diff suppressed because it is too large
Load Diff
256
aaa_base.spec
Normal file
256
aaa_base.spec
Normal file
@ -0,0 +1,256 @@
|
||||
#
|
||||
# spec file for package aaa_base
|
||||
#
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
#
|
||||
# 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 https://bugs.opensuse.org/
|
||||
#
|
||||
# icecream 0
|
||||
|
||||
|
||||
#Compat macro for new _fillupdir macro introduced in Nov 2017
|
||||
%if ! %{defined _fillupdir}
|
||||
%define _fillupdir /var/adm/fillup-templates
|
||||
%endif
|
||||
|
||||
%if 0%{?_build_in_place}
|
||||
%define git_version %(git log '-n1' '--date=format:%Y%m%d' '--no-show-signature' "--pretty=format:+git%cd.%h")
|
||||
BuildRequires: git-core
|
||||
%else
|
||||
# this is required for obs' source validator. It's
|
||||
# 20-files-present-and-referenced ignores all conditionals. So the
|
||||
# definition of git_version actually happens always.
|
||||
%define git_version %{nil}
|
||||
%endif
|
||||
|
||||
Name: aaa_base
|
||||
Version: 84.87+git20240801.75f05dd%{git_version}
|
||||
Release: 0
|
||||
Summary: openSUSE Base Package
|
||||
License: GPL-2.0-or-later
|
||||
Group: System/Fhs
|
||||
URL: https://github.com/openSUSE/aaa_base
|
||||
Source: aaa_base-%{version}.tar
|
||||
Source1: README.packaging.txt
|
||||
Source99: aaa_base-rpmlintrc
|
||||
Requires: /bin/mktemp
|
||||
Requires: /usr/bin/cat
|
||||
Requires: /usr/bin/date
|
||||
Requires: /usr/bin/grep
|
||||
Requires: /usr/bin/mv
|
||||
Requires: /usr/bin/sed
|
||||
Requires: /usr/bin/tput
|
||||
Requires: /usr/bin/xz
|
||||
Requires: distribution-release
|
||||
Requires: filesystem
|
||||
# required for nsswitch.conf usrfiles fixes in post script
|
||||
Requires(post): (glibc >= 2.30 if glibc)
|
||||
Requires(post): fillup
|
||||
Recommends: aaa_base-extras
|
||||
Recommends: iproute2
|
||||
Recommends: iputils
|
||||
Recommends: logrotate
|
||||
Recommends: netcfg
|
||||
Recommends: udev
|
||||
# do not require systemd - aaa_base is in the build environment and we don't
|
||||
# want to pull in tons of dependencies
|
||||
Conflicts: sysvinit-init
|
||||
|
||||
# run osc service mr to recreate
|
||||
|
||||
%description
|
||||
This package installs several important configuration files and central scripts.
|
||||
|
||||
%package extras
|
||||
Summary: SUSE Linux Base Package (recommended part)
|
||||
Group: System/Fhs
|
||||
Requires: %{name} = %{version}
|
||||
Requires: /usr/bin/find
|
||||
Requires: cpio
|
||||
Requires(post): fillup
|
||||
Provides: aaa_base:/etc/DIR_COLORS
|
||||
|
||||
%description extras
|
||||
The parts of aaa_base that should be installed by default but are not
|
||||
strictly required to run a system. (bash completions and convenience hacks).
|
||||
|
||||
%package malloccheck
|
||||
Summary: SUSE Linux Base Package (malloc checking)
|
||||
Group: System/Fhs
|
||||
Requires: %{name} = %{version}
|
||||
|
||||
%description malloccheck
|
||||
This package sets environment variables that enable stricter
|
||||
malloc checks to catch potential heap corruptions. It's not
|
||||
installed by default as it may degrade performance.
|
||||
|
||||
%package wsl
|
||||
Summary: SUSE Linux Base Package (Windows Subsystem for Linux)
|
||||
Group: System/Fhs
|
||||
Requires: %{name} = %{version}
|
||||
|
||||
%description wsl
|
||||
This package includes some special settings needed on Windows Subsystem
|
||||
for Linux. It should only be installed on WSL and not on regular Linux
|
||||
systems.
|
||||
|
||||
%package yama-enable-ptrace
|
||||
Summary: sysctl setting to allow ptrace with the YAMA LSM enabled
|
||||
Group: System/Fhs
|
||||
Requires: %{name} = %{version}
|
||||
|
||||
%description yama-enable-ptrace
|
||||
When the YAMA LSM is enabled, ptrace is restriced by default. On
|
||||
developer systems this has an impact on e.g. strace and gdb. So
|
||||
this package contains a setting that allows ptrace again.
|
||||
|
||||
See https://docs.kernel.org/admin-guide/LSM/Yama.html
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
|
||||
%build
|
||||
%make_build CFLAGS="%{optflags}" CC="%{__cc}"
|
||||
|
||||
%install
|
||||
%make_install
|
||||
mkdir -p %{buildroot}/etc/sysctl.d
|
||||
#
|
||||
# make sure it does not creep in again
|
||||
test -d %{buildroot}/root/.gnupg && exit 1
|
||||
# TODO: get rid of that at some point in the future
|
||||
mkdir -p %{buildroot}/etc/init.d
|
||||
for i in boot.local after.local ; do
|
||||
install -m 755 /dev/null %{buildroot}/etc/init.d/$i
|
||||
done
|
||||
# keep as ghost for migration
|
||||
touch %buildroot/etc/inittab
|
||||
|
||||
# Backup directories
|
||||
install -d -m 755 %{buildroot}/var/adm/backup/{rpmdb,sysconfig}
|
||||
|
||||
mkdir -p %{buildroot}%{_fillupdir}
|
||||
%if "%{_fillupdir}" != "/var/adm/fillup-templates"
|
||||
for f in %{buildroot}/var/adm/fillup-templates/* ; do
|
||||
test -e "$f" || continue
|
||||
mv $f %{buildroot}%{_fillupdir}/
|
||||
done
|
||||
rm -vrf %{buildroot}/var/adm/fillup-templates
|
||||
%endif
|
||||
%if "%{_fillupdir}" != "/usr/share/fillup-templates"
|
||||
for f in %{buildroot}/usr/share/fillup-templates/* ; do
|
||||
test -e "$f" || continue
|
||||
mv $f %{buildroot}%{_fillupdir}/
|
||||
done
|
||||
rm -vrf %{buildroot}/usr/share/fillup-templates
|
||||
%endif
|
||||
|
||||
%post -f aaa_base.post
|
||||
|
||||
%pre extras
|
||||
%service_add_pre backup-rpmdb.service backup-rpmdb.timer backup-sysconfig.service backup-sysconfig.timer check-battery.service check-battery.timer
|
||||
|
||||
%post extras
|
||||
%fillup_only -n backup
|
||||
%service_add_post backup-rpmdb.service backup-rpmdb.timer backup-sysconfig.service backup-sysconfig.timer check-battery.service check-battery.timer
|
||||
|
||||
%preun extras
|
||||
%service_del_preun backup-rpmdb.service backup-rpmdb.timer backup-sysconfig.service backup-sysconfig.timer check-battery.service check-battery.timer
|
||||
|
||||
%postun extras
|
||||
%service_del_postun backup-rpmdb.service backup-rpmdb.timer backup-sysconfig.service backup-sysconfig.timer check-battery.service check-battery.timer
|
||||
|
||||
%files
|
||||
%license COPYING
|
||||
%ghost %config(noreplace) /etc/sysctl.conf
|
||||
%config /etc/bash.bashrc
|
||||
%config /etc/csh.cshrc
|
||||
%config /etc/csh.login
|
||||
%config /etc/inputrc
|
||||
%config /etc/mime.types
|
||||
%config /etc/profile
|
||||
/usr/etc/DIR_COLORS
|
||||
/usr/etc/csh.cshrc
|
||||
/usr/etc/csh.login
|
||||
/usr/etc/bash.bashrc
|
||||
/usr/etc/profile
|
||||
/usr/etc/inputrc
|
||||
/usr/etc/inputrc.keys
|
||||
/usr/etc/profile.d/alljava.csh
|
||||
/usr/etc/profile.d/alljava.sh
|
||||
/usr/etc/profile.d/lang.csh
|
||||
/usr/etc/profile.d/lang.sh
|
||||
/usr/etc/profile.d/profile.csh
|
||||
/usr/etc/profile.d/profile.sh
|
||||
/usr/etc/profile.d/xdg-environment.csh
|
||||
/usr/etc/profile.d/xdg-environment.sh
|
||||
/usr/etc/profile.d/alias.ash
|
||||
/usr/etc/profile.d/alias.bash
|
||||
/usr/etc/profile.d/alias.tcsh
|
||||
/usr/etc/profile.d/ls.tcsh
|
||||
/usr/etc/profile.d/ls.bash
|
||||
/usr/etc/profile.d/ls.zsh
|
||||
/usr/etc/profile.d/terminal.sh
|
||||
/usr/etc/profile.d/terminal.csh
|
||||
%dir /usr/lib/environment.d
|
||||
/usr/lib/environment.d/50-xdg.conf
|
||||
%{_tmpfilesdir}/soft-reboot-cleanup.conf
|
||||
%config /etc/shells
|
||||
%ghost %dir /etc/init.d
|
||||
%ghost %config(noreplace) /etc/init.d/boot.local
|
||||
%ghost %config(noreplace) /etc/init.d/after.local
|
||||
%ghost %config /etc/inittab
|
||||
/usr/bin/get_kernel_version
|
||||
/usr/sbin/refresh_initrd
|
||||
/usr/sbin/service
|
||||
/usr/sbin/smart_agetty
|
||||
/usr/bin/filesize
|
||||
/usr/bin/old
|
||||
/usr/bin/rpmlocate
|
||||
/usr/sbin/sysconf_addword
|
||||
/usr/share/man/man1/smart_agetty.1*
|
||||
/usr/share/man/man5/defaultdomain.5*
|
||||
/usr/share/man/man8/service.8*
|
||||
/usr/lib/sysctl.d/50-default.conf
|
||||
%ifnarch %ix86 %arm
|
||||
/usr/lib/sysctl.d/50-pid-max.conf
|
||||
%endif
|
||||
/usr/lib/sysctl.d/51-network.conf
|
||||
%{_fillupdir}/sysconfig.language
|
||||
%{_fillupdir}/sysconfig.proxy
|
||||
%{_fillupdir}/sysconfig.windowmanager
|
||||
|
||||
%files extras
|
||||
/etc/skel/.emacs
|
||||
/etc/skel/.inputrc
|
||||
%dir /usr/lib/base-scripts
|
||||
/usr/lib/base-scripts/backup-rpmdb
|
||||
/usr/lib/base-scripts/backup-sysconfig
|
||||
/usr/lib/base-scripts/check-battery
|
||||
/usr/lib/systemd/system/*
|
||||
/usr/share/man/man8/resolv+.8*
|
||||
/var/adm/backup/rpmdb
|
||||
/var/adm/backup/sysconfig
|
||||
%{_fillupdir}/sysconfig.backup
|
||||
|
||||
%files malloccheck
|
||||
/usr/etc/profile.d/malloc-debug.sh
|
||||
/usr/etc/profile.d/malloc-debug.csh
|
||||
|
||||
%files wsl
|
||||
/usr/etc/profile.d/wsl.csh
|
||||
/usr/etc/profile.d/wsl.sh
|
||||
|
||||
%files yama-enable-ptrace
|
||||
/usr/lib/sysctl.d/52-yama.conf
|
||||
|
||||
%changelog
|
Loading…
Reference in New Issue
Block a user