|
@@ -1,11 +1,14 @@
|
|
|
+%bcond_with force_uidgid
|
|
|
+%define rel_suffix %{?with_force_uidgid:.force_uidgid}
|
|
|
+
|
|
|
%define _sysconfdir /etc
|
|
|
|
|
|
################################################# BASIC PACKAGE INFORMATION
|
|
|
Summary: AppleTalk and AppleShare/IP services for Linux
|
|
|
Summary(ja): Linux 用 AppleTalk, AppleShare/IP サービス
|
|
|
Name: netatalk
|
|
|
-Version: 2.2.1
|
|
|
-Release: 1%{_dist_release}
|
|
|
+Version: 2.2.2
|
|
|
+Release: 1%{_dist_release}%{rel_suffix}
|
|
|
License: GPLv2+
|
|
|
Group: System Environment/Daemons
|
|
|
Source0: %{name}-%{version}.tar.bz2
|
|
@@ -59,6 +62,9 @@ programs.
|
|
|
|
|
|
%patch10 -p1 -b .cjk-config
|
|
|
|
|
|
+%if %{with force_uidgid}
|
|
|
+perl -pi -e 's/uid_t uid$/uid_t uid;/' etc/afpd/uid.c
|
|
|
+%endif
|
|
|
|
|
|
%build
|
|
|
touch AUTHORS
|
|
@@ -92,7 +98,11 @@ CFLAGS="${RPM_OPT_FLAGS} -fomit-frame-pointer -fsigned-char" \
|
|
|
--with-shadow \
|
|
|
--enable-tcp-wrappers \
|
|
|
--with-acls \
|
|
|
- --enable-pgp-uam
|
|
|
+ --enable-pgp-uam \
|
|
|
+%if %{with force_uidgid}
|
|
|
+ --enable-force-uidgid
|
|
|
+%endif
|
|
|
+
|
|
|
|
|
|
make all
|
|
|
|
|
@@ -181,6 +191,10 @@ rm -rf ${RPM_BUILD_ROOT}
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
+* Thu Apr 26 2012 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 2.2.2-1
|
|
|
+- new upstream release.
|
|
|
+- added build option 'force_uidgid'.
|
|
|
+
|
|
|
* Sun Sep 18 2011 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2.2.1-1
|
|
|
- new upstream release
|
|
|
- fix configure options; add missing BRs
|