--- sysvinit.old/debian/rules Wed Aug 27 19:44:12 2008 +++ /opt/emdebian/trunk/s/sysvinit/trunk/sysvinit-2.86.ds1/debian/rules Wed Aug 27 19:44:13 2008 @@ -66,14 +66,6 @@ install -d -o root -g root -m 755 $(tmp)/usr/share/sysvinit install -d -o root -g root -m 755 $(tmp)/usr/include install -d -o root -g root -m 755 $(tmp)$(doc)/sysvinit - install -o root -g root -m 644 doc/Changelog \ - $(tmp)$(doc)/sysvinit/changelog - install -o root -g root -m 644 debian/changelog \ - $(tmp)$(doc)/sysvinit/changelog.Debian - install -o root -g root -m 644 debian/NEWS \ - $(tmp)$(doc)/sysvinit/NEWS.Debian - gzip -9f $(tmp)$(doc)/sysvinit/changelog* - gzip -9f $(tmp)$(doc)/sysvinit/NEWS.Debian if test -e debian/share/inittab.$(DEB_HOST_GNU_TYPE) ; \ then \ install -o root -g root -m 644 \ @@ -88,8 +80,6 @@ install -o root -g root -m 644 debian/share/inittab \ $(tmp)/usr/share/sysvinit/inittab ; \ fi - install -o root -g root -m 755 debian/share/update-rc.d \ - $(tmp)/usr/share/sysvinit install -d -o root -g root -m 755 $(tmp)/{bin,sbin,usr} install -d -o root -g root -m 755 $(tmp)/usr/bin install -d -o root -g root -m 755 $(tmp)/usr/sbin @@ -124,9 +114,20 @@ rmdir $(tmp)/usr/bin rmdir $(tmp)/bin gzip -9f $(tmp)/usr/share/man/man*/*.[0-9] +ifneq (,$(findstring nodocs,$(DEB_BUILD_OPTIONS))) + rm -rf $(tmp)$(doc)/sysvinit/* + rm -rf $(tmp)/usr/share/man/* + rm -rf $(tmp)/usr/share/linda/* + rm -rf $(tmp)/usr/share/lintian/* +endif install -o root -g root -m 644 debian/copyright \ $(tmp)$(doc)/sysvinit/copyright cat COPYRIGHT >> $(tmp)$(doc)/sysvinit/copyright + cp debian/emdebianinitpost debian/initscripts/postinst + cp debian/emdebianvarsh debian/initscripts/lib/init/vars.sh +ifneq (,$(findstring nodocs,$(DEB_BUILD_OPTIONS))) + gzip -9f $(tmp)$(doc)/sysvinit/copyright +endif install -o root -g root -m 755 debian/postinst $(tmp)/DEBIAN/postinst dpkg-shlibdeps src/init debian/startpar/startpar dpkg-gencontrol -psysvinit -P$(tmp) -isp @@ -165,9 +166,18 @@ install -o root -g root -m 644 man/mesg.1 $(tmp)/usr/share/man/man1 install -o root -g root -m 644 man/pidof.8 $(tmp)/usr/share/man/man8 gzip -9f $(tmp)/usr/share/man/man*/*.[0-9] +ifneq (,$(findstring nodocs,$(DEB_BUILD_OPTIONS))) + rm -rf $(tmp)$(doc)/sysvinit-utils/* + rm -rf $(tmp)/usr/share/man/ + rm -rf $(tmp)/usr/share/linda/* + rm -rf $(tmp)/usr/share/lintian/* +endif install -o root -g root -m 644 debian/copyright \ $(tmp)$(doc)/sysvinit-utils/copyright cat COPYRIGHT >> $(tmp)$(doc)/sysvinit-utils/copyright +ifneq (,$(findstring nodocs,$(DEB_BUILD_OPTIONS))) + gzip -9f $(tmp)$(doc)/sysvinit-utils/copyright +endif dpkg-shlibdeps src/init dpkg-gencontrol -psysvinit-utils -P$(tmp) -isp dpkg --build $(tmp) .. @@ -225,10 +235,20 @@ install -o root -g root -m 644 \ debian/initscripts/lintian.overrides \ $(tmp)/usr/share/lintian/overrides/initscripts +ifneq (,$(findstring nodocs,$(DEB_BUILD_OPTIONS))) + rm -rf $(tmp)$(doc)/initscripts/* + rm -rf $(tmp)/usr/share/man/* + rm -rf $(tmp)/usr/share/linda/* + rm -rf $(tmp)/usr/share/lintian/* +endif install -o root -g root -m 644 debian/initscripts/copyright \ $(tmp)$(doc)/initscripts/copyright +ifneq (,$(findstring nodocs,$(DEB_BUILD_OPTIONS))) + gzip -9f $(tmp)$(doc)/initscripts/copyright +endif install -o root -g root -m 755 debian/initscripts/preinst $(tmp)/DEBIAN - install -o root -g root -m 755 debian/initscripts/postinst $(tmp)/DEBIAN + install -o root -g root -m 755 debian/emdebianpostinst $(tmp)/DEBIAN + mv $(tmp)/DEBIAN/emdebianpostinst $(tmp)/DEBIAN/postinst install -o root -g root -m 755 debian/initscripts/postrm $(tmp)/DEBIAN install -o root -g root -m 644 debian/initscripts/conffiles \ $(tmp)/DEBIAN/conffiles @@ -278,15 +298,23 @@ install -o root -g root -m 644 debian/sysv-rc/man8/es/*.8 \ $(tmp)/usr/share/man/es/man8 install -o root -g root -m 755 debian/sysv-rc/sbin/invoke-rc.d $(tmp)/usr/sbin - install -o root -g root -m 755 debian/sysv-rc/sbin/update-rc.d $(tmp)/usr/sbin gzip -9f $(tmp)/usr/share/man/man*/*.[0-9] \ $(tmp)/usr/share/man/??/man*/*.[0-9] install -d -o root -g root -m 755 $(tmp)/usr/share/lintian/overrides install -o root -g root -m 644 \ debian/sysv-rc/lintian.overrides \ $(tmp)/usr/share/lintian/overrides/sysv-rc +ifneq (,$(findstring nodocs,$(DEB_BUILD_OPTIONS))) + rm -rf $(tmp)$(doc)/sysv-rc/* + rm -rf $(tmp)/usr/share/man/* + rm -rf $(tmp)/usr/share/linda/* + rm -rf $(tmp)/usr/share/lintian/* +endif install -o root -g root -m 644 debian/sysv-rc/copyright \ $(tmp)$(doc)/sysv-rc/copyright +ifneq (,$(findstring nodocs,$(DEB_BUILD_OPTIONS))) + gzip -9f $(tmp)$(doc)/sysv-rc/copyright +endif install -o root -g root -m 755 debian/sysv-rc/postrm $(tmp)/DEBIAN/postrm dpkg-gencontrol -psysv-rc -P$(tmp) -isp dpkg --build $(tmp) ..