courier-authlib-vl.spec 7.9 KB

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