apg-vl.spec 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. Summary: Automated Password Generator for random password generation
  2. Name: apg
  3. Version: 2.3.0b
  4. Release: 2%{?_dist_release}
  5. License: BSD
  6. Group: System Environment/Base
  7. URL: http://www.adel.nursat.kz/%{name}/
  8. Source0: http://www.adel.nursat.kz/%{name}/download/%{name}-%{version}.tar.gz
  9. Source1: apg.xinetd
  10. Patch0: apg-2.3.0b-gen_rand_pass.patch
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
  12. Requires(post): grep
  13. Vendor: Project Vine
  14. Distribution: Vine Linux
  15. %description
  16. APG (Automated Password Generator) is the tool set for random password
  17. generation. This standalone version generates some random words of
  18. required type and prints them to standard output.
  19. %prep
  20. %setup -q
  21. %patch0 -p1 -b .gen_rand_pass
  22. %build
  23. # Build server
  24. make CFLAGS="$RPM_OPT_FLAGS" FLAGS="$RPM_OPT_FLAGS" %{?_smp_mflags} cliserv
  25. # Build standalone files
  26. make CFLAGS="$RPM_OPT_FLAGS" FLAGS="$RPM_OPT_FLAGS" %{?_smp_mflags} standalone
  27. %install
  28. [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
  29. install -D apg %{buildroot}%{_bindir}/apg
  30. install -D apgbfm %{buildroot}%{_bindir}/apgbfm
  31. install -D apgd %{buildroot}%{_sbindir}/apgd
  32. install -D -m 644 doc/man/apg.1 %{buildroot}%{_mandir}/man1/apg.1
  33. install -D -m 644 doc/man/apgbfm.1 %{buildroot}%{_mandir}/man1/apgbfm.1
  34. install -D -m 644 doc/man/apgd.8 %{buildroot}%{_mandir}/man8/apgd.8
  35. install -D -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/xinetd.d/apgd
  36. %clean
  37. [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
  38. %post
  39. # add a service for apg if it doesn't already exist
  40. if ! grep -q ^pwdgen /etc/services; then
  41. echo -e 'pwdgen\t\t129/tcp\t\t\t# PWDGEN service' >> /etc/services
  42. fi
  43. %files
  44. %defattr(-, root, root)
  45. %doc CHANGES COPYING README THANKS TODO doc/rfc*
  46. %{_bindir}/apg
  47. %{_bindir}/apgbfm
  48. %{_sbindir}/apgd
  49. %{_mandir}/man*/*
  50. %{_sysconfdir}/xinetd.d/apgd
  51. %changelog
  52. * Sat Jan 04 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.3.0b-2
  53. - rebuild with VineSeed environment
  54. * Tue Aug 16 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.3.0b-1
  55. - initial build for Vine Linux
  56. * Mon Mar 14 2011 Kevin Fenzi <kevin@tummy.com> - 2.3.0b-11
  57. - Add Requires(post) on grep. Fixes bug #684779
  58. * Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.0b-10
  59. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  60. * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.0b-9
  61. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  62. * Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.0b-8
  63. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  64. * Mon Aug 11 2008 Kevin Fenzi <kevin@tummy.com> - 2.3.0b-7
  65. - Fix permissions. Fixes #453621
  66. * Sun Feb 10 2008 Kevin Fenzi <kevin@tummy.com> - 2.3.0b-6
  67. - Rebuild for gcc43
  68. * Tue Aug 21 2007 Kevin Fenzi <kevin@tummy.com> - 2.3.0b-5
  69. - Fix incorrect license tag
  70. - Fix incorrect sources
  71. * Sun Aug 27 2006 Kevin Fenzi <kevin@tummy.com> - 2.3.0b-4
  72. - Rebuild for fc6
  73. * Thu Feb 16 2006 Kevin Fenzi <kevin@tummy.com> - 2.3.0b-3
  74. - Rebuild for fc5
  75. * Sat Jul 30 2005 Michael Schwendt <mschwendt[AT]users.sf.net> - 2.3.0b-2
  76. - Fix -y segfault (#164698).
  77. - Make with CFLAGS and FLAGS to build with RPM optflags to
  78. repair debuginfo package.
  79. * Fri Apr 22 2005 Oliver Falk <oliver@linux-kernel.at> - 2.3.0b-1_FC4
  80. - Add FC4 to the release tag, so it's newer than the FC3 package
  81. * Mon Apr 11 2005 Oliver Falk <oliver@linux-kernel.at> - 2.3.0b-1
  82. - Merge FC devel specfile with lkernAT specfile (=> update)
  83. - Has now support for xinetd
  84. * Thu Apr 7 2005 Michael Schwendt <mschwendt[AT]users.sf.net>
  85. - rebuilt
  86. * Wed Nov 10 2004 Matthias Saou <http://freshrpms.net/> 2.2.3-3
  87. - Bump release to provide Extras upgrade path.
  88. - Nicer mode fix for the sources.
  89. * Sun Sep 21 2003 Phillip Compton <pcompton[AT]proteinmedia.com> - 0:2.2.3-0.fdr.2
  90. - Fixed file permission on source tarball.
  91. - Brought spec more in line with current template.
  92. * Mon Sep 15 2003 Phillip Compton <pcompton[AT]proteinmedia.com> - 0:2.2.3-0.fdr.1
  93. - Updated to 2.2.3.
  94. * Mon Sep 01 2003 Phillip Compton <pcompton[AT]proteinmedia.com> - 0:2.2.2-0.fdr.1
  95. - Updated to 2.2.2.
  96. * Tue Aug 05 2003 Phillip Compton <pcompton[AT]proteinmedia.com> - 0:2.2.0-0.fdr.1
  97. - Updated to 2.2.0.
  98. * Wed Jul 30 2003 Phillip Compton <pcompton[AT]proteinmedia.com> - 0:2.1.0-0.fdr.1
  99. - Fedorafication.
  100. * Mon Mar 31 2003 Matthias Saou <matthias.saou@est.une.marmotte.net>
  101. - Rebuilt for Red Hat Linux 9.
  102. - Added _smp_mflags macro.
  103. * Fri Oct 4 2002 Matthias Saou <matthias.saou@est.une.marmotte.net>
  104. - Update to 2.1.0.
  105. * Thu May 2 2002 Matthias Saou <matthias.saou@est.une.marmotte.net>
  106. - Update to 2.0.0final.
  107. * Tue Feb 27 2001 Matthias Saou <matthias.saou@est.une.marmotte.net>
  108. - Update to 1.2.13.
  109. * Fri Feb 16 2001 Matthias Saou <matthias.saou@est.une.marmotte.net>
  110. - Update to 1.2.11.
  111. * Thu Feb 15 2001 Matthias Saou <matthias.saou@est.une.marmotte.net>
  112. - Update to 1.2.1.
  113. * Wed Feb 7 2001 Matthias Saou <matthias.saou@est.une.marmotte.net>
  114. - Initial RPM release.