+Wed Sep 12 18:45:57 CDT 2001 Adam Heath <doogie@debian.org>
+
+ Fixes for building of dpkg-static.deb.
+ * Can't build both dpkg.deb and dpkg-static.deb in single run, because
+ /etc is moved from $(INSTALL_TMP), instead of copied.
+ * dpkg-static.deb is added to debian/files, even if it isn't created.
+ * dpkg-static.tar.gz is added to debian/files, even if it doesn't exist.
+
Wed Sep 12 17:28:57 CEST 2001 Wichert Akkerman <wakkerma@debian.org>
* dpkg-deb/main.c: Fix unterminated line in usage text
install -d -m 755 -o root -g root $(TMP_DPKG)/usr/lib/dpkg
install -d -m 755 -o root -g root $(TMP_DPKG)/usr/bin
install -d -m 755 -o root -g root $(TMP_DPKG)/sbin
- -test -d $(INSTALL_TMP)/etc && mv $(INSTALL_TMP)/etc $(TMP_DPKG)/
+ -test -d $(INSTALL_TMP)/etc && cp -a $(INSTALL_TMP)/etc $(TMP_DPKG)/
cp -a $(INSTALL_TMP)/var $(TMP_DPKG)/
cp -a $(INSTALL_TMP)/usr/sbin/start-stop-daemon $(TMP_DPKG)/sbin/
cp -a $(INSTALL_TMP)/usr/sbin $(TMP_DPKG)/usr/
$(TMP_DPKG)/sbin/start-stop-daemon \
`test -z "$(static)" && echo $(TMP_DPKG)/usr/bin/dpkg $(TMP_DPKG)/usr/bin/md5sum $(TMP_DPKG)/usr/bin/dpkg-deb`
+binary-dpkg binary-dpkg-static: %: %-most
perl -I `pwd`/scripts scripts/dpkg-gencontrol.pl -isp \
-Tdebian/dpkg$(static).substvars -pdpkg$(static) -P$(TMP_DPKG)
-
-binary-dpkg binary-dpkg-static: %: %-most
dpkg --build $(TMP_DPKG) ..
binary-dpkg-dev: stamp-binary
set -e ; \
v=`sed -n 's/^Version: //p' $(TMP_DPKG)/DEBIAN/control`; \
for type in "" -static; do\
- f=dpkg-$${v}_$(arch)$$type.nondebbin.tar ; \
- tar -C $(TMP_DPKG)$$type -cf $(DIR)/../$$f usr var ; \
- gzip -9f ../$$f ; \
- dpkg-distaddfile -fdebian/files $$f.gz byhand -; \
+ if [ -d $(TMP_DPKG)$$type ]; then\
+ f=dpkg-$${v}_$(arch)$$type.nondebbin.tar ; \
+ tar -C $(TMP_DPKG)$$type -cf $(DIR)/../$$f usr var ; \
+ gzip -9f ../$$f ; \
+ dpkg-distaddfile -fdebian/files $$f.gz byhand -; \
+ fi;\
done
binary-indep: binary-dpkg-dev binary-dpkg-doc