2006-12-19 00:15:02 +01:00
|
|
|
|
#
|
2009-01-09 01:23:58 +01:00
|
|
|
|
# spec file for package aaa_base (Version 11.2)
|
2006-12-19 00:15:02 +01:00
|
|
|
|
#
|
2009-01-08 14:44:13 +01:00
|
|
|
|
# Copyright (c) 2009 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/
|
2006-12-19 00:15:02 +01:00
|
|
|
|
#
|
|
|
|
|
|
2006-12-19 00:15:02 +01:00
|
|
|
|
# norootforbuild
|
2022-02-21 10:20:34 +01:00
|
|
|
|
|
2008-02-15 01:07:00 +01:00
|
|
|
|
|
2006-12-19 00:15:02 +01:00
|
|
|
|
Name: aaa_base
|
2007-07-16 17:53:09 +02:00
|
|
|
|
License: GPL v2 or later
|
2022-03-21 18:34:13 +01:00
|
|
|
|
Group: System/Fhs
|
2007-12-14 16:32:28 +01:00
|
|
|
|
Provides: bin bootutls etc skeleng skelger aaa_skel
|
|
|
|
|
Obsoletes: aaa_skel
|
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
|
2009-07-17 18:16:50 +02:00
|
|
|
|
Recommends: cron logrotate netcfg udev net-tools
|
|
|
|
|
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
|
2009-01-09 01:23:58 +01:00
|
|
|
|
Version: 11.2
|
2009-10-08 02:37:21 +02:00
|
|
|
|
Release: 42
|
2006-12-19 00:15:02 +01:00
|
|
|
|
Summary: SUSE Linux Base Package
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
Source: aaa_base.tar.bz2
|
|
|
|
|
Source3: aaa_base.specialfilelist
|
|
|
|
|
Source5: arch_special.tar.bz2
|
|
|
|
|
Source7: sysconfig_parts.tar.bz2
|
|
|
|
|
Source8: get_kernel_version.c
|
2008-05-06 18:46:50 +02:00
|
|
|
|
Source20: aaa_base-rpmlintrc
|
2006-12-19 00:15:02 +01:00
|
|
|
|
Source21: aaa_base.pre
|
|
|
|
|
Source22: aaa_base.post
|
2008-05-06 18:46:50 +02:00
|
|
|
|
# %ifarch x86_64
|
|
|
|
|
# Obsoletes: tpctl <= 4.17
|
|
|
|
|
# %endif
|
2006-12-19 00:15:02 +01:00
|
|
|
|
|
|
|
|
|
%description
|
2006-12-19 00:15:02 +01:00
|
|
|
|
This package installs several important configuration files. Central
|
|
|
|
|
scripts like SuSEconfig are also in this package.
|
2006-12-19 00:15:02 +01:00
|
|
|
|
|
2010-08-01 17:23:38 +02:00
|
|
|
|
|
|
|
|
|
|
2006-12-19 00:15:02 +01:00
|
|
|
|
Authors:
|
|
|
|
|
--------
|
|
|
|
|
Werner Fink <werner@suse.de>
|
|
|
|
|
R<EFBFBD>diger Oertel <ro@suse.de>
|
|
|
|
|
Burchard Steinbild
|
|
|
|
|
Florian La Roche
|
|
|
|
|
Martin Scherbaum
|
2017-11-20 10:52:52 +01:00
|
|
|
|
|
2006-12-19 00:15:02 +01:00
|
|
|
|
%prep
|
2006-12-19 00:15:02 +01:00
|
|
|
|
%setup -n aaa_base -b 5 -b 7
|
|
|
|
|
cd ..
|
|
|
|
|
mkdir -p scripts
|
|
|
|
|
cp -v %{SOURCE21} scripts
|
|
|
|
|
cp -v %{SOURCE22} scripts
|
2010-09-10 15:43:26 +02:00
|
|
|
|
|
2006-12-19 00:15:02 +01:00
|
|
|
|
%build
|
2008-07-16 21:48:48 +02:00
|
|
|
|
gcc $RPM_OPT_FLAGS -D_FILE_OFFSET_BITS=64 $RPM_SOURCE_DIR/get_kernel_version.c -o $RPM_SOURCE_DIR/get_kernel_version
|
2006-12-19 00:15:02 +01:00
|
|
|
|
|
|
|
|
|
%install
|
2008-01-21 16:14:33 +01:00
|
|
|
|
install -d -m 700 root
|
2008-01-23 20:27:23 +01:00
|
|
|
|
# make sure it does not creep in again
|
|
|
|
|
test -d ../aaa_base/root/.gnupg && exit 1
|
2006-12-19 00:15:02 +01:00
|
|
|
|
cp -a ../aaa_base/* $RPM_BUILD_ROOT
|
|
|
|
|
cp $RPM_SOURCE_DIR/get_kernel_version $RPM_BUILD_ROOT/sbin
|
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/var/adm/fillup-templates
|
2008-08-21 18:02:44 +02:00
|
|
|
|
for i in $RPM_BUILD_DIR/sysconfig_parts/sysconfig.* ; do
|
2006-12-19 00:15:02 +01:00
|
|
|
|
cp $i $RPM_BUILD_ROOT/var/adm/fillup-templates/
|
2014-07-03 16:57:10 +02:00
|
|
|
|
done
|
2014-03-10 16:36:33 +01:00
|
|
|
|
#
|
2006-12-19 00:15:02 +01:00
|
|
|
|
## do arch specific patches BEGIN
|
|
|
|
|
#
|
|
|
|
|
pushd $RPM_BUILD_ROOT
|
|
|
|
|
test -d $RPM_BUILD_DIR/arch_special/$RPM_ARCH && \
|
|
|
|
|
{
|
|
|
|
|
for file in $RPM_BUILD_DIR/arch_special/$RPM_ARCH/* ; do
|
|
|
|
|
patch -p0 --input=$file
|
|
|
|
|
done
|
|
|
|
|
}
|
|
|
|
|
#
|
|
|
|
|
# delete .orig files
|
|
|
|
|
#
|
|
|
|
|
find $RPM_BUILD_ROOT -name "*.orig" | xargs -r rm
|
|
|
|
|
popd
|
|
|
|
|
#
|
|
|
|
|
## do arch specific patches END
|
|
|
|
|
#
|
|
|
|
|
#
|
|
|
|
|
# generate README from init-manpage
|
|
|
|
|
#
|
|
|
|
|
test -s $RPM_BUILD_ROOT/usr/share/man/man7/init.d.7 || exit 1
|
|
|
|
|
cat $RPM_BUILD_ROOT/usr/share/man/man7/init.d.7 | \
|
2009-10-08 02:37:21 +02:00
|
|
|
|
troff -Tlatin1 -t -mandoc | grotty -cbou > \
|
2006-12-19 00:15:02 +01:00
|
|
|
|
$RPM_BUILD_ROOT/etc/init.d/README
|
|
|
|
|
cp $RPM_BUILD_ROOT/etc/init.d/README $RPM_BUILD_ROOT/sbin/init.d.README
|
|
|
|
|
#
|
|
|
|
|
#
|
|
|
|
|
# mark these as ghost
|
|
|
|
|
for i in passwd group shadow gshadow ; do
|
|
|
|
|
touch $RPM_BUILD_ROOT/var/adm/fillup-templates/$i.aaa_base
|
|
|
|
|
done
|
|
|
|
|
#
|
|
|
|
|
# generate the file-list with config-files et al.
|
|
|
|
|
#
|
|
|
|
|
test -x /usr/sbin/Check && /usr/sbin/Check
|
|
|
|
|
#
|
|
|
|
|
for i in `( cd $RPM_BUILD_ROOT ; find * | sort )` ; do
|
|
|
|
|
if ! grep -E "^.* /$i\$" %{S:3} ; then
|
|
|
|
|
if ! test -d $RPM_BUILD_ROOT/$i ; then
|
|
|
|
|
echo "/$i"
|
|
|
|
|
fi
|
|
|
|
|
fi
|
|
|
|
|
done > aaa_base.files
|
2017-11-28 12:52:20 +01:00
|
|
|
|
|
2006-12-19 00:15:02 +01:00
|
|
|
|
%pre -f ../scripts/aaa_base.pre
|
2010-08-01 17:23:38 +02:00
|
|
|
|
|
2006-12-19 00:15:02 +01:00
|
|
|
|
%post -f ../scripts/aaa_base.post
|
2012-06-29 10:22:54 +02: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
|
|
|
|
|
|
2006-12-19 00:15:02 +01:00
|
|
|
|
%files -f aaa_base.files
|
|
|
|
|
%defattr(-,root,root)
|
2007-12-03 23:01:50 +01:00
|
|
|
|
|
2007-02-26 18:59:56 +01:00
|
|
|
|
%changelog
|