diff --git a/.cvsignore b/.cvsignore new file mode 100644 index 0000000..1f7b6cb --- /dev/null +++ b/.cvsignore @@ -0,0 +1 @@ +amtu-0.1.tar.gz diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..1a16b31 --- /dev/null +++ b/Makefile @@ -0,0 +1,6 @@ +# Makefile for source rpm: amtu +# $Id$ +NAME := amtu +SPECFILE = $(firstword $(wildcard *.spec)) + +include ../common/Makefile.common diff --git a/amtu.spec b/amtu.spec new file mode 100644 index 0000000..2e88d5f --- /dev/null +++ b/amtu.spec @@ -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 0.1-3RHEL +- fixed owners and permissions in %files +* Wed May 26 2004 ccb 0.1-2RHEL +- move docs to a version-qualified directory name +* Sat May 1 2004 root +- Initial build. + diff --git a/dead.package b/dead.package deleted file mode 100644 index b18e62c..0000000 --- a/dead.package +++ /dev/null @@ -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. diff --git a/sources b/sources new file mode 100644 index 0000000..2dc2adf --- /dev/null +++ b/sources @@ -0,0 +1 @@ +b0aa74ad4d0b20ac381fb278f1bbc1f6 amtu-0.1.tar.gz