forked from pool/samba
Accepting request 419509 from home:dmdiss:samba_vfs_ceph
- Don't package man pages for VFS modules that aren't built; (boo#993707). - Fix population of ctdb sysconfig after source merge; (bsc#981566). - Enable vfs_ceph builds for Factory (x86-64) + Package as samba-ceph to avoid Ceph dependency in base package. OBS-URL: https://build.opensuse.org/request/show/419509 OBS-URL: https://build.opensuse.org/package/show/network:samba:STABLE/samba?expand=0&rev=545
This commit is contained in:
parent
5144ab054e
commit
851005e5e2
@ -1,3 +1,3 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
version https://git-lfs.github.com/spec/v1
|
||||||
oid sha256:8f0a35855853aad21e788bd416b9727fa3f0ef0bde188c277c094a50012d57b0
|
oid sha256:733933187629808895e1d5b6d9c6e07c16991c9486af8e5378ebdf123715fd35
|
||||||
size 41711
|
size 41359
|
||||||
|
@ -1,3 +1,20 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Aug 15 14:54:14 UTC 2016 - ddiss@suse.com
|
||||||
|
|
||||||
|
- Don't package man pages for VFS modules that aren't built;
|
||||||
|
(boo#993707).
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Aug 13 14:41:26 UTC 2016 - jmcdonough@suse.com
|
||||||
|
|
||||||
|
- Fix population of ctdb sysconfig after source merge; (bsc#981566).
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Aug 12 16:22:33 UTC 2016 - ddiss@suse.com
|
||||||
|
|
||||||
|
- Enable vfs_ceph builds for Factory (x86-64)
|
||||||
|
+ Package as samba-ceph to avoid Ceph dependency in base package.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Jul 7 15:20:14 UTC 2016 - jmcdonough@suse.com
|
Thu Jul 7 15:20:14 UTC 2016 - jmcdonough@suse.com
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
pub 1024D/6568B7EA 2007-02-04 [expires: 2014-02-25]
|
pub 1024D/6568B7EA 2007-02-04 [expires: 2016-01-17]
|
||||||
uid Samba Distribution Verification Key <samba-bugs@samba.org>
|
uid Samba Distribution Verification Key <samba-bugs@samba.org>
|
||||||
sub 2048g/DA6DFB44 2007-02-04 [expires: 2014-02-25]
|
sub 2048g/DA6DFB44 2007-02-04 [expires: 2016-01-17]
|
||||||
-----BEGIN PGP PUBLIC KEY BLOCK-----
|
-----BEGIN PGP PUBLIC KEY BLOCK-----
|
||||||
Version: GnuPG v1.4.11 (GNU/Linux)
|
Version: GnuPG v1.4.11 (GNU/Linux)
|
||||||
|
|
||||||
@ -25,18 +25,39 @@ CgkQp6cLM3ld2XFzGwCffyD/eMhEKCN6j5FCSbb3rhkyR/kAn0PlFtYrTNkrc1dO
|
|||||||
ezhvaZZCPBHWiEYEEBECAAYFAkZQmboACgkQVVCoNUmKuAcl1wCdEzFgS3DIgIhY
|
ezhvaZZCPBHWiEYEEBECAAYFAkZQmboACgkQVVCoNUmKuAcl1wCdEzFgS3DIgIhY
|
||||||
y6Id5a9EqUjArLkAnArdjXskM952gLuyJjgictCiHdIeiEYEEBECAAYFAkZdvkMA
|
y6Id5a9EqUjArLkAnArdjXskM952gLuyJjgictCiHdIeiEYEEBECAAYFAkZdvkMA
|
||||||
CgkQw1Ohknblb7ZN8gCgjD/SWG0qBCBD7w19I5kVTijU9j4AmwbPf4wU7hY942tn
|
CgkQw1Ohknblb7ZN8gCgjD/SWG0qBCBD7w19I5kVTijU9j4AmwbPf4wU7hY942tn
|
||||||
1NxUyKwF+edxuQINBEXGOWEQCADIOV4TpVG6tDXU7YD1VjJ39xduomiWTg94dIOD
|
1NxUyKwF+edxiEYEEBECAAYFAkXIC4MACgkQi9gubzC5S1zMJgCgqQOcgVsXQ7IT
|
||||||
g1bZHLvwUa5I1X7zsjYmghZ5Qa6WxNknbRywWnaP0POMXSMspVWnqBQTZknxdApM
|
BsUTEFPiGPwUis8An1sb+UQfnsoRVoiwxiczw55ACi1BiEYEEBECAAYFAkku3m0A
|
||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z+ZTSHvEN0o36kWIkl9drloKn
|
||||||
|
oftibEAudC6/a58/QDIyqmRMdr+1ypwpMaGhctV8DqT4ybSLjxWkiOTrpzbLoV2H
|
||||||
|
hkL+zKqgNkTbrpaJ6B4JfSemM0QY3ZgwdvC5viSl8iaZxw61JCunOdOBLsVV10Cj
|
||||||
|
ryzT8KHd1PPTgmd4BWVP83hEkHaVsVzIkL1KjwAECwgAp259HGGl4Zd1J50IMj2F
|
||||||
|
VCVddv7AI4ZYAEKtPEj4EyaeBhPycfQtijEu3ZVmB+LYw0m3jvkSy3dup6XYYsvA
|
||||||
|
p/VL7Cbw7O9f/uUtj06Vdenh+UM0GZLyfz15JEV0NSJaL5L7eayonhwseJ+kGW+b
|
||||||
|
XfQLgHkWae+VFxETu6Vyhv+e6P0s7MKw/7UhCkaQSkBA+Hh7D6IS8N3TCg1huoS0
|
||||||
|
X+BkfL/sSixYr6l697bRC2/cUu2cmas+hUhbnEAKel2P8Y50dwhc3yqvaRzuD8L4
|
||||||
|
VOd7kHiPbLgB0j3nMX1CHEH6wmjeiupLRDGPisXkyVIKgexZ7JKspwqH9DDdjgON
|
||||||
|
PohPBBgRAgAPAhsMBQJPSovmBQkNRrmFAAoJEG8zkVtlaLfqaCQAnjMe3EosdMt8
|
||||||
|
yIE7wCLctOrYZTjFAJ9YWXXjLQJFo2in7vC1pP7pgXrTyIhPBBgRAgAPAhsMBQJS
|
||||||
|
2PADBQkQ1R2SAAoJEG8zkVtlaLfqWU0AniUMsF8RV9nmW1GHMHS8wqZrPHDbAJ9A
|
||||||
|
9GHh4cjTsKMmRsY6FDkDm8mExQ==
|
||||||
|
=nU8K
|
||||||
-----END PGP PUBLIC KEY BLOCK-----
|
-----END PGP PUBLIC KEY BLOCK-----
|
||||||
|
103
samba.spec
103
samba.spec
@ -21,6 +21,11 @@
|
|||||||
%if 0%{?suse_version} > 1140 && 0%{?suse_version} != 1315
|
%if 0%{?suse_version} > 1140 && 0%{?suse_version} != 1315
|
||||||
%define build_ctdb_pmda 1
|
%define build_ctdb_pmda 1
|
||||||
%endif
|
%endif
|
||||||
|
%if 0%{?suse_version} > 1320
|
||||||
|
%ifarch x86_64
|
||||||
|
%define build_vfs_ceph 1
|
||||||
|
%endif
|
||||||
|
%endif
|
||||||
|
|
||||||
Name: samba
|
Name: samba
|
||||||
BuildRequires: cups-devel
|
BuildRequires: cups-devel
|
||||||
@ -120,6 +125,9 @@ BuildRequires: systemd-devel
|
|||||||
%if 0%{?build_ctdb_pmda}
|
%if 0%{?build_ctdb_pmda}
|
||||||
BuildRequires: libpcp-devel
|
BuildRequires: libpcp-devel
|
||||||
%endif
|
%endif
|
||||||
|
%if 0%{?build_vfs_ceph}
|
||||||
|
BuildRequires: libcephfs-devel
|
||||||
|
%endif
|
||||||
%define samba_ver 4.4.5
|
%define samba_ver 4.4.5
|
||||||
%define samba_ver_suffix %nil
|
%define samba_ver_suffix %nil
|
||||||
%if "%{samba_ver_suffix}" == ""
|
%if "%{samba_ver_suffix}" == ""
|
||||||
@ -142,7 +150,7 @@ BuildRequires: libpcp-devel
|
|||||||
%else
|
%else
|
||||||
%define build_make_smp_mflags %{?jobs:-j%jobs}
|
%define build_make_smp_mflags %{?jobs:-j%jobs}
|
||||||
%endif
|
%endif
|
||||||
%define SOURCE_TIMESTAMP 3678
|
%define SOURCE_TIMESTAMP 3686
|
||||||
%define BRANCH %{version}
|
%define BRANCH %{version}
|
||||||
%global with_mitkrb5 1
|
%global with_mitkrb5 1
|
||||||
%global with_dc 0
|
%global with_dc 0
|
||||||
@ -1027,6 +1035,16 @@ develop programs which make use of the wbclient programming interface.
|
|||||||
Source Timestamp: %{SOURCE_TIMESTAMP}
|
Source Timestamp: %{SOURCE_TIMESTAMP}
|
||||||
Branch: %{BRANCH}
|
Branch: %{BRANCH}
|
||||||
|
|
||||||
|
%if 0%{?build_vfs_ceph}
|
||||||
|
%package ceph
|
||||||
|
Summary: Ceph VFS Module for Samba
|
||||||
|
License: GPL-3.0+
|
||||||
|
Group: Productivity/Networking/Samba
|
||||||
|
|
||||||
|
%description ceph
|
||||||
|
The Ceph VFS module for Samba allows shares to be backed by the Ceph distributed file system.
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -n samba-%{samba_ver_full} -q
|
%setup -n samba-%{samba_ver_full} -q
|
||||||
@ -1359,8 +1377,37 @@ for file in $( find %{buildroot}%{DOCDIR} -maxdepth 1); do
|
|||||||
echo "%doc ${file#%{buildroot}}" >>"${RPM_BUILD_DIR}/samba-%{samba_ver_full}/filelist-samba-doc"
|
echo "%doc ${file#%{buildroot}}" >>"${RPM_BUILD_DIR}/samba-%{samba_ver_full}/filelist-samba-doc"
|
||||||
done
|
done
|
||||||
for file in $( find %{buildroot}%{_libdir}/samba/vfs/ -mindepth 1 ); do
|
for file in $( find %{buildroot}%{_libdir}/samba/vfs/ -mindepth 1 ); do
|
||||||
|
# if built we don't want vfs_ceph in the base package
|
||||||
|
case "${file#%{buildroot}}" in
|
||||||
|
%{_libdir}/samba/vfs/ceph.so) continue ;;
|
||||||
|
esac
|
||||||
echo "${file#%{buildroot}}" >>${RPM_BUILD_DIR}/samba-%{samba_ver_full}/filelist-samba
|
echo "${file#%{buildroot}}" >>${RPM_BUILD_DIR}/samba-%{samba_ver_full}/filelist-samba
|
||||||
done
|
done
|
||||||
|
# only package Man pages for VFS modules that we ship
|
||||||
|
for file in %{buildroot}%{_mandir}/man8/vfs_*; do
|
||||||
|
case "${file#%{buildroot}}" in
|
||||||
|
%{_mandir}/man8/vfs_ceph.8)
|
||||||
|
%if 0%{?build_vfs_ceph} == 0
|
||||||
|
rm ${file}
|
||||||
|
%endif
|
||||||
|
continue
|
||||||
|
;;
|
||||||
|
%{_mandir}/man8/vfs_glusterfs.8)
|
||||||
|
rm ${file}
|
||||||
|
continue
|
||||||
|
;;
|
||||||
|
%{_mandir}/man8/vfs_gpfs.8)
|
||||||
|
rm ${file}
|
||||||
|
continue
|
||||||
|
;;
|
||||||
|
%{_mandir}/man8/vfs_tsmsm.8)
|
||||||
|
rm ${file}
|
||||||
|
continue
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
# wildcard suffix to account for subsequent gzip
|
||||||
|
echo "${file#%{buildroot}}*" >>${RPM_BUILD_DIR}/samba-%{samba_ver_full}/filelist-samba
|
||||||
|
done
|
||||||
# copy the schema
|
# copy the schema
|
||||||
install -m 0644 examples/LDAP/samba.schema %{buildroot}/%{_sysconfdir}/openldap/schema/samba3.schema
|
install -m 0644 examples/LDAP/samba.schema %{buildroot}/%{_sysconfdir}/openldap/schema/samba3.schema
|
||||||
install -m 0644 examples/LDAP/samba-nds.schema %{buildroot}/%{_datadir}/samba/LDAP/samba-nds.schema
|
install -m 0644 examples/LDAP/samba-nds.schema %{buildroot}/%{_datadir}/samba/LDAP/samba-nds.schema
|
||||||
@ -1598,11 +1645,11 @@ exit 0
|
|||||||
%post -n ctdb
|
%post -n ctdb
|
||||||
%if 0%{?suse_version}
|
%if 0%{?suse_version}
|
||||||
%if 0%{?suse_version} > 1220
|
%if 0%{?suse_version} > 1220
|
||||||
%{fillup_only}
|
%{fillup_only -n ctdb}
|
||||||
%service_add_post ctdb.service
|
%service_add_post ctdb.service
|
||||||
%{_bindir}/systemd-tmpfiles --create %{_tmpfilesdir}/ctdb.conf || :
|
%{_bindir}/systemd-tmpfiles --create %{_tmpfilesdir}/ctdb.conf || :
|
||||||
%else
|
%else
|
||||||
%{fillup_and_insserv}
|
%{fillup_and_insserv -n ctdb}
|
||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -1676,49 +1723,6 @@ fi
|
|||||||
%{_mandir}/man5/smbpasswd.5.*
|
%{_mandir}/man5/smbpasswd.5.*
|
||||||
%{_mandir}/man8/nmbd.8.*
|
%{_mandir}/man8/nmbd.8.*
|
||||||
%{_mandir}/man8/smbd.8.*
|
%{_mandir}/man8/smbd.8.*
|
||||||
%{_mandir}/man8/vfs_acl_tdb.8.*
|
|
||||||
%{_mandir}/man8/vfs_acl_xattr.8.*
|
|
||||||
%{_mandir}/man8/vfs_aio_fork.8.*
|
|
||||||
%{_mandir}/man8/vfs_aio_linux.8.*
|
|
||||||
%{_mandir}/man8/vfs_aio_pthread.8.*
|
|
||||||
%{_mandir}/man8/vfs_audit.8.*
|
|
||||||
%{_mandir}/man8/vfs_btrfs.8.*
|
|
||||||
%{_mandir}/man8/vfs_cacheprime.8.*
|
|
||||||
%{_mandir}/man8/vfs_cap.8.*
|
|
||||||
%{_mandir}/man8/vfs_catia.8.*
|
|
||||||
%{_mandir}/man8/vfs_ceph.8.*
|
|
||||||
%{_mandir}/man8/vfs_commit.8.*
|
|
||||||
%{_mandir}/man8/vfs_crossrename.8.*
|
|
||||||
%{_mandir}/man8/vfs_default_quota.8.*
|
|
||||||
%{_mandir}/man8/vfs_dirsort.8.*
|
|
||||||
%{_mandir}/man8/vfs_extd_audit.8.*
|
|
||||||
%{_mandir}/man8/vfs_fake_perms.8.*
|
|
||||||
%{_mandir}/man8/vfs_fileid.8.*
|
|
||||||
%{_mandir}/man8/vfs_full_audit.8.*
|
|
||||||
%{_mandir}/man8/vfs_fruit.8.*
|
|
||||||
%{_mandir}/man8/vfs_glusterfs.8.*
|
|
||||||
%{_mandir}/man8/vfs_gpfs.8.*
|
|
||||||
%{_mandir}/man8/vfs_linux_xfs_sgid.8.*
|
|
||||||
%{_mandir}/man8/vfs_media_harmony.8.*
|
|
||||||
%{_mandir}/man8/vfs_netatalk.8.*
|
|
||||||
%{_mandir}/man8/vfs_offline.8.*
|
|
||||||
%{_mandir}/man8/vfs_prealloc.8.*
|
|
||||||
%{_mandir}/man8/vfs_preopen.8.*
|
|
||||||
%{_mandir}/man8/vfs_readahead.8.*
|
|
||||||
%{_mandir}/man8/vfs_readonly.8.*
|
|
||||||
%{_mandir}/man8/vfs_recycle.8.*
|
|
||||||
%{_mandir}/man8/vfs_shadow_copy.8.*
|
|
||||||
%{_mandir}/man8/vfs_shadow_copy2.8.*
|
|
||||||
%{_mandir}/man8/vfs_shell_snap.8.*
|
|
||||||
%{_mandir}/man8/vfs_snapper.8.*
|
|
||||||
%{_mandir}/man8/vfs_streams_depot.8.*
|
|
||||||
%{_mandir}/man8/vfs_streams_xattr.8.*
|
|
||||||
%{_mandir}/man8/vfs_syncops.8.*
|
|
||||||
%{_mandir}/man8/vfs_time_audit.8.*
|
|
||||||
%{_mandir}/man8/vfs_tsmsm.8.*
|
|
||||||
%{_mandir}/man8/vfs_unityed_media.8.*
|
|
||||||
%{_mandir}/man8/vfs_worm.8.*
|
|
||||||
%{_mandir}/man8/vfs_xattr_tdb.8.*
|
|
||||||
%if 0%{?suse_version} && 0%{?suse_version} < 1021
|
%if 0%{?suse_version} && 0%{?suse_version} < 1021
|
||||||
%{_includedir}/samba
|
%{_includedir}/samba
|
||||||
%endif
|
%endif
|
||||||
@ -2476,4 +2480,11 @@ fi
|
|||||||
%{_libdir}/libwbclient.so
|
%{_libdir}/libwbclient.so
|
||||||
%{_libdir}/pkgconfig/wbclient.pc
|
%{_libdir}/pkgconfig/wbclient.pc
|
||||||
|
|
||||||
|
%if 0%{?build_vfs_ceph}
|
||||||
|
%files ceph
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%{_mandir}/man8/vfs_ceph.8.*
|
||||||
|
%{_libdir}/samba/vfs/ceph.so
|
||||||
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
version https://git-lfs.github.com/spec/v1
|
||||||
oid sha256:d9033976a18387687ee089b25401c9cf6cc07ab69915f21f885780e2f7ee12aa
|
oid sha256:26050ae25f8e0f6158dc4ca4fbc85f3389725d7761461ff9397ed28bfdfe5696
|
||||||
size 55878
|
size 55575
|
||||||
|
Loading…
Reference in New Issue
Block a user