commit tgt for openSUSE:Factory

2019-07-28 Thread root
Hello community,

here is the log from the commit of package tgt for openSUSE:Factory checked in 
at 2019-07-28 10:22:02

Comparing /work/SRC/openSUSE:Factory/tgt (Old)
 and  /work/SRC/openSUSE:Factory/.tgt.new.4126 (New)


Package is "tgt"

Sun Jul 28 10:22:02 2019 rev:36 rq:718913 version:1.0.74

Changes:

--- /work/SRC/openSUSE:Factory/tgt/tgt.changes  2019-02-19 12:00:38.753130681 
+0100
+++ /work/SRC/openSUSE:Factory/.tgt.new.4126/tgt.changes2019-07-28 
10:22:03.572568712 +0200
@@ -1,0 +2,8 @@
+Fri Jul 26 12:21:06 UTC 2019 - matthias.gerst...@suse.com
+
+- removal of SuSEfirewall2 service, since SuSEfirewall2 has been replaced by
+  firewalld, see [1].
+
+  [1]: https://lists.opensuse.org/opensuse-factory/2019-01/msg00490.html
+
+---

Old:

  tgt.services



Other differences:
--
++ tgt.spec ++
--- /var/tmp/diff_new_pack.ktcpVb/_old  2019-07-28 10:22:04.488568692 +0200
+++ /var/tmp/diff_new_pack.ktcpVb/_new  2019-07-28 10:22:04.492568691 +0200
@@ -12,7 +12,7 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
@@ -30,7 +30,6 @@
 Url:http://stgt.sourceforge.net/
 Source: https://github.com/fujita/%{name}/archive/v%{version}.tar.gz
 Source1:%{name}d.service
-Source3:%{name}.services
 Source4:sysconfig.%{name}
 Patch1: %{name}-fix-build
 Patch2: setup-tgt-conf-d.patch
@@ -72,7 +71,6 @@
 %install
 make DESTDIR=%{buildroot} docdir=%{_docdir}/%{name} install
 install -vD -m 644 %{SOURCE1} %{buildroot}/%{_unitdir}/%{name}d.service
-install -vD %{SOURCE3} 
%{buildroot}%{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/tgt
 install -vD %{SOURCE4} %{buildroot}%{_fillupdir}/sysconfig.%{name}
 ln -sf service %{buildroot}/%{_sbindir}/rc%{name}d
 
@@ -95,7 +93,6 @@
 %dir %{_sysconfdir}/tgt
 %dir %{_sysconfdir}/tgt/conf.d
 %config %attr(0644,root,root) %{_sysconfdir}/tgt/targets.conf
-%config %attr(0644,root,root) 
%{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/tgt
 %{_fillupdir}/sysconfig.tgt
 %{_unitdir}/%{name}d.service
 %doc README doc/README.iscsi doc/README.iser doc/README.lu_configuration




commit tgt for openSUSE:Factory

2019-02-19 Thread root
Hello community,

here is the log from the commit of package tgt for openSUSE:Factory checked in 
at 2019-02-19 12:00:09

Comparing /work/SRC/openSUSE:Factory/tgt (Old)
 and  /work/SRC/openSUSE:Factory/.tgt.new.28833 (New)


Package is "tgt"

Tue Feb 19 12:00:09 2019 rev:35 rq:676927 version:1.0.74

Changes:

--- /work/SRC/openSUSE:Factory/tgt/tgt.changes  2018-08-15 10:36:59.604138401 
+0200
+++ /work/SRC/openSUSE:Factory/.tgt.new.28833/tgt.changes   2019-02-19 
12:00:38.753130681 +0100
@@ -1,0 +2,36 @@
+Fri Feb 15 23:19:22 UTC 2019 - ldun...@suse.com
+
+- Update to version v1.0.74 from version v1.0.60:
+  * tgt 1.0.74
+  * AIO backing store now reports a list of supported opcodes
+  * tgt 1.0.73
+  * Update tgt-admin
+  * fix build w/newer glibc
+  * Display nop_count and and nop_interval
+  * Quote $backing_store variable in system(), execute() and
+backtick-calls
+  * Buffer size is stored in struct concat_buf.size field, so
+use that instead of BUFSIZE since buffer size can be more
+than BUFSIZE. Also, remove BUFSIZE since its not used anymore.
+  * tgt 1.0.72
+  * smc: fix snprintf warnings with gcc7
+
+  This removed the tarball v1.0.60.tar.gz, and replaced it
+  with v1.0.74.tar.gz, which can now be gotten using the new
+  _service file. This also updated the SPEC file with the new
+  version number and the different patch set. Remaining
+  patches were renumbered.
+
+  This following patches were UPDATED (refreshed):
+  * tgt-fix-build
+  * tgt-include-sys-macros-for-major.patch
+
+  The following patches were REMOVED (no longer needed):
+  * tgt-handle-access-of-a-target-that-has-been-removed
+  * tgt-missing-module-directory-not-an-error
+  * tgt-compare-pointer-to-null.patch
+
+  And the following patch was added (and submitted upstream):
+  * tgt-Fix-gcc7-string-truncation-warnings.patch
+
+---

Old:

  tgt-compare-pointer-to-null.patch
  tgt-handle-access-of-a-target-that-has-been-removed
  tgt-missing-module-directory-not-an-error
  v1.0.60.tar.gz

New:

  _service
  _servicedata
  tgt-Fix-gcc7-string-truncation-warnings.patch
  v1.0.74.tar.gz



Other differences:
--
++ tgt.spec ++
--- /var/tmp/diff_new_pack.zTA7cT/_old  2019-02-19 12:00:39.949130054 +0100
+++ /var/tmp/diff_new_pack.zTA7cT/_new  2019-02-19 12:00:39.949130054 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package tgt
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -22,22 +22,20 @@
 %endif
 
 Name:   tgt
-Version:1.0.60
+Version:1.0.74
 Release:0
 Summary:Generic Linux target framework (tgt)
 License:GPL-2.0-only
 Group:  System/Daemons
 Url:http://stgt.sourceforge.net/
-Source: https://github.com/fujita/tgt/archive/v%{version}.tar.gz
+Source: https://github.com/fujita/%{name}/archive/v%{version}.tar.gz
 Source1:%{name}d.service
 Source3:%{name}.services
 Source4:sysconfig.%{name}
-Patch2: %{name}-fix-build
-Patch3: setup-tgt-conf-d.patch
-Patch4: %{name}-handle-access-of-a-target-that-has-been-removed
-Patch5: %{name}-missing-module-directory-not-an-error
-Patch6: %{name}-include-sys-macros-for-major.patch
-Patch7: %{name}-compare-pointer-to-null.patch
+Patch1: %{name}-fix-build
+Patch2: setup-tgt-conf-d.patch
+Patch3: %{name}-include-sys-macros-for-major.patch
+Patch4: %{name}-Fix-gcc7-string-truncation-warnings.patch
 BuildRequires:  docbook-xsl-stylesheets
 BuildRequires:  libaio-devel
 BuildRequires:  libxslt
@@ -58,12 +56,10 @@
 
 %prep
 %setup -q
+%patch1 -p1
 %patch2 -p1
 %patch3 -p1
 %patch4 -p1
-%patch5 -p1
-%patch6 -p1
-%patch7 -p1
 
 %build
 %ifarch ppc ppc64 ppc64le
@@ -107,6 +103,7 @@
 %doc doc/README.rbd doc/tmf.txt
 %doc %_defaultdocdir/%name/examples
 %doc %_defaultdocdir/%name/html
+%{_mandir}/man5/*
 %{_mandir}/man8/*
 
 %changelog

++ _service ++

  
git
https://github.com/fujita/tgt.git

tgt
v1.0.74
1.0.74
enable
  
  
*tgt*.tar
gz
  
  

++ _servicedata ++


https://github.com/fujita/tgt.git
  f33f6b73d3bfac8b3e44f068d02f90627b407f4e++
 tgt-Fix-gcc7-string-truncation-warnings.patch ++
>From 2de8bebe132e3b998bf4848d0bd22b50367ad4b8 Mon Sep 17 00:00:00 2001
From: Lee Duncan 
Date: Sat, 16 Feb 2019 10:29:19 -0800
Subject: [PATCH] Fix gcc7 string truncation warnings.

Mostly, this is 

commit tgt for openSUSE:Factory

2018-08-15 Thread root
Hello community,

here is the log from the commit of package tgt for openSUSE:Factory checked in 
at 2018-08-15 10:36:57

Comparing /work/SRC/openSUSE:Factory/tgt (Old)
 and  /work/SRC/openSUSE:Factory/.tgt.new (New)


Package is "tgt"

Wed Aug 15 10:36:57 2018 rev:34 rq:629016 version:1.0.60

Changes:

--- /work/SRC/openSUSE:Factory/tgt/tgt.changes  2017-11-24 10:55:48.005371382 
+0100
+++ /work/SRC/openSUSE:Factory/.tgt.new/tgt.changes 2018-08-15 
10:36:59.604138401 +0200
@@ -1,0 +2,8 @@
+Sun Aug 12 01:11:13 UTC 2018 - ldun...@suse.com
+
+- Fixing build issue with "major()" and a pointer
+  comparison warning while I was at it, adding patches:
+  * tgt-include-sys-macros-for-major.patch
+  * tgt-compare-pointer-to-null.patch
+
+---

New:

  tgt-compare-pointer-to-null.patch
  tgt-include-sys-macros-for-major.patch



Other differences:
--
++ tgt.spec ++
--- /var/tmp/diff_new_pack.sOKbeF/_old  2018-08-15 10:37:00.204139494 +0200
+++ /var/tmp/diff_new_pack.sOKbeF/_new  2018-08-15 10:37:00.204139494 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package tgt
 #
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -25,7 +25,7 @@
 Version:1.0.60
 Release:0
 Summary:Generic Linux target framework (tgt)
-License:GPL-2.0
+License:GPL-2.0-only
 Group:  System/Daemons
 Url:http://stgt.sourceforge.net/
 Source: https://github.com/fujita/tgt/archive/v%{version}.tar.gz
@@ -36,6 +36,8 @@
 Patch3: setup-tgt-conf-d.patch
 Patch4: %{name}-handle-access-of-a-target-that-has-been-removed
 Patch5: %{name}-missing-module-directory-not-an-error
+Patch6: %{name}-include-sys-macros-for-major.patch
+Patch7: %{name}-compare-pointer-to-null.patch
 BuildRequires:  docbook-xsl-stylesheets
 BuildRequires:  libaio-devel
 BuildRequires:  libxslt
@@ -60,6 +62,8 @@
 %patch3 -p1
 %patch4 -p1
 %patch5 -p1
+%patch6 -p1
+%patch7 -p1
 
 %build
 %ifarch ppc ppc64 ppc64le

++ tgt-compare-pointer-to-null.patch ++
diff -aurp tgt-1.0.60.orig/usr/tgtd.c tgt-1.0.60/usr/tgtd.c
--- tgt-1.0.60.orig/usr/tgtd.c  2015-07-01 17:10:39.0 -0700
+++ tgt-1.0.60/usr/tgtd.c   2018-08-11 18:08:50.707873331 -0700
@@ -310,7 +310,7 @@ int call_program(const char *cmd, void (
pos = arg;
str_spacecpy(, cmd);
if (strchr(cmd, ' ')) {
-   while (pos != '\0')
+   while (pos != NULL)
argv[i++] = strsep(, " ");
} else
argv[i++] = arg;
++ tgt-include-sys-macros-for-major.patch ++
diff -aurp tgt-1.0.60.orig/usr/bs_sg.c tgt-1.0.60/usr/bs_sg.c
--- tgt-1.0.60.orig/usr/bs_sg.c 2015-07-01 17:10:39.0 -0700
+++ tgt-1.0.60/usr/bs_sg.c  2018-08-11 18:03:25.489712435 -0700
@@ -36,6 +36,7 @@
 #include 
 #include 
 #include 
+#include 
 
 #include "bsg.h" /* Copied from include/linux/bsg.h */
 #include "list.h"



commit tgt for openSUSE:Factory

2017-11-24 Thread root
Hello community,

here is the log from the commit of package tgt for openSUSE:Factory checked in 
at 2017-11-24 10:55:47

Comparing /work/SRC/openSUSE:Factory/tgt (Old)
 and  /work/SRC/openSUSE:Factory/.tgt.new (New)


Package is "tgt"

Fri Nov 24 10:55:47 2017 rev:33 rq:544909 version:1.0.60

Changes:

--- /work/SRC/openSUSE:Factory/tgt/tgt.changes  2017-02-03 20:03:29.955943403 
+0100
+++ /work/SRC/openSUSE:Factory/.tgt.new/tgt.changes 2017-11-24 
10:55:48.005371382 +0100
@@ -1,0 +2,6 @@
+Thu Nov 23 13:42:22 UTC 2017 - rbr...@suse.com
+
+- Replace references to /var/adm/fillup-templates with new 
+  %_fillupdir macro (boo#1069468)
+
+---



Other differences:
--
++ tgt.spec ++
--- /var/tmp/diff_new_pack.8haNYG/_old  2017-11-24 10:55:48.953336759 +0100
+++ /var/tmp/diff_new_pack.8haNYG/_new  2017-11-24 10:55:48.957336613 +0100
@@ -16,6 +16,11 @@
 #
 
 
+#Compat macro for new _fillupdir macro introduced in Nov 2017
+%if ! %{defined _fillupdir}
+  %define _fillupdir /var/adm/fillup-templates
+%endif
+
 Name:   tgt
 Version:1.0.60
 Release:0
@@ -68,7 +73,7 @@
 make DESTDIR=%{buildroot} docdir=%{_docdir}/%{name} install
 install -vD -m 644 %{SOURCE1} %{buildroot}/%{_unitdir}/%{name}d.service
 install -vD %{SOURCE3} 
%{buildroot}%{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/tgt
-install -vD %{SOURCE4} 
%{buildroot}%{_localstatedir}/adm/fillup-templates/sysconfig.%{name}
+install -vD %{SOURCE4} %{buildroot}%{_fillupdir}/sysconfig.%{name}
 ln -sf service %{buildroot}/%{_sbindir}/rc%{name}d
 
 %pre
@@ -91,7 +96,7 @@
 %dir %{_sysconfdir}/tgt/conf.d
 %config %attr(0644,root,root) %{_sysconfdir}/tgt/targets.conf
 %config %attr(0644,root,root) 
%{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/tgt
-%{_localstatedir}/adm/fillup-templates/sysconfig.tgt
+%{_fillupdir}/sysconfig.tgt
 %{_unitdir}/%{name}d.service
 %doc README doc/README.iscsi doc/README.iser doc/README.lu_configuration
 %doc doc/README.mmc doc/README.passthrough doc/README.sbcjukebox doc/README.ssc




commit tgt for openSUSE:Factory

2017-02-03 Thread root
Hello community,

here is the log from the commit of package tgt for openSUSE:Factory checked in 
at 2017-02-01 09:53:28

Comparing /work/SRC/openSUSE:Factory/tgt (Old)
 and  /work/SRC/openSUSE:Factory/.tgt.new (New)


Package is "tgt"

Changes:

--- /work/SRC/openSUSE:Factory/tgt/tgt.changes  2015-11-17 14:23:26.0 
+0100
+++ /work/SRC/openSUSE:Factory/.tgt.new/tgt.changes 2017-02-03 
20:03:29.955943403 +0100
@@ -1,0 +2,6 @@
+Tue Jan 31 01:17:49 UTC 2017 - ldun...@suse.com
+
+- Adding documentation files to SPEC file to
+  silence rpmlint
+
+---



Other differences:
--
++ tgt.spec ++
--- /var/tmp/diff_new_pack.t0id9s/_old  2017-02-03 20:03:30.791825748 +0100
+++ /var/tmp/diff_new_pack.t0id9s/_new  2017-02-03 20:03:30.799824622 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package tgt
 #
-# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -95,6 +95,9 @@
 %{_unitdir}/%{name}d.service
 %doc README doc/README.iscsi doc/README.iser doc/README.lu_configuration
 %doc doc/README.mmc doc/README.passthrough doc/README.sbcjukebox doc/README.ssc
+%doc doc/README.rbd doc/tmf.txt
+%doc %_defaultdocdir/%name/examples
+%doc %_defaultdocdir/%name/html
 %{_mandir}/man8/*
 
 %changelog




commit tgt for openSUSE:Factory

2015-11-17 Thread h_root
Hello community,

here is the log from the commit of package tgt for openSUSE:Factory checked in 
at 2015-11-17 14:23:22

Comparing /work/SRC/openSUSE:Factory/tgt (Old)
 and  /work/SRC/openSUSE:Factory/.tgt.new (New)


Package is "tgt"

Changes:

--- /work/SRC/openSUSE:Factory/tgt/tgt.changes  2015-09-24 06:14:41.0 
+0200
+++ /work/SRC/openSUSE:Factory/.tgt.new/tgt.changes 2015-11-17 
14:23:26.0 +0100
@@ -1,0 +2,15 @@
+Mon Nov 16 16:43:18 UTC 2015 - ldun...@suse.com
+
+- Adding upstream patch to silence bogus error
+  message when backing-store directory not present
+  (bsc#954801), adding patch:
+  * tgt-missing-module-directory-not-an-error 
+
+---
+Mon Nov 16 00:54:26 UTC 2015 - ldun...@suse.com
+
+- Added upstream patch to handle possible target removal
+  while accessing it (bsc#922526), adding patch:
+  * tgt-handle-access-of-a-target-that-has-been-removed
+
+---

New:

  tgt-handle-access-of-a-target-that-has-been-removed
  tgt-missing-module-directory-not-an-error



Other differences:
--
++ tgt.spec ++
--- /var/tmp/diff_new_pack.WvRJQS/_old  2015-11-17 14:23:27.0 +0100
+++ /var/tmp/diff_new_pack.WvRJQS/_new  2015-11-17 14:23:27.0 +0100
@@ -29,6 +29,8 @@
 Source4:sysconfig.%{name}
 Patch2: %{name}-fix-build
 Patch3: setup-tgt-conf-d.patch
+Patch4: %{name}-handle-access-of-a-target-that-has-been-removed
+Patch5: %{name}-missing-module-directory-not-an-error
 BuildRequires:  docbook-xsl-stylesheets
 BuildRequires:  libaio-devel
 BuildRequires:  libxslt
@@ -51,6 +53,8 @@
 %setup -q
 %patch2 -p1
 %patch3 -p1
+%patch4 -p1
+%patch5 -p1
 
 %build
 %ifarch ppc ppc64 ppc64le

++ tgt-handle-access-of-a-target-that-has-been-removed ++
From: Lee Duncan 
Date: Wed, 28 Oct 2015 14:16:13 +0900
Subject: Handle access of a target that has been removed
Git-commit: 2791ed243ab2a2fcfe48aea4a0cc23f4ad8467dc
Patch-mainline: v1.0.61

I recently got a report of a tgtd core dump from our opencloud
group. The stack trace showed that a strcmp against a NULL was causing
the failure:


Program terminated with signal 11, Segmentation fault.
(gdb) bt
name=0x6ac16f 
"iqn.2010-10.org.openstack:volume-e812c705-80bc-4064-a84c-5559cda8b1ca") at 
iscsi/target.c:216
at iscsi/iscsid.c:654
events=1, data=0x63a480 ) at iscsi/iscsi_tcp.c:158


It looks like target_find_by_name() uses tgt_targetname(), but doesn't
account for the fact that it can return a NULL when the target being
looked up does not (now) exist:


char *tgt_targetname(int tid)
{
struct target *target;

target = target_lookup(tid);
if (!target)
   return NULL;

   return target->name;
}

Signed-off-by: FUJITA Tomonori 
Acked-by: Lee Duncan 
---
 usr/iscsi/target.c |4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

--- a/usr/iscsi/target.c
+++ b/usr/iscsi/target.c
@@ -369,9 +369,11 @@ void target_list_build(struct iscsi_conn
 struct iscsi_target *target_find_by_name(const char *name)
 {
struct iscsi_target *target;
+   char *tname;
 
list_for_each_entry(target, _targets_list, tlist) {
-   if (!strcmp(tgt_targetname(target->tid), name))
+   tname = tgt_targetname(target->tid);
+   if (tname && !strcmp(tname, name))
return target;
}
 
++ tgt-missing-module-directory-not-an-error ++
From: Lee Duncan 
Date: Mon Nov 16 08:49:57 PST 2015
Subject: backing-store modules directory not present is not an error

The backing-store modules directory, normally
/usr/lib/tgt/backing-store, is not created, needed, or used when there
are no backing store modules. So change the error message printed when
the directory is not present to a debug message.

Signed-off-by: Lee Duncan 
---
 usr/bs.c |3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

--- a/usr/bs.c
+++ b/usr/bs.c
@@ -263,7 +263,8 @@ static int bs_init_signalfd(void)
 
dir = opendir(BSDIR);
if (dir == NULL) {
-   eprintf("could not open backing-store module directory %s\n",
+   /* not considered an error if there are no modules */
+   dprintf("could not open backing-store module directory %s\n",
BSDIR);
} else {
struct 

commit tgt for openSUSE:Factory

2015-09-23 Thread h_root
Hello community,

here is the log from the commit of package tgt for openSUSE:Factory checked in 
at 2015-09-24 06:14:36

Comparing /work/SRC/openSUSE:Factory/tgt (Old)
 and  /work/SRC/openSUSE:Factory/.tgt.new (New)


Package is "tgt"

Changes:

--- /work/SRC/openSUSE:Factory/tgt/tgt.changes  2015-09-11 09:04:50.0 
+0200
+++ /work/SRC/openSUSE:Factory/.tgt.new/tgt.changes 2015-09-24 
06:14:41.0 +0200
@@ -1,0 +2,16 @@
+Fri Sep 18 09:52:28 UTC 2015 - p.drou...@gmail.com
+
+- Update to version 1.0.60
+  * No changelog available
+- Update homepage Url
+- Use download Url as source
+- Remove tgt-git-update; fixed on upstream
+- Remove depreciated AUTHORS section
+- Perform a spec-cleaner on spec file
+
+---
+Sun Sep 13 23:31:32 UTC 2015 - dd...@suse.com
+
+- Fix rctgtd systemd service symlink; (bnc#945604).
+
+---

Old:

  tgt-1.0.44.tar.bz2
  tgt-git-update

New:

  v1.0.60.tar.gz



Other differences:
--
++ tgt.spec ++
--- /var/tmp/diff_new_pack.69lWRN/_old  2015-09-24 06:14:42.0 +0200
+++ /var/tmp/diff_new_pack.69lWRN/_new  2015-09-24 06:14:42.0 +0200
@@ -17,28 +17,27 @@
 
 
 Name:   tgt
-BuildRequires:  docbook-xsl-stylesheets
-BuildRequires:  libaio-devel
-BuildRequires:  libxslt
-BuildRequires:  openssl-devel
-BuildRequires:  perl-Config-General
-BuildRequires:  pkgconfig(systemd)
-Obsoletes:  iscsitarget
-Requires:   perl-Config-General
-Url:http://stgt.berlios.de
-Requires(pre):  %fillup_prereq
-Version:1.0.44
+Version:1.0.60
 Release:0
 Summary:Generic Linux target framework (tgt)
 License:GPL-2.0
 Group:  System/Daemons
-Source: %{name}-%{version}.tar.bz2
+Url:http://stgt.sourceforge.net/
+Source: https://github.com/fujita/tgt/archive/v%{version}.tar.gz
 Source1:%{name}d.service
 Source3:%{name}.services
 Source4:sysconfig.%{name}
-Patch1: %{name}-git-update
 Patch2: %{name}-fix-build
 Patch3: setup-tgt-conf-d.patch
+BuildRequires:  docbook-xsl-stylesheets
+BuildRequires:  libaio-devel
+BuildRequires:  libxslt
+BuildRequires:  openssl-devel
+BuildRequires:  perl-Config-General
+BuildRequires:  systemd-rpm-macros
+Requires:   perl-Config-General
+Requires(pre):  %fillup_prereq
+Obsoletes:  iscsitarget
 
 %description
 Linux target framework (tgt) aims to simplify various SCSI target
@@ -48,16 +47,8 @@
 tools. Some target drivers uses all of them and some use only
 user-space daemon and tools (i.e. they completely runs in user space).
 
-
-
-Authors:
-
-FUJITA Tomonori 
-Mike Christie 
-
 %prep
-%setup -n %{name}-%{version}
-%patch1 -p1
+%setup -q
 %patch2 -p1
 %patch3 -p1
 
@@ -67,20 +58,20 @@
 %else
 %define backends ISCSI=1 FCP=1 FCOE=1 
 %endif
-%{__make} OPTFLAGS="${RPM_OPT_FLAGS}" %{backends}
+make OPTFLAGS="%{optflags}" %{backends}
 
 %install
-%{__make} DESTDIR=%{buildroot} docdir=%_docdir/%{name} install
-install -vD -m 644 %{S:1} %{buildroot}/%{_unitdir}/%{name}d.service
-install -vD %{S:3} %{buildroot}/etc/sysconfig/SuSEfirewall2.d/services/tgt
-install -vD %{S:4} ${RPM_BUILD_ROOT}/var/adm/fillup-templates/sysconfig.%{name}
-ln -sf service %{buildroot}/usr/sbin/rc%{name}
+make DESTDIR=%{buildroot} docdir=%{_docdir}/%{name} install
+install -vD -m 644 %{SOURCE1} %{buildroot}/%{_unitdir}/%{name}d.service
+install -vD %{SOURCE3} 
%{buildroot}%{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/tgt
+install -vD %{SOURCE4} 
%{buildroot}%{_localstatedir}/adm/fillup-templates/sysconfig.%{name}
+ln -sf service %{buildroot}/%{_sbindir}/rc%{name}d
 
 %pre
 %service_add_pre %{name}d.service
 
 %post
-%{fillup_only}
+%fillup_only
 %service_add_post %{name}d.service
 
 %preun
@@ -92,14 +83,14 @@
 %files
 %defattr(-,root,root)
 %{_sbindir}/*
-%dir /etc/tgt
-%dir /etc/tgt/conf.d
-%config %attr(0644,root,root) /etc/tgt/targets.conf
-%config %attr(0644,root,root) /etc/sysconfig/SuSEfirewall2.d/services/tgt
-/var/adm/fillup-templates/sysconfig.tgt
+%dir %{_sysconfdir}/tgt
+%dir %{_sysconfdir}/tgt/conf.d
+%config %attr(0644,root,root) %{_sysconfdir}/tgt/targets.conf
+%config %attr(0644,root,root) 
%{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/tgt
+%{_localstatedir}/adm/fillup-templates/sysconfig.tgt
 %{_unitdir}/%{name}d.service
 %doc README doc/README.iscsi doc/README.iser doc/README.lu_configuration
 %doc doc/README.mmc doc/README.passthrough doc/README.sbcjukebox doc/README.ssc
-%doc %{_mandir}/man8/*
+%{_mandir}/man8/*
 
 %changelog




commit tgt for openSUSE:Factory

2015-09-11 Thread h_root
Hello community,

here is the log from the commit of package tgt for openSUSE:Factory checked in 
at 2015-09-11 09:04:45

Comparing /work/SRC/openSUSE:Factory/tgt (Old)
 and  /work/SRC/openSUSE:Factory/.tgt.new (New)


Package is "tgt"

Changes:

--- /work/SRC/openSUSE:Factory/tgt/tgt.changes  2015-06-30 10:16:48.0 
+0200
+++ /work/SRC/openSUSE:Factory/.tgt.new/tgt.changes 2015-09-11 
09:04:50.0 +0200
@@ -1,0 +2,6 @@
+Thu Sep 10 07:03:47 UTC 2015 - bwiedem...@suse.com
+
+- Allow to add options via sysconfig (bnc#828214)
+- Drop invalid ExecStopPre entry
+
+---

New:

  sysconfig.tgt



Other differences:
--
++ tgt.spec ++
--- /var/tmp/diff_new_pack.5mF1Wr/_old  2015-09-11 09:04:51.0 +0200
+++ /var/tmp/diff_new_pack.5mF1Wr/_new  2015-09-11 09:04:51.0 +0200
@@ -35,6 +35,7 @@
 Source: %{name}-%{version}.tar.bz2
 Source1:%{name}d.service
 Source3:%{name}.services
+Source4:sysconfig.%{name}
 Patch1: %{name}-git-update
 Patch2: %{name}-fix-build
 Patch3: setup-tgt-conf-d.patch
@@ -72,6 +73,7 @@
 %{__make} DESTDIR=%{buildroot} docdir=%_docdir/%{name} install
 install -vD -m 644 %{S:1} %{buildroot}/%{_unitdir}/%{name}d.service
 install -vD %{S:3} %{buildroot}/etc/sysconfig/SuSEfirewall2.d/services/tgt
+install -vD %{S:4} ${RPM_BUILD_ROOT}/var/adm/fillup-templates/sysconfig.%{name}
 ln -sf service %{buildroot}/usr/sbin/rc%{name}
 
 %pre
@@ -94,6 +96,7 @@
 %dir /etc/tgt/conf.d
 %config %attr(0644,root,root) /etc/tgt/targets.conf
 %config %attr(0644,root,root) /etc/sysconfig/SuSEfirewall2.d/services/tgt
+/var/adm/fillup-templates/sysconfig.tgt
 %{_unitdir}/%{name}d.service
 %doc README doc/README.iscsi doc/README.iser doc/README.lu_configuration
 %doc doc/README.mmc doc/README.passthrough doc/README.sbcjukebox doc/README.ssc

++ sysconfig.tgt ++
## Path:Network/File systems/iSCSI
## Description: tgt iSCSI server options
## Type:string
## Default: ""
## ServiceRestart: tgtd
#
# Options for tgtd
# set listen addr with --iscsi portal=192.0.2.1:3260
#
TGTD_OPTS=""

++ tgtd.service ++
--- /var/tmp/diff_new_pack.5mF1Wr/_old  2015-09-11 09:04:51.0 +0200
+++ /var/tmp/diff_new_pack.5mF1Wr/_new  2015-09-11 09:04:51.0 +0200
@@ -3,11 +3,12 @@
 After=network.target
 
 [Service]
+EnvironmentFile=-/etc/sysconfig/tgt
 Type=forking
 User=root
-ExecStart=/usr/sbin/tgtd
+ExecStart=/usr/sbin/tgtd $TGTD_OPTS
 ExecStartPost=/bin/bash -c "sleep 0.5 ; /usr/sbin/tgtadm --op update --mode 
sys --name State -v offline ; /usr/sbin/tgt-admin -e -c /etc/tgt/targets.conf ; 
/usr/sbin/tgtadm --op update --mode sys --name State -v ready"
-ExecStopPre=/usr/sbin/tgt-admin --update ALL -c /dev/null
+# only valid in .socket: ExecStopPre=/usr/sbin/tgt-admin --update ALL -c 
/dev/null
 ExecStop=-/usr/sbin/tgtadm --op delete --mode system 
 
 




commit tgt for openSUSE:Factory

2015-06-30 Thread h_root
Hello community,

here is the log from the commit of package tgt for openSUSE:Factory checked in 
at 2015-06-30 10:16:46

Comparing /work/SRC/openSUSE:Factory/tgt (Old)
 and  /work/SRC/openSUSE:Factory/.tgt.new (New)


Package is tgt

Changes:

--- /work/SRC/openSUSE:Factory/tgt/tgt.changes  2014-09-06 12:18:10.0 
+0200
+++ /work/SRC/openSUSE:Factory/.tgt.new/tgt.changes 2015-06-30 
10:16:48.0 +0200
@@ -1,0 +2,6 @@
+Fri Jun 26 06:14:44 UTC 2015 - bwiedem...@suse.com
+
+- fix tgtd start by giving tgtd time to open the socket (bnc#934642)
+  and use bash to run multiple programs in ExecStartPost
+
+---



Other differences:
--
++ tgt.spec ++
--- /var/tmp/diff_new_pack.9GcDck/_old  2015-06-30 10:16:48.0 +0200
+++ /var/tmp/diff_new_pack.9GcDck/_new  2015-06-30 10:16:48.0 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package tgt
 #
-# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -70,7 +70,7 @@
 
 %install
 %{__make} DESTDIR=%{buildroot} docdir=%_docdir/%{name} install
-install -vD -m 755 %{S:1} %{buildroot}/%{_unitdir}/%{name}d.service
+install -vD -m 644 %{S:1} %{buildroot}/%{_unitdir}/%{name}d.service
 install -vD %{S:3} %{buildroot}/etc/sysconfig/SuSEfirewall2.d/services/tgt
 ln -sf service %{buildroot}/usr/sbin/rc%{name}
 

++ tgtd.service ++
--- /var/tmp/diff_new_pack.9GcDck/_old  2015-06-30 10:16:48.0 +0200
+++ /var/tmp/diff_new_pack.9GcDck/_new  2015-06-30 10:16:48.0 +0200
@@ -6,7 +6,7 @@
 Type=forking
 User=root
 ExecStart=/usr/sbin/tgtd
-ExecStartPost=/usr/sbin/tgtadm --op update --mode sys --name State -v offline 
; /usr/sbin/tgt-admin -e -c /etc/tgt/targets.conf ; /usr/sbin/tgtadm --op 
update --mode sys --name State -v ready
+ExecStartPost=/bin/bash -c sleep 0.5 ; /usr/sbin/tgtadm --op update --mode 
sys --name State -v offline ; /usr/sbin/tgt-admin -e -c /etc/tgt/targets.conf ; 
/usr/sbin/tgtadm --op update --mode sys --name State -v ready
 ExecStopPre=/usr/sbin/tgt-admin --update ALL -c /dev/null
 ExecStop=-/usr/sbin/tgtadm --op delete --mode system 
 




commit tgt for openSUSE:Factory

2014-09-06 Thread h_root
Hello community,

here is the log from the commit of package tgt for openSUSE:Factory checked in 
at 2014-09-06 12:18:04

Comparing /work/SRC/openSUSE:Factory/tgt (Old)
 and  /work/SRC/openSUSE:Factory/.tgt.new (New)


Package is tgt

Changes:

--- /work/SRC/openSUSE:Factory/tgt/tgt.changes  2014-05-21 16:31:36.0 
+0200
+++ /work/SRC/openSUSE:Factory/.tgt.new/tgt.changes 2014-09-06 
12:18:10.0 +0200
@@ -1,0 +2,5 @@
+Tue Sep  2 19:34:55 CEST 2014 - m...@suse.de
+
+- support ppc64le
+
+---



Other differences:
--
++ tgt.spec ++
--- /var/tmp/diff_new_pack.fNUtq4/_old  2014-09-06 12:18:11.0 +0200
+++ /var/tmp/diff_new_pack.fNUtq4/_new  2014-09-06 12:18:11.0 +0200
@@ -61,7 +61,7 @@
 %patch3 -p1
 
 %build
-%ifarch ppc ppc64
+%ifarch ppc ppc64 ppc64le
 %define backends ISCSI=1 FCP=1 FCOE=1 IBMVIO=1
 %else
 %define backends ISCSI=1 FCP=1 FCOE=1 

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit tgt for openSUSE:Factory

2014-05-21 Thread h_root
Hello community,

here is the log from the commit of package tgt for openSUSE:Factory checked in 
at 2014-05-21 16:31:35

Comparing /work/SRC/openSUSE:Factory/tgt (Old)
 and  /work/SRC/openSUSE:Factory/.tgt.new (New)


Package is tgt

Changes:

--- /work/SRC/openSUSE:Factory/tgt/tgt.changes  2014-03-04 13:59:48.0 
+0100
+++ /work/SRC/openSUSE:Factory/.tgt.new/tgt.changes 2014-05-21 
16:31:36.0 +0200
@@ -1,0 +2,5 @@
+Wed May 14 14:20:38 UTC 2014 - meiss...@suse.com
+
+- add missed %service_add_pre in %pre section
+
+---



Other differences:
--
++ tgt.spec ++
--- /var/tmp/diff_new_pack.6piO3S/_old  2014-05-21 16:31:40.0 +0200
+++ /var/tmp/diff_new_pack.6piO3S/_new  2014-05-21 16:31:40.0 +0200
@@ -74,6 +74,9 @@
 install -vD %{S:3} %{buildroot}/etc/sysconfig/SuSEfirewall2.d/services/tgt
 ln -sf service %{buildroot}/usr/sbin/rc%{name}
 
+%pre
+%service_add_pre %{name}d.service
+
 %post
 %{fillup_only}
 %service_add_post %{name}d.service

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit tgt for openSUSE:Factory

2014-03-04 Thread h_root
Hello community,

here is the log from the commit of package tgt for openSUSE:Factory checked in 
at 2014-03-04 13:59:47

Comparing /work/SRC/openSUSE:Factory/tgt (Old)
 and  /work/SRC/openSUSE:Factory/.tgt.new (New)


Package is tgt

Changes:

--- /work/SRC/openSUSE:Factory/tgt/tgt.changes  2014-01-30 11:38:14.0 
+0100
+++ /work/SRC/openSUSE:Factory/.tgt.new/tgt.changes 2014-03-04 
13:59:48.0 +0100
@@ -1,0 +2,16 @@
+Wed Feb 26 12:57:52 CET 2014 - h...@suse.de
+
+- Update to latest upstream version 1.0.44 (FATE#316717):
+  * Add sheepdog support
+  * Add rbd support
+  * Update iSER support
+  * Add support for iSCSI NOP-OUT
+  * SPC/SBC fixes
+  * iSCSI fixes
+  * Fixup persistent group reservations
+- Removed tgt-mgmt-fixed-m-system-o-delete-handling.patch:
+  Merged with upstream
+- Removed tgt-1.0.28.tar.bz2
+- Added tgt-1.0.44.tar.bz2
+
+---

Old:

  tgt-1.0.28.tar.bz2
  tgt-mgmt-fixed-m-system-o-delete-handling.patch

New:

  tgt-1.0.44.tar.bz2



Other differences:
--
++ tgt.spec ++
--- /var/tmp/diff_new_pack.5QPn45/_old  2014-03-04 13:59:48.0 +0100
+++ /var/tmp/diff_new_pack.5QPn45/_new  2014-03-04 13:59:48.0 +0100
@@ -27,7 +27,7 @@
 Requires:   perl-Config-General
 Url:http://stgt.berlios.de
 Requires(pre):  %fillup_prereq
-Version:1.0.28
+Version:1.0.44
 Release:0
 Summary:Generic Linux target framework (tgt)
 License:GPL-2.0
@@ -37,10 +37,7 @@
 Source3:%{name}.services
 Patch1: %{name}-git-update
 Patch2: %{name}-fix-build
-# PATCH-FIX-UPSTREAM tgt-mgmt-fixed-m-system-o-delete-handling.patch 
[bnc#767438] - ldun...@suse.com
-Patch3: %{name}-mgmt-fixed-m-system-o-delete-handling.patch
-Patch4: setup-tgt-conf-d.patch
-%{?systemd_requires}
+Patch3: setup-tgt-conf-d.patch
 
 %description
 Linux target framework (tgt) aims to simplify various SCSI target
@@ -62,7 +59,6 @@
 %patch1 -p1
 %patch2 -p1
 %patch3 -p1
-%patch4
 
 %build
 %ifarch ppc ppc64

++ setup-tgt-conf-d.patch ++
--- /var/tmp/diff_new_pack.5QPn45/_old  2014-03-04 13:59:48.0 +0100
+++ /var/tmp/diff_new_pack.5QPn45/_new  2014-03-04 13:59:48.0 +0100
@@ -1,12 +1,29 @@
 conf/Makefile
-+++ conf/Makefile
+From 4711fc19b6b83d572fd6eafd64a834559cae8ce2 Mon Sep 17 00:00:00 2001
+From: Hannes Reinecke h...@suse.de
+Date: Wed, 26 Feb 2014 12:50:09 +0100
+Subject: [PATCH 2/2] Install examples in documentation directory
+
+The examples should be installed in the documentation directory,
+not the standard configuration directory.
+
+Signed-off-by: Dirk Mueller dmuel...@suse.com
+Acked-by: Hannes Reinecke h...@suse.de
+---
+ conf/Makefile | 6 --
+ conf/targets.conf | 5 +
+ 2 files changed, 9 insertions(+), 2 deletions(-)
+
+diff --git a/conf/Makefile b/conf/Makefile
+index bff222f..abb763e 100644
+--- a/conf/Makefile
 b/conf/Makefile
 @@ -1,4 +1,5 @@
  sysconfdir ?= /etc
 +docdatadir ?= /usr/share/doc/packages/
  
  EXAMPLES = targets.conf.example targets.conf.vtl.L700 targets.conf.vtl.MSL2024
  
-@@ -11,9 +12,10 @@
+@@ -11,9 +12,10 @@ install:
if [ ! -f $(DESTDIR)$(sysconfdir)/tgt/targets.conf ] ; then \
install -m 644 targets.conf $(DESTDIR)$(sysconfdir)/tgt ; \
fi
@@ -17,11 +34,13 @@
 -  install -m 644 examples/$$f 
$(DESTDIR)$(sysconfdir)/tgt/examples ;\
 +  install -m 644 examples/$$f 
$(DESTDIR)$(docdatadir)/tgt/examples ;\
done
+   install -d $(DESTDIR)$(sysconfdir)/tgt/conf.d
  
- .PHONY: clean
 conf/targets.conf
-+++ conf/targets.conf
-@@ -1,2 +1,7 @@
+diff --git a/conf/targets.conf b/conf/targets.conf
+index 1bb4435..70b608a 100644
+--- a/conf/targets.conf
 b/conf/targets.conf
+@@ -1,5 +1,10 @@
  # Empty targets configuration file -- please see the package
  # documentation directory for an example.
 +
@@ -29,3 +48,9 @@
 +# Include configuration from directory
 +# 
 +include /etc/tgt/conf.d/*.conf
+ #
+ # You can drop individual config snippets into /etc/tgt/conf.d
+ include /etc/tgt/conf.d/*.conf
+-- 
+1.8.1.4
+

++ tgt-1.0.28.tar.bz2 - tgt-1.0.44.tar.bz2 ++
 14475 lines of diff (skipped)

++ tgt-fix-build ++
--- /var/tmp/diff_new_pack.5QPn45/_old  2014-03-04 13:59:49.0 +0100
+++ /var/tmp/diff_new_pack.5QPn45/_new  2014-03-04 13:59:49.0 +0100
@@ -1,8 +1,22 @@
+From bcaad0432c18a9a792fce4b10e5a0e7014461dc5 Mon Sep 17 00:00:00 2001
+From: Hannes Reinecke h...@suse.de
+Date: Wed, 26 Feb 2014 12:45:56 +0100
+Subject: [PATCH 1/2] Allow OPTFLAGS to override default CFLAGS
+
+When building a package the build system might be wanting to

commit tgt for openSUSE:Factory

2014-01-30 Thread h_root
Hello community,

here is the log from the commit of package tgt for openSUSE:Factory checked in 
at 2014-01-30 11:38:13

Comparing /work/SRC/openSUSE:Factory/tgt (Old)
 and  /work/SRC/openSUSE:Factory/.tgt.new (New)


Package is tgt

Changes:

--- /work/SRC/openSUSE:Factory/tgt/tgt.changes  2013-07-21 08:12:47.0 
+0200
+++ /work/SRC/openSUSE:Factory/.tgt.new/tgt.changes 2014-01-30 
11:38:14.0 +0100
@@ -1,0 +2,11 @@
+Tue Jan 28 15:51:43 UTC 2014 - wer...@suse.de
+
+- Make service link a local one
+
+---
+Wed Oct 23 16:24:11 UTC 2013 - p.drou...@gmail.com
+
+- Drop sysvinit support
+- Add systemd support
+
+---

Old:

  tgt.init

New:

  tgtd.service



Other differences:
--
++ tgt.spec ++
--- /var/tmp/diff_new_pack.0oChFO/_old  2014-01-30 11:38:15.0 +0100
+++ /var/tmp/diff_new_pack.0oChFO/_new  2014-01-30 11:38:15.0 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package tgt
 #
-# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -22,24 +22,25 @@
 BuildRequires:  libxslt
 BuildRequires:  openssl-devel
 BuildRequires:  perl-Config-General
+BuildRequires:  pkgconfig(systemd)
 Obsoletes:  iscsitarget
 Requires:   perl-Config-General
 Url:http://stgt.berlios.de
-PreReq: %fillup_prereq %insserv_prereq
+Requires(pre):  %fillup_prereq
 Version:1.0.28
 Release:0
 Summary:Generic Linux target framework (tgt)
 License:GPL-2.0
 Group:  System/Daemons
 Source: %{name}-%{version}.tar.bz2
-Source1:%{name}.init
+Source1:%{name}d.service
 Source3:%{name}.services
 Patch1: %{name}-git-update
 Patch2: %{name}-fix-build
 # PATCH-FIX-UPSTREAM tgt-mgmt-fixed-m-system-o-delete-handling.patch 
[bnc#767438] - ldun...@suse.com
 Patch3: %{name}-mgmt-fixed-m-system-o-delete-handling.patch
 Patch4: setup-tgt-conf-d.patch
-BuildRoot:  %{_tmppath}/%{name}-%{version}-build
+%{?systemd_requires}
 
 %description
 Linux target framework (tgt) aims to simplify various SCSI target
@@ -72,32 +73,29 @@
 %{__make} OPTFLAGS=${RPM_OPT_FLAGS} %{backends}
 
 %install
-%{__make} DESTDIR=${RPM_BUILD_ROOT} docdir=%_docdir/%{name} install
-install -vD -m 755 %{S:1} ${RPM_BUILD_ROOT}/etc/init.d/tgtd
-ln -sf /etc/init.d/tgtd ${RPM_BUILD_ROOT}/usr/sbin/rctgtd
-install -vD %{S:3} ${RPM_BUILD_ROOT}/etc/sysconfig/SuSEfirewall2.d/services/tgt
-
-%clean
-rm -rf ${RPM_BUILD_ROOT}
-rm -f filelist
+%{__make} DESTDIR=%{buildroot} docdir=%_docdir/%{name} install
+install -vD -m 755 %{S:1} %{buildroot}/%{_unitdir}/%{name}d.service
+install -vD %{S:3} %{buildroot}/etc/sysconfig/SuSEfirewall2.d/services/tgt
+ln -sf service %{buildroot}/usr/sbin/rc%{name}
 
 %post
-%{fillup_and_insserv tgtd}
+%{fillup_only}
+%service_add_post %{name}d.service
 
 %preun
-%stop_on_removal
+%service_del_preun %{name}d.service
 
 %postun
-%{insserv_cleanup}
+%service_del_postun %{name}d.service
 
 %files
 %defattr(-,root,root)
-/usr/sbin/*
-/etc/init.d/tgtd
+%{_sbindir}/*
 %dir /etc/tgt
 %dir /etc/tgt/conf.d
 %config %attr(0644,root,root) /etc/tgt/targets.conf
 %config %attr(0644,root,root) /etc/sysconfig/SuSEfirewall2.d/services/tgt
+%{_unitdir}/%{name}d.service
 %doc README doc/README.iscsi doc/README.iser doc/README.lu_configuration
 %doc doc/README.mmc doc/README.passthrough doc/README.sbcjukebox doc/README.ssc
 %doc %{_mandir}/man8/*

++ tgtd.service ++
[Unit]
Description=tgt admin
After=network.target

[Service]
Type=forking
User=root
ExecStart=/usr/sbin/tgtd
ExecStartPost=/usr/sbin/tgtadm --op update --mode sys --name State -v offline ; 
/usr/sbin/tgt-admin -e -c /etc/tgt/targets.conf ; /usr/sbin/tgtadm --op update 
--mode sys --name State -v ready
ExecStopPre=/usr/sbin/tgt-admin --update ALL -c /dev/null
ExecStop=-/usr/sbin/tgtadm --op delete --mode system 


[Install]
WantedBy=multi-user.target
-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit tgt for openSUSE:Factory

2013-07-21 Thread h_root
Hello community,

here is the log from the commit of package tgt for openSUSE:Factory checked in 
at 2013-07-21 08:12:46

Comparing /work/SRC/openSUSE:Factory/tgt (Old)
 and  /work/SRC/openSUSE:Factory/.tgt.new (New)


Package is tgt

Changes:

--- /work/SRC/openSUSE:Factory/tgt/tgt.changes  2013-04-14 13:00:37.0 
+0200
+++ /work/SRC/openSUSE:Factory/.tgt.new/tgt.changes 2013-07-21 
08:12:47.0 +0200
@@ -1,0 +2,6 @@
+Sat Jul 13 14:25:21 UTC 2013 - dmuel...@suse.com
+
+- add setup-tgt-conf-d.patch: Configure a /etc/tgt/conf.d by default
+- move examples to docdir
+
+---

New:

  setup-tgt-conf-d.patch



Other differences:
--
++ tgt.spec ++
--- /var/tmp/diff_new_pack.u9UrBe/_old  2013-07-21 08:12:48.0 +0200
+++ /var/tmp/diff_new_pack.u9UrBe/_new  2013-07-21 08:12:48.0 +0200
@@ -38,6 +38,7 @@
 Patch2: %{name}-fix-build
 # PATCH-FIX-UPSTREAM tgt-mgmt-fixed-m-system-o-delete-handling.patch 
[bnc#767438] - ldun...@suse.com
 Patch3: %{name}-mgmt-fixed-m-system-o-delete-handling.patch
+Patch4: setup-tgt-conf-d.patch
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 
 %description
@@ -60,6 +61,7 @@
 %patch1 -p1
 %patch2 -p1
 %patch3 -p1
+%patch4
 
 %build
 %ifarch ppc ppc64
@@ -93,9 +95,8 @@
 /usr/sbin/*
 /etc/init.d/tgtd
 %dir /etc/tgt
-%dir /etc/tgt/examples
+%dir /etc/tgt/conf.d
 %config %attr(0644,root,root) /etc/tgt/targets.conf
-%config %attr(0644,root,root) /etc/tgt/examples/*
 %config %attr(0644,root,root) /etc/sysconfig/SuSEfirewall2.d/services/tgt
 %doc README doc/README.iscsi doc/README.iser doc/README.lu_configuration
 %doc doc/README.mmc doc/README.passthrough doc/README.sbcjukebox doc/README.ssc

++ setup-tgt-conf-d.patch ++
--- conf/Makefile
+++ conf/Makefile
@@ -1,4 +1,5 @@
 sysconfdir ?= /etc
+docdatadir ?= /usr/share/doc/packages/
 
 EXAMPLES = targets.conf.example targets.conf.vtl.L700 targets.conf.vtl.MSL2024
 
@@ -11,9 +12,10 @@
if [ ! -f $(DESTDIR)$(sysconfdir)/tgt/targets.conf ] ; then \
install -m 644 targets.conf $(DESTDIR)$(sysconfdir)/tgt ; \
fi
-   install -d -m 755 $(DESTDIR)$(sysconfdir)/tgt/examples
+   install -d -m 755 $(DESTDIR)$(sysconfdir)/tgt/conf.d
+   install -d -m 755 $(DESTDIR)$(docdatadir)/tgt/examples
for f in $(EXAMPLES) ; do \
-   install -m 644 examples/$$f 
$(DESTDIR)$(sysconfdir)/tgt/examples ;\
+   install -m 644 examples/$$f 
$(DESTDIR)$(docdatadir)/tgt/examples ;\
done
 
 .PHONY: clean
--- conf/targets.conf
+++ conf/targets.conf
@@ -1,2 +1,7 @@
 # Empty targets configuration file -- please see the package
 # documentation directory for an example.
+
+#
+# Include configuration from directory
+# 
+include /etc/tgt/conf.d/*.conf
-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit tgt for openSUSE:Factory

2013-04-14 Thread h_root
Hello community,

here is the log from the commit of package tgt for openSUSE:Factory checked in 
at 2013-04-14 13:00:36

Comparing /work/SRC/openSUSE:Factory/tgt (Old)
 and  /work/SRC/openSUSE:Factory/.tgt.new (New)


Package is tgt, Maintainer is h...@suse.com

Changes:

--- /work/SRC/openSUSE:Factory/tgt/tgt.changes  2012-10-27 07:56:50.0 
+0200
+++ /work/SRC/openSUSE:Factory/.tgt.new/tgt.changes 2013-04-14 
13:00:37.0 +0200
@@ -1,0 +2,6 @@
+Thu Apr 11 10:36:23 PDT 2013 - ldun...@suse.com
+
+- Renamed firewall service file from iscsitarget to tgt
+  to remove conflict with tgt package (bnc#814364)
+
+---



Other differences:
--
++ tgt.spec ++
--- /var/tmp/diff_new_pack.kzmFl9/_old  2013-04-14 13:00:39.0 +0200
+++ /var/tmp/diff_new_pack.kzmFl9/_new  2013-04-14 13:00:39.0 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package tgt
 #
-# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -73,7 +73,7 @@
 %{__make} DESTDIR=${RPM_BUILD_ROOT} docdir=%_docdir/%{name} install
 install -vD -m 755 %{S:1} ${RPM_BUILD_ROOT}/etc/init.d/tgtd
 ln -sf /etc/init.d/tgtd ${RPM_BUILD_ROOT}/usr/sbin/rctgtd
-install -vD %{S:3} 
${RPM_BUILD_ROOT}/etc/sysconfig/SuSEfirewall2.d/services/iscsitarget
+install -vD %{S:3} ${RPM_BUILD_ROOT}/etc/sysconfig/SuSEfirewall2.d/services/tgt
 
 %clean
 rm -rf ${RPM_BUILD_ROOT}
@@ -96,7 +96,7 @@
 %dir /etc/tgt/examples
 %config %attr(0644,root,root) /etc/tgt/targets.conf
 %config %attr(0644,root,root) /etc/tgt/examples/*
-%config %attr(0644,root,root) 
/etc/sysconfig/SuSEfirewall2.d/services/iscsitarget
+%config %attr(0644,root,root) /etc/sysconfig/SuSEfirewall2.d/services/tgt
 %doc README doc/README.iscsi doc/README.iser doc/README.lu_configuration
 %doc doc/README.mmc doc/README.passthrough doc/README.sbcjukebox doc/README.ssc
 %doc %{_mandir}/man8/*

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit tgt for openSUSE:Factory

2012-10-26 Thread h_root
Hello community,

here is the log from the commit of package tgt for openSUSE:Factory checked in 
at 2012-10-27 07:56:49

Comparing /work/SRC/openSUSE:Factory/tgt (Old)
 and  /work/SRC/openSUSE:Factory/.tgt.new (New)


Package is tgt, Maintainer is h...@suse.com

Changes:

--- /work/SRC/openSUSE:Factory/tgt/tgt.changes  2012-07-10 13:42:43.0 
+0200
+++ /work/SRC/openSUSE:Factory/.tgt.new/tgt.changes 2012-10-27 
07:56:50.0 +0200
@@ -1,0 +2,7 @@
+Fri Oct 26 01:14:03 UTC 2012 - ldun...@suse.com
+
+- Add tgt-mgmt-fixed-m-system-o-delete-handling.patch: Fixes
+  shutdown hang (bnc#767438)
+- Removed PIDFILE completely from init file, as it is not used
+
+---

New:

  tgt-mgmt-fixed-m-system-o-delete-handling.patch



Other differences:
--
++ tgt.spec ++
--- /var/tmp/diff_new_pack.YRajZp/_old  2012-10-27 07:56:52.0 +0200
+++ /var/tmp/diff_new_pack.YRajZp/_new  2012-10-27 07:56:52.0 +0200
@@ -35,7 +35,9 @@
 Source1:%{name}.init
 Source3:%{name}.services
 Patch1: %{name}-git-update
-Patch11:%{name}-fix-build
+Patch2: %{name}-fix-build
+# PATCH-FIX-UPSTREAM tgt-mgmt-fixed-m-system-o-delete-handling.patch 
[bnc#767438] - ldun...@suse.com
+Patch3: %{name}-mgmt-fixed-m-system-o-delete-handling.patch
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 
 %description
@@ -56,7 +58,8 @@
 %prep
 %setup -n %{name}-%{version}
 %patch1 -p1
-%patch11 -p1
+%patch2 -p1
+%patch3 -p1
 
 %build
 %ifarch ppc ppc64

++ tgt-mgmt-fixed-m-system-o-delete-handling.patch ++
From 0b88336c4b188f48e6bd2e8c94e0467dc805cc38 Mon Sep 17 00:00:00 2001
From: Roi Dayan r...@mellanox.com
Date: Thu, 28 Jun 2012 19:56:04 +0300
Subject: mgmt: fixed -m system -o delete handling
Git-commit: 0b88336c4b188f48e6bd2e8c94e0467dc805cc38
Patch-mainline: v1.0.29

system_active was reset only in case when mgmt response was carrying data.
In case of deleting system, response code was returned in err field of the 
header
therefore system was not shut down.

Signed-off-by: Alexander Nezhinsky alexand...@mellanox.com
Signed-off-by: Roi Dayan r...@mellanox.com
Signed-off-by: FUJITA Tomonori fujita.tomon...@lab.ntt.co.jp
Acked-by: Lee Duncan ldun...@suse.com
---
 usr/mgmt.c |9 +++--
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/usr/mgmt.c b/usr/mgmt.c
index ef1b265..56f89bb 100644
--- a/usr/mgmt.c
+++ b/usr/mgmt.c
@@ -585,13 +585,8 @@ static void mtask_recv_send_handler(int fd, int events, 
void *data)
err = concat_write(mtask-rsp_concat, fd, mtask-done);
if (err = 0) {
mtask-done += err;
-   if (mtask-done == (rsp-len - sizeof(*rsp))) {
-   if (req-mode == MODE_SYSTEM 
-   req-op == OP_DELETE 
-   !rsp-err)
-   system_active = 0;
+   if (mtask-done == (rsp-len - sizeof(*rsp)))
goto out;
-   }
} else
if (errno != EAGAIN)
goto out;
@@ -603,6 +598,8 @@ static void mtask_recv_send_handler(int fd, int events, 
void *data)
 
return;
 out:
+   if (req-mode == MODE_SYSTEM  req-op == OP_DELETE  !rsp-err)
+   system_active = 0;
tgt_event_del(fd);
close(fd);
mtask_free(mtask);

++ tgt.init ++
--- /var/tmp/diff_new_pack.YRajZp/_old  2012-10-27 07:56:52.0 +0200
+++ /var/tmp/diff_new_pack.YRajZp/_new  2012-10-27 07:56:52.0 +0200
@@ -18,7 +18,6 @@
 #
 
 DAEMON=/usr/sbin/tgtd
-PIDFILE=/var/run/tgtd.pid
 TGTD_CONFIG=/etc/tgt/targets.conf
 
 # Source LSB init functions
@@ -158,7 +157,7 @@
 ;;
   status)
echo -n Checking for SCSI target service
-   checkproc -p $PIDFILE $DAEMON
+   checkproc $DAEMON
rc_status -v
 ;;
   *)

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit tgt for openSUSE:Factory

2012-07-10 Thread h_root
Hello community,

here is the log from the commit of package tgt for openSUSE:Factory checked in 
at 2012-07-10 13:42:41

Comparing /work/SRC/openSUSE:Factory/tgt (Old)
 and  /work/SRC/openSUSE:Factory/.tgt.new (New)


Package is tgt, Maintainer is h...@suse.com

Changes:

--- /work/SRC/openSUSE:Factory/tgt/tgt.changes  2012-06-18 17:34:43.0 
+0200
+++ /work/SRC/openSUSE:Factory/.tgt.new/tgt.changes 2012-07-10 
13:42:43.0 +0200
@@ -1,0 +2,6 @@
+Tue Jul 10 08:25:16 UTC 2012 - cfarr...@suse.com
+
+- license update: GPL-2.0
+  Most of the source code files carry a GPL-2.0 notice, not GPL-2.0+
+
+---



Other differences:
--
++ tgt.spec ++
--- /var/tmp/diff_new_pack.OhNFom/_old  2012-07-10 13:42:44.0 +0200
+++ /var/tmp/diff_new_pack.OhNFom/_new  2012-07-10 13:42:44.0 +0200
@@ -29,7 +29,7 @@
 Version:1.0.28
 Release:0
 Summary:Generic Linux target framework (tgt)
-License:GPL-2.0+
+License:GPL-2.0
 Group:  System/Daemons
 Source: %{name}-%{version}.tar.bz2
 Source1:%{name}.init

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit tgt for openSUSE:Factory

2012-06-18 Thread h_root
Hello community,

here is the log from the commit of package tgt for openSUSE:Factory checked in 
at 2012-06-18 17:34:41

Comparing /work/SRC/openSUSE:Factory/tgt (Old)
 and  /work/SRC/openSUSE:Factory/.tgt.new (New)


Package is tgt, Maintainer is h...@suse.com

Changes:

--- /work/SRC/openSUSE:Factory/tgt/tgt.changes  2011-09-23 12:48:09.0 
+0200
+++ /work/SRC/openSUSE:Factory/.tgt.new/tgt.changes 2012-06-18 
17:34:43.0 +0200
@@ -1,0 +2,15 @@
+Thu Jun 14 09:51:09 CEST 2012 - vu...@opensuse.org
+
+- Remove # pidfile: /var/run/tgtd.pid from tgt.init, as it makes
+  the script hang on systemd-based systems. This is the same bug as
+  rh#797913, and the fix was used in Fedora. Apparently, there's no
+  such pid file written by tgtd.
+
+---
+Mon Jun  4 14:39:47 CEST 2012 - h...@suse.de
+
+- Update to latest upstream release 1.0.23
+  * Improved SCSI emulation
+  * Various small fixes
+
+---

Old:

  scsi_tgt_if.h
  tgt-0.9.0-update
  tgt-20080805.tar.bz2

New:

  tgt-1.0.28.tar.bz2



Other differences:
--
++ tgt.spec ++
--- /var/tmp/diff_new_pack.wUIsUU/_old  2012-06-18 17:34:45.0 +0200
+++ /var/tmp/diff_new_pack.wUIsUU/_new  2012-06-18 17:34:45.0 +0200
@@ -1,7 +1,7 @@
 #
-# spec file for package tgt (Version 0.9.0)
+# spec file for package tgt
 #
-# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -15,28 +15,26 @@
 # Please submit bugfixes or comments via http://bugs.opensuse.org/
 #
 
-# norootforbuild
-
 
 Name:   tgt
-BuildRequires:  libaio-devel openssl-devel perl-Config-General
+BuildRequires:  docbook-xsl-stylesheets
+BuildRequires:  libaio-devel
+BuildRequires:  libxslt
+BuildRequires:  openssl-devel
+BuildRequires:  perl-Config-General
 Obsoletes:  iscsitarget
-Provides:   iscsitarget
 Requires:   perl-Config-General
 Url:http://stgt.berlios.de
-License:GPL-2.0+
-Group:  System/Daemons
 PreReq: %fillup_prereq %insserv_prereq
-AutoReqProv:on
-Version:0.9.0
-Release:2
+Version:1.0.28
+Release:0
 Summary:Generic Linux target framework (tgt)
-Source: %{name}-20080805.tar.bz2
+License:GPL-2.0+
+Group:  System/Daemons
+Source: %{name}-%{version}.tar.bz2
 Source1:%{name}.init
-Source2:scsi_tgt_if.h
 Source3:%{name}.services
-Patch1: %{name}-0.9.0-update
-Patch2: %{name}-git-update
+Patch1: %{name}-git-update
 Patch11:%{name}-fix-build
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 
@@ -56,14 +54,11 @@
 Mike Christie micha...@cs.wisc.edu
 
 %prep
-%setup -n %{name}-20080805
+%setup -n %{name}-%{version}
 %patch1 -p1
-%patch2 -p1
 %patch11 -p1
-cp %{S:2} usr
 
 %build
-cd usr
 %ifarch ppc ppc64
 %define backends ISCSI=1 FCP=1 FCOE=1 IBMVIO=1
 %else
@@ -72,10 +67,7 @@
 %{__make} OPTFLAGS=${RPM_OPT_FLAGS} %{backends}
 
 %install
-cd usr
-%{__make} DESTDIR=${RPM_BUILD_ROOT} install
-cd ../scripts
-install -vD -m 755 tgt-admin ${RPM_BUILD_ROOT}/usr/sbin/tgt-admin
+%{__make} DESTDIR=${RPM_BUILD_ROOT} docdir=%_docdir/%{name} install
 install -vD -m 755 %{S:1} ${RPM_BUILD_ROOT}/etc/init.d/tgtd
 ln -sf /etc/init.d/tgtd ${RPM_BUILD_ROOT}/usr/sbin/rctgtd
 install -vD %{S:3} 
${RPM_BUILD_ROOT}/etc/sysconfig/SuSEfirewall2.d/services/iscsitarget
@@ -97,8 +89,13 @@
 %defattr(-,root,root)
 /usr/sbin/*
 /etc/init.d/tgtd
+%dir /etc/tgt
+%dir /etc/tgt/examples
+%config %attr(0644,root,root) /etc/tgt/targets.conf
+%config %attr(0644,root,root) /etc/tgt/examples/*
 %config %attr(0644,root,root) 
/etc/sysconfig/SuSEfirewall2.d/services/iscsitarget
-%doc README doc/README.iscsi doc/TODO
+%doc README doc/README.iscsi doc/README.iser doc/README.lu_configuration
+%doc doc/README.mmc doc/README.passthrough doc/README.sbcjukebox doc/README.ssc
 %doc %{_mandir}/man8/*
 
 %changelog

++ tgt-20080805.tar.bz2 - tgt-1.0.28.tar.bz2 ++
 45876 lines of diff (skipped)

++ tgt-fix-build ++
--- /var/tmp/diff_new_pack.wUIsUU/_old  2012-06-18 17:34:45.0 +0200
+++ /var/tmp/diff_new_pack.wUIsUU/_new  2012-06-18 17:34:45.0 +0200
@@ -1,260 +1,20 @@
-diff --git a/scripts/tgt-setup-lun b/scripts/tgt-setup-lun
-index 1e214ee..2ae9193 100755
 a/scripts/tgt-setup-lun
-+++ b/scripts/tgt-setup-lun
-@@ -1,3 +1,5 @@
-+#!/bin/bash
-+
- # LUN assignment script
- #
- # 

commit tgt for openSUSE:Factory

2011-12-06 Thread h_root
Hello community,

here is the log from the commit of package tgt for openSUSE:Factory checked in 
at 2011-12-06 19:08:21

Comparing /work/SRC/openSUSE:Factory/tgt (Old)
 and  /work/SRC/openSUSE:Factory/.tgt.new (New)


Package is tgt, Maintainer is h...@suse.com

Changes:




Other differences:
--
++ tgt.spec ++
--- /var/tmp/diff_new_pack.lWXpBK/_old  2011-12-06 19:42:31.0 +0100
+++ /var/tmp/diff_new_pack.lWXpBK/_new  2011-12-06 19:42:31.0 +0100
@@ -24,7 +24,7 @@
 Provides:   iscsitarget
 Requires:   perl-Config-General
 Url:http://stgt.berlios.de
-License:GPL v2 or later
+License:GPL-2.0+
 Group:  System/Daemons
 PreReq: %fillup_prereq %insserv_prereq
 AutoReqProv:on

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org