Skip to content

Commit

Permalink
Install bsmtp as a symlink in the sbin dir pointing to the bin dir.
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco van Wieringen committed Jun 23, 2014
1 parent 73661df commit 02ebe99
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 4 deletions.
1 change: 0 additions & 1 deletion debian/bareos-common.install
Expand Up @@ -13,7 +13,6 @@
/usr/lib/libbareosndmp.so
/usr/lib/libbareosndmp-*.so
/usr/bin/bsmtp
/usr/sbin/bsmtp
/usr/sbin/btraceback
/usr/share/man/man1/bsmtp.1.gz
/usr/share/man/man8/btraceback.8.gz
Expand Down
1 change: 1 addition & 0 deletions debian/bareos-common.links
@@ -0,0 +1 @@
/usr/bin/bsmtp /usr/sbin/bsmtp
8 changes: 6 additions & 2 deletions platforms/packaging/bareos-RHEL_4.spec
Expand Up @@ -636,6 +636,9 @@ install -m 644 platforms/systemd/bareos-fd.service %{buildroot}%{_unitdir}
install -m 644 platforms/systemd/bareos-sd.service %{buildroot}%{_unitdir}
%endif

# Create a symlink in sbin dir pointing to bsmtp now located in bin dir
ln -s ../bin/bsmtp %{buildroot}%{_sbindir}/bsmtp

# Create the Readme files for the meta packages
[ -d %{buildroot}%{_docdir}/%{name}/ ] || install -d -m 755 %{buildroot}%{_docdir}/%{name}
echo "This meta package emulates the former bareos-client package" > %{buildroot}%{_docdir}/%{name}/README.bareos-client
Expand Down Expand Up @@ -683,9 +686,7 @@ echo "This is a meta package to install a full bareos system" > %{buildroot}%{_d
%{script_dir}/make_catalog_backup
%{script_dir}/make_catalog_backup.pl
%{_sbindir}/bareos-dir
%{_bindir}/bsmtp
%dir %{_docdir}/%{name}
%{_mandir}/man1/bsmtp.1.gz
%{_mandir}/man8/bareos-dir.8.gz
%{_mandir}/man8/bareos.8.gz
%if 0%{?systemd_support}
Expand Down Expand Up @@ -782,7 +783,10 @@ echo "This is a meta package to install a full bareos system" > %{buildroot}%{_d
%dir %{_libdir}/bareos/
%endif
%dir %{plugin_dir}
%{_bindir}/bsmtp
%{_sbindir}/bsmtp
%{_sbindir}/btraceback
%{_mandir}/man1/bsmtp.1.gz
%{_mandir}/man8/btraceback.8.gz
%attr(0770, %{daemon_user}, %{daemon_group}) %dir %{working_dir}
%attr(0775, %{daemon_user}, %{daemon_group}) %dir /var/log/bareos
Expand Down
4 changes: 4 additions & 0 deletions platforms/packaging/bareos.spec
Expand Up @@ -621,6 +621,9 @@ install -m 644 platforms/systemd/bareos-fd.service %{buildroot}%{_unitdir}
install -m 644 platforms/systemd/bareos-sd.service %{buildroot}%{_unitdir}
%endif

# Create a symlink in sbin dir pointing to bsmtp now located in bin dir
ln -s ../bin/bsmtp %{buildroot}%{_sbindir}/bsmtp

# Create the Readme files for the meta packages
[ -d %{buildroot}%{_docdir}/%{name}/ ] || install -d -m 755 %{buildroot}%{_docdir}/%{name}
echo "This meta package emulates the former bareos-client package" > %{buildroot}%{_docdir}/%{name}/README.bareos-client
Expand Down Expand Up @@ -762,6 +765,7 @@ echo "This is a meta package to install a full bareos system" > %{buildroot}%{_d
%endif
%dir %{plugin_dir}
%{_bindir}/bsmtp
%{_sbindir}/bsmtp
%{_sbindir}/btraceback
%{_mandir}/man1/bsmtp.1.gz
%{_mandir}/man8/btraceback.8.gz
Expand Down
2 changes: 1 addition & 1 deletion src/tools/Makefile.in
Expand Up @@ -25,7 +25,7 @@ GETTEXT_LIBS = @LIBINTL@
OPENSSL_LIBS_NONSHARED = @OPENSSL_LIBS_NONSHARED@
GNUTLS_LIBS_NONSHARED = @GNUTLS_LIBS_NONSHARED@

TOOLS = bsmtp drivetype fstype bregex bwild bpluginfo bscrypto timelimit
TOOLS = drivetype fstype bregex bwild bpluginfo bscrypto timelimit
TOOLS_BIN = bsmtp bwild bregex
TOOLS_SBIN = bpluginfo bscrypto

Expand Down

0 comments on commit 02ebe99

Please sign in to comment.