~mmach/netext73/sysvinit

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: mmach
  • Date: 2023-11-26 16:47:13 UTC
  • Revision ID: netbit73@gmail.com-20231126164713-wzy9kmqvr8q6ydml
308

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
 
6
6
tmp     = $(CURDIR)/debian/tmp
7
7
sysvtmp = $(CURDIR)/debian/sysvinit-core
8
 
utiltmp = $(CURDIR)/debian/sysvinit-utils
9
 
rctmp   = $(CURDIR)/debian/sysv-rc
10
8
inittmp = $(CURDIR)/debian/initscripts
11
 
bootlogdtmp = $(CURDIR)/debian/bootlogd
12
9
doc     = /usr/share/doc
13
10
 
14
11
LC_ALL  = POSIX
15
12
 
16
 
DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
17
 
DEB_HOST_GNU_SYSTEM ?= $(shell dpkg-architecture -qDEB_HOST_GNU_SYSTEM)
18
 
DEB_HOST_ARCH       ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
19
 
DEB_HOST_ARCH_OS    ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
20
 
DEB_HOST_MULTIARCH  ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
21
 
 
22
13
INSTALL_DATA = install -m 644
23
14
INSTALL      = install -m 755
24
15
 
33
24
 
34
25
DH_OPTIONS =
35
26
 
36
 
ifeq ($(shell dpkg-vendor --query vendor),Ubuntu)
 
27
ifeq ($(derives_from_ubuntu),yes)
37
28
        DH_OPTIONS = -Nsysvinit-core -Nsysv-rc -Ninitscripts -Nbootlogd
38
29
endif
39
30
 
88
79
        dh $@ $(DH_OPTIONS)
89
80
 
90
81
override_dh_installchangelogs-arch:
91
 
ifneq ($(shell dpkg-vendor --query vendor),Ubuntu)
 
82
ifneq ($(derives_from_ubuntu),yes)
92
83
        dh_installchangelogs -psysvinit-core doc/Changelog
93
84
endif
94
 
 
95
 
        dh_installchangelogs -psysvinit-utils
96
 
        rm -f $(utiltmp)$(doc)/sysvinit-utils/changelog
97
 
        sed -i -ne '/sysvinit (2.93-8)/q' -e p \
98
 
                $(utiltmp)$(doc)/sysvinit-utils/changelog.Debian
99
 
 
100
 
ifneq ($(shell dpkg-vendor --query vendor),Ubuntu)
 
85
        dh_installchangelogs -psysvinit-utils --exclude doc/Changelog
 
86
 
 
87
ifneq ($(derives_from_ubuntu),yes)
101
88
        dh_installchangelogs -pbootlogd
102
 
        sed -i -ne '/sysvinit (2.93-8)/q' -e p \
103
 
                $(bootlogdtmp)$(doc)/bootlogd/changelog.Debian
104
89
endif
105
90
 
106
91
override_dh_installchangelogs-indep:
107
92
        dh_installchangelogs
108
 
ifneq ($(shell dpkg-vendor --query vendor),Ubuntu)
109
 
        sed -i -ne '/sysvinit (2.93-8)/q' -e p \
110
 
                $(rctmp)$(doc)/sysv-rc/changelog.Debian
111
 
 
112
 
        dh_installchangelogs -pinitscripts
113
 
        sed -i -ne '/sysvinit (2.93-8)/q' -e p \
114
 
                $(inittmp)$(doc)/initscripts/changelog.Debian
115
 
endif
116
93
 
117
94
override_dh_installdeb:
118
95
        dh_installdeb