Summary: Automated Password Generator for random password generation
Name: apg
Version: 2.3.0b
Release: 5%{?dist}
License: BSD
Group: System Environment/Base
URL: http://www.adel.nursat.kz/%{name}/
Source0: http://www.adel.nursat.kz/%{name}/download/%{name}-%{version}.tar.gz
Source1: apg.xinetd
Patch0: apg-2.3.0b-gen_rand_pass.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
%description
APG (Automated Password Generator) is the tool set for random password
generation. This standalone version generates some random words of
required type and prints them to standard output.
%prep
%setup -q
%patch0 -p1 -b .gen_rand_pass
%build
# Build server
make CFLAGS="$RPM_OPT_FLAGS" FLAGS="$RPM_OPT_FLAGS" %{?_smp_mflags} cliserv
# Build standalone files
make CFLAGS="$RPM_OPT_FLAGS" FLAGS="$RPM_OPT_FLAGS" %{?_smp_mflags} standalone
%install
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
install -D apg %{buildroot}%{_bindir}/apg
install -D apgbfm %{buildroot}%{_bindir}/apgbfm
install -D apgd %{buildroot}%{_sbindir}/apgd
install -D doc/man/apg.1 %{buildroot}%{_mandir}/man1/apg.1
install -D doc/man/apgbfm.1 %{buildroot}%{_mandir}/man1/apgbfm.1
install -D doc/man/apgd.8 %{buildroot}%{_mandir}/man8/apgd.8
install -D %{SOURCE1} %{buildroot}%{_sysconfdir}/xinetd.d/apgd
%clean
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
%post
# add a service for apg if it doesn't already exist
if ! grep -q ^pwdgen /etc/services; then
echo -e 'pwdgen\t\t129/tcp\t\t\t# PWDGEN service' >> /etc/services
fi
%files
%defattr(-, root, root)
%doc CHANGES COPYING README THANKS TODO doc/rfc*
%{_bindir}/apg
%{_bindir}/apgbfm
%{_sbindir}/apgd
%{_mandir}/man*/*
%{_sysconfdir}/xinetd.d/apgd
%changelog
* Tue Mar 4 2008 Stephen John Smoogen <smooge@canopus.unm.edu> - 2.3.0b-5
- Synced up with EL-5 spec file.
* Tue Aug 21 2007 Kevin Fenzi <kevin@tummy.com> - 2.3.0b-5
- Fix incorrect license tag
- Fix incorrect sources
* Sun Aug 27 2006 Kevin Fenzi <kevin@tummy.com> - 2.3.0b-4
- Rebuild for fc6
* Thu Feb 16 2006 Kevin Fenzi <kevin@tummy.com> - 2.3.0b-3
- Rebuild for fc5
* Sat Jul 30 2005 Michael Schwendt <mschwendt[AT]users.sf.net> - 2.3.0b-2
- Fix -y segfault (#164698).
- Make with CFLAGS and FLAGS to build with RPM optflags to
repair debuginfo package.
* Fri Apr 22 2005 Oliver Falk <oliver@linux-kernel.at> - 2.3.0b-1_FC4
- Add FC4 to the release tag, so it's newer than the FC3 package
* Mon Apr 11 2005 Oliver Falk <oliver@linux-kernel.at> - 2.3.0b-1
- Merge FC devel specfile with lkernAT specfile (=> update)
- Has now support for xinetd
* Fri Apr 7 2005 Michael Schwendt <mschwendt[AT]users.sf.net>
- rebuilt
* Wed Nov 10 2004 Matthias Saou <http://freshrpms.net/> 2.2.3-3
- Bump release to provide Extras upgrade path.
- Nicer mode fix for the sources.
* Sun Sep 21 2003 Phillip Compton <pcompton[AT]proteinmedia.com> - 0:2.2.3-0.fdr.2
- Fixed file permission on source tarball.
- Brought spec more in line with current template.
* Mon Sep 15 2003 Phillip Compton <pcompton[AT]proteinmedia.com> - 0:2.2.3-0.fdr.1
- Updated to 2.2.3.
* Mon Sep 01 2003 Phillip Compton <pcompton[AT]proteinmedia.com> - 0:2.2.2-0.fdr.1
- Updated to 2.2.2.
* Tue Aug 05 2003 Phillip Compton <pcompton[AT]proteinmedia.com> - 0:2.2.0-0.fdr.1
- Updated to 2.2.0.
* Wed Jul 30 2003 Phillip Compton <pcompton[AT]proteinmedia.com> - 0:2.1.0-0.fdr.1
- Fedorafication.
* Mon Mar 31 2003 Matthias Saou <matthias.saou@est.une.marmotte.net>
- Rebuilt for Red Hat Linux 9.
- Added _smp_mflags macro.
* Fri Oct 4 2002 Matthias Saou <matthias.saou@est.une.marmotte.net>
- Update to 2.1.0.
* Thu May 2 2002 Matthias Saou <matthias.saou@est.une.marmotte.net>
- Update to 2.0.0final.
* Tue Feb 27 2001 Matthias Saou <matthias.saou@est.une.marmotte.net>
- Update to 1.2.13.
* Fri Feb 16 2001 Matthias Saou <matthias.saou@est.une.marmotte.net>
- Update to 1.2.11.
* Thu Feb 15 2001 Matthias Saou <matthias.saou@est.une.marmotte.net>
- Update to 1.2.1.
* Wed Feb 7 2001 Matthias Saou <matthias.saou@est.une.marmotte.net>
- Initial RPM release.