bacula/bacula-7.2.0-remove-bpluginfo-remnants.patch

154 lines
4.8 KiB
Diff
Raw Normal View History

2015-09-29 09:16:35 +00:00
diff -Naur bacula-7.2.0/manpages/bpluginfo.8 bacula-7.2.0.new/manpages/bpluginfo.8
--- bacula-7.2.0/manpages/bpluginfo.8 2015-09-29 10:58:59.412811581 +0200
+++ bacula-7.2.0.new/manpages/bpluginfo.8 1970-01-01 01:00:00.000000000 +0100
@@ -1,121 +0,0 @@
-.\" Hey, EMACS: -*- nroff -*-
-.\" First parameter, NAME, should be all caps
-.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
-.\" other parameters are allowed: see man(7), man(1)
-.TH bpluginfo "8" "July 2012" "bpluginfo" "Network backup, recovery and verification"
-.\" Please adjust this date whenever revising the manpage.
-.\"
-.SH NAME
-bpluginfo \- Bacula Plugin information utility
-.SH SYNOPSIS
-.B bplufinfo
-.RI [ options ]
-.I plugin_filename.so
-.br
-.SH DESCRIPTION
-.LP
-The main purpose of
-.B bpluginfo
-is to display different information about Bacula plugin. You can use it to
-check a plugin name, author, license and short description. You can use
-'-f' option to display API implemented by the plugin. Some plugins may require
-additional '-a' option for validating a Bacula Daemons API. In most cases it
-is not required.
-.PP
-./ Bacula is a set of programs for performing a
-./ .PP
-./ -
-./ .BR bpluginfo
-
-.PP
-.SH OPTIONS
-A summary of options is included below.
-.TP
-.B \-h
-Show usage of the program.
-.TP
-.BI \-v
-Verbose information printing all available data from the plugin, including
-plugin header and implemented API.
-.TP
-.BI \-i
-Display short information from plugin header only. This is a default option.
-Option incompatible with
-.B -f
-option.
-.TP
-.BI \-f
-Display information about implemented API functions.
-.TP
-.BI \-a\ <api>
-You can supply the plugin initialization function with a particular Bacula
-API number. Without this option a default API number is '1'. Option require
-a numeric argument.
-.SH RETURN CODE
-.BR bpluginfo
-returns 0 on success, and non-zero on error.
-.TP
-You can check return code to find what was a cause of the error.
- * 0 - success
- * 1 - cannot load a plugin
- * 2 - cannot find a loadPlugin function
- * 3 - cannot find an unloadPlugin function
- * 10 - not enough memory
-.SH EXAMPLE USAGE
-This is an example of bplufinfo usage with verbose option (-v) and default plugin.
-.LP
-.sp
-.RS
-.nf
-
-\fB$ bpluginfo -v bpipe-fd.so
-
-Plugin type: File Daemon plugin
-Plugin magic: *FDPluginData*
-Plugin version: 1
-Plugin release date: January 2008
-Plugin author: Kern Sibbald
-Plugin license: Bacula or Bacula Enterprise
-Plugin description: Bacula Pipe File Daemon Plugin
-Plugin API version: 6
-
-Plugin functions:
- newPlugin()
- freePlugin()
- getPluginValue()
- setPluginValue()
- handlePluginEvent()
- startBackupFile()
- endBackupFile()
- startRestoreFile()
- endRestoreFile()
- pluginIO()
- createFile()
- setFileAttributes()
-.fi
-.RE
-
-.SH AUTHOR
-Written by Radoslaw Korzeniewski (c) Inteos Sp. z o.o.
-.SH BUGS
-Does not handle all required bacula functions callbacks which can lead to
-utility crash.
-.\".SH TODO"
-
-.PP
-
-.PP
-
-.SH "REPORTING BUGS"
-Report bugs to <support@inteos.pl>.
-.SH COPYRIGHT
-Copyright \(co 2012 Free Software Foundation Europe e.V.
-.br
-This is free software; see the source for copying conditions. There is NO
-warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-.SH "SEE ALSO"
-.BR bacula-dir,
-.BR bacula-sd,
-.BR bacula-fd,
-.BR "Bacula Plugins API"
-This man page document is released under the BSD 2-Clause license.
diff -Naur bacula-7.2.0/manpages/Makefile.in bacula-7.2.0.new/manpages/Makefile.in
--- bacula-7.2.0/manpages/Makefile.in 2015-09-29 10:58:59.412811581 +0200
+++ bacula-7.2.0.new/manpages/Makefile.in 2015-09-29 11:08:00.157868223 +0200
@@ -8,7 +8,7 @@
MAN8 = bacula.8 bacula-dir.8 bacula-fd.8 bacula-sd.8 \
bconsole.8 bcopy.8 bextract.8 bls.8 bscan.8 btape.8 \
- btraceback.8 dbcheck.8 bwild.8 bregex.8 bpluginfo.8
+ btraceback.8 dbcheck.8 bwild.8 bregex.8
MAN1 = bsmtp.1 bat.1
diff -Naur bacula-7.2.0/src/tools/Makefile.in bacula-7.2.0.new/src/tools/Makefile.in
--- bacula-7.2.0/src/tools/Makefile.in 2015-09-29 10:58:59.405811697 +0200
+++ bacula-7.2.0.new/src/tools/Makefile.in 2015-09-29 11:07:45.975102788 +0200
@@ -136,12 +136,6 @@
grow: Makefile grow.o ../lib/libbac$(DEFAULT_ARCHIVE_TYPE)
$(LIBTOOL_LINK) $(CXX) $(LDFLAGS) -L../lib -o $@ grow.o -lbac -lm $(DLIB) $(LIBS) $(GETTEXT_LIBS) $(OPENSSL_LIBS)
-bpluginfo.o: bpluginfo.c
- $(CXX) $(DEFS) $(DEBUG) -c $(CPPFLAGS) -I$(srcdir) -I$(basedir) -I../filed -I../dird -I../stored $(DINCLUDE) $(CFLAGS) $<
-
-bpluginfo: Makefile bpluginfo.o
- $(LIBTOOL_LINK) $(CXX) $(LDFLAGS) -L../lib -o $@ bpluginfo.o -lbac $(DLIB) $(LIBS) $(GETTEXT_LIBS) $(OPENSSL_LIBS)
-
Makefile: $(srcdir)/Makefile.in $(topdir)/config.status
cd $(topdir) \
&& CONFIG_FILES=$(thisdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status