2006-12-19 00:15:02 +01:00
|
|
|
#
|
2011-01-14 03:04:31 +01:00
|
|
|
# spec file for package aaa_base
|
2006-12-19 00:15:02 +01:00
|
|
|
#
|
2017-03-08 10:14:17 +01:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2006-12-19 00:15:02 +01:00
|
|
|
#
|
2008-08-06 01:40:46 +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:15:02 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
2014-09-11 11:39:33 +02:00
|
|
|
# icecream 0
|
2006-12-19 00:15:02 +01:00
|
|
|
|
|
|
|
|
|
|
|
Name: aaa_base
|
2017-11-28 12:52:20 +01:00
|
|
|
Version: 84.87+git20171128.a6752e8
|
2012-01-27 21:28:49 +01:00
|
|
|
Release: 0
|
2012-11-15 16:35:15 +01:00
|
|
|
Url: https://github.com/openSUSE/aaa_base
|
2010-05-19 09:20:15 +02:00
|
|
|
Provides: aaa_skel = %{version}-%{release}
|
2012-03-13 17:10:36 +01:00
|
|
|
Provides: bin
|
|
|
|
Provides: bootutls
|
|
|
|
Provides: etc
|
|
|
|
Provides: skeleng
|
|
|
|
Provides: skelger
|
2010-05-19 09:20:15 +02:00
|
|
|
Obsoletes: aaa_skel < %{version}
|
2012-10-12 16:44:24 +02:00
|
|
|
# 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
|
2012-03-13 17:10:36 +01:00
|
|
|
Requires: /bin/login
|
|
|
|
Requires: /bin/mktemp
|
|
|
|
Requires: /usr/bin/find
|
|
|
|
Requires: /usr/bin/tput
|
|
|
|
Requires: /usr/bin/xargs
|
|
|
|
Requires: cpio
|
|
|
|
Requires: distribution-release
|
|
|
|
Requires: filesystem
|
2012-09-13 15:50:03 +02:00
|
|
|
# for symlink check to /bin/hostname
|
|
|
|
BuildRequires: net-tools
|
2013-04-23 18:17:16 +02:00
|
|
|
BuildRequires: xz
|
2014-03-10 16:36:33 +01:00
|
|
|
Recommends: logrotate netcfg udev net-tools aaa_base-extras
|
2012-10-12 16:44:24 +02:00
|
|
|
PreReq: /usr/bin/sed /usr/bin/grep /bin/mv /bin/cat /bin/ls /bin/date /usr/bin/cmp /bin/fillup
|
2012-11-15 16:35:15 +01:00
|
|
|
Summary: openSUSE Base Package
|
2012-01-27 21:28:49 +01:00
|
|
|
License: GPL-2.0+
|
|
|
|
Group: System/Fhs
|
2006-12-19 00:15:02 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2012-09-25 15:51:28 +02:00
|
|
|
# run osc service dr to recreate
|
2013-03-27 15:34:05 +01:00
|
|
|
Source: aaa_base-%{version}.tar.xz
|
2012-10-05 12:40:58 +02:00
|
|
|
#
|
|
|
|
# Read README.packaging.txt before making any changes to this
|
|
|
|
# package
|
|
|
|
#
|
|
|
|
Source1: README.packaging.txt
|
2011-03-19 23:11:41 +01:00
|
|
|
Source99: aaa_base-rpmlintrc
|
2006-12-19 00:15:02 +01:00
|
|
|
|
|
|
|
%description
|
2012-09-25 15:50:10 +02:00
|
|
|
This package installs several important configuration files and central scripts.
|
2006-12-19 00:15:02 +01:00
|
|
|
|
2010-08-01 17:23:38 +02:00
|
|
|
%package extras
|
|
|
|
Summary: SUSE Linux Base Package (recommended part)
|
|
|
|
Group: System/Fhs
|
|
|
|
Requires: %{name} = %{version}
|
2010-08-13 02:36:51 +02:00
|
|
|
Provides: aaa_base:/etc/DIR_COLORS
|
2014-03-10 16:36:33 +01:00
|
|
|
Recommends: cron
|
2010-08-01 17:23:38 +02:00
|
|
|
|
|
|
|
%description extras
|
|
|
|
The parts of aaa_base that should be installed by default but are not
|
|
|
|
strictly required to run a system. (Shell aliases, bash completions
|
|
|
|
and convenience hacks).
|
|
|
|
|
2012-06-29 10:28:36 +02:00
|
|
|
%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
|
2012-06-29 11:03:06 +02:00
|
|
|
installed by default as it may degrade performance.
|
2012-06-29 10:28:36 +02:00
|
|
|
|
2017-11-20 10:52:52 +01:00
|
|
|
%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.
|
|
|
|
|
2006-12-19 00:15:02 +01:00
|
|
|
%prep
|
2012-10-05 12:40:58 +02:00
|
|
|
%setup -q
|
2010-09-10 15:43:26 +02:00
|
|
|
|
2006-12-19 00:15:02 +01:00
|
|
|
%build
|
2017-09-01 09:40:46 +02:00
|
|
|
rm -rfv files/run
|
|
|
|
rm -fv files/var/log/btmp files/var/log/wtmp
|
2011-10-04 10:30:07 +02:00
|
|
|
make CFLAGS="$RPM_OPT_FLAGS" CC="%{__cc}" %{?_smp_mflags}
|
2011-03-19 23:11:41 +01:00
|
|
|
if test -d patches/$RPM_ARCH; then
|
|
|
|
pushd files
|
|
|
|
for file in ../patches/$RPM_ARCH/*; do
|
|
|
|
patch -p0 --input=$file
|
|
|
|
done
|
|
|
|
find -name "*.orig" | xargs -r rm
|
|
|
|
popd
|
|
|
|
fi
|
2006-12-19 00:15:02 +01:00
|
|
|
|
|
|
|
%install
|
2011-03-19 23:11:41 +01:00
|
|
|
#
|
|
|
|
make DESTDIR=$RPM_BUILD_ROOT install
|
|
|
|
#
|
2013-05-27 13:42:40 +02:00
|
|
|
mkdir -p %{buildroot}/etc/sysctl.d
|
|
|
|
case "$RPM_ARCH" in
|
|
|
|
s390*) ;;
|
|
|
|
*) rm -f %{buildroot}/usr/lib/sysctl.d/50-default-s390.conf ;;
|
|
|
|
esac
|
|
|
|
#
|
2008-01-23 20:27:23 +01:00
|
|
|
# make sure it does not creep in again
|
2011-03-19 23:11:41 +01:00
|
|
|
test -d $RPM_BUILD_ROOT/root/.gnupg && exit 1
|
2014-07-03 16:57:10 +02:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/etc/init.d
|
|
|
|
for i in boot.local after.local halt.local ; do
|
|
|
|
echo "#!bin/bash" > $RPM_BUILD_ROOT/etc/init.d/$i
|
|
|
|
chmod 755 $RPM_BUILD_ROOT/etc/init.d/$i
|
|
|
|
done
|
2014-03-10 16:36:33 +01:00
|
|
|
#
|
|
|
|
install -d -m 755 %buildroot/usr/lib/initscripts/legacy-actions
|
2014-08-21 15:35:10 +02:00
|
|
|
# keep as ghost for migration
|
|
|
|
touch %buildroot/etc/inittab
|
2006-12-19 00:15:02 +01:00
|
|
|
|
2017-11-28 12:52:20 +01:00
|
|
|
%if "%{_fillupdir}" != "/var/adm/fillup-templates"
|
|
|
|
mkdir -p %{buildroot}$(dirname %{_fillupdir})
|
|
|
|
mv %{buildroot}/var/adm/fillup-templates %{buildroot}%{_fillupdir}
|
|
|
|
%endif
|
|
|
|
|
2011-03-19 23:11:41 +01:00
|
|
|
%pre -f aaa_base.pre
|
2006-12-19 00:15:02 +01:00
|
|
|
|
2011-03-19 23:11:41 +01:00
|
|
|
%post -f aaa_base.post
|
2006-12-19 00:15:02 +01:00
|
|
|
|
2008-01-23 20:27:23 +01:00
|
|
|
%triggerpostun -- aaa_base
|
|
|
|
if test -f /root/.gnupg/secring.gpg.aaa_save -a ! -f /root/.gnupg/secring.gpg ; then
|
|
|
|
mv /root/.gnupg/secring.gpg.aaa_save /root/.gnupg/secring.gpg
|
|
|
|
fi
|
|
|
|
rm -f /root/.gnupg/secring.gpg.aaa_save
|
|
|
|
|
2010-11-17 12:50:04 +01:00
|
|
|
%files
|
2006-12-19 00:15:02 +01:00
|
|
|
%defattr(-,root,root)
|
2011-05-09 16:23:59 +02:00
|
|
|
%doc COPYING
|
2013-05-27 13:42:40 +02:00
|
|
|
%config(noreplace) %ghost /etc/sysctl.conf
|
2010-11-17 12:50:04 +01:00
|
|
|
%config /etc/bash.bashrc
|
|
|
|
%config /etc/csh.cshrc
|
|
|
|
%config /etc/csh.login
|
|
|
|
%config /etc/inputrc
|
2017-04-27 13:35:14 +02:00
|
|
|
%config /etc/inputrc.keys
|
2010-11-17 12:50:04 +01:00
|
|
|
%config /etc/mime.types
|
|
|
|
%config /etc/profile
|
|
|
|
%config /etc/profile.d/alljava.csh
|
|
|
|
%config /etc/profile.d/alljava.sh
|
|
|
|
%config /etc/profile.d/csh.ssh
|
|
|
|
%config /etc/profile.d/lang.csh
|
|
|
|
%config /etc/profile.d/lang.sh
|
|
|
|
%config /etc/profile.d/profile.csh
|
|
|
|
%config /etc/profile.d/profile.sh
|
|
|
|
%config /etc/profile.d/sh.ssh
|
|
|
|
%config /etc/profile.d/xdg-environment.csh
|
|
|
|
%config /etc/profile.d/xdg-environment.sh
|
|
|
|
%config /etc/rc.splash
|
|
|
|
%config /etc/rc.status
|
|
|
|
%config /etc/shells
|
|
|
|
%config /etc/ttytype
|
2014-07-03 16:57:10 +02:00
|
|
|
%ghost /etc/init.d/boot.local
|
|
|
|
%ghost /etc/init.d/after.local
|
|
|
|
%ghost /etc/init.d/halt.local
|
2014-08-21 15:35:10 +02:00
|
|
|
%ghost %config /etc/inittab
|
2010-11-18 13:49:58 +01:00
|
|
|
# don't forget to also change aaa_base.post, boot.cleanup
|
|
|
|
# and /etc/permissions!
|
|
|
|
%ghost %attr(0644,root,root) %verify(not md5 size mtime) /var/log/lastlog
|
2012-10-12 16:44:24 +02:00
|
|
|
/etc/hushlogins
|
2011-05-28 22:49:17 +02:00
|
|
|
%dir /lib/aaa_base
|
|
|
|
/lib/aaa_base/convert_sysctl*
|
2012-10-12 16:44:24 +02:00
|
|
|
/usr/bin/chkconfig
|
2010-11-17 12:50:04 +01:00
|
|
|
/sbin/chkconfig
|
2012-10-12 16:44:24 +02:00
|
|
|
/usr/bin/get_kernel_version
|
2010-11-17 12:50:04 +01:00
|
|
|
/sbin/refresh_initrd
|
2012-10-12 16:44:24 +02:00
|
|
|
/usr/sbin/refresh_initrd
|
2010-11-17 12:50:04 +01:00
|
|
|
/sbin/service
|
2012-10-12 16:44:24 +02:00
|
|
|
/usr/sbin/service
|
2010-11-17 12:50:04 +01:00
|
|
|
/sbin/smart_agetty
|
2012-10-12 16:44:24 +02:00
|
|
|
/usr/sbin/smart_agetty
|
2010-11-17 12:50:04 +01:00
|
|
|
/usr/bin/ChangeSymlinks
|
|
|
|
/usr/bin/filesize
|
|
|
|
/usr/bin/mkinfodir
|
|
|
|
/usr/bin/old
|
|
|
|
/usr/bin/rpmlocate
|
|
|
|
/usr/bin/safe-rm
|
|
|
|
/usr/bin/safe-rmdir
|
|
|
|
/usr/bin/setJava
|
|
|
|
/usr/lib/restricted/bin/hostname
|
|
|
|
/usr/sbin/Check
|
|
|
|
/usr/sbin/sysconf_addword
|
|
|
|
/usr/share/man/man1/smart_agetty.1*
|
|
|
|
/usr/share/man/man5/defaultdomain.5*
|
|
|
|
/usr/share/man/man8/chkconfig.8*
|
|
|
|
/usr/share/man/man8/safe-rm.8*
|
|
|
|
/usr/share/man/man8/safe-rmdir.8*
|
|
|
|
/usr/share/man/man8/service.8*
|
2013-05-27 13:42:40 +02:00
|
|
|
/usr/lib/sysctl.d/*.conf
|
2014-03-10 16:36:33 +01:00
|
|
|
%dir /usr/lib/initscripts
|
|
|
|
%dir /usr/lib/initscripts/legacy-actions
|
2017-11-24 11:22:06 +01:00
|
|
|
%{_fillupdir}/sysconfig.backup
|
|
|
|
%{_fillupdir}/sysconfig.language
|
|
|
|
%{_fillupdir}/sysconfig.news
|
|
|
|
%{_fillupdir}/sysconfig.proxy
|
|
|
|
%{_fillupdir}/sysconfig.windowmanager
|
2010-11-17 12:50:04 +01:00
|
|
|
|
|
|
|
%files extras
|
2010-08-01 17:23:38 +02:00
|
|
|
%defattr(-,root,root)
|
2010-11-17 12:50:04 +01:00
|
|
|
%config(noreplace) /etc/DIR_COLORS
|
|
|
|
/etc/cron.daily/suse.de-backup-rc.config
|
|
|
|
/etc/cron.daily/suse.de-backup-rpmdb
|
|
|
|
/etc/cron.daily/suse.de-check-battery
|
|
|
|
/etc/cron.daily/suse.de-cron-local
|
|
|
|
/etc/skel/.emacs
|
|
|
|
/etc/skel/.inputrc
|
|
|
|
/etc/java/README
|
|
|
|
%config /etc/profile.d/complete.bash
|
|
|
|
%config /etc/profile.d/alias.ash
|
|
|
|
/etc/profile.d/alias.bash
|
|
|
|
/etc/profile.d/alias.tcsh
|
|
|
|
/etc/profile.d/ls.tcsh
|
|
|
|
/etc/profile.d/ls.bash
|
2014-07-24 09:17:46 +02:00
|
|
|
/etc/profile.d/ls.zsh
|
2010-11-17 12:50:04 +01:00
|
|
|
/usr/sbin/setDefaultJava
|
|
|
|
/usr/share/man/man7/init.d.7*
|
|
|
|
/usr/share/man/man5/route.conf.5*
|
|
|
|
/usr/share/man/man8/resolv+.8*
|
|
|
|
/usr/share/man/man8/quick_halt.8*
|
2010-08-01 17:23:38 +02:00
|
|
|
|
2012-06-29 10:22:54 +02:00
|
|
|
%files malloccheck
|
2012-07-21 08:39:31 +02:00
|
|
|
%defattr(-,root,root)
|
2012-06-29 10:22:54 +02:00
|
|
|
%config /etc/profile.d/malloc-debug.sh
|
|
|
|
%config /etc/profile.d/malloc-debug.csh
|
|
|
|
|
2017-11-20 10:52:52 +01:00
|
|
|
%files wsl
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%config /etc/profile.d/wsl.sh
|
|
|
|
|
2007-02-26 18:59:56 +01:00
|
|
|
%changelog
|