[Samba] Missing security tab samba 4.1.13

Reindl Harald h.reindl at thelounge.net
Mon Mar 6 15:15:49 UTC 2017

Am 06.03.2017 um 16:06 schrieb Rowland Penny:
> On Mon, 6 Mar 2017 15:48:32 +0100
> Reindl Harald via samba <samba at lists.samba.org> wrote:
>> well, there is nothing different when you use rpmbuild and chose the
>> prefix you want besides that:
>> * cleanup of orphan files
>> * simpe upgarde/downgrade because you have your prebuild .rpm files
>> * no need of devel-packages / compilers on the target machine
>> * no need to --exclude=/usr/local/smaba/var/lib/samba fpr rsync
>>    if you build on a different machine because rpm don't touch
>>    files which it didn't create
>> * easy re-use on serveral machines including a testing-one
>> the only real difference is that "make install" goes into the
>> buildfolder - i don't see any advantage in "as it emphasizes that
>> this Samba install is not created from packages" since for a decade
>> now i override postfix, mysql, httpd, apr, php and so on on Fedora
>> with self built packages and a higher epoch in the rpm-spec so that
>> the own repos win
> OK, you sound like you know how to do this, so why don't you add it to
> the Samba wiki, or if you don't want to register on the wiki, just
> write it all down, send it to me and I will put it on the wiki for you

in short: it's not samba specific at all


you just place the same configure line with whatever otpions in the 
specfile as well as any other stuff and scriptings, just keep the %files 
the first time empty and then you get every folder or file listed at the 
error output which is not packaged and just write your filelist

as start in doubt just use a already existing spec file which for sure 
exists and modify it for your needs

just a simple one - no rocket science

[builduser at testserver:/rpmbuild/SPECS]$ cat /rpmbuild/SPECS/aespipe.spec
Summary:           AES-encryption tool for tar/cpio and loop-aes images
Name:              aespipe
Version:           2.4d
Release:           2%{?dist}
License:           GPL
Group:             Applications
URL:               http://loop-aes.sourceforge.net/
Source0:           %{name}/%{name}-v%{version}.tar.bz2
BuildRequires:     autoconf
BuildRequires:     automake

aespipe is an encryption tool that reads from standard input and
writes to standard output. It uses the AES (Rijndael) cipher

It can be used as an encryption filter, to create and restore
encrypted tar/cpio backup archives and to read/write and convert
loop-AES compatible encrypted images

%setup -q -n %{name}-v%{version}

aclocal && autoconf || exit 1
export CFLAGS="%{optflags} -fPIE -fuse-ld=gold -fuse-linker-plugin"
export CC="gcc $CFLAGS"
export LDFLAGS="-Wl,-z,now -Wl,-z,relro -Wl,-z,noexecstack -pie $CFLAGS"
%configure --enable-intelaes --disable-padlock
%{__make} %{?_smp_mflags} amd64

install -d %{buildroot}{%{_bindir},%{_mandir}/man1}
install %{name} %{buildroot}%{_bindir}
install %{name}.1 %{buildroot}%{_mandir}/man1
strip -s %{buildroot}%{_bindir}/%{name}

%attr(755,root,root) %{_bindir}/*

* Sun May 24 2015 Reindl Harald <h.reindl at thelounge.net>
- Update to 2.4d

More information about the samba mailing list