46 Commits

Author SHA1 Message Date
Gleb Chesnokov
1139a7847d scst.spec.in, scst-dkms.spec.in: Unbreak the UEK 7 build 2022-07-07 13:52:01 +03:00
Chesnokov Gleb
9d7cf27c7c Makefile: Fix the scst-rpm build
Fixes: 1cfa1e7f87 ("Makefile: switch to qla-32gbit by default")
2021-12-07 00:18:44 +03:00
Bart Van Assche
70fd08dde6 scst: Also install the build_mode.h header file
Reported-by: Steven Siwinski <steve-atto@users.sourceforge.net>


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9173 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-10-21 03:37:50 +00:00
Bart Van Assche
f0214a59bb Fix rpm build for EL mainline kernels
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9104 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-08-03 03:38:01 +00:00
Bart Van Assche
f3cbdcea03 scst.spec.in: Set ${KDIR} and ${KVER} correctly
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9053 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-07-19 01:16:24 +00:00
Bart Van Assche
b044a48cf8 RPM build: Add support for CentOSPlus
See also https://sourceforge.net/p/scst/tickets/34/ .

This was reported by Brandon Thetford.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8833 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-03-08 20:28:01 +00:00
Bart Van Assche
5de1135f8e scst: Remove all references to the QLogic git tree
Since the driver in the qla2x00t-32gbit directory supersedes the driver from
the QLogic git tree, remove all references to the latter.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8620 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-10-15 04:15:49 +00:00
Bart Van Assche
8dbffe9b25 scst-dkms.spec.in: Sync with scst.spec.in
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8616 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-10-09 02:57:22 +00:00
Bart Van Assche
1e79f561bc scst.spec.in: Make this spec file compatible with rpm v4.14
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8612 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-10-09 02:17:11 +00:00
Bart Van Assche
f6371c5d5e Makefiles: Run depmod also on Ubuntu systems after module installation
Fixes: e902f79ecf ("kernel module installation: Skip "depmod" when building an RPM"; r5612)



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8582 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-09-15 00:29:55 +00:00
Bart Van Assche
7e5a0ba300 scst.spec: Avoid that rpm complains about expanding a variable in a comment
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7602 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-11-03 23:50:54 +00:00
Bart Van Assche
4bbb8704b1 rpm, dpkg: Make sure that all necessary directories are created after installation
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7398 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-04-23 17:35:44 +00:00
Bart Van Assche
1bcb712213 scst.spec: Fix depmod path
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7389 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-03-08 06:01:49 +00:00
Bart Van Assche
fa5c8963f2 scst.spec: Simplify this spec file
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7380 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-03-04 19:36:31 +00:00
Bart Van Assche
5e82471a69 scst.spec, scst-dkms.spec: Use version of running kernel if %{kdir} has not been set
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7378 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-03-04 19:36:01 +00:00
Bart Van Assche
5f1fd232ae scst*.spec: Set default attributes for directories
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7376 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-03-04 19:35:13 +00:00
Bart Van Assche
51e4ded159 scst.spec, scstadmin.spec: Add support for Fedora
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7374 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-03-04 19:34:18 +00:00
Bart Van Assche
c9eae551f5 scst.spec.in: Remove %dir /lib/modules/%{kversion}/extra
This avoids that the SCST RPM conflicts with other kernel RPMs
that install kernel modules in the "extra" directory. Reported
and suggested by Consus <consus@gmx.com>.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7043 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-12-01 05:10:43 +00:00
Bart Van Assche
dc28d934d3 scst.spec.in: Disable executable flag again for kernel modules
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6859 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-04-12 13:47:58 +00:00
Bart Van Assche
e3988e8c92 scst.spec.in: Enable .debug generation for .ko files
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6856 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-04-09 03:05:39 +00:00
Bart Van Assche
f606f9ef04 scst.spec: Update changelog
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6647 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-10 01:59:28 +00:00
Bart Van Assche
ceee6fc7e1 scst.spec: Follow-up for r6627
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6629 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-09 19:13:24 +00:00
Bart Van Assche
dff29eda4b scst.spec: Improve robustness of kernel version query code
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6627 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-09 17:55:03 +00:00
Bart Van Assche
c8b2fd0808 scst.spec: Use QLogic target driver source code from the QLogic git tree if available
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6557 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-10-28 18:10:19 +00:00
Bart Van Assche
1e9ec5d21a scst/include/backport.h: Install this header and include it in the RPM
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6555 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-10-28 17:24:23 +00:00
Bart Van Assche
2b5c929181 scst.spec.in: Sort kernel rpm by build time
Additionally, fix the logic for determining %{krpmver} if %{kdir} points
to another kernel version than the latest kernel version.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6496 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-09-02 18:43:13 +00:00
Bart Van Assche
1e9900d975 scst.spec: Make this spec file independent of the value of $PATH
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6495 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-09-01 18:20:09 +00:00
Bart Van Assche
e3d6a018a3 scst.spec: Derive kernel version from %{kdir} if set
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6494 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-09-01 18:12:54 +00:00
Bart Van Assche
35bca71f0c scst.spec: Respect KDIR environment variable
Reported-by: Consus <consus@gmx.com>


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6492 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-08-31 17:27:10 +00:00
Bart Van Assche
42cd180a9e scst.spec: Fix code for determining kernel RPM version
I hit couple of issues in scst.spec.in:

1. krpmver sets to oldest available kernel rpm version (RedHat/Fedora
   typically keeps 3 kernels), that causes rpm dependency on a wrong
   kernel version
2. if system has a newer kernel version installed but not booted into
   it yet, build goes against currently running kernel version,
   disrespecting what KVER is set to.

Signed-off-by: Vitaly Mayatskih <v.mayatskih@gmail.com>


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6490 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-08-28 17:04:04 +00:00
Bart Van Assche
1635447f32 scst.spec: Build in release mode
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6489 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-08-28 16:59:49 +00:00
Bart Van Assche
dc070e83d8 RPM spec files: Add dependency clauses
scst.spec: Add "Requires: depmod find rm" and "Provides: scst"
scstadmin.spec: Add "Requires: rm"

Proposed-by: Consus <consus@gmx.com>


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6487 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-08-27 17:56:52 +00:00
Bart Van Assche
3e39f3852d scst.spec.in: Mention filenames only once (this is a follow-up for r5976)
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6322 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-06-16 17:36:27 +00:00
Bart Van Assche
6aaeca1cd9 Merge iser branch r6234 into trunk
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6235 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-06-10 15:35:26 +00:00
Bart Van Assche
e8df6e739e scst.spec: Separate DKMS spec into a new spec file
Split scst.spec.in as follows:
* Keep the directives for generating an RPM that contains binary kernel
  modules in scst.spec.in. Add the kernel version number in the RPM name
  to make it possible to install RPMs for different kernel versions next
  to each other.
* Move the directives for generating a DKMS RPM into a new spec file. The
  name of this spec file does not contain a kernel version since the DKMS
  RPM is independent of the kernel version against which it has been built.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6125 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-02-23 14:48:56 +00:00
Bart Van Assche
0a43946351 scst.spec.in: Add DKMS support
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5976 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-01-16 16:20:10 +00:00
Bart Van Assche
8b9d281144 scst.spec.in: Leave out kernel version from RPM name
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5975 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-01-16 16:12:38 +00:00
Bart Van Assche
d571dfe4a4 scst.spec.in: Determine version number correctly on a koji server
This patch has been tested on a koji build server and also on four
different RPM-based distributions (CentOS 7, Fedora 20, openSuSE 13.2
and SLES 11 SP3).


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5974 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-01-16 13:16:06 +00:00
Bart Van Assche
c7b366e8e9 scst.spec.in: Pass kernel version via RPM-variable %{kversion} instead of shell variable ${KVER}
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5973 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-01-16 13:12:22 +00:00
Bart Van Assche
275f8c2018 scst.spec.in: Rename variable kver into kversion
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5972 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-01-16 13:01:58 +00:00
Bart Van Assche
bd2625ec1a scst-devel rpm: Include /usr/include/scst/scst_itf_ver.h
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5678 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-07-16 05:35:40 +00:00
Bart Van Assche
296a29b553 scst.spec.in: Create /var/lib/scst/pr and /var/lib/scst/vdev_mode_pages when installing the SCST RPM
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5670 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-07-10 06:18:58 +00:00
Bart Van Assche
a96b8e9cc4 scst.spec.in: Follow-up for r5628
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5630 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-06-28 20:00:22 +00:00
Bart Van Assche
bebce1c99f ib_srpt: Remove existing ib_srpt.ko kernel modules before installation
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5628 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-06-28 19:56:36 +00:00
Bart Van Assche
c33cf3f81b Makefiles: Convert from "install" to "make modules_install"
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5284 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-02-14 13:48:54 +00:00
Bart Van Assche
34d764426a scst: Make it possible to build an RPM
Make it possible to build an SCST RPM via the command "make rpm".
The contents of the two RPMs built by this command is as follows:

$ rpm -qlp rpmbuilddir/RPMS/x86_64/scst-3.11.8+-3.0.0.*-1.x86_64.rpm
/lib/modules/3.11.8+/extra
/lib/modules/3.11.8+/extra/dev_handlers
/lib/modules/3.11.8+/extra/dev_handlers/scst_cdrom.ko
/lib/modules/3.11.8+/extra/dev_handlers/scst_changer.ko
/lib/modules/3.11.8+/extra/dev_handlers/scst_disk.ko
/lib/modules/3.11.8+/extra/dev_handlers/scst_modisk.ko
/lib/modules/3.11.8+/extra/dev_handlers/scst_processor.ko
/lib/modules/3.11.8+/extra/dev_handlers/scst_raid.ko
/lib/modules/3.11.8+/extra/dev_handlers/scst_tape.ko
/lib/modules/3.11.8+/extra/dev_handlers/scst_user.ko
/lib/modules/3.11.8+/extra/dev_handlers/scst_vdisk.ko
/lib/modules/3.11.8+/extra/fcst.ko
/lib/modules/3.11.8+/extra/ib_srpt.ko
/lib/modules/3.11.8+/extra/iscsi-scst.ko
/lib/modules/3.11.8+/extra/qla2x00tgt.ko
/lib/modules/3.11.8+/extra/qla2xxx_scst.ko
/lib/modules/3.11.8+/extra/scst.ko
/lib/modules/3.11.8+/extra/scst_local.ko
/usr/sbin/iscsi-scst-adm
/usr/sbin/iscsi-scstd
/usr/share/man/man5/iscsi-scstd.conf.5.gz
/usr/share/man/man8/iscsi-scst-adm.8.gz
/usr/share/man/man8/iscsi-scstd.8.gz
/var/lib/scst
$ rpm -qlp rpmbuilddir/RPMS/x86_64/scst-3.11.8+-devel-3.0.0.*-1.x86_64.rpm
/usr/include/scst
/usr/include/scst/Module.symvers
/usr/include/scst/scst.h
/usr/include/scst/scst_const.h
/usr/include/scst/scst_debug.h
/usr/include/scst/scst_sgv.h
/usr/include/scst/scst_user.h


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5137 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-12-03 12:04:35 +00:00