courier-authlib-vl.spec 8.8 KB

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