~ubuntu-branches/debian/experimental/sysvinit/experimental

« back to all changes in this revision

Viewing changes to .pc/11_lfs_cflags.patch/src/Makefile

  • Committer: Package Import Robot
  • Author(s): Roger Leigh, Roger Leigh, Steve Langasek
  • Date: 2012-04-21 12:11:45 UTC
  • mfrom: (9.1.33 sid)
  • Revision ID: package-import@ubuntu.com-20120421121145-tcyy57v1j6gx946d
Tags: 2.88dsf-23
[ Roger Leigh ]
* Acknowledge NMU for translation updates.  Thanks to Christian
  Perrier.
* debian/control:
  - Upgrade to Standards-Version 3.9.3.
  - Build-Depend on debhelper v9.
  - Correct Vcs-Git URL.
* debian/rules:
  - Use DEB_HOST_ARCH_OS = hurd rather than
    DEB_HOST_ARCH = hurd-i386.   Thanks to Pino Toscano.
* debian/patches:
  - 11_lfs_cflags.patch: Add patch for enabling large file support,
    needed on GNU/Hurd, but useful for all platforms.
  - 73_lfs_cflags.patch: Add patch for enabling large file support
    in startpar.
* initscripts:
  - Moved RAM* settings from /etc/default/rcS to /etc/default/tmpfs.
    This ensures that the settings are equivalent for upgrades and
    new installations, but will require manual configuration of the
    settings for upgrades (no migration from /etc/default/rcS to
    /etc/default/tmpfs will take place, due to tmpfs being a
    conffile).  tmpf(5) manual page added to document all aspects
    of tmpfs configuration, including the existing documentation in
    rcS(5).
  - Drop the use of .ramfs dotfiles in /run and /run/lock.  These
    were a legacy of /lib/init/rw and were not actually used by
    anything.  Closes: #403863.
  - Drop /etc/init.d/mountoverflowtmp.  This has been merged into
    the general tmpfs on /tmp handling functions.  This means the
    generic RAMTMP configuration is used for the overflowtmp.
    Closes: #567539.
  - It is now possible to configure a tmpfs mount size limit as a
    percentage of the total VM size (%VM) as well as a percentage
    of the RAM size (%).  This is computed by tmpfs.sh and the
    tmpfs mounts are remounted with the updated size limit after
    swap becomes available.
  - An fstab entry for /tmp overrides RAMTMP.  Document tmpfs
    override and tmpfs defaults in tmpfs(5), also undeprecating the
    tmpfs settings.  Closes: #585540, #665995.
  - An fstab entry for /run/lock or /run/shm overrides RAMLOCK and
    RAMSHM.
  - bootclean cleans /tmp, /run and /run/lock before any filesystems
    are mounted as well as after local and network mounts.  This
    permits cleaning of directories which would otherwise be hidden
    by mountpoints later in the boot process.
    Closes: #55707, #558000, #666871.  Additionally clean up
    /lib/init/rw in case any files were hidden by the (now removed)
    tmpfs mount at this location.  Closes: #652625.
  - Removed last trace of the long-removed EDITMOTD from the
    postinst.  Closes: #438895.
  - Removed documentation of #346342 in rcS(5).  This is no longer
    an issue now tzdata keeps a copy of the data on the rootfs.
    Closes: #385172.
  - Correct description of TMPTIME in rcS(5).  Thanks to Alan J.
    Greenberger.  Closes: #562500.
  - urandom: Applied a series of patches from John Denker to
    improve the integrity of random number generation.  Many thanks.
    Closes: #596479, #596480, #596481, #596482, #596483.
* sysv-rc:
  - Remove old upgrade logic from maintainer scripts not required
    for wheezy.
  - Migrate users of obsolete static boot ordering to dynamic boot
    ordering.
  - Remove use of /etc/init.d/.legacy-bootordering.  Closes: #668312.
  - Improve help text of debconf message when it is not possible to
    automatically enable dynamic boot ordering.  Provide explicit
    instructions for how to purge obsolete init scripts.
    Closes: #550425.
  - etc/init.d/rc: Ensure linprocfs is mounted on kFreeBSD.  Thanks
    to Robert Millan.  Closes: #659480.
  - Drop undocumented CONCURRENCY setting from /etc/init.d/rc.
    Closes: #518249, #540448, #539261.  Note that this still contains
    internal fallbacks to support non-insserv booting, which may be
    removed at a later date.
  - invoke-rc.d:
    + Minor manual page corrections.  Thanks to Anthony Fiumara.
      Closes: #664816.
    + Remove mention of the "dpkg Programmers' Manual" and replace
      with references to Debian Policy.  Closes: #543793.
  - update-rc.d:
    + Correctly warn about non-LSB standard runlevels.  Thanks to
      Chris Hiestand for this patch.  Closes: #614895.
    + Remove obsolete documentation of
      /var/lib/sysv-rc/legacy-bootsequence.  Thanks to Thomas Hood.
      Closes: #623051.
* sysvinit:
  - Minor corrections for halt(8) manual page.  Thanks to
    Christoph Anton Mitterer.  Closes: #587923.
  - Installation with debootstrap --variant=fakechroot now works, due
    to only migrating the old control channel when it is still
    present.  Thanks to Michael Gilbert.  Closes: #596284.
* sysvinit-utils:
  - Recommend bootlogd.  Closes: #659490.  This means that booklogd
    will be installed by default, but will be removable.
    Closes: #232569.
  - Correct documentation of the startpar -i option.  Closes: #545438.
  - Correct startpar(8) SEE ALSO section.  Closes: #634146.
  - Correct wording in service(8).  Thanks to Joey Hess and Regid
    Ichira.  Closes: #545401, #667745.

[ Steve Langasek ]
* debian/service/service: fix upstart compatibility to not try to use the
  upstart commands when init isn't upstart.  Closes: #636054.
* debian/rules: pass CFLAGS when building startpar.
* Fix startpar to not run init scripts that have matching upstart jobs,
  instead waiting for a signal from upstart.  Closes: #660824.
    to Robert Millan.  (Closes: #659480)
* sysvinit:
  - Don't restart or perform initctl migration if systemd is
    running.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#
 
2
# Makefile      Makefile for the systemV init suite.
 
3
#               Targets:   all      compiles everything
 
4
#                          install  installs the binaries (not the scripts)
 
5
#                          clean    cleans up object files
 
6
#                          clobber  really cleans up
 
7
#
 
8
# Version:      @(#)Makefile  2.85-13  23-Mar-2004  miquels@cistron.nl
 
9
#
 
10
 
 
11
CPPFLAGS =
 
12
CFLAGS  ?= -ansi -O2 -fomit-frame-pointer
 
13
override CFLAGS += -W -Wall -D_GNU_SOURCE
 
14
STATIC  =
 
15
 
 
16
# For some known distributions we do not build all programs, otherwise we do.
 
17
BIN     =
 
18
SBIN    = init halt shutdown runlevel killall5 fstab-decode
 
19
USRBIN  = last mesg
 
20
 
 
21
MAN1    = last.1 lastb.1 mesg.1
 
22
MAN5    = initscript.5 inittab.5
 
23
MAN8    = halt.8 init.8 killall5.8 pidof.8 poweroff.8 reboot.8 runlevel.8
 
24
MAN8    += shutdown.8 telinit.8 fstab-decode.8
 
25
 
 
26
ifeq ($(DISTRO),)
 
27
BIN     += mountpoint
 
28
SBIN    += sulogin bootlogd
 
29
USRBIN  += utmpdump wall
 
30
MAN1    += utmpdump.1 mountpoint.1 wall.1
 
31
MAN8    += sulogin.8 bootlogd.8
 
32
endif
 
33
 
 
34
ifeq ($(DISTRO),Debian)
 
35
CPPFLAGS+= -DACCTON_OFF
 
36
BIN     += mountpoint
 
37
SBIN    += sulogin bootlogd
 
38
MAN1    += mountpoint.1
 
39
MAN8    += sulogin.8 bootlogd.8
 
40
endif
 
41
 
 
42
ifeq ($(DISTRO),Owl)
 
43
USRBIN  += wall
 
44
MAN1    += wall.1
 
45
endif
 
46
 
 
47
ifeq ($(DISTRO),SuSE)
 
48
CPPFLAGS+= -DUSE_SYSFS -DSANE_TIO -DSIGINT_ONLYONCE -DUSE_ONELINE
 
49
BIN     += mountpoint
 
50
SBIN    += sulogin
 
51
USRBIN  += utmpdump
 
52
MAN1    += utmpdump.1 mountpoint.1
 
53
MAN8    += sulogin.8
 
54
endif
 
55
 
 
56
ID              = $(shell id -u)
 
57
BIN_OWNER       = root
 
58
BIN_GROUP       = root
 
59
BIN_COMBO       = $(BIN_OWNER):$(BIN_GROUP)
 
60
ifeq ($(ID),0)
 
61
  INSTALL_EXEC  = install -o $(BIN_OWNER) -g $(BIN_GROUP) -m 755
 
62
  INSTALL_DATA  = install -o $(BIN_OWNER) -g $(BIN_GROUP) -m 644
 
63
else
 
64
  INSTALL_EXEC  = install -m 755
 
65
  INSTALL_DATA  = install -m 644
 
66
endif
 
67
INSTALL_DIR     = install -m 755 -d
 
68
MANDIR          = /usr/share/man
 
69
 
 
70
ifeq ($(WITH_SELINUX),yes)
 
71
  SELINUX_DEF   =  -DWITH_SELINUX
 
72
  INITLIBS      += -lsepol -lselinux
 
73
  SULOGINLIBS   = -lselinux     
 
74
else
 
75
  SELINUX_DEF   =
 
76
  INITLIBS      =
 
77
  SULOGINLIBS   =
 
78
endif
 
79
 
 
80
# Additional libs for GNU libc.
 
81
ifneq ($(wildcard /usr/lib*/libcrypt.a),)
 
82
  SULOGINLIBS   += -lcrypt
 
83
endif
 
84
 
 
85
all:            $(BIN) $(SBIN) $(USRBIN)
 
86
 
 
87
#%: %.o
 
88
#       $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LDLIBS)
 
89
#%.o: %.c
 
90
#       $(CC) $(CFLAGS) $(CPPFLAGS) -c $^ -o $@
 
91
 
 
92
init:           LDLIBS += $(INITLIBS) $(STATIC)
 
93
init:           init.o init_utmp.o
 
94
 
 
95
halt:           halt.o ifdown.o hddown.o utmp.o reboot.h
 
96
 
 
97
last:           last.o oldutmp.h
 
98
 
 
99
mesg:           mesg.o
 
100
 
 
101
mountpoint:     mountpoint.o
 
102
 
 
103
utmpdump:       utmpdump.o
 
104
 
 
105
runlevel:       runlevel.o
 
106
 
 
107
sulogin:        LDLIBS += $(SULOGINLIBS) $(STATIC)
 
108
sulogin:        sulogin.o
 
109
 
 
110
wall:           dowall.o wall.o
 
111
 
 
112
shutdown:       dowall.o shutdown.o utmp.o reboot.h
 
113
 
 
114
bootlogd:       LDLIBS += -lutil
 
115
bootlogd:       bootlogd.o
 
116
 
 
117
sulogin.o:      CPPFLAGS += $(SELINUX_DEF)
 
118
sulogin.o:      sulogin.c 
 
119
 
 
120
init.o:         CPPFLAGS += $(SELINUX_DEF)
 
121
init.o:         init.c init.h set.h reboot.h initreq.h
 
122
 
 
123
utmp.o:         utmp.c init.h
 
124
 
 
125
init_utmp.o:    CPPFLAGS += -DINIT_MAIN
 
126
init_utmp.o:    utmp.c init.h
 
127
                $(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $<
 
128
 
 
129
cleanobjs:
 
130
                rm -f *.o *.bak
 
131
 
 
132
clean:          cleanobjs
 
133
                @echo Type \"make clobber\" to really clean up.
 
134
 
 
135
clobber:        cleanobjs
 
136
                rm -f $(BIN) $(SBIN) $(USRBIN)
 
137
 
 
138
distclean:      clobber
 
139
 
 
140
install:
 
141
                $(INSTALL_DIR) $(ROOT)/bin/ $(ROOT)/sbin/
 
142
                $(INSTALL_DIR) $(ROOT)/usr/bin/
 
143
                for i in $(BIN); do \
 
144
                        $(INSTALL_EXEC) $$i $(ROOT)/bin/ ; \
 
145
                done
 
146
                for i in $(SBIN); do \
 
147
                        $(INSTALL_EXEC) $$i $(ROOT)/sbin/ ; \
 
148
                done
 
149
                for i in $(USRBIN); do \
 
150
                        $(INSTALL_EXEC) $$i $(ROOT)/usr/bin/ ; \
 
151
                done
 
152
                # $(INSTALL_DIR) $(ROOT)/etc/
 
153
                # $(INSTALL_EXEC) initscript.sample $(ROOT)/etc/
 
154
                ln -sf halt $(ROOT)/sbin/reboot
 
155
                ln -sf halt $(ROOT)/sbin/poweroff
 
156
                ln -sf init $(ROOT)/sbin/telinit
 
157
                ln -sf /sbin/killall5 $(ROOT)/bin/pidof
 
158
                if [ ! -f $(ROOT)/usr/bin/lastb ]; then \
 
159
                        ln -sf last $(ROOT)/usr/bin/lastb; \
 
160
                fi
 
161
                $(INSTALL_DIR) $(ROOT)/usr/include/
 
162
                $(INSTALL_DATA) initreq.h $(ROOT)/usr/include/
 
163
                $(INSTALL_DIR) $(ROOT)$(MANDIR)/man1/
 
164
                $(INSTALL_DIR) $(ROOT)$(MANDIR)/man5/
 
165
                $(INSTALL_DIR) $(ROOT)$(MANDIR)/man8/
 
166
                for i in $(MAN1); do \
 
167
                        $(INSTALL_DATA) ../man/$$i $(ROOT)$(MANDIR)/man1/; \
 
168
                done
 
169
                for i in $(MAN5); do \
 
170
                        $(INSTALL_DATA) ../man/$$i $(ROOT)$(MANDIR)/man5/; \
 
171
                done
 
172
                for i in $(MAN8); do \
 
173
                        $(INSTALL_DATA) ../man/$$i $(ROOT)$(MANDIR)/man8/; \
 
174
                done
 
175
ifeq ($(ROOT),)
 
176
                #
 
177
                # This part is skipped on Debian systems, the
 
178
                # debian.preinst script takes care of it.
 
179
                @if [ ! -p /dev/initctl ]; then \
 
180
                 echo "Creating /dev/initctl"; \
 
181
                 rm -f /dev/initctl; \
 
182
                 mknod -m 600 /dev/initctl p; fi
 
183
endif