~ubuntu-branches/ubuntu/jaunty/open-iscsi/jaunty

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Mathias Gug
  • Date: 2008-12-01 10:45:03 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20081201104503-1pecfp1avxr2ufmp
Tags: 2.0.870.1-0ubuntu1
* New upstream release:
 - Support 2.6.26/27 kernels (LP: #289470).
 - Fix iscsid shutdown (LP: #181188).
* Merge from Debian. Remaining Ubuntu changes:
 - Note: Debian version isn't 870~rc3 but 869.2 which leads to a big
   .diff.gz file. Only files in debian/ have been considered for this merge
   since debian hasn't patched the source.
 - debian/control, debian/rules, debian/open-iscsi-udeb*:
   + Add open-iscsi-udeb.
 - debian/open-iscsi.dirs:
   + rename dirs to open-iscsi.dirs because of open-iscsi-udeb addition.
   + drop network/if-up.d/ directory since we're using symlinks instead.
   + utilities installed in /bin,/sbin rather than /usr/bin,/usr/sbin.
 - debian/open-iscsi.init:
   + utilities installed in /bin,/sbin rather than /usr/bin,/usr/sbin.
   + lsb log messages.
   + Don't generate initiatorname name (moved to postinst).
   + Support for being called from ifup/ifdown scripts.
   + Refactor start functions:
     - move daemon start to startdaemon function.
     - call udevadm settle rather then udevsettle (which doesn't do anything
       useful).
     - don't exit if the daemon is already running during sanitychecks.
       Instead check in startdaemon if the daemon needs to be started.
     - only start automatic targets if necessary.
     - add waitfordevices function: called during rcS, waits for all 
       automatic targets to be ready. Iscsi targets are considered as
       local block devices - they don't need to be marked with _netdev in
       fstab. (LP: #227848) 
     - start targets if not run from rcS.
   + Check status of iscsid daemon in addition to listing the iscsi sessions 
     when status action is called.  
   + Add iscsid to the list of processes that should not be killed by
     sendsigs during shutdown (LP: #192080).
   + Add starttargets, stoptargets and restarttargets to usage message.
 - debian/rules:
   + Install utilities /bin,/sbin rather than /usr/bin,/usr/sbin.
   + Start open-iscsi at S25 (waiting for devices created by ifupdown
     calls and before local filesystems are checked and mounted)
   + stop at S41 (after local filesystems are unmounted). Don't use 
     umountiscsi.sh script from debian. (LP: #192080).
 - debian/initiatorname.iscsi, debian/open-iscsi.postinst:
   + Generate the random initiatorname during postinstall rather than in the
   init script.
   + Don't ship a default initiatorname.iscsi file.
 - debian/open-iscsi.postinst:
   + fix init script ordering on upgrades.
 - debian/open-iscsi.links:
   + symlink open-iscsi init script in if-up.d and if-down.d directory so
     that the iscsi subsystem is started/stopped when network interfaces 
     are configured.
 - debian/open-iscsi.postrm:
   + delete iscsi configuration when the package is purged.
 - utils/iscsi_discovery: De-bashify iscsi_discovery.
 - usr/idbm.c: Fix build failure with new glibc. LP: #299843.
* Dropped:
 - Exit without error if /sys is not available. Otherwise, it's not possible
   to use this package as a build-dependency (in Debian).
 - Drop upstream url in long description now that it's in the Homepage
   field (in Debian).

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
initddir = $(etcdir)/init.d
16
16
 
17
17
MANPAGES = doc/iscsid.8 doc/iscsiadm.8 doc/iscsi_discovery.8
18
 
PROGRAMS = usr/iscsid usr/iscsiadm utils/iscsi_discovery \
19
 
                   utils/fwparam_ibft/fwparam_ibft utils/iscsi-iname
 
18
PROGRAMS = usr/iscsid usr/iscsiadm utils/iscsi_discovery utils/iscsi-iname
20
19
INSTALL = install
21
20
ETCFILES = etc/iscsid.conf
22
21
IFACEFILES = etc/iface.example
26
25
# over multiple makefile.
27
26
 
28
27
all:
 
28
        $(MAKE) -C utils/fwparam_ibft
29
29
        $(MAKE) -C usr
30
30
        $(MAKE) -C kernel
31
31
        $(MAKE) -C utils
32
 
        $(MAKE) -C utils/fwparam_ibft
33
32
        @echo
34
33
        @echo "Compilation complete                Output file"
35
34
        @echo "----------------------------------- ----------------"
38
37
        @echo "Built iSCSI over TCP kernel module: kernel/iscsi_tcp.ko"
39
38
        @echo "Built iSCSI daemon:                 usr/iscsid"
40
39
        @echo "Built management application:       usr/iscsiadm"
41
 
        @echo "Built utility:                      utils/fwparam_ibft/fwparam_ibft"
42
40
        @echo
43
41
        @echo Read README file for detailed information.
44
42
 
45
43
clean:
 
44
        $(MAKE) -C utils/fwparam_ibft clean
46
45
        $(MAKE) -C utils clean
47
46
        $(MAKE) -C usr clean
48
47
        $(MAKE) -C kernel clean
49
 
        $(MAKE) -C utils/fwparam_ibft clean
50
48
 
51
49
# this is for safety
52
50
# now -jXXX will still be safe
58
56
install: install_kernel install_programs install_doc install_etc \
59
57
        install_initd install_iname install_iface
60
58
 
 
59
install_usr: install_programs install_doc install_etc \
 
60
        install_initd install_iname install_iface
 
61
 
61
62
install_programs:  $(PROGRAMS)
62
63
        $(INSTALL) -d $(DESTDIR)$(sbindir)
63
64
        $(INSTALL) -m 755 $^ $(DESTDIR)$(sbindir)
78
79
        $(INSTALL) -d $(DESTDIR)$(initddir)
79
80
        $(INSTALL) -m 755 etc/initd/initd.suse \
80
81
                $(DESTDIR)$(initddir)/open-iscsi
 
82
        $(INSTALL) -m 755 etc/initd/boot.suse \
 
83
                $(DESTDIR)$(initddir)/boot.open-iscsi
81
84
 
82
85
install_initd_redhat:
83
86
        $(INSTALL) -d $(DESTDIR)$(initddir)
94
97
        $(INSTALL) -m 644 $^ $(DESTDIR)$(etcdir)/iscsi/ifaces
95
98
 
96
99
install_etc: $(ETCFILES)
97
 
        $(INSTALL) -d $(DESTDIR)$(etcdir)/iscsi
98
 
        $(INSTALL) -m 644 $^ $(DESTDIR)$(etcdir)/iscsi
 
100
        if [ ! -f /etc/iscsi/iscsid.conf ]; then \
 
101
                $(INSTALL) -d $(DESTDIR)$(etcdir)/iscsi ; \
 
102
                $(INSTALL) -m 644 $^ $(DESTDIR)$(etcdir)/iscsi ; \
 
103
        fi
99
104
 
100
105
install_doc: $(MANPAGES)
101
106
        $(INSTALL) -d $(DESTDIR)$(mandir)/man8
113
118
                echo "***************************************************" ; \
114
119
        fi
115
120
 
 
121
depend:
 
122
        for dir in usr utils utils/fwparam_ibft; do \
 
123
                $(MAKE) -C $$dir $@; \
 
124
        done
 
125
 
116
126
# vim: ft=make tw=72 sw=4 ts=4: