pidentd-vl.spec 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  1. %define _noVersionedDependencies 1
  2. %define initdir /etc/rc.d/init.d
  3. Summary: An implementation of the RFC1413 identification server.
  4. Name: pidentd
  5. Version: 3.0.19
  6. Release: 1%{?_dist_release}
  7. License: Public domain
  8. Group: System Environment/Daemons
  9. Source: ftp://ftp.lysator.liu.se/pub/unix/ident/servers/pidentd-%{version}.tar.gz
  10. Patch0: pidentd-3.0.10-dummy.patch
  11. Patch1: pidentd-3.0.12-nospace.patch
  12. Source1: identd.conf
  13. Source2: identd.init
  14. Source3: sysconfig.identd
  15. Provides: identd = %{version}
  16. PreReq: chkconfig, fileutils, sed, initscripts >= 5.54, util-linux >= 2.11a-4
  17. BuildRequires: openssl-devel glibc-devel
  18. BuildRoot: %{_tmppath}/%{name}-root
  19. Distribution: Vine Linux
  20. Vendor: Project Vine
  21. %description
  22. The pidentd package contains identd, which implements the RFC1413
  23. identification server. Identd looks up specific TCP/IP connections
  24. and returns either the user name or other information about the
  25. process that owns the connection.
  26. Install pidentd if you need to look up information about specific
  27. TCP/IP connections.
  28. %prep
  29. %setup -q
  30. #%patch0 -p1 -b .dummy
  31. %patch1 -p1 -b .nospace
  32. %build
  33. %configure --with-threads=yes --with-des=yes
  34. make
  35. make -C src # itest idecrypt ikeygen
  36. %install
  37. rm -rf $RPM_BUILD_ROOT
  38. mkdir -p ${RPM_BUILD_ROOT}%{_sbindir}
  39. mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man8
  40. %makeinstall
  41. pushd $RPM_BUILD_ROOT
  42. ln -s identd .%{_sbindir}/in.identd # XXX /etc/inetd.conf may need this
  43. ln -s identd.8 .%{_mandir}/man8/in.identd.8
  44. mkdir -p ./%{_sysconfdir} ./%{initdir}
  45. install -m 0644 %SOURCE1 .%{_sysconfdir}/identd.conf
  46. install -m 0755 %SOURCE2 .%{initdir}/identd
  47. popd
  48. mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/sysconfig
  49. install -m 644 %SOURCE3 $RPM_BUILD_ROOT/%{_sysconfdir}/sysconfig/identd
  50. touch $RPM_BUILD_ROOT/%{_sysconfdir}/identd.key
  51. # remove unpackaged files from the buildroot
  52. rm -f $RPM_BUILD_ROOT%{_sbindir}/ibench
  53. %clean
  54. rm -rf $RPM_BUILD_ROOT
  55. %pre
  56. groupadd -g 98 ident >/dev/null 2>&1 || :
  57. useradd -M -n -g ident -o -r -d / -s /sbin/nologin \
  58. -c "pident user" -u 98 ident >/dev/null 2>&1 || :
  59. %post
  60. /sbin/chkconfig --add identd
  61. # XXX forcibly remove pidentd from inetd's control
  62. cd /etc &&
  63. [ -f inetd.conf ] &&
  64. sed -e 's/^[ ]*auth[ ]/#&/' < inetd.conf > inetd.conf.xxx &&
  65. cat inetd.conf.xxx > inetd.conf
  66. rm -f /etc/inetd.conf.xxx
  67. %preun
  68. if [ $1 = 0 ]; then
  69. /sbin/service identd stop > /dev/null 2>&1
  70. /sbin/chkconfig --del identd
  71. fi
  72. %postun
  73. if [ "$1" -ge "1" ]; then
  74. /sbin/service identd condrestart > /dev/null 2>&1
  75. fi
  76. %files
  77. %defattr(-,root,root)
  78. %doc BUGS ChangeLog FAQ INSTALL README Y2K doc/rfc1413.txt KNOWNBUGS
  79. %{_sbindir}/idecrypt
  80. %{_sbindir}/ikeygen
  81. %{_sbindir}/identd
  82. %{_sbindir}/in.identd
  83. %attr(0644,root,root) %config %{_sysconfdir}/identd.conf
  84. %attr(0644,root,root) %config(noreplace) %{_sysconfdir}/sysconfig/identd
  85. %config(missingok,noreplace) %ghost %attr(0600,root,root) %{_sysconfdir}/identd.key
  86. %attr(0755,root,root) %config %{initdir}/identd
  87. %{_mandir}/man8/*
  88. %changelog
  89. * Thu Oct 09 2008 Shu KONNO <owa@bg.wakwak.com> 3.0.19-1vl5
  90. - new upstream release
  91. - dropt pidentd-3.0.10-dummy.patch
  92. - applied new versioning policy
  93. * Mon Mar 29 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 3.0.16-0vl2
  94. - resync fedora 3.0.16-2
  95. * Thu Mar 4 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 3.0.16-0vl1
  96. - add PreReq: chkconfig, sed
  97. - new upstream release
  98. * Wed Feb 20 2002 Daisuke SUZUKI <daisuke@linux.or.jp> 3.0.10-5vl6
  99. - rebuild to remove rpmlib dependancy
  100. * Tue May 29 2001 <sagami@vinelinux.org>
  101. - 3.0.10-5vl5: use better macros due to building difficulty
  102. * Thu Nov 09 2000 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
  103. - 3.0.10-5vl4
  104. - added _noVersionedDependencies flag
  105. * Mon Nov 6 2000 Kazuhisa TAKEI <takei@vinelinux.org> 3.0.10-5vl2
  106. - rebuild on rpm 3.0.6
  107. * Wed Jul 12 2000 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
  108. - 3.0.10-5vl1
  109. - added --without-des argument for %configure line
  110. * Tue Feb 22 2000 Jeff Johnson <jbj@redhat.com>
  111. - forcibly remove pidentd from inetd's control in %post.
  112. * Mon Feb 21 2000 Bill Nottingham <notting@redhat.com>
  113. - add patch to drop privs correctly
  114. * Mon Feb 7 2000 Jeff Johnson <jbj@redhat.com>
  115. - compress man pages.
  116. * Mon Jan 31 2000 Cristian Gafton <gafton@redhat.com>
  117. - rebuild to fix depenencies
  118. * Wed Jan 19 2000 Jeff Johnson <jbj@redhat.com>
  119. - update to 3.0.10.
  120. * Wed Jan 12 2000 Jeff Johnson <jbj@redhat.com>
  121. - update to 3.0.8.
  122. - reduce no. of kernel threads to 2 in default configuration.
  123. * Tue Jan 4 2000 Bill Nottingham <notting@redhat.com>
  124. - return of the init script
  125. * Wed Sep 29 1999 Bill Nottingham <notting@redhat.com>
  126. - fix unaligned traps on Alpha
  127. - oops, take init script out
  128. * Mon Sep 13 1999 Bill Nottingham <notting@redhat.com>
  129. - strip binaries
  130. * Sat Sep 4 1999 Jeff Johnson <jbj@redhat.com>
  131. - start identd through inetd.conf.
  132. * Tue Aug 24 1999 Bill Nottingham <notting@redhat.com>
  133. - start after NFS mounts (for NFS /usr)
  134. * Thu Aug 19 1999 Jeff Johnson <jbj@redhat.com>
  135. - start identd with same options as were used when started by inetd.
  136. * Wed Aug 18 1999 Jeff Johnson <jbj@redhat.com>
  137. - update to 3.0.7.
  138. * Mon Aug 16 1999 Bill Nottingham <notting@redhat.com>
  139. - initscript munging
  140. * Fri Aug 6 1999 Jeff Johnson <jbj@redhat.com>
  141. - update to 3.0.5.
  142. * Tue Feb 2 1999 Jeff Johnson <jbj@redhat.com>
  143. - update to 3.0.2.
  144. - use %configure
  145. * Thu Nov 12 1998 Jeff Johnson <jbj@redhat.com>
  146. - update to 2.8.4.
  147. * Mon Aug 17 1998 Jeff Johnson <jbj@redhat.com>
  148. - build root
  149. * Mon Apr 27 1998 Prospector System <bugs@redhat.com>
  150. - translations modified for de, fr, tr
  151. * Thu Oct 21 1997 Cristian Gafton <gafton@redhat.com>
  152. - updated to 2.7
  153. * Fri Jul 18 1997 Erik Troan <ewt@redhat.com>
  154. - built against glibc