Compare commits

..

No commits in common. "rawhide" and "RHEL-3-split" have entirely different histories.

5 changed files with 77 additions and 1 deletions

1
.cvsignore Normal file
View file

@ -0,0 +1 @@
amtu-0.1.tar.gz

6
Makefile Normal file
View file

@ -0,0 +1,6 @@
# Makefile for source rpm: amtu
# $Id$
NAME := amtu
SPECFILE = $(firstword $(wildcard *.spec))
include ../common/Makefile.common

69
amtu.spec Normal file
View file

@ -0,0 +1,69 @@
Name: amtu
Version: 0.1
Release: 3RHEL
Autoreqprov: on
Summary: Abstract Machine Test Utility (AMTU)
License: Common Public License
Group: Productivity/Security
Requires: laus-libs
Source0: %{name}-%{version}.tar.gz
Excludearch: ia64
# Red Hat AMTU SPEC file
%description
Abstract Machine Test Utility (AMTU) is an administrative utility to check
whether the underlying protection mechanism of the hardware are still being
enforced. This is a requirement of the Controlled Access Protection Profile
FTP_AMT.1, see
http://www.radium.ncsc.mil/tpep/library/protection_profiles/CAPP-1.d.pdf
%prep
%setup -n amtu
%build
# Determine appropriate compiler
CC="gcc"
%ifarch ppc64 ppc64iseries ppc64pseries
CC="/usr/bin/ppc64-redhat-linux-gcc"
%endif
# Determine appropriate compiler flags
CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE -Wall -pipe"
%ifarch x86_64
CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE -Wall -pipe -m64"
%endif
export CC CFLAGS
autoheader || true
autoreconf --install
./configure \
--prefix=/usr \
--bindir=/usr/bin \
--mandir=%{_mandir}
make
%install
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/%{_defaultdocdir}/amtu-%{version}
make DESTDIR=$RPM_BUILD_ROOT install-strip
gzip doc/amtu.8
install -m 644 doc/AMTUHowTo.txt $RPM_BUILD_ROOT/%{_defaultdocdir}/amtu-%{version}/AMTUHowTo.txt
install -m 644 doc/amtu.8.gz $RPM_BUILD_ROOT/%{_mandir}/man8/amtu.8.gz
%clean
make clean
%files
%defattr(-,root,root)
%attr(440,root,root) /usr/bin/amtu
%doc %{_mandir}/man8/amtu.8.gz
%doc %{_defaultdocdir}/amtu-%{version}/AMTUHowTo.txt
%changelog
* Fri May 28 2004 ccb <ccb@redhat.com> 0.1-3RHEL
- fixed owners and permissions in %files
* Wed May 26 2004 ccb <ccb@redhat.com> 0.1-2RHEL
- move docs to a version-qualified directory name
* Sat May 1 2004 root <chavezt@cs679156-153.austin.rr.com>
- Initial build.

View file

@ -1 +0,0 @@
AMTU was needed for Common Criteria testing. No PP has needed it in about 5 years. Upstream for the package is also dead.

1
sources Normal file
View file

@ -0,0 +1 @@
b0aa74ad4d0b20ac381fb278f1bbc1f6 amtu-0.1.tar.gz