courier-authlib-vl.spec 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248
  1. Summary: Courier authentication library.
  2. Summary(ja): Courier 認証ライブラリ
  3. Name: courier-authlib
  4. Version: 0.63.0
  5. Release: 1%{?_dist_release}
  6. License: GPL
  7. Group: System Environment/Daemons
  8. URL: http://www.courier-mta.org
  9. Source0: %{name}-%{version}.tar.bz2
  10. Patch: %{name}-apop.patch
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  12. BuildRequires: libtool
  13. BuildRequires: openldap-devel
  14. BuildRequires: MySQL-devel zlib-devel
  15. BuildRequires: postgresql-devel
  16. BuildRequires: gdbm-devel
  17. BuildRequires: pam-devel
  18. BuildRequires: expect
  19. Requires(post): /sbin/chkconfig
  20. Requires(preun): /sbin/chkconfig
  21. %description
  22. The Courier authentication library provides authentication services for
  23. other Courier applications.
  24. %description -l ja
  25. Courier 認証ライブラリは他の Courier アプリケーションへ認証サービスを
  26. 提供します。
  27. %package devel
  28. Summary: Development libraries for the Courier authentication library.
  29. Summary(ja): Courier 認証ライブラリの開発ライブラリ
  30. Group: Development/Libraries
  31. Requires: courier-authlib = %{version}-%{release}
  32. %description devel
  33. This package contains the development libraries and files needed to compile
  34. Courier packages that use this authentication library. Install this
  35. package in order to build the rest of the Courier packages. After they are
  36. built and installed this package can be removed. Files in this package
  37. are not needed at runtime.
  38. %description -l ja devel
  39. 認証ライブラリを必要とする Courier パッケージのコンパイルに必要な開発
  40. ライブラリです。他の Courier パッケージを作成するならインストールして
  41. ください。作成したパッケージのインストール後は不要ですので削除しても構
  42. いません。このパッケージに含まれるファイルは実行時には必要ありません。
  43. %package ldap
  44. Summary: LDAP support for the Courier authentication library.
  45. Summary(ja): Courier 認証ライブラリの LDAP サポート
  46. Group: System Environment/Daemons
  47. Requires: courier-authlib = %{version}-%{release}
  48. Requires: openldap
  49. %description ldap
  50. This package installs LDAP support for the Courier authentication library.
  51. Install this package in order to be able to authenticate using LDAP.
  52. %description -l ja ldap
  53. Courier 認証ライブラリの LDAP サポートパッケージです。LDAP を使った認証を
  54. 行なう場合にインストールしてください。
  55. %package pgsql
  56. Summary: PostgreSQL support for the Courier authentication library.
  57. Summary(ja): Courier 認証ライブラリの PostgreSQL サポート
  58. Group: System Environment/Daemons
  59. Requires: courier-authlib = %{version}-%{release}
  60. Requires: postgresql-libs, postgresql
  61. %description pgsql
  62. This package installs PostgreSQL support for the Courier authentication
  63. library.
  64. Install this package in order to be able to authenticate using PostgreSQL.
  65. %description -l ja pgsql
  66. Courier 認証ライブラリの PostgreSQL サポートパッケージです。PostgreSQL を
  67. 使った認証を行なう場合にインストールしてください。
  68. %package mysql
  69. Summary: MySQL support for the Courier authentication library.
  70. Summary(ja): Courier 認証ライブラリの MySQL サポート
  71. Group: System Environment/Daemons
  72. Requires: courier-authlib = %{version}-%{release}
  73. %description mysql
  74. This package installs MySQL support for the Courier authentication library.
  75. Install this package in order to be able to authenticate using MySQL.
  76. %description -l ja mysql
  77. Courier 認証ライブラリの MySQL サポートパッケージです。MySQL を使った認証を
  78. 行なう場合にインストールしてください。
  79. %prep
  80. %setup -q
  81. %patch -p1 -b .orig
  82. %build
  83. #%configure --without-authldap --without-authpgsql
  84. %configure
  85. make
  86. %install
  87. rm -rf %{buildroot}
  88. make install DESTDIR=%{buildroot}
  89. rm -f %{buildroot}/%{_libdir}/%{name}/*.a
  90. install -m 555 sysconftool %{buildroot}/%{_libexecdir}/%{name}
  91. install -m 555 authmigrate %{buildroot}/%{_libexecdir}/%{name}
  92. #./courierauthconfig --configfiles >configtmp
  93. #. configtmp
  94. ./authmksock %{buildroot}/%{_localstatedir}/spool/authdaemon/socket || exit 1
  95. touch %{buildroot}/%{_localstatedir}/spool/authdaemon/pid.lock || exit 1
  96. touch %{buildroot}/%{_localstatedir}/spool/authdaemon/pid || exit 1
  97. chmod 777 %{buildroot}/%{_localstatedir}/spool/authdaemon/socket || exit 1
  98. mkdir -p %{buildroot}/%{_initdir}
  99. install -m 555 courier-authlib.sysvinit %{buildroot}/%{_initdir}/courier-authlib
  100. %post
  101. %{_libexecdir}/%{name}/authmigrate >/dev/null
  102. %{_libexecdir}/%{name}/sysconftool %{_sysconfdir}/authlib/*.dist >/dev/null
  103. /sbin/chkconfig --del courier-authlib
  104. /sbin/chkconfig --add courier-authlib
  105. %preun
  106. if test -x %{_sbindir}/authdaemond
  107. then
  108. %{_sbindir}/authdaemond >/dev/null 2>&1 || /bin/true
  109. fi
  110. if test "$1" = "0"
  111. then
  112. /sbin/chkconfig --del courier-authlib
  113. fi
  114. %clean
  115. rm -rf %{buildroot}
  116. %files
  117. %defattr(-,root,root)
  118. %doc README README*html README.authmysql.myownquery README.ldap
  119. %doc NEWS COPYING* AUTHORS ChangeLog authldap.schema
  120. %doc README.apop
  121. /etc/rc.d/init.d/*
  122. %ghost %attr(600,root,root) %{_localstatedir}/spool/authdaemon/pid.lock
  123. %ghost %attr(644,root,root) %{_localstatedir}/spool/authdaemon/pid
  124. %ghost %attr(-,root,root) %{_localstatedir}/spool/authdaemon/socket
  125. %{_mandir}/man1/*
  126. %{_mandir}/man8/*
  127. %defattr(-,daemon,daemon)
  128. %dir %{_sysconfdir}/authlib
  129. %{_sysconfdir}/authlib/authdaemonrc.dist
  130. %{_libexecdir}/%{name}
  131. %dir %{_libdir}/%{name}
  132. %{_libdir}/%{name}/libauthcustom*
  133. %{_libdir}/%{name}/libauthpam*
  134. %{_libdir}/%{name}/libauthpipe*
  135. %{_libdir}/%{name}/libauthuser*
  136. %{_libdir}/%{name}/libcourierauth*
  137. %dir %attr(750,daemon,daemon) %{_localstatedir}/spool/authdaemon
  138. %{_sbindir}/*
  139. %files devel
  140. %defattr(-,root,root)
  141. %{_bindir}/courierauthconfig
  142. %{_includedir}/*
  143. %{_mandir}/man3/*
  144. %doc authlib.html auth_*.html
  145. %files ldap
  146. %defattr(-,root,root)
  147. %{_sysconfdir}/authlib/authldaprc.dist
  148. %{_libdir}/%{name}/libauthldap*
  149. %files pgsql
  150. %defattr(-,root,root)
  151. %{_sysconfdir}/authlib/authpgsqlrc.dist
  152. %{_libdir}/%{name}/libauthpgsql*
  153. %files mysql
  154. %defattr(-,root,root)
  155. %{_sysconfdir}/authlib/authmysqlrc.dist
  156. %{_libdir}/%{name}/libauthmysql*
  157. %changelog
  158. * Sun Feb 07 2010 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.63.0-1
  159. - new upstream release.
  160. - replaced "BuildPreReq:" with "BuilldRequires:".
  161. * Sun Nov 22 2009 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.62.4-1
  162. - new upstream release.
  163. - removed "Requires: MySQL-shared".
  164. - updated APOP patch.
  165. * Thu May 21 2009 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.59.3-2
  166. - rebuilt with MySQL-shared-5.1.34.
  167. * Sat Jul 05 2008 Shu KONNO <owa@bg.wakwak.com> 0.59.3-1vl5
  168. - applied new versioning policy, and spec in utf-8
  169. - rebuilt with postgresql-8.3.3
  170. * Sun Jan 27 2008 Shu KONNO <owa@bg.wakwak.com> 0.59.3-0vl3
  171. - rebuilt
  172. * Tue Jan 08 2008 Shu KONNO <owa@bg.wakwak.com> 0.59.3-0vl2
  173. - rebuilt with postgresql-8.2.6
  174. * Thu Sep 20 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.59.3-0vl1
  175. - new upstream release
  176. - rebuilt with postgresql 8.2.5
  177. * Sat Nov 11 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.56-0vl4
  178. - rebuilt with MySQL 5.0.27
  179. - included /usr/lib/courier-authlib/libauthpipe.*
  180. * Sun Aug 27 2006 NAKAMURA Kenta <kenta@vinelinux.org> 0.56-0vl3
  181. - rebuilt with openldap-2.3.27-0vl1
  182. * Sun May 22 2005 UECHI Yasumasa <uechi@potaway.net> 0.56-0vl2
  183. - new upstream release
  184. * Mon Mar 28 2005 UECHI Yasumasa <uechi@potaway.net> 0.55-0vl4
  185. - add ldap, postgresql, mysql packages
  186. * Thu Mar 17 2005 UECHI Yasumasa <uechi@potaway.net> 0.55-0vl1
  187. - new upstream release
  188. * Thu Feb 17 2005 UECHI Yasumasa <uechi@potaway.net> 0.54-0vl1
  189. - new upstream release
  190. * Wed Jan 12 2005 UECHI Yasumasa <uechi@potaway.net> 0.53-0vl1
  191. - new upstream release
  192. * Wed Jan 12 2005 UECHI Yasumasa <uechi@potaway.net> 0.52-0vl1
  193. - simplify a spec for Vine
  194. - add apop patch
  195. * Sun Oct 3 2004 Mr. Sam <sam@email-scan.com> - 0.50-1
  196. - Initial build.