|
@@ -1,13 +1,10 @@
|
|
%bcond_with systemd
|
|
%bcond_with systemd
|
|
-%bcond_with tracker
|
|
|
|
-
|
|
|
|
-%global tracker_api 3.0
|
|
|
|
|
|
|
|
################################################# BASIC PACKAGE INFORMATION
|
|
################################################# BASIC PACKAGE INFORMATION
|
|
Summary: AFP fileserver for Macintosh clients
|
|
Summary: AFP fileserver for Macintosh clients
|
|
Summary(ja): Macintoshクライアント向けのAFPファイルサーバー
|
|
Summary(ja): Macintoshクライアント向けのAFPファイルサーバー
|
|
Name: netatalk
|
|
Name: netatalk
|
|
-Version: 3.2.1
|
|
|
|
|
|
+Version: 4.2.2
|
|
Release: 1%{_dist_release}%{?with_systemd:.systemd}
|
|
Release: 1%{_dist_release}%{?with_systemd:.systemd}
|
|
Group: servers
|
|
Group: servers
|
|
Vendor: Project Vine
|
|
Vendor: Project Vine
|
|
@@ -19,18 +16,38 @@ URL: http://netatalk.sourceforge.net/
|
|
%define altver %(echo %{version} | tr . -)
|
|
%define altver %(echo %{version} | tr . -)
|
|
Source0: https://github.com/Netatalk/Netatalk/releases/download/netatalk-%{altver}/netatalk-%{version}.tar.xz
|
|
Source0: https://github.com/Netatalk/Netatalk/releases/download/netatalk-%{altver}/netatalk-%{version}.tar.xz
|
|
Source1: netatalk.pam-system-auth
|
|
Source1: netatalk.pam-system-auth
|
|
-Source2: netatalk.conf
|
|
|
|
-Patch1: netatalk-systemd-execstartpre.patch
|
|
|
|
|
|
+Source2: netatalk.init
|
|
|
|
|
|
############################################################## REQUIREMENTS
|
|
############################################################## REQUIREMENTS
|
|
-BuildRequires: cracklib openssl-devel pam quota libtool automake
|
|
|
|
-BuildRequires: autoconf libdb-devel pam-devel libgcrypt-devel
|
|
|
|
-BuildRequires: avahi-devel libacl-devel openldap-devel
|
|
|
|
-BuildRequires: dbus-devel dbus-glib-devel glib2-devel
|
|
|
|
-BuildRequires: libevent-devel libtdb-devel libmariadb-devel
|
|
|
|
-%if %{with tracker}
|
|
|
|
-BuildRequires: tracker-devel
|
|
|
|
-%endif
|
|
|
|
|
|
+BuildRequires: avahi-devel
|
|
|
|
+BuildRequires: bison
|
|
|
|
+BuildRequires: coreutils
|
|
|
|
+BuildRequires: cracklib
|
|
|
|
+BuildRequires: dbus-devel
|
|
|
|
+BuildRequires: dbus-glib-devel
|
|
|
|
+BuildRequires: findutils
|
|
|
|
+BuildRequires: flex
|
|
|
|
+BuildRequires: gcc
|
|
|
|
+BuildRequires: grep
|
|
|
|
+BuildRequires: iniparser-devel
|
|
|
|
+BuildRequires: krb5-devel
|
|
|
|
+BuildRequires: libacl-devel
|
|
|
|
+BuildRequires: libattr-devel
|
|
|
|
+BuildRequires: libdb-devel
|
|
|
|
+BuildRequires: libevent-devel
|
|
|
|
+BuildRequires: libgcrypt-devel
|
|
|
|
+BuildRequires: libmariadb-devel
|
|
|
|
+BuildRequires: libtdb-devel
|
|
|
|
+BuildRequires: libxcrypt-devel
|
|
|
|
+BuildRequires: libxslt
|
|
|
|
+BuildRequires: meson
|
|
|
|
+BuildRequires: openldap-devel
|
|
|
|
+BuildRequires: openssl-devel
|
|
|
|
+BuildRequires: pam-devel
|
|
|
|
+BuildRequires: perl
|
|
|
|
+BuildRequires: procps
|
|
|
|
+BuildRequires: quota
|
|
|
|
+BuildRequires: cups-devel
|
|
|
|
|
|
Requires: dbus-python3
|
|
Requires: dbus-python3
|
|
Requires: dconf
|
|
Requires: dconf
|
|
@@ -74,101 +91,56 @@ This package contains the header files for Netatalk.
|
|
%setup -q
|
|
%setup -q
|
|
%autopatch -p1
|
|
%autopatch -p1
|
|
|
|
|
|
-autoreconf -fiv
|
|
|
|
-
|
|
|
|
-rm -frv libevent/
|
|
|
|
-
|
|
|
|
-ln -s ./NEWS ChangeLog
|
|
|
|
-
|
|
|
|
-# Avoid re-running the autotools
|
|
|
|
-touch -r aclocal.m4 configure configure.ac macros/gssapi-check.m4
|
|
|
|
-
|
|
|
|
-# fix permissions
|
|
|
|
-find include \( -name '*.h' -a -executable \) -exec chmod -x {} \;
|
|
|
|
-
|
|
|
|
-# Don't call systemctl daemon-reload during the build
|
|
|
|
-sed -i 's\-systemctl daemon-reload\\g' distrib/initscripts/Makefile.in
|
|
|
|
|
|
+# Set RuntimeDirectory in the service file rather than use a tmpfiles.d config
|
|
|
|
+sed -E -i 's|^(ExecStart=.*)|\1\nRuntimeDirectory=lock/netatalk|' distrib/initscripts/systemd.netatalk.service.in
|
|
|
|
|
|
|
|
|
|
%build
|
|
%build
|
|
-%configure \
|
|
|
|
- --disable-silent-rules \
|
|
|
|
- --disable-static \
|
|
|
|
- --enable-shared \
|
|
|
|
- --localstatedir=%{_localstatedir}/lib \
|
|
|
|
- --with-pkgconfdir=%{_sysconfdir}/netatalk \
|
|
|
|
- --with-cracklib \
|
|
|
|
- --with-pam \
|
|
|
|
- --with-shadow \
|
|
|
|
- --with-uams-path=%{_libdir}/netatalk \
|
|
|
|
- --enable-shared \
|
|
|
|
- --enable-krbV-uam \
|
|
|
|
- --enable-overwrite \
|
|
|
|
- --with-gnu-ld \
|
|
|
|
|
|
+%meson \
|
|
|
|
+ --localstatedir=%{_localstatedir}/lib \
|
|
|
|
+ -Ddefault_library=shared \
|
|
|
|
+ -Dwith-rpath=false \
|
|
|
|
+ -Dwith-overwrite=true \
|
|
|
|
+ -Dwith-lockfile-path=%{_rundir}/lock/netatalk \
|
|
|
|
+ -Dwith-tcp-wrappers=false \
|
|
|
|
+ -Dwith-dbus-sysconf-path=%{_sysconfdir}/dbus-1/system.d \
|
|
|
|
+ -Dwith-pkgconfdir-path=%{_sysconfdir}/netatalk \
|
|
%if %{with systemd}
|
|
%if %{with systemd}
|
|
- --with-lockfile=/run/lock/netatalk/netatalk \
|
|
|
|
- --with-init-style=redhat-systemd \
|
|
|
|
- --with-init-dir=%{_unitdir} \
|
|
|
|
-%else
|
|
|
|
- --with-init-style=redhat-sysv \
|
|
|
|
-%endif
|
|
|
|
- --with-libgcrypt \
|
|
|
|
- --without-libevent \
|
|
|
|
- --without-tdb \
|
|
|
|
- --with-pam-confdir=%{_sysconfdir}/pam.d \
|
|
|
|
- --with-dbus-sysconf-dir=%{_sysconfdir}/dbus-1/system.d \
|
|
|
|
- -with-spotlight \
|
|
|
|
-%if %{with tracker}
|
|
|
|
- --with-tracker-pkgconfig-version=%{tracker_api}
|
|
|
|
|
|
+ -Dwith-init-style=systemd \
|
|
%endif
|
|
%endif
|
|
|
|
+ -Dwith-init-hooks=false \
|
|
|
|
+ -Dwith-uams-path=%{_libdir}/netatalk \
|
|
|
|
+ -Dwith-cups=true \
|
|
|
|
+ -Dwith-tests=true \
|
|
|
|
+ -Dwith-testsuite=true \
|
|
|
|
+ %{nil}
|
|
|
|
|
|
-make %{?_smp_mflags} all
|
|
|
|
-
|
|
|
|
-%install
|
|
|
|
-### INSTALL (USING "make install") ###
|
|
|
|
-rm -rf ${RPM_BUILD_ROOT}
|
|
|
|
|
|
+%meson_build
|
|
|
|
|
|
-make DESTDIR=$RPM_BUILD_ROOT mandir=%{_mandir} install
|
|
|
|
|
|
|
|
-# install our tmpfiles config
|
|
|
|
-install -Dpm644 %{SOURCE2} %{buildroot}%{_tmpfilesdir}/netatalk.conf
|
|
|
|
|
|
+%install
|
|
|
|
+%meson_install
|
|
|
|
|
|
-# install example config files in doc
|
|
|
|
-mkdir -p config.example
|
|
|
|
-cp -fp config/afp.conf config.example
|
|
|
|
-cp -fp config/extmap.conf config.example
|
|
|
|
-mkdir -p $RPM_BUILD_ROOT/usr/share/netatalk
|
|
|
|
|
|
+%if !%{with systemd}
|
|
|
|
+rm -rf %{buildroot}%{_unitdir}
|
|
|
|
+install -Dpm755 %{SOURCE2} %{buildroot}%{_initdir}/netatalk
|
|
|
|
+%endif
|
|
|
|
|
|
-cp -fp %{SOURCE1} config.example
|
|
|
|
-# XXX bad hack until this file is updated in glibc-headers:
|
|
|
|
-rm -f $RPM_BUILD_ROOT/usr/include/netatalk/at.h
|
|
|
|
|
|
+# Use specific pam conf.
|
|
|
|
+install -Dpm644 %{SOURCE1} %{buildroot}%{_sysconfdir}/pam.d/netatalk
|
|
|
|
|
|
-# Clean up .a and .la files
|
|
|
|
-find $RPM_BUILD_ROOT -name \*.a -exec rm {} \;
|
|
|
|
-find $RPM_BUILD_ROOT -name \*.la -exec rm {} \;
|
|
|
|
|
|
+rm -rf %{buildroot}%{_datadir}/netatalk/test-data
|
|
|
|
|
|
-# Fix python shebang
|
|
|
|
-sed -i 's\^#!/usr/bin/env python$\#!%{__python3}\' %{buildroot}/usr/bin/afpstats
|
|
|
|
|
|
+# Remove documentation files not relevant to rpm packaging
|
|
|
|
+rm -rf %{buildroot}%{_pkgdocdir}/COMPILATION.md
|
|
|
|
+rm -rf %{buildroot}%{_pkgdocdir}/DOCKER.md
|
|
|
|
|
|
|
|
|
|
-%clean
|
|
|
|
-rm -rf ${RPM_BUILD_ROOT}
|
|
|
|
|
|
+%check
|
|
|
|
+%meson_test
|
|
|
|
|
|
|
|
|
|
%post
|
|
%post
|
|
-if [ -e /var/netatalk/afp_signature.conf -a ! -e /var/lib/netatalk/afp_signature.conf ]; then
|
|
|
|
- mv -f /var/netatalk/afp_signature.conf /var/lib/netatalk/
|
|
|
|
-fi
|
|
|
|
-if [ -e /etc/netatalk/afp_signature.conf -a ! -e /var/lib/netatalk/afp_signature.conf ]; then
|
|
|
|
- mv -f /etc/netatalk/afp_signature.conf /var/lib/netatalk/
|
|
|
|
-fi
|
|
|
|
-if [ -e /var/netatalk/afp_voluuid.conf -a ! -e /var/lib/netatalk/afp_voluuid.conf ]; then
|
|
|
|
- mv -f /var/netatalk/afp_voluuid.conf /var/lib/netatalk/
|
|
|
|
-fi
|
|
|
|
-if [ -e /etc/netatalk/afp_voluuid.conf -a ! -e /var/lib/netatalk/afp_voluuid.conf ]; then
|
|
|
|
- mv -f /etc/netatalk/afp_voluuid.conf /var/lib/netatalk/
|
|
|
|
-fi
|
|
|
|
-
|
|
|
|
%if %{with systemd}
|
|
%if %{with systemd}
|
|
%systemd_post %{name}.service
|
|
%systemd_post %{name}.service
|
|
%else
|
|
%else
|
|
@@ -199,45 +171,37 @@ fi
|
|
|
|
|
|
|
|
|
|
%files
|
|
%files
|
|
-%defattr(-,root,root)
|
|
|
|
%license COPYING COPYRIGHT
|
|
%license COPYING COPYRIGHT
|
|
-%doc README.md NEWS
|
|
|
|
-%doc config.example
|
|
|
|
|
|
+%doc CONTRIBUTORS.md NEWS.md INSTALL.md README.md SECURITY.md
|
|
%if %{with systemd}
|
|
%if %{with systemd}
|
|
%{_unitdir}/netatalk.service
|
|
%{_unitdir}/netatalk.service
|
|
-%{_tmpfilesdir}/netatalk.conf
|
|
|
|
%else
|
|
%else
|
|
-%attr(755,root,root) %{_initrddir}/netatalk
|
|
|
|
|
|
+%{_initdir}/netatalk
|
|
%endif
|
|
%endif
|
|
%dir %{_sysconfdir}/netatalk
|
|
%dir %{_sysconfdir}/netatalk
|
|
%config(noreplace) %{_sysconfdir}/netatalk/afp.conf
|
|
%config(noreplace) %{_sysconfdir}/netatalk/afp.conf
|
|
%config(noreplace) %{_sysconfdir}/netatalk/extmap.conf
|
|
%config(noreplace) %{_sysconfdir}/netatalk/extmap.conf
|
|
-%config(noreplace) %{_sysconfdir}/netatalk/dbus-session.conf
|
|
|
|
|
|
+#%config(noreplace) %{_sysconfdir}/netatalk/dbus-session.conf
|
|
%config(noreplace) %{_sysconfdir}/pam.d/netatalk
|
|
%config(noreplace) %{_sysconfdir}/pam.d/netatalk
|
|
%config(noreplace) %{_sysconfdir}/dbus-1/system.d/netatalk-dbus.conf
|
|
%config(noreplace) %{_sysconfdir}/dbus-1/system.d/netatalk-dbus.conf
|
|
%{_sbindir}/*
|
|
%{_sbindir}/*
|
|
%{_bindir}/*
|
|
%{_bindir}/*
|
|
-%exclude %{_bindir}/netatalk-config
|
|
|
|
-%{_mandir}/man*/*
|
|
|
|
-%exclude %{_mandir}/man*/netatalk-config*
|
|
|
|
-%{_datadir}/netatalk
|
|
|
|
-%{_libdir}/*.so
|
|
|
|
%{_libdir}/*.so.*
|
|
%{_libdir}/*.so.*
|
|
%dir %{_libdir}/netatalk
|
|
%dir %{_libdir}/netatalk
|
|
%{_libdir}/netatalk/*.so
|
|
%{_libdir}/netatalk/*.so
|
|
%{_localstatedir}/lib/netatalk
|
|
%{_localstatedir}/lib/netatalk
|
|
|
|
|
|
%files devel
|
|
%files devel
|
|
-%defattr(-,root,root)
|
|
|
|
-%license COPYING COPYRIGHT
|
|
|
|
|
|
+%doc %{_pkgdocdir}/DEVELOPER.md
|
|
%dir %{_includedir}/atalk
|
|
%dir %{_includedir}/atalk
|
|
-%attr(0644,root,root) %{_includedir}/atalk/*
|
|
|
|
-%{_datadir}/aclocal/netatalk.m4
|
|
|
|
-%{_bindir}/netatalk-config
|
|
|
|
-%{_mandir}/man*/netatalk-config.1*
|
|
|
|
|
|
+%{_includedir}/atalk/*
|
|
|
|
+%{_libdir}/libatalk.so
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Wed Apr 30 2025 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 4.2.2-1
|
|
|
|
+- new upstream release.
|
|
|
|
+
|
|
* Sat Jun 29 2024 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 3.2.1-1
|
|
* Sat Jun 29 2024 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 3.2.1-1
|
|
- new upstream release.
|
|
- new upstream release.
|
|
|
|
|