courier-authlib-vl.spec 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296
  1. Summary: Courier authentication library.
  2. Summary(ja): Courier 認証ライブラリ
  3. Name: courier-authlib
  4. Version: 0.67.0
  5. Release: 1%{?_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. Patch0: courier-authlib-0.67.0_configure.patch
  21. Vendor: Project Vine
  22. Distribution: Vine Linux
  23. Packager: tomop, iwaim
  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. BuildRequires: openldap-devel
  53. %description ldap
  54. This package installs LDAP support for the Courier authentication library.
  55. Install this package in order to be able to authenticate using LDAP.
  56. %description -l ja ldap
  57. Courier 認証ライブラリの LDAP サポートパッケージです。LDAP を使った認証を
  58. 行なう場合にインストールしてください。
  59. %package pgsql
  60. Summary: PostgreSQL support for the Courier authentication library.
  61. Summary(ja): Courier 認証ライブラリの PostgreSQL サポート
  62. Group: System Environment/Daemons
  63. Requires: courier-authlib = %{version}-%{release}
  64. %if "%{?_dist_release}" == "vl6"
  65. BuildRequires: postgresql-devel
  66. %else
  67. BuildRequires: libpq-devel
  68. %endif
  69. %description pgsql
  70. This package installs PostgreSQL support for the Courier authentication
  71. library.
  72. Install this package in order to be able to authenticate using PostgreSQL.
  73. %description -l ja pgsql
  74. Courier 認証ライブラリの PostgreSQL サポートパッケージです。PostgreSQL を
  75. 使った認証を行なう場合にインストールしてください。
  76. %package mysql
  77. Summary: MySQL support for the Courier authentication library.
  78. Summary(ja): Courier 認証ライブラリの MySQL サポート
  79. Group: System Environment/Daemons
  80. Requires: courier-authlib = %{version}-%{release}
  81. %if "%{?_dist_release}" == "vl6"
  82. BuildRequires: MySQL-devel
  83. %else
  84. BuildRequires: libmysqlclient-devel
  85. %endif
  86. %description mysql
  87. This package installs MySQL support for the Courier authentication library.
  88. Install this package in order to be able to authenticate using MySQL.
  89. %description -l ja mysql
  90. Courier 認証ライブラリの MySQL サポートパッケージです。MySQL を使った認証を
  91. 行なう場合にインストールしてください。
  92. %prep
  93. %setup -q
  94. %patch0 -p1
  95. %build
  96. #%configure --without-authldap --without-authpgsql
  97. %configure
  98. make
  99. %install
  100. rm -rf %{buildroot}
  101. make install DESTDIR=%{buildroot}
  102. rm -f %{buildroot}/%{_libdir}/%{name}/*.a
  103. install -m 555 sysconftool %{buildroot}/%{_libexecdir}/%{name}
  104. install -m 555 authmigrate %{buildroot}/%{_libexecdir}/%{name}
  105. #./courierauthconfig --configfiles >configtmp
  106. #. configtmp
  107. ./authmksock %{buildroot}/%{_localstatedir}/spool/authdaemon/socket || exit 1
  108. touch %{buildroot}/%{_localstatedir}/spool/authdaemon/pid.lock || exit 1
  109. touch %{buildroot}/%{_localstatedir}/spool/authdaemon/pid || exit 1
  110. chmod 777 %{buildroot}/%{_localstatedir}/spool/authdaemon/socket || exit 1
  111. mkdir -p %{buildroot}/%{_initdir}
  112. install -m 555 courier-authlib.sysvinit %{buildroot}/%{_initdir}/courier-authlib
  113. %post
  114. %{_libexecdir}/%{name}/authmigrate >/dev/null
  115. %{_libexecdir}/%{name}/sysconftool %{_sysconfdir}/authlib/*.dist >/dev/null
  116. /sbin/chkconfig --del courier-authlib
  117. /sbin/chkconfig --add courier-authlib
  118. %preun
  119. if test -x %{_sbindir}/authdaemond
  120. then
  121. %{_sbindir}/authdaemond >/dev/null 2>&1 || /bin/true
  122. fi
  123. if test "$1" = "0"
  124. then
  125. /sbin/chkconfig --del courier-authlib
  126. fi
  127. %clean
  128. rm -rf %{buildroot}
  129. %files
  130. %defattr(-,root,root)
  131. %doc README README*html README.authmysql.myownquery README.ldap
  132. %doc NEWS COPYING* AUTHORS ChangeLog authldap.schema
  133. /etc/rc.d/init.d/*
  134. %ghost %attr(600,root,root) %{_localstatedir}/spool/authdaemon/pid.lock
  135. %ghost %attr(644,root,root) %{_localstatedir}/spool/authdaemon/pid
  136. %ghost %attr(-,root,root) %{_localstatedir}/spool/authdaemon/socket
  137. %{_mandir}/man1/*
  138. %{_mandir}/man8/*
  139. %defattr(-,daemon,daemon)
  140. %dir %{_sysconfdir}/authlib
  141. %{_sysconfdir}/authlib/authdaemonrc.dist
  142. %{_libexecdir}/%{name}
  143. %dir %{_libdir}/%{name}
  144. %{_libdir}/%{name}/libauthcustom*
  145. %{_libdir}/%{name}/libauthpam*
  146. %{_libdir}/%{name}/libauthpipe*
  147. %{_libdir}/%{name}/libauthuser*
  148. %{_libdir}/%{name}/libcourierauth*
  149. %dir %attr(750,daemon,daemon) %{_localstatedir}/spool/authdaemon
  150. %{_sbindir}/*
  151. %files devel
  152. %defattr(-,root,root)
  153. %{_bindir}/courierauthconfig
  154. %{_includedir}/*
  155. %{_mandir}/man3/*
  156. %doc authlib.html auth_*.html
  157. %files ldap
  158. %defattr(-,root,root)
  159. %{_sysconfdir}/authlib/authldaprc.dist
  160. %{_libdir}/%{name}/libauthldap*
  161. %files pgsql
  162. %defattr(-,root,root)
  163. %{_sysconfdir}/authlib/authpgsqlrc.dist
  164. %{_libdir}/%{name}/libauthpgsql*
  165. %files mysql
  166. %defattr(-,root,root)
  167. %{_sysconfdir}/authlib/authmysqlrc.dist
  168. %{_libdir}/%{name}/libauthmysql*
  169. %changelog
  170. * Mon Jan 30 2017 IWAI, Masaharu <iwaim.sub@gmail.com> 0.67.0-1
  171. - update to 0.67.0
  172. - add CXXFLAGS patch (Patch0)
  173. * Thu Jan 5 2017 IWAI, Masaharu <iwaim.sub@gmail.com> 0.66.4-4
  174. - fix typo for VineSeed
  175. * Thu Jan 5 2017 IWAI, Masaharu <iwaim.sub@gmail.com> 0.66.4-3
  176. - build for Vine Linux 6
  177. * Fri May 6 2016 IWAI, Masaharu <iwaim.sub@gmail.com> 0.66.4-2
  178. - build with openssl 1.0.2 for courier-authlib-mysql
  179. * Tue Dec 29 2015 IWAI, Masaharu <iwaim.sub@gmail.com> 0.66.4-1
  180. - update to 0.66.4
  181. - add BuildRequires: courier-unicode-devel > 1.2
  182. - update License tag
  183. - add Packager: iwaim
  184. * Sun Jul 6 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.66.1-2
  185. - rebuilt with current environment.
  186. - replaced BR:MySQL-devel to BR:libmysqlclient-devel.
  187. - replaced BR:postgresql-devel to BR:libpq-devel.
  188. - dropped R:postgresql-libs (detected by autoreq).
  189. - dropped R:postgresql.
  190. * Sat Jan 4 2014 IWAI, Masaharu <iwaim.sub@gmail.com> 0.66.1-1
  191. - update to 0.66.1
  192. - drop APOP patch (Patch0)
  193. - add BuildRequires: libtool-ltdl-devel
  194. * Sun Apr 03 2011 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.63.0-2
  195. - Rebuilt with new toolchain.
  196. * Sun Feb 07 2010 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.63.0-1
  197. - new upstream release.
  198. - replaced "BuildPreReq:" with "BuilldRequires:".
  199. * Sun Nov 22 2009 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.62.4-1
  200. - new upstream release.
  201. - removed "Requires: MySQL-shared".
  202. - updated APOP patch.
  203. * Thu May 21 2009 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.59.3-2
  204. - rebuilt with MySQL-shared-5.1.34.
  205. * Sat Jul 05 2008 Shu KONNO <owa@bg.wakwak.com> 0.59.3-1vl5
  206. - applied new versioning policy, and spec in utf-8
  207. - rebuilt with postgresql-8.3.3
  208. * Sun Jan 27 2008 Shu KONNO <owa@bg.wakwak.com> 0.59.3-0vl3
  209. - rebuilt
  210. * Tue Jan 08 2008 Shu KONNO <owa@bg.wakwak.com> 0.59.3-0vl2
  211. - rebuilt with postgresql-8.2.6
  212. * Thu Sep 20 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.59.3-0vl1
  213. - new upstream release
  214. - rebuilt with postgresql 8.2.5
  215. * Sat Nov 11 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.56-0vl4
  216. - rebuilt with MySQL 5.0.27
  217. - included /usr/lib/courier-authlib/libauthpipe.*
  218. * Sun Aug 27 2006 NAKAMURA Kenta <kenta@vinelinux.org> 0.56-0vl3
  219. - rebuilt with openldap-2.3.27-0vl1
  220. * Sun May 22 2005 UECHI Yasumasa <uechi@potaway.net> 0.56-0vl2
  221. - new upstream release
  222. * Mon Mar 28 2005 UECHI Yasumasa <uechi@potaway.net> 0.55-0vl4
  223. - add ldap, postgresql, mysql packages
  224. * Thu Mar 17 2005 UECHI Yasumasa <uechi@potaway.net> 0.55-0vl1
  225. - new upstream release
  226. * Thu Feb 17 2005 UECHI Yasumasa <uechi@potaway.net> 0.54-0vl1
  227. - new upstream release
  228. * Wed Jan 12 2005 UECHI Yasumasa <uechi@potaway.net> 0.53-0vl1
  229. - new upstream release
  230. * Wed Jan 12 2005 UECHI Yasumasa <uechi@potaway.net> 0.52-0vl1
  231. - simplify a spec for Vine
  232. - add apop patch
  233. * Sun Oct 3 2004 Mr. Sam <sam@email-scan.com> - 0.50-1
  234. - Initial build.