Add SUSE rpm build scripts

Signed-off-by: Hannes Reinecke <hare@suse.de>
Update FSF address

Our build checker complained about an old FSF address.
So there.

Signed-off-by: Hannes Reinecke <hare@suse.de>
iscsid: call setgid prior to setuid

setuid should be always called after setgit to avoid a security
issue (Cf POS36-C).

Signed-off-by: Hannes Reinecke <hare@suse.de>
Fixup compilation warnings in bitvector.c

Signed-off-by: Hannes Reinecke <hare@suse.de>
open-isns: move config.h include

config.h should be included first, as it will influence the
contents of other header files.

Signed-off-by: Hannes Reinecke <hare@suse.de>
open-isns: Allow compilation of server programs

The open-isns source tree contains the code for the iSNS server, too.
So add a Makefile target to compile it.

Signed-off-by: Hannes Reinecke <hare@suse.de>
open-isns: add 'all' as valid option for debugging

Add option 'all' for debugging so we don't have to remember all
possible debugging options.

Signed-off-by: Hannes Reinecke <hare@suse.de>
isnsadm: Allow server to be specified

Instead of requiring a configuration file we should be allowing
the server to be specified on the commandline.

Signed-off-by: Hannes Reinecke <hare@suse.de>
open-isns: Make default IQN prefix configurable

This patch makes the default IQN prefix for iSNS configurable
at compile-time.

It can be modified by setting
'IQNFLAGS = -DIQNPREFIX=\"iqn.YYYY-MM\"'
when calling 'make'.

Signed-off-by: Hannes Reinecke <hare@suse.de>
open-isns: Implement 'IQNPrefix' configuration setting

Instead of having the IQN prefix hardcoded in the program
we should provide for a configuration setting 'IQNPrefix'.

Signed-off-by: Hannes Reinecke <hare@suse.de>
open-isns: Read source name from /etc/iscsi/initiatorname.iscsi

If no source name has been specified in the config file (or no
config file is present) we should be falling back to read the
InitiatorName from /etc/iscsi/initiatorname.iscsi.
After all, the initiator name is supposed to be unique per
machine.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Compile open-isns as a subpackage

Signed-off-by: Hannes Reinecke <hare@suse.de>
Fixup Provides and Obsoletes

open-isns supersedes the older 'isns' rpm, so we need to add
the correct 'Provides' and 'Obsoletes'.
The 'linux-iscsi' provides for open-iscsi has last been used
on SLES9, and can safely be dropped.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Install manpages for iscsistart and iscsi-iname
Update changelog