Compare commits
4 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b6b3c04ef5 | ||
|
|
656b46e5ce | ||
|
|
e3de39913a | ||
|
|
0803777d47 |
1 changed files with 9 additions and 4 deletions
13
amanda.spec
13
amanda.spec
|
|
@ -128,6 +128,12 @@ server also needs to have the amanda-client package installed.
|
||||||
%prep
|
%prep
|
||||||
%autosetup -p1 -n %{name}-tag-community-%{version}
|
%autosetup -p1 -n %{name}-tag-community-%{version}
|
||||||
|
|
||||||
|
# Create a sysusers.d config file
|
||||||
|
cat >amanda.sysusers.conf <<EOF
|
||||||
|
u amandabackup 33:%amanda_group 'Amanda user' %{_localstatedir}/lib/amanda /bin/bash
|
||||||
|
m amandabackup tape
|
||||||
|
EOF
|
||||||
|
|
||||||
%build
|
%build
|
||||||
./autogen
|
./autogen
|
||||||
|
|
||||||
|
|
@ -207,13 +213,11 @@ rm amandad
|
||||||
ln -s ../%_lib/amanda/amandad
|
ln -s ../%_lib/amanda/amandad
|
||||||
popd
|
popd
|
||||||
|
|
||||||
|
install -m0644 -D amanda.sysusers.conf %{buildroot}%{_sysusersdir}/amanda.conf
|
||||||
|
|
||||||
%check
|
%check
|
||||||
make check
|
make check
|
||||||
|
|
||||||
%pre
|
|
||||||
/usr/sbin/useradd -M -N -g %amanda_group -o -r -d %{_localstatedir}/lib/amanda -s /bin/bash \
|
|
||||||
-c "Amanda user" -u 33 %amanda_user >/dev/null 2>&1 || :
|
|
||||||
/usr/bin/gpasswd -a %amanda_user tape >/dev/null 2>&1 || :
|
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%{?ldconfig}
|
%{?ldconfig}
|
||||||
|
|
@ -299,6 +303,7 @@ make check
|
||||||
%attr(600,%amanda_user,%amanda_group) %config(noreplace) %{_localstatedir}/lib/amanda/.amandahosts
|
%attr(600,%amanda_user,%amanda_group) %config(noreplace) %{_localstatedir}/lib/amanda/.amandahosts
|
||||||
%attr(02770,%amanda_user,%amanda_group) %dir /var/log/amanda
|
%attr(02770,%amanda_user,%amanda_group) %dir /var/log/amanda
|
||||||
%attr(02770,%amanda_user,%amanda_group) %dir /var/log/amanda/amandad
|
%attr(02770,%amanda_user,%amanda_group) %dir /var/log/amanda/amandad
|
||||||
|
%{_sysusersdir}/amanda.conf
|
||||||
|
|
||||||
%files libs
|
%files libs
|
||||||
%{_libdir}/libamdevice*.so
|
%{_libdir}/libamdevice*.so
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue