netatalk-vl.spec 10 KB

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