netatalk-vl.spec 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367
  1. %define _sysconfdir /etc
  2. ################################################# BASIC PACKAGE INFORMATION
  3. Summary: AFP fileserver for Macintosh clients
  4. Summary(ja): Macintoshクライアント向けのAFPファイルサーバー
  5. Name: netatalk
  6. Version: 3.1.12
  7. Release: 1%{_dist_release}
  8. License: GPLv2+
  9. Group: System Environment/Daemons
  10. URL: http://netatalk.sourceforge.net/
  11. Source0: %{name}-%{version}.tar.bz2
  12. Source1: netatalk.pam-system-auth
  13. Patch0: netatalk-3.0.1-basedir.patch
  14. ############################################################## REQUIREMENTS
  15. Requires(post): /sbin/chkconfig /sbin/ldconfig
  16. Requires(preun): /sbin/chkconfig
  17. Requires(preun): /sbin/service
  18. Requires(postun): /sbin/service /sbin/ldconfig
  19. BuildRequires: cracklib openssl-devel pam quota libtool automake
  20. BuildRequires: autoconf libdb-devel pam-devel tcp_wrappers libgcrypt-devel
  21. BuildRequires: avahi-devel libacl-devel openldap-devel
  22. BuildRequires: dbus-devel dbus-glib-devel glib2-devel systemtap-sdt-devel
  23. BuildRequires: libevent-devel libtdb-devel libmysqlclient-devel
  24. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  25. Vendor: Project Vine
  26. Distribution: Vine Linux
  27. Packager: shaolin, tomop
  28. %description
  29. Netatalk is a freely-available Open Source AFP fileserver. A *NIX/*BSD
  30. system running Netatalk is capable of serving many Macintosh clients
  31. simultaneously as an AppleShare file server (AFP).
  32. %description -l ja
  33.  Netatalkは自由に利用可能なオープンソースAFPファイルサーバーです。
  34. Netatalkを実行している*NIX/*BSDシステムでは、多くのMacintoshクライ
  35. アントに対してAppleShareファイルサーバー(AFP)としてサービスを提供
  36. 可能です。
  37. %package devel
  38. Group: Development/Libraries
  39. Summary: Headers for Netatalk development
  40. Summary(ja): Netatalk開発用ヘッダファイル
  41. %description devel
  42. This package contains the header files for Netatalk.
  43. %prep
  44. %setup -q
  45. %patch0 -p1 -b .basedir
  46. ln -s ./NEWS ChangeLog
  47. %build
  48. export CFLAGS="$RPM_OPT_FLAGS"
  49. %ifnarch x86_64
  50. # XXX : enable for x86_64 when glibc bug 149284 is fixed!
  51. export CFLAGS="$CFLAGS -fPIE"
  52. export LDFLAGS="-pie -Wl,-z,relro,-z,now,-z,noexecstack"
  53. #"export LDFLAGS="-pie -Wl,-z,relro,-z,now,-z,noexecstack,-z,nodlopen"
  54. #Also in case of i686, nodlopen causes the problem.
  55. %endif
  56. %configure \
  57. --with-pkgconfdir=%{_sysconfdir}/netatalk \
  58. --with-cracklib \
  59. --with-pam \
  60. --with-shadow \
  61. --with-uams-path=%{_libdir}/netatalk \
  62. --enable-shared \
  63. --enable-krbV-uam \
  64. --enable-overwrite \
  65. --with-gnu-ld \
  66. --with-init-style=redhat-sysv \
  67. --with-libgcrypt \
  68. --without-libevent \
  69. --without-tdb \
  70. --with-pam-confdir=%{_sysconfdir}/pam.d \
  71. --with-dbus-sysconf-dir=%{_sysconfdir}/dbus-1/system.d
  72. make %{?_smp_mflags} all
  73. %install
  74. ### INSTALL (USING "make install") ###
  75. rm -rf ${RPM_BUILD_ROOT}
  76. make DESTDIR=$RPM_BUILD_ROOT mandir=%{_mandir} install
  77. # install example config files in doc
  78. mkdir config.example
  79. cp -fp config/afp.conf config.example
  80. cp -fp config/extmap.conf config.example
  81. mkdir -p $RPM_BUILD_ROOT/usr/share/netatalk
  82. cp -fp %{SOURCE1} config.example
  83. # XXX bad hack until this file is updated in glibc-headers:
  84. rm -f $RPM_BUILD_ROOT/usr/include/netatalk/at.h
  85. # Clean up .a and .la files
  86. find $RPM_BUILD_ROOT -name \*.a -exec rm {} \;
  87. find $RPM_BUILD_ROOT -name \*.la -exec rm {} \;
  88. %post
  89. if [ -e /etc/netatalk/afp_signature.conf -a ! -e /var/netatalk/afp_signature.conf ]; then
  90. mv -f /etc/netatalk/afp_signature.conf /var/netatalk/
  91. fi
  92. if [ -e /etc/netatalk/afp_voluuid.conf -a ! -e /var/netatalk/afp_voluuid.conf ]; then
  93. mv -f /etc/netatalk/afp_voluuid.conf /var/netatalk/
  94. fi
  95. /sbin/chkconfig --add netatalk
  96. /sbin/ldconfig
  97. %preun
  98. if [ "$1" = "0" ] ; then
  99. # check for existence due to renaming initscript
  100. if [ -x %{_initrddir}/netatalk ] ; then
  101. /sbin/service netatalk stop > /dev/null 2>&1
  102. /sbin/chkconfig --del netatalk
  103. fi
  104. fi
  105. %postun
  106. if [ "$1" -ge "1" ]; then
  107. # Package upgrade, not uninstall
  108. if [ -e /etc/netatalk/afp_signature.conf -a ! -e /var/netatalk/afp_signature.conf ]; then
  109. mv -f /etc/netatalk/afp_signature.conf /var/netatalk/
  110. fi
  111. if [ -e /etc/netatalk/afp_voluuid.conf -a ! -e /var/netatalk/afp_voluuid.conf ]; then
  112. mv -f /etc/netatalk/afp_voluuid.conf /var/netatalk/
  113. fi
  114. /sbin/service netatalk condrestart > /dev/null 2>&1 || :
  115. fi
  116. /sbin/ldconfig
  117. %clean
  118. rm -rf ${RPM_BUILD_ROOT}
  119. %files
  120. %defattr(-,root,root)
  121. %license COPYING COPYRIGHT
  122. %doc NEWS
  123. %doc config.example
  124. %attr(755,root,root) %{_initrddir}/netatalk
  125. %dir %{_sysconfdir}/netatalk
  126. %config(noreplace) %{_sysconfdir}/netatalk/afp.conf
  127. %config(noreplace) %{_sysconfdir}/netatalk/extmap.conf
  128. %config(noreplace) %{_sysconfdir}/netatalk/dbus-session.conf
  129. %config(noreplace) %{_sysconfdir}/pam.d/netatalk
  130. %config(noreplace) %{_sysconfdir}/dbus-1/system.d/netatalk-dbus.conf
  131. %{_sbindir}/*
  132. %{_bindir}/*
  133. %exclude %{_bindir}/netatalk-config
  134. %{_mandir}/man*/*
  135. %exclude %{_mandir}/man*/netatalk-config*
  136. %{_datadir}/netatalk
  137. %{_libdir}/*.so
  138. %{_libdir}/*.so.*
  139. %dir %{_libdir}/netatalk
  140. %{_libdir}/netatalk/*.so
  141. %{_localstatedir}/netatalk
  142. %files devel
  143. %defattr(-,root,root)
  144. %license COPYING COPYRIGHT
  145. %dir %{_includedir}/atalk
  146. %attr(0644,root,root) %{_includedir}/atalk/*
  147. %{_datadir}/aclocal/netatalk.m4
  148. %{_bindir}/netatalk-config
  149. %{_mandir}/man*/netatalk-config.1*
  150. %changelog
  151. * Mon Jan 07 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 3.1.12-1
  152. - new upstream release.
  153. * Sun Nov 04 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 3.1.11-2
  154. - rebuilt with openssl-1.1.1 and libevent-2.1.8.
  155. * Thu Mar 16 2017 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 3.1.11-1
  156. - new upstream release.
  157. * Wed Jul 20 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 3.1.9-1
  158. - new upstream release.
  159. - dropped Patch1: fixed in upstream.
  160. * Wed Dec 30 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 3.1.8-2
  161. - added Patch1.
  162. * Wed Dec 30 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 3.1.8-1
  163. - new upstream release.
  164. * Tue Jun 16 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 3.1.7-1
  165. - new upstream release.
  166. * Mon Dec 1 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 2.2.2-2
  167. - rebuilt with libgcrypt 1.6.0 and libdb 5.3.28
  168. * Thu Apr 26 2012 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 2.2.2-1
  169. - new upstream release.
  170. - added build option 'force_uidgid'.
  171. * Sun Sep 18 2011 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2.2.1-1
  172. - new upstream release
  173. - fix configure options; add missing BRs
  174. * Thu Jul 28 2011 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2.2.0-3
  175. - now back from the upstream confusion (and one more or two...)
  176. new upstream release 2.2.0 at the official site
  177. * Mon Jul 25 2011 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2.2.0-2
  178. - fix Patch10 to follow HAT-san's strong and confident objection
  179. (no need to set ATALK_NAME explicitly in netatalk.conf)
  180. * Sat Jul 23 2011 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2.2.0-1
  181. - new upstream release (at http://www003.upp.so-net.ne.jp/hat/netatalk/)
  182. - add Source100 to add one missing header file in the tarball
  183. - revise Patch10
  184. - explicitly specify --disable-ddp for the first time
  185. * Wed May 04 2011 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2.1.5-1
  186. - new upstream release
  187. * Sun Feb 06 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 2.1.3-3
  188. - rebuild with openssl-1.0.0c
  189. * Sun Jul 25 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2.1.3-2
  190. - fix Patch10 & update description - upon HAT-san's suggestions
  191. * Sun Jul 25 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2.1.3-1
  192. - new upstream release
  193. - update Vine patch
  194. * Thu Feb 11 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2.0.5-1
  195. - new upstream release
  196. * Sun May 31 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2.0.4-1
  197. - new upstream release
  198. * Sun Mar 8 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2.0.3-7
  199. - rebuilt both for VineSeed / VinePlus-4.0
  200. * Fri Jul 25 2008 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 2.0.3-6
  201. - updated to the cjk-6 patch
  202. - Patch11/12 updated - VineSeed is now set with ja_JP.UTF-8 locale
  203. - Patch14 updated for db46
  204. * Sun Apr 20 2008 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 2.0.3-5
  205. - remove openslp dependency
  206. * Tue Apr 15 2008 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 2.0.3-4
  207. - add Patch11 for Vine's default setting (volcharset:EUC-JP, etc.)
  208. - TODO: remember to revise this fix after VineSeed changes default locale
  209. from ja_JP.eucJP (current) to ja_JP.UTF-8 (near future)
  210. * Tue Apr 15 2008 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 2.0.3-3
  211. - revise description (thanks HAT-san for pointing this out)
  212. - run libtoolize/aclocal/auto{make,conf,header} before doing configure
  213. (without this, uams_* modules won't get .so suffix)
  214. * Mon Apr 14 2008 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 2.0.3-2
  215. - Patch10 updated; dropped Patch11, Patch12, Source10 and Source11
  216. (Patch10 now includes all the modifications and more fixes)
  217. * Fri Apr 11 2008 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 2.0.3-1
  218. - add patch13 and patch14 for db-4.3.
  219. - move files in %%_libexecdir to %%libdir.
  220. * Sat Oct 21 2006 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 2.0.3-0vl1
  221. - updated to 2.0.3 release w/ cjk patches (see the above Patch section)
  222. * Tue Oct 19 2004 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 2.0-0vl4
  223. - security fix: added Patch10 (CAN-2004-0974)
  224. * Tue Oct 19 2004 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 2.0-0vl3
  225. - configure --with-cnid-default-backend=dbd (cdb seems to be unstable)
  226. * Wed Oct 13 2004 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 2.0-0vl1
  227. - updated to 2.0 with cjk patch
  228. (see the above Patch section for details)
  229. * Tue May 28 2002 Masaki Shinomiya <shino@pos.to> 1.5.3.1-0vl4
  230. - merge the patch repairing bug for System 7.5.5
  231. - (patch6 netatalk-1.5.3.oldsys.patch)
  232. - made by Akihiro Okamaoto <med012@art.osaka-med.ac.jp>
  233. - patch6 addupted no matter noeuc is, license GPL, URL in comment
  234. * Sat Apr 27 2002 Masaki Shinomiya <shino@pos.to> 1.5.3.1-0vl3
  235. - euc and kana patch originally by
  236. - Akihiro Okamoto <med012@art.osaka-med.ac.jp> against netatalk-1.4b2+asun2.1.3
  237. - applied to netatalk-1.5.2 by me
  238. - README.vine
  239. - omit VERSION from doc, omit perl from require
  240. * Wed Apr 24 2002 Masaki Shinomiya <shino@pos.to> 1.5.3.1-0vl2
  241. - this package is removed because the release number duplicated
  242. * Mon Apr 01 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.5.3.1-0vl2
  243. - move acleandir.rc to the doc directory, remove executable flag.
  244. * Sun Mar 31 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.5.3.1-0vl1
  245. - updated to new upstream release
  246. * Fri Mar 01 2002 Toru Sagami <sagami@vinelinux.org> 1.5.2-0vl3
  247. - added Japanese Summary for devel and corrected Group
  248. * Thu Feb 28 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.5.2-0vl2
  249. - Oops, check /var/lock/atalkd instead of /var/run/atd.pid
  250. (say atd.pid doesn't have anything to do with netatalk!!)
  251. * Tue Feb 26 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.5.2-0vl1
  252. - updated to new upstream release
  253. * Thu Feb 07 2002 Toru Sagami <sagami@vinelinux.org> 1.5.1.1-0vl3
  254. - install man pages into %%{_mandir}
  255. - PreReq: /sbin/chkconfig /sbin/ldconfig grep textutils
  256. - let pre script exit 0
  257. * Thu Feb 07 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.5.1.1-0vl2
  258. - spec cleanup
  259. - backup old prefs directory (/etc/atalk -> /etc/netatalk/00OLD_VERSION_PREFS)
  260. - restart atalk daemons in the %%post section
  261. * Sun Feb 3 2002 k hanai <hanai@koto.kpu-m.ac.jp>
  262. - v1.5.1.1-0vl1
  263. * Fri Jan 25 2002 k hanai <hanai@koto.kpu-m.ac.jp>
  264. - v1.5.0-0vl1
  265. - release 1.5.0 for sourceforge
  266. * Thu Apr 12 2001 rufus t firefly <rufus.t.firefly@linux-mandrake.com>
  267. - v1.5pre6-1rh7
  268. - pre-release 6 for sourceforge
  269. * Wed Mar 07 2001 rufus t firefly <rufus.t.firefly@linux-mandrake.com>
  270. - v1.5pre5-1
  271. - pre-release 5 for sourceforge
  272. * Fri Feb 23 2001 rufus t firefly <rufus.t.firefly@linux-mandrake.com>
  273. - v1.5pre5-0
  274. - pre-release 5 for sourceforge (prebuild)
  275. * Tue Feb 20 2001 rufus t firefly <rufus.t.firefly@linux-mandrake.com>
  276. - v1.5pre4-1
  277. - pre-release 4 for sourceforge
  278. - modified/split mandrake spec for redhat 7 build
  279. * Mon Dec 18 2000 rufus t firefly <rufus.t.firefly@linux-mandrake.com>
  280. - v1.5pre3-1mdk
  281. - pre-release 3 for sourceforge
  282. - moved away from 1.4.99 ...
  283. * Wed Nov 08 2000 rufus t firefly <rufus.t.firefly@linux-mandrake.com>
  284. - v1.4.99-0.20001108mdk
  285. - pre-release 2 for sourceforge
  286. * Wed Sep 27 2000 rufus t firefly <rufus.t.firefly@linux-mandrake.com>
  287. - v1.4.99-0.20000927mdk
  288. - pre-release 1 for sourceforge