netatalk-vl.spec 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337
  1. %define _sysconfdir /etc
  2. ################################################# BASIC PACKAGE INFORMATION
  3. Summary: AppleTalk and AppleShare/IP services for Linux
  4. Summary(ja): Linux 用 AppleTalk, AppleShare/IP サービス
  5. Name: netatalk
  6. Version: 2.0.5
  7. Release: 1%{_dist_release}
  8. License: GPL
  9. Group: System Environment/Daemons
  10. Source0: %{name}-%{version}.tar.bz2
  11. URL: http://netatalk.sourceforge.net/
  12. Obsoletes: netatalk-1.4b2+asun
  13. # taken from http://www003.upp.so-net.ne.jp/hat/netatalk/cjk.html
  14. #Patch10: netatalk-2.0.3-cjk-6.patch.gz
  15. # patch for default config file
  16. Patch11: netatalk-2.0.4-config-eucjp.patch
  17. Patch12: netatalk-2.0.4-config-utf8.patch
  18. # other patches
  19. #Patch13: netatalk-2.0.3-db43.patch
  20. #Patch14: netatalk-2.0.3-newerdb.patch
  21. Source10: afpd.service
  22. ############################################################## REQUIREMENTS
  23. PreReq: chkconfig, /sbin/ldconfig, grep, textutils
  24. Requires: cracklib, openssl, tcp_wrappers, pam, perl
  25. BuildRequires: openssl-devel, pam-devel, cups-devel, db4-devel, quota
  26. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  27. %description
  28. Netatalk is a freely-available, kernel level implementation of the
  29. AppleTalk Protocol Suite, originally for BSD-derived systems.
  30. A *NIX/*BSD system running netatalk is capable of serving many macintosh
  31. clients simultaneously as an AppleTalk router, AppleShare file server (AFP),
  32. *NIX/*BSD print server, and for accessing AppleTalk printers via Printer
  33. Access Protocol (PAP).
  34. %description -l ja
  35. このパッケージを使うことで, Linux 上で AppleTalk プロトコルを
  36. 扱うことができ, Macintosh と通信が可能になります.
  37. Linux 上で EtherTalk や AppleTalk over IP の Mac 向けファイルサーバを
  38. 稼働させることができるデーモンプログラムが収められています.
  39. %package devel
  40. Group: Development/Libraries
  41. Summary: Appletalk and Appleshare/IP services for Linux development files
  42. Summary(ja): Linux 用 AppleTalk と Appleshare/IP サービスの開発用ファイル
  43. %description devel
  44. Netatalk is a freely-available, kernel level implementation of the
  45. AppleTalk Protocol Suite, originally for BSD-derived systems.
  46. A *NIX/*BSD system running netatalk is capable of serving many macintosh
  47. clients simultaneously as an AppleTalk router, AppleShare file server (AFP),
  48. *NIX/*BSD print server, and for accessing AppleTalk printers via Printer
  49. Access Protocol (PAP).
  50. This package is required for developing appletalk-based applications.
  51. %prep
  52. %setup -q
  53. #%patch10 -p1 -b .cjk
  54. %if %{?_dist_release}=="vl4"
  55. %patch11 -p1 -b .cjk-config
  56. %else
  57. %patch12 -p1 -b .cjk-config
  58. %endif
  59. #%patch13 -p1 -b .db43
  60. #%patch14 -p1 -b .newerdb
  61. %build
  62. touch AUTHORS
  63. ln -s NEWS ChangeLog
  64. rm -f README.cjk4.cjk
  65. libtoolize --force
  66. aclocal -I macros
  67. automake --add-missing
  68. autoconf
  69. autoheader
  70. CFLAGS="${RPM_OPT_FLAGS} -fomit-frame-pointer -fsigned-char" \
  71. ./configure \
  72. --prefix=%{_prefix} \
  73. --libdir=%{_libdir} \
  74. --libexecdir=%{_libdir}/netatalk \
  75. --sysconfdir=%{_sysconfdir} \
  76. --mandir=%{_mandir} \
  77. --localstatedir=%{_var} \
  78. --enable-shared \
  79. --enable-afp3 \
  80. --with-cnid-dbd-backend \
  81. --with-cnid-cdb-backend \
  82. --with-cnid-default-backend=dbd \
  83. --enable-cups \
  84. --with-message-dir=%{_sysconfdir}/netatalk/msg \
  85. --with-uams-path=%{_libdir}/netatalk \
  86. --with-spooldir=%{_var}/spool/netatalk \
  87. --enable-redhat \
  88. --with-flock-locksi \
  89. --with-cracklib \
  90. --with-pam \
  91. --with-shadow \
  92. --with-tcp-wrappers \
  93. --with-ssl \
  94. --enable-pgp-uam
  95. make all
  96. %install
  97. ### INSTALL (USING "make install") ###
  98. rm -rf ${RPM_BUILD_ROOT}
  99. mkdir -p ${RPM_BUILD_ROOT}{%{_prefix},%{_sysconfdir}/netatalk/msg}
  100. make DESTDIR=$RPM_BUILD_ROOT install
  101. ## netatalk/at.h is now provided by glibc
  102. rm -f $RPM_BUILD_ROOT%{_prefix}/include/netatalk/at.h
  103. ## acleandir.rc requires /usr/bin/rc. move it.
  104. mv $RPM_BUILD_ROOT%{_bindir}/acleandir.rc .
  105. chmod 644 acleandir.rc
  106. ## for Bonjour (requires nss-mdns)
  107. install -d -m 755 ${RPM_BUILD_ROOT}%{_sysconfdir}/avahi/services
  108. install -m 644 %{SOURCE10} ${RPM_BUILD_ROOT}%{_sysconfdir}/avahi/services/
  109. %pre
  110. ### COPY OLD PREFERENCE FILES ###
  111. if [ -d /etc/atalk ] ; then
  112. mkdir -p /etc/netatalk/
  113. cp -a /etc/atalk /etc/netatalk/00_OLD_VERSION_PREFS
  114. fi
  115. exit 0
  116. %post
  117. ### RUN CHKCONFIG ###
  118. /sbin/chkconfig --add atalk
  119. /sbin/ldconfig
  120. if test -r /var/lock/atalkd ; then
  121. /etc/rc.d/init.d/atalk restart >&2
  122. fi
  123. %preun
  124. ### RUN CHKCONFIG ###
  125. /sbin/chkconfig --del atalk
  126. %triggerpostun -- netatalk <= 1.4b2+asun2.1.3-7vl6
  127. /sbin/chkconfig --add atalk
  128. %clean
  129. rm -rf ${RPM_BUILD_ROOT}
  130. %files
  131. %defattr(-,root,root)
  132. %doc CONTRIBUTORS COPYING COPYRIGHT
  133. %doc NEWS README* TODO
  134. %doc acleandir.rc doc/[A-L,N-Z]*
  135. %config(noreplace) /etc/netatalk/Apple*
  136. %config(noreplace) /etc/netatalk/*.conf
  137. %config /etc/pam.d/netatalk
  138. %config /etc/rc.d/init.d/atalk
  139. %dir %{_sysconfdir}/netatalk
  140. %dir %{_sysconfdir}/netatalk/msg
  141. %{_sysconfdir}/avahi/services/afpd.service
  142. %dir %{_var}/spool/netatalk
  143. %{_bindir}/*
  144. %{_sbindir}/*
  145. %{_libdir}/netatalk/*
  146. %exclude %{_libdir}/netatalk/*.a
  147. %exclude %{_libdir}/netatalk/*.la
  148. %{_mandir}/*/*
  149. %{_datadir}/netatalk/pagecount.ps
  150. %files devel
  151. %defattr(-,root,root)
  152. %{_libdir}/*.a
  153. %{_libdir}/*.la
  154. %{_libdir}/netatalk/*.a
  155. %{_libdir}/netatalk/*.la
  156. %dir %{_includedir}/atalk
  157. %{_includedir}/atalk/*.h
  158. %dir %{_includedir}/netatalk
  159. %{_includedir}/netatalk/*.h
  160. %{_datadir}/aclocal/netatalk.m4
  161. %changelog
  162. * Thu Feb 11 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2.0.5-1
  163. - new upstream release
  164. * Sun May 31 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2.0.4-1
  165. - new upstream release
  166. * Sun Mar 8 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2.0.3-7
  167. - rebuilt both for VineSeed / VinePlus-4.0
  168. * Fri Jul 25 2008 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 2.0.3-6
  169. - updated to the cjk-6 patch
  170. - Patch11/12 updated - VineSeed is now set with ja_JP.UTF-8 locale
  171. - Patch14 updated for db46
  172. * Sun Apr 20 2008 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 2.0.3-5
  173. - remove openslp dependency
  174. * Tue Apr 15 2008 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 2.0.3-4
  175. - add Patch11 for Vine's default setting (volcharset:EUC-JP, etc.)
  176. - TODO: remember to revise this fix after VineSeed changes default locale
  177. from ja_JP.eucJP (current) to ja_JP.UTF-8 (near future)
  178. * Tue Apr 15 2008 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 2.0.3-3
  179. - revise description (thanks HAT-san for pointing this out)
  180. - run libtoolize/aclocal/auto{make,conf,header} before doing configure
  181. (without this, uams_* modules won't get .so suffix)
  182. * Mon Apr 14 2008 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 2.0.3-2
  183. - Patch10 updated; dropped Patch11, Patch12, Source10 and Source11
  184. (Patch10 now includes all the modifications and more fixes)
  185. * Fri Apr 11 2008 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 2.0.3-1
  186. - add patch13 and patch14 for db-4.3.
  187. - move files in %%_libexecdir to %%libdir.
  188. * Sat Oct 21 2006 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 2.0.3-0vl1
  189. - updated to 2.0.3 release w/ cjk patches (see the above Patch section)
  190. * Tue Oct 19 2004 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 2.0-0vl4
  191. - security fix: added Patch10 (CAN-2004-0974)
  192. * Tue Oct 19 2004 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 2.0-0vl3
  193. - configure --with-cnid-default-backend=dbd (cdb seems to be unstable)
  194. * Wed Oct 13 2004 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 2.0-0vl1
  195. - updated to 2.0 with cjk patch
  196. (see the above Patch section for details)
  197. * Tue May 28 2002 Masaki Shinomiya <shino@pos.to> 1.5.3.1-0vl4
  198. - merge the patch repairing bug for System 7.5.5
  199. - (patch6 netatalk-1.5.3.oldsys.patch)
  200. - made by Akihiro Okamaoto <med012@art.osaka-med.ac.jp>
  201. - patch6 addupted no matter noeuc is, license GPL, URL in comment
  202. * Sat Apr 27 2002 Masaki Shinomiya <shino@pos.to> 1.5.3.1-0vl3
  203. - euc and kana patch originally by
  204. - Akihiro Okamoto <med012@art.osaka-med.ac.jp> against netatalk-1.4b2+asun2.1.3
  205. - applied to netatalk-1.5.2 by me
  206. - README.vine
  207. - omit VERSION from doc, omit perl from require
  208. * Wed Apr 24 2002 Masaki Shinomiya <shino@pos.to> 1.5.3.1-0vl2
  209. - this package is removed because the release number duplicated
  210. * Mon Apr 01 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.5.3.1-0vl2
  211. - move acleandir.rc to the doc directory, remove executable flag.
  212. * Sun Mar 31 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.5.3.1-0vl1
  213. - updated to new upstream release
  214. * Fri Mar 01 2002 Toru Sagami <sagami@vinelinux.org> 1.5.2-0vl3
  215. - added Japanese Summary for devel and corrected Group
  216. * Thu Feb 28 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.5.2-0vl2
  217. - Oops, check /var/lock/atalkd instead of /var/run/atd.pid
  218. (say atd.pid doesn't have anything to do with netatalk!!)
  219. * Tue Feb 26 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.5.2-0vl1
  220. - updated to new upstream release
  221. * Thu Feb 07 2002 Toru Sagami <sagami@vinelinux.org> 1.5.1.1-0vl3
  222. - install man pages into %%{_mandir}
  223. - PreReq: /sbin/chkconfig /sbin/ldconfig grep textutils
  224. - let pre script exit 0
  225. * Thu Feb 07 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.5.1.1-0vl2
  226. - spec cleanup
  227. - backup old prefs directory (/etc/atalk -> /etc/netatalk/00OLD_VERSION_PREFS)
  228. - restart atalk daemons in the %%post section
  229. * Sun Feb 3 2002 k hanai <hanai@koto.kpu-m.ac.jp>
  230. - v1.5.1.1-0vl1
  231. * Fri Jan 25 2002 k hanai <hanai@koto.kpu-m.ac.jp>
  232. - v1.5.0-0vl1
  233. - release 1.5.0 for sourceforge
  234. * Thu Apr 12 2001 rufus t firefly <rufus.t.firefly@linux-mandrake.com>
  235. - v1.5pre6-1rh7
  236. - pre-release 6 for sourceforge
  237. * Wed Mar 07 2001 rufus t firefly <rufus.t.firefly@linux-mandrake.com>
  238. - v1.5pre5-1
  239. - pre-release 5 for sourceforge
  240. * Fri Feb 23 2001 rufus t firefly <rufus.t.firefly@linux-mandrake.com>
  241. - v1.5pre5-0
  242. - pre-release 5 for sourceforge (prebuild)
  243. * Tue Feb 20 2001 rufus t firefly <rufus.t.firefly@linux-mandrake.com>
  244. - v1.5pre4-1
  245. - pre-release 4 for sourceforge
  246. - modified/split mandrake spec for redhat 7 build
  247. * Mon Dec 18 2000 rufus t firefly <rufus.t.firefly@linux-mandrake.com>
  248. - v1.5pre3-1mdk
  249. - pre-release 3 for sourceforge
  250. - moved away from 1.4.99 ...
  251. * Wed Nov 08 2000 rufus t firefly <rufus.t.firefly@linux-mandrake.com>
  252. - v1.4.99-0.20001108mdk
  253. - pre-release 2 for sourceforge
  254. * Wed Sep 27 2000 rufus t firefly <rufus.t.firefly@linux-mandrake.com>
  255. - v1.4.99-0.20000927mdk
  256. - pre-release 1 for sourceforge