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
|
|
|
#
|
2011-01-07 12:50:59 +01:00
|
|
|
# Copyright (c) 2011 SUSE LINUX Products 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2011-02-14 14:26:31 +01:00
|
|
|
%bcond_with aaa_base_malloc_debug
|
2008-02-15 01:07:00 +01:00
|
|
|
|
2006-12-19 00:15:02 +01:00
|
|
|
Name: aaa_base
|
2011-06-30 09:49:35 +02:00
|
|
|
Version: 12.1
|
2011-08-22 09:46:35 +02:00
|
|
|
Release: 103
|
2009-12-04 12:34:19 +01:00
|
|
|
License: GPLv2+
|
2006-12-19 00:15:02 +01:00
|
|
|
Group: System/Fhs
|
2011-03-19 23:11:41 +01:00
|
|
|
Url: http://gitorious.org/opensuse/aaa_base
|
2010-05-19 09:20:15 +02:00
|
|
|
Provides: bin bootutls etc skeleng skelger
|
|
|
|
Provides: aaa_skel = %{version}-%{release}
|
|
|
|
Obsoletes: aaa_skel < %{version}
|
2008-05-19 23:55:12 +02:00
|
|
|
Requires: filesystem distribution-release /bin/mktemp /usr/bin/find /usr/bin/tput /usr/bin/xargs mingetty /bin/login cpio psmisc
|
2010-08-01 17:23:38 +02:00
|
|
|
Recommends: cron logrotate netcfg udev net-tools aaa_base-extras
|
2009-07-17 18:16:50 +02:00
|
|
|
PreReq: /usr/bin/sed /usr/bin/grep /bin/mv /bin/cat /bin/ls /bin/date /usr/bin/cmp /bin/fillup /sbin/insserv
|
2007-09-14 16:02:32 +02:00
|
|
|
AutoReqProv: on
|
2006-12-19 00:15:02 +01:00
|
|
|
Summary: SUSE Linux Base Package
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2011-03-19 23:11:41 +01:00
|
|
|
# run make package in checkout out git repo to recreate
|
2006-12-19 00:15:02 +01:00
|
|
|
Source: aaa_base.tar.bz2
|
2011-03-19 23:11:41 +01:00
|
|
|
Source99: aaa_base-rpmlintrc
|
2006-12-19 00:15:02 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
This package installs several important configuration files. Central
|
|
|
|
scripts like SuSEconfig are also in this package.
|
|
|
|
|
2010-08-01 17:23:38 +02:00
|
|
|
%package extras
|
|
|
|
License: GPLv2+
|
|
|
|
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
|
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).
|
|
|
|
|
2006-12-19 00:15:02 +01:00
|
|
|
%prep
|
2011-03-19 23:11:41 +01:00
|
|
|
%setup -n aaa_base
|
2010-09-10 15:43:26 +02:00
|
|
|
|
2006-12-19 00:15:02 +01:00
|
|
|
%build
|
2011-03-19 23:11:41 +01:00
|
|
|
make CFLAGS="$RPM_OPT_FLAGS"
|
|
|
|
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
|
|
|
|
#
|
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
|
|
|
|
#
|
2010-06-17 10:58:36 +02:00
|
|
|
# for the release
|
2011-02-14 14:26:31 +01:00
|
|
|
%if !%{with aaa_base_malloc_debug}
|
|
|
|
rm $RPM_BUILD_ROOT/etc/profile.d/malloc-debug.*
|
|
|
|
%endif
|
2006-12-19 00:15:02 +01:00
|
|
|
#
|
|
|
|
# mark these as ghost
|
|
|
|
for i in passwd group shadow gshadow ; do
|
|
|
|
touch $RPM_BUILD_ROOT/var/adm/fillup-templates/$i.aaa_base
|
|
|
|
done
|
2011-01-25 11:29:41 +01:00
|
|
|
#
|
|
|
|
# loop module auto loading bnc#661715
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/lib/udev/devices
|
2006-12-19 00:15:02 +01:00
|
|
|
|
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
|
|
|
|
2007-06-20 19:05:05 +02:00
|
|
|
%postun
|
|
|
|
%insserv_cleanup
|
|
|
|
|
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
|
2010-11-17 12:50:04 +01:00
|
|
|
%config(noreplace) /etc/inittab
|
|
|
|
%config /etc/bash.bashrc
|
|
|
|
%config /etc/csh.cshrc
|
|
|
|
%config /etc/csh.login
|
|
|
|
%config /etc/inputrc
|
|
|
|
%config /etc/mailcap
|
|
|
|
%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/csh.utf8
|
|
|
|
%config /etc/profile.d/lang.csh
|
|
|
|
%config /etc/profile.d/lang.sh
|
2011-02-14 14:26:31 +01:00
|
|
|
%if %{with aaa_base_malloc_debug}
|
2010-11-17 12:50:04 +01:00
|
|
|
%config /etc/profile.d/malloc-debug.sh
|
|
|
|
%config /etc/profile.d/malloc-debug.csh
|
2011-02-14 14:26:31 +01:00
|
|
|
%endif
|
2010-11-17 12:50:04 +01:00
|
|
|
%config /etc/profile.d/profile.csh
|
|
|
|
%config /etc/profile.d/profile.sh
|
|
|
|
%config /etc/profile.d/sh.ssh
|
|
|
|
%config /etc/profile.d/sh.utf8
|
|
|
|
%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
|
|
|
|
%config /etc/init.d/boot
|
|
|
|
%config /etc/init.d/halt
|
|
|
|
%config /etc/init.d/powerfail
|
|
|
|
%config /etc/init.d/random
|
|
|
|
%config /etc/init.d/single
|
|
|
|
%ghost /var/adm/fillup-templates/passwd.aaa_base
|
|
|
|
%ghost /var/adm/fillup-templates/group.aaa_base
|
|
|
|
%ghost /var/adm/fillup-templates/gshadow.aaa_base
|
|
|
|
%ghost /var/adm/fillup-templates/shadow.aaa_base
|
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
|
|
|
|
%ghost %attr(0600,root,root) %verify(not md5 size mtime) /var/log/faillog
|
|
|
|
%ghost %attr(0664,root,utmp) %verify(not md5 size mtime) /var/log/wtmp
|
|
|
|
%ghost %attr(0600,root,root) %verify(not md5 size mtime) /var/log/btmp
|
|
|
|
%ghost %attr(0664,root,utmp) %verify(not md5 size mtime) /var/run/utmp
|
2010-11-17 12:50:04 +01:00
|
|
|
/etc/cron.daily/suse.de-clean-tmp
|
|
|
|
/etc/hushlogins
|
|
|
|
/etc/init.d/boot.cleanup
|
|
|
|
/etc/init.d/boot.clock
|
2011-01-12 16:48:29 +01:00
|
|
|
/etc/init.d/boot.cgroup
|
2010-11-17 12:50:04 +01:00
|
|
|
/etc/init.d/boot.klog
|
|
|
|
/etc/init.d/boot.ldconfig
|
|
|
|
/etc/init.d/boot.localfs
|
|
|
|
/etc/init.d/boot.localnet
|
|
|
|
/etc/init.d/boot.rootfsck
|
|
|
|
/etc/init.d/boot.swap
|
|
|
|
/etc/init.d/rc
|
|
|
|
/etc/init.d/reboot
|
|
|
|
/etc/tmpdirs.d/01_aaa_base
|
2011-05-28 22:49:17 +02:00
|
|
|
%dir /lib/aaa_base
|
|
|
|
/lib/aaa_base/convert_sysctl*
|
2010-11-17 12:50:04 +01:00
|
|
|
/lib/YaST/SuSEconfig.functions
|
|
|
|
/sbin/chkconfig
|
|
|
|
/sbin/get_kernel_version
|
|
|
|
/sbin/refresh_initrd
|
|
|
|
/sbin/service
|
|
|
|
/sbin/smart_agetty
|
|
|
|
/sbin/SuSEconfig
|
|
|
|
/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/rcpowerfail
|
|
|
|
/usr/sbin/rcrandom
|
|
|
|
/usr/sbin/rcsingle
|
|
|
|
/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*
|
|
|
|
/usr/share/man/man8/SuSEconfig.8*
|
|
|
|
/var/adm/fillup-templates/sysconfig.backup
|
|
|
|
/var/adm/fillup-templates/sysconfig.boot
|
|
|
|
/var/adm/fillup-templates/sysconfig.clock
|
|
|
|
/var/adm/fillup-templates/sysconfig.cron
|
|
|
|
/var/adm/fillup-templates/sysconfig.language
|
|
|
|
/var/adm/fillup-templates/sysconfig.news
|
|
|
|
/var/adm/fillup-templates/sysconfig.proxy
|
|
|
|
/var/adm/fillup-templates/sysconfig.shutdown
|
|
|
|
/var/adm/fillup-templates/sysconfig.suseconfig
|
|
|
|
/var/adm/fillup-templates/sysconfig.windowmanager
|
2011-01-25 11:29:41 +01:00
|
|
|
%dir /lib/udev
|
|
|
|
%dir /lib/udev/devices
|
2011-05-17 15:02:01 +02:00
|
|
|
%ghost %attr(660,root,disk) %dev(b,7,0) /lib/udev/devices/loop0
|
|
|
|
%ghost %attr(660,root,disk) %dev(b,7,1) /lib/udev/devices/loop1
|
|
|
|
%ghost %attr(660,root,disk) %dev(b,7,2) /lib/udev/devices/loop2
|
|
|
|
%ghost %attr(660,root,disk) %dev(b,7,3) /lib/udev/devices/loop3
|
|
|
|
%ghost %attr(660,root,disk) %dev(b,7,4) /lib/udev/devices/loop4
|
|
|
|
%ghost %attr(660,root,disk) %dev(b,7,5) /lib/udev/devices/loop5
|
|
|
|
%ghost %attr(660,root,disk) %dev(b,7,6) /lib/udev/devices/loop6
|
|
|
|
%ghost %attr(660,root,disk) %dev(b,7,7) /lib/udev/devices/loop7
|
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
|
|
|
|
/etc/init.d/skeleton
|
|
|
|
/etc/init.d/skeleton.compat
|
|
|
|
%config /sbin/quick_halt
|
|
|
|
/sbin/quick_poweroff
|
|
|
|
/sbin/quick_reboot
|
|
|
|
/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
|
|
|
|
2007-02-26 18:59:56 +01:00
|
|
|
%changelog
|